/* ==========================================
   UX/UI IMPROVEMENTS
   Melhorias visuais e de experiência do usuário
   ========================================== */

/* ==========================================
   HERO ENHANCEMENTS
   ========================================== */

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left !important;
    max-width: 100% !important;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: slideInDown 0.6s ease;
}

.hero-badge svg {
    color: #4ade80;
}

/* Animated Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(0px, -100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, -50px) rotate(270deg);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Visual - Mockups */
.hero-visual {
    position: relative;
    height: 500px;
}

.mockup-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Dashboard Window Mockup */
.mockup-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: floatWindow 6s infinite ease-in-out;
}

@keyframes floatWindow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.window-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
}

.window-dots span:nth-child(1) {
    background: #ff5f57;
}

.window-dots span:nth-child(2) {
    background: #ffbd2e;
}

.window-dots span:nth-child(3) {
    background: #28ca42;
}

.window-title {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.window-content {
    padding: 24px;
    background: linear-gradient(to bottom, #f8f9fa, white);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.stat-growth {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.dashboard-chart {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 80px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #4F46E5, #8B5CF6);
    border-radius: 4px;
    animation: growBar 1.5s ease-in-out;
}

@keyframes growBar {
    from {
        height: 0;
    }
}

/* Phone Mockup */
.mockup-phone {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 400px;
    background: #1e293b;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 8px solid #1e293b;
    animation: floatPhone 6s infinite ease-in-out;
    animation-delay: -3s;
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

.phone-header {
    height: 30px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-notch {
    width: 60px;
    height: 18px;
    background: #1e293b;
    border-radius: 0 0 12px 12px;
}

.phone-content {
    background: linear-gradient(to bottom, #f1f5f9, white);
    height: calc(100% - 30px);
    padding: 16px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background: #4F46E5;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background: white;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-icon {
    font-size: 16px;
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary svg,
.btn-secondary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   RESPONSIVE - Mobile First
   ========================================== */

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center !important;
    }

    .hero-badge {
        display: inline-flex;
    }

    .hero-visual {
        height: 400px;
    }

    .mockup-window {
        max-width: 100%;
    }

    .mockup-phone {
        width: 160px;
        height: 320px;
    }
}

@media (max-width: 640px) {
    .hero-visual {
        height: 300px;
        transform: scale(0.85);
    }

    .shape {
        filter: blur(40px);
    }
}

/* ==========================================
   SECTION IMPROVEMENTS
   ========================================== */

.section-header {
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 16px;
}

/* Improved Portfolio Grid */
.portfolio-grid {
    gap: 32px;
}

.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

/* CTA Section Enhancement */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Images */
img {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* WhatsApp Float Button Enhancement */
.whatsapp-float {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
