/* ============================================
   CodeWave Systems - Landing Page
   Identity: Dark Mode + Blue Gradient Wave
   Motif: Waves throughout (logo-inspired)
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0f1c;
    --bg-secondary: #0f1629;
    --bg-card: #141b2d;
    --bg-card-hover: #1a2340;
    --border-color: #1e293b;
    --border-hover: #2d3a54;

    --blue-primary: #3b82f6;
    --blue-secondary: #60a5fa;
    --blue-dark: #2563eb;
    --blue-light: #93c5fd;
    --blue-glow: rgba(59, 130, 246, 0.15);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --gradient-blue: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
    --gradient-blue-text: linear-gradient(135deg, #60a5fa, #3b82f6, #93c5fd);
    --gradient-card: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.1);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Gradient Text --- */
.gradient-text {
    background: var(--gradient-blue-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Section Common --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blue-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--blue-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   WAVE SEPARATORS
   ============================================ */
.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
}

.wave-separator svg {
    width: 100%;
    height: 80px;
    display: block;
}

.wave-separator-flip {
    bottom: 0;
}

/* Footer wave (top of footer) */
.footer-wave {
    width: 100%;
    line-height: 0;
    margin-bottom: -1px;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-accent {
    color: var(--blue-primary);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 20px !important;
    background: var(--gradient-blue);
    border-radius: var(--radius-sm);
    color: #fff !important;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Canvas animated waves */
#wave-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Radial glow behind hero content */
.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--blue-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--blue-secondary);
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    transition: var(--transition);
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--blue-primary);
    background: var(--blue-glow);
    color: var(--blue-secondary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-secondary);
    line-height: 1;
}

.stat-symbol {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll a {
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 120px 0 160px;
    background: var(--bg-secondary);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Wave decoration on hover inside cards */
.service-wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 500 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 C125,60 250,0 375,30 C437,45 468,20 500,30 L500,60 L0,60 Z' fill='rgba(59,130,246,0.04)'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.service-card:hover .service-wave-bg {
    opacity: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}


.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-glow);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.6rem;
    color: var(--blue-secondary);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-features i {
    color: var(--blue-primary);
    font-size: 0.9rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 120px 0 160px;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-frame {
    position: relative;
    width: 280px;
    height: 320px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-image-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

/* Wave decoration inside about photo frame */
.about-wave-deco {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
}

.about-experience {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--gradient-blue);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.experience-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.experience-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.about-content .section-badge {
    display: inline-block;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.skill-tag {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--blue-primary);
    color: var(--blue-secondary);
    background: var(--blue-glow);
}

/* ============================================
   CLIENTS
   ============================================ */
.clients {
    padding: 120px 0 160px;
    background: var(--bg-secondary);
    position: relative;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.client-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.client-wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 500 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 C125,60 250,0 375,30 C437,45 468,20 500,30 L500,60 L0,60 Z' fill='rgba(59,130,246,0.04)'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.client-card:hover .client-wave-bg {
    opacity: 1;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: var(--transition);
}

.client-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.client-card:hover::before {
    opacity: 1;
}

.client-featured {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.15);
}

.client-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.client-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.client-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.client-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.client-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blue-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue-secondary);
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.client-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.client-tags span:hover {
    border-color: var(--blue-primary);
    color: var(--blue-secondary);
    background: var(--blue-glow);
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 120px 0 160px;
    position: relative;
}

.products-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Wave decoration on product cards */
.product-wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 500 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 C83,80 167,0 250,40 C333,80 417,0 500,40 L500,80 L0,80 Z' fill='rgba(59,130,246,0.03)'/%3E%3Cpath d='M0,55 C83,80 167,20 250,55 C333,80 417,20 500,55 L500,80 L0,80 Z' fill='rgba(59,130,246,0.02)'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.product-card:hover .product-wave-bg {
    opacity: 1;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.product-featured {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.15);
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blue-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--blue-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.product-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.product-icon i {
    font-size: 1.6rem;
    color: #fff;
}

.product-icon-petfolio {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.product-icon-hades {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.product-icon-adapta {
    background: linear-gradient(135deg, #10b981, #059669);
}

.product-icon-pdv {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.product-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.product-tagline {
    font-size: 0.9rem;
    color: var(--blue-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.product-highlights i {
    color: var(--blue-primary);
    font-size: 0.85rem;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue-secondary);
    transition: var(--transition);
}

.product-link:hover {
    color: var(--blue-light);
    gap: 10px;
}

/* ============================================
   STACK
   ============================================ */
.stack {
    padding: 120px 0 160px;
    background: var(--bg-secondary);
    position: relative;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stack-category {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.stack-category:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stack-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.stack-category h3 i {
    color: var(--blue-primary);
    font-size: 1.2rem;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-tag {
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.stack-tag:hover {
    border-color: var(--blue-primary);
    color: var(--blue-secondary);
    background: var(--blue-glow);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 120px 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-badge {
    display: inline-block;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--blue-primary);
    flex-shrink: 0;
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--blue-primary);
    color: var(--blue-secondary);
    background: var(--blue-glow);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 0 0 32px;
    background: var(--bg-primary);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
    padding-top: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-column a:hover {
    color: var(--blue-secondary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-cnpj {
    font-size: 0.78rem !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    /* Wave separators smaller on mobile */
    .wave-separator svg {
        height: 50px;
    }

    /* Hero */
    .hero {
        padding: 100px 0 100px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-scroll {
        bottom: 20px;
    }

    /* Services */
    .services {
        padding: 80px 0 120px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Clients */
    .clients {
        padding: 80px 0 120px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .client-featured {
        grid-column: auto;
    }

    /* About */
    .about {
        padding: 80px 0 120px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-skills {
        justify-content: center;
    }

    /* Products */
    .products {
        padding: 80px 0 120px;
    }

    .products-bento {
        grid-template-columns: 1fr;
    }

    .product-featured {
        grid-column: auto;
    }

    /* Stack */
    .stack {
        padding: 80px 0 120px;
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact {
        padding: 80px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .contact-socials {
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

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

    .wave-separator svg {
        height: 35px;
    }
}
