/* --- PREMIUM BRAND VARIABLES --- */
:root {
    /* 1. Background: Deep Midnight (Trust & Authority) */
    --bg-body: #020617;
    
    /* 2. Primary Gradient: Cyan to Purple (Tech + Creativity) */
    --primary-cyan: #00E0FF;
    --primary-purple: #004a9e;
    
    /* 3. Action Color: Neon Lime (Growth & Money) */
    --accent-lime: #CCFF00;
    
    /* Neutrals */
    --text-main: #FFFFFF;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 90px;
    --radius-card: 24px;
    --radius-btn: 100px;
}

/* --- GLOBAL RESET --- */
html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
    width: 100%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { color: var(--text-muted); font-size: 1.1rem; }

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    display: flex; align-items: center;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { 
    font-size: 1.75rem; font-weight: 800; letter-spacing: -0.05em; color: white; 
    display: flex; align-items: center; gap: 12px; z-index: 1001;
}

.nav-logo-img { height: 48px; width: auto; flex-shrink: 0; }
.dot { color: var(--primary-cyan); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: white; }

.nav-cta {
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    color: white !important;
    background: rgba(255,255,255,0.05);
}
.nav-cta:hover {
    background: white;
    color: black !important;
    border-color: white;
}

/* --- HAMBURGER MENU --- */
.hamburger { 
    display: none; cursor: pointer; z-index: 1001;
    width: 30px; height: 20px; position: relative;
}
.hamburger span {
    display: block; width: 100%; height: 2px; background: white;
    position: absolute; left: 0; transition: all 0.3s ease-in-out;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); background: var(--primary-cyan); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); background: var(--primary-cyan); }

/* --- HERO SECTION --- */
.hero {
    position: relative; min-height: 100svh; 
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 120px 0 80px 0; overflow: hidden;
}
.hero-backdrop { position: absolute; inset: 0; z-index: 0; display: flex; justify-content: center; align-items: center; }
.hero-watermark { width: 60vw; opacity: 0.08; filter: grayscale(0%) blur(0px); mix-blend-mode: screen; pointer-events: none; }
.gradient-orb {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3;
    z-index: -1; animation: float 10s infinite alternate ease-in-out;
}
.orb-1 { width: 600px; height: 600px; background: var(--primary-purple); top: -20%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: var(--primary-cyan); bottom: -20%; right: -10%; animation-delay: -5s; }

.tech-grid {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hero-content { position: relative; z-index: 10; max-width: 900px; margin: 0 auto; width: 100%; }

/* --- HERO H1 SIZE --- */
.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 1.5rem; 
    letter-spacing: -0.02em; 
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { max-width: 650px; margin: 0 auto 40px; color: var(--text-muted); }
.hero-buttons { display: flex; justify-content: center; gap: 16px; margin-bottom: 60px; }

.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 16px 40px; font-weight: 600; border-radius: var(--radius-btn);
    transition: 0.3s; cursor: pointer; white-space: nowrap; 
}
.btn-primary { background: var(--primary-cyan); color: var(--bg-body); border: none; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0, 224, 255, 0.5); }
.btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; }
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.05); }

/* --- STATS GRID (4 Columns) --- */
.hero-stats {
    display: grid; 
    grid-template-columns: repeat(4, 1fr); /* Updated to 4 */
    gap: 30px;
    border-top: 1px solid var(--glass-border); padding-top: 40px; margin-top: 40px;
}

/* Force Centering on Stat Items */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-num { display: block; font-size: 2rem; font-weight: 700; color: white; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* --- SECTIONS --- */
section { padding: 120px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 80px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }

.card {
    position: relative; background: var(--glass-bg); border: 1px solid var(--glass-border);
    padding: 40px; border-radius: var(--radius-card); transition: 0.4s ease; overflow: hidden;
}
.card:hover { border-color: var(--primary-cyan); transform: translateY(-10px); background: rgba(255,255,255,0.05); }

.card-icon { 
    width: 60px; height: 60px; margin-bottom: 24px; color: var(--primary-cyan);
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 224, 255, 0.08); border-radius: 12px; border: 1px solid rgba(0, 224, 255, 0.2);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.step-num {
    display: block; font-size: 4rem; font-weight: 800; color: rgba(255, 255, 255, 0.918);
    margin-bottom: -20px; position: relative; z-index: 0;
}
.process-step h3 { position: relative; z-index: 1; color: var(--primary-cyan); margin-bottom: 10px; }

/* --- FOOTER --- */
footer { background: #010409; padding: 80px 0 40px; border-top: 1px solid var(--glass-border); }

.cta-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border); border-radius: 40px; padding: 60px 20px;
    text-align: center; max-width: 800px; margin: 0 auto 80px;
}
.newsletter-form { display: flex; justify-content: center; margin-top: 30px; }

/* --- CTA BUTTON --- */
.cta-box .btn {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 14px 36px;
    text-transform: uppercase;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 60px; margin-bottom: 60px;
}

.footer-col h4 { color: white; font-size: 1.1rem; margin-bottom: 24px; }
.footer-desc { color: var(--text-muted); font-size: 0.95rem; margin: 20px 0; max-width: 300px; }

.footer-menu li { margin-bottom: 12px; color: var(--text-muted); font-size: 0.95rem; }
.footer-menu a { color: inherit; transition: 0.3s; cursor: pointer; }
.footer-menu a:hover { color: var(--primary-cyan); padding-left: 5px; }

.social-links { display: flex; gap: 16px; margin-top: 24px; }
.social-links a {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    color: white; transition: 0.3s;
}
.social-links a:hover {
    background: var(--primary-cyan); color: #020617; transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.4);
}
.social-links svg { width: 20px; height: 20px; }

.footer-bottom {
    border-top: 1px solid var(--glass-border); padding-top: 30px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px; color: var(--text-muted); font-size: 0.85rem;
}
.legal-links { display: flex; gap: 24px; }
.legal-links a:hover { color: white; text-decoration: underline; }

/* =========================================
   INQUIRY POPUP
   ========================================= */
.inquiry-content {
    max-width: 450px !important;
    text-align: left !important;
    position: relative;
}

.close-modal-x {
    position: absolute; top: 20px; right: 20px;
    background: transparent; border: none; color: var(--text-muted);
    font-size: 2rem; cursor: pointer; line-height: 1; transition: 0.3s;
}
.close-modal-x:hover { color: white; transform: rotate(90deg); }

.inquiry-form { display: flex; flex-direction: column; gap: 12px; }

/* 1. General Input Styling */
.inquiry-form input, 
.inquiry-form textarea {
    width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 12px 16px; color: white; font-family: 'Inter', sans-serif;
    font-size: 0.9rem; outline: none; transition: 0.3s;
}

/* 2. CUSTOM SELECT DROPDOWN */
.inquiry-form select {
    width: 100%;
    /* Remove default browser styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    padding-right: 40px; /* Make room for custom arrow */
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
    cursor: pointer;
    
    /* Custom Neon Cyan Arrow (Base64 SVG) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300E0FF' 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 1rem center;
    background-size: 1.2em;
}

/* 3. Style Options in the Dropdown List */
.inquiry-form select option {
    background-color: #020617; /* Dark background matching the theme */
    color: white;
    padding: 10px;
}

/* 4. Focus States */
.inquiry-form input:focus, 
.inquiry-form textarea:focus, 
.inquiry-form select:focus {
    border-color: var(--primary-cyan); 
    background-color: rgba(0, 224, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.1);
}

.btn-full { width: 100%; }
.btn-sm { padding: 12px 24px; font-size: 0.9rem; }

/* Divider OR */
.divider {
    display: flex; align-items: center; margin: 25px 0; color: var(--text-muted); font-size: 0.8rem;
}
.divider::before, .divider::after {
    content: ""; flex: 1; height: 1px; background: var(--glass-border);
}
.divider span { padding: 0 10px; }

/* Contact Options (WhatsApp/Email) */
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.btn-option {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
    transition: 0.3s; border: 1px solid var(--glass-border);
}
.btn-option svg { width: 18px; height: 18px; }

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.1); color: #25D366; border-color: rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background: #25D366; color: black; box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.btn-email {
    background: rgba(255, 255, 255, 0.05); color: white;
}
.btn-email:hover {
    background: white; color: black;
}

/* =========================================
   SUCCESS MODAL POPUP
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(8px);
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--primary-cyan);
    box-shadow: 0 0 40px rgba(0, 224, 255, 0.15); padding: 40px; border-radius: 24px;
    text-align: center; max-width: 400px; width: 90%;
    transform: scale(0.8); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-content h3 { font-size: 2rem; margin: 20px 0 10px; color: white; }
.modal-content p { color: var(--text-muted); font-size: 1rem; margin-bottom: 30px; }

/* Checkmark Animation */
.tick-container { width: 80px; height: 80px; margin: 0 auto; }
.checkmark {
    width: 80px; height: 80px; border-radius: 50%; display: block;
    stroke-width: 2; stroke: #fff; stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--primary-cyan);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}
.checkmark__circle {
    stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2; stroke-miterlimit: 10;
    stroke: var(--primary-cyan); fill: none; animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark__check {
    transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards; stroke: var(--primary-cyan);
}

@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 50px rgba(0, 224, 255, 0.1); } }

@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(30px, -30px); } }
.fade-in-section { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: none; }

/* =========================================
   MOBILE OPTIMIZATION
   ========================================= */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-col { text-align: center; }
    .footer-desc { margin: 20px auto; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-logo { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-logo-img { height: 36px; }
    .logo { font-size: 1.4rem; gap: 8px; z-index: 1005; }
    .hamburger { display: block; z-index: 1005; }

    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
        background: rgba(2, 6, 23, 0.98); backdrop-filter: blur(20px);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 1.5rem; opacity: 0; pointer-events: none;
        transform: translateY(-20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000; padding-bottom: 40px;
    }
    .nav-links.active { opacity: 1; pointer-events: all; transform: translateY(0); }

    .nav-links li { width: 100%; text-align: center; opacity: 0; transform: translateY(20px); transition: 0.4s ease; }
    .nav-links.active li { opacity: 1; transform: translateY(0); }
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }

    .nav-links a { font-size: 1.5rem; font-weight: 600; color: white; display: inline-block; letter-spacing: -0.02em; }

    .nav-cta {
        margin-top: 10px; padding: 14px 32px; font-size: 1rem;
        background: rgba(0, 224, 255, 0.1); color: var(--primary-cyan) !important;
        border: 1px solid rgba(0, 224, 255, 0.3); box-shadow: 0 0 15px rgba(0, 224, 255, 0.1); width: auto;
    }
    .nav-cta:hover { background: var(--primary-cyan); color: #020617 !important; }

    /* --- MOBILE H1 --- */
    .hero h1 { 
        font-size: 2.2rem; 
        margin-bottom: 1rem; 
        padding: 0 10px; 
    }

    .hero p { font-size: 1rem; padding: 0 10px; }
    .hero-buttons { flex-direction: column; gap: 12px; padding: 0 20px; margin-bottom: 40px; }
    .btn { width: 100%; }
    
    /* Stats on Mobile: 2x2 grid */
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 30px; }
    
    .stat-num { font-size: 1.5rem; }
    .stat-label { font-size: 0.75rem; }
    section { padding: 80px 0; }
    .process-grid { grid-template-columns: 1fr; gap: 40px; }
    .newsletter-form { flex-direction: column; }
    .hero-watermark { width: 90%; opacity: 0.05; }
    .cta-box { padding: 40px 20px; border-radius: 24px; }
}