/* --- 1. Variables & Themes --- */
:root {
    /* BRAND FONTS */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* ZEALVIX OFFICIAL PALETTE (Dark Mode Default) */
    --bg-color: #0B1020;         /* ZV-Navy 900 */
    --card-bg: #11162A;          /* ZV-Navy 800 */
    --text-main: #FFFFFF;        /* ZV-White */
    --text-muted: #E0E7FF;       /* ZV-Slate 200 */
    --border-color: rgba(138, 91, 255, 0.2); 
    --nav-glass: rgba(11, 16, 32, 0.85);
    --input-bg: rgba(255,255,255,0.03);

    /* ZEALVIX GRADIENTS & ACCENTS */
    --accent-1: #6A00FF; 
    --accent-2: #2E6BFF; 
    --gradient-main: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    
    --radius: 20px; 
    --spacing: 2rem;
}

/* --- LIGHT MODE FIX (High Readability) --- */
[data-theme="light"] {
    --bg-color: #FFFFFF;         
    --card-bg: #F0F4F8;          
    --text-main: #0B1020;        
    --text-muted: #475569;       
    --border-color: rgba(11, 16, 32, 0.1); 
    --nav-glass: rgba(255, 255, 255, 0.95);
    --input-bg: #FFFFFF;         
}

/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; transition: background-color 0.4s ease, color 0.2s ease, border-color 0.4s ease; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-color); color: var(--text-main); overflow-x: hidden; line-height: 1.6; }

/* Typography */
h1, h2, h3, .logo, .hero-badge, .mood-label, .btn-submit, .marquee-content, .founder-role { font-family: var(--font-heading); letter-spacing: -0.5px; }
.hero-badge, .mood-label, .btn-submit, .founder-role { letter-spacing: 1px; }
p { line-height: 1.7; font-weight: 400; }

/* Background FX */
.blobs { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.3; animation: float 12s infinite alternate; }
.blob-1 { top: -20%; left: -10%; width: 60vw; height: 60vw; background: var(--accent-1); }
.blob-2 { bottom: -20%; right: -10%; width: 50vw; height: 50vw; background: var(--accent-2); animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, 40px) scale(1.05); } }

/* Navigation */
nav.glass-nav { position: fixed; top: 0; width: 100%; padding: 0.8rem 5%; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(16px); background: var(--nav-glass); z-index: 100; border-bottom: 1px solid var(--border-color); }
.logo-container { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 50px; width: auto; object-fit: contain; border-radius: 8px; }
.nav-links a { text-decoration: none; color: var(--text-muted); margin: 0 15px; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-main); }
.cta-link { background: var(--gradient-main); color: white !important; padding: 10px 24px; border-radius: 50px; box-shadow: 0 8px 16px rgba(106, 0, 255, 0.2); }

/* Theme Toggle */
#theme-toggle { background: transparent; border: 1px solid var(--border-color); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--text-main); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .icon.sun { display: block; } [data-theme="dark"] .icon.moon { display: none; }
[data-theme="light"] .icon.sun { display: none; } [data-theme="light"] .icon.moon { display: block; }

/* Floating Mood Dock */
.mood-dock { position: fixed; left: 40px; bottom: 40px; background: var(--nav-glass); padding: 12px 25px; border-radius: 50px; border: 1px solid var(--border-color); backdrop-filter: blur(10px); display: flex; flex-direction: row; align-items: center; gap: 20px; z-index: 99; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.mood-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-right: 5px; }
.mood-options { display: flex; gap: 10px; }
.mood-btn { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1); cursor: pointer; transition: transform 0.2s; }
.mood-btn:hover { transform: scale(1.2); }
.mood-btn[data-mood="zealvix"] { background: linear-gradient(135deg, #6A00FF, #2E6BFF); }
.mood-btn[data-mood="aqua"] { background: linear-gradient(135deg, #3FD0FF, #2E6BFF); }
.mood-btn[data-mood="iris"] { background: linear-gradient(135deg, #8A5BFF, #6A00FF); }
.mood-btn[data-mood="slate"] { background: linear-gradient(135deg, #C9D1FF, #7A2DD8); }

/* Hero */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 80px; }
.hero-badge { border: 1px solid var(--accent-2); background: rgba(46, 107, 255, 0.1); color: var(--accent-2); padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; margin-bottom: 24px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; font-weight: 800; margin-bottom: 1.5rem; }
.gradient-text { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { max-width: 650px; font-size: 1.1rem; color: var(--text-muted); font-weight: 400; }
.hero-actions { margin-top: 4rem; display: flex; flex-direction: column; align-items: center; }
.scroll-indicator { text-decoration: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 12px; animation: bounce 2s infinite; font-family: var(--font-heading); cursor: pointer; }
.arrow-down { font-size: 1.2rem; border: 1px solid var(--border-color); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--accent-2); transition: border-color 0.3s, background 0.3s; }
.scroll-indicator:hover .arrow-down { border-color: var(--accent-2); background: rgba(46, 107, 255, 0.1); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* --- MARQUEE (Full Width - No Gaps) --- */
.marquee-wrapper { 
    width: 100vw; /* Force full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #FFFFFF; 
    transform: none;
    padding: 18px 0; 
    margin-bottom: 5rem; 
    margin-top: 3rem; 
    z-index: 10; 
    overflow: hidden; 
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.marquee-track { display: flex; width: max-content; animation: scroll 30s linear infinite; }
.marquee-content { white-space: nowrap; color: #0B1020; font-weight: 800; font-size: 1.8rem; text-transform: uppercase; padding-right: 0; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Mobile Adjustment for Marquee */
@media (max-width: 768px) { 
    .marquee-wrapper { 
        padding: 12px 0; 
        margin-top: 2rem;
        /* Keep full width on mobile too */
        width: 100vw;
        margin-left: -50vw;
    } 
    .marquee-content { font-size: 1.1rem; } 
}

/* Services Grid */
.bento-section { padding: 6rem 0; }
.section-header { font-size: 2.5rem; margin-bottom: 4rem; font-weight: 800; text-align: center; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
.card.premium-card { background: linear-gradient(145deg, var(--card-bg), var(--bg-color)); border: 1px solid var(--border-color); border-radius: 24px; padding: 3rem 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.4s; position: relative; overflow: hidden; min-height: 320px; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1); }
.card.premium-card:hover { transform: translateY(-10px); border-color: var(--accent-2); box-shadow: 0 20px 40px -10px rgba(46, 107, 255, 0.2); }
.card-icon { font-size: 2rem; margin-bottom: 1.5rem; background: rgba(120, 120, 120, 0.1); width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.card.premium-card:hover .card-icon { background: var(--gradient-main); color: white; }
.feather-icon { stroke: var(--text-muted); transition: stroke 0.3s ease; }
.card.premium-card:hover .feather-icon { stroke: #ffffff; }
.card h3 { font-size: 1.4rem; margin-bottom: 1.2rem; font-weight: 700; color: var(--text-main); }
.card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.9; opacity: 0.9; }

/* Portfolio Section */
.portfolio-section { padding: 4rem 0; }
.portfolio-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 30px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.portfolio-content { padding: 4rem; }
.portfolio-tag { display: inline-block; padding: 5px 15px; border-radius: 20px; background: rgba(46, 107, 255, 0.1); color: var(--accent-2); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.portfolio-content h3 { font-size: 2.5rem; margin-bottom: 1rem; }
.portfolio-link { display: inline-block; margin-top: 1.5rem; text-decoration: none; color: var(--accent-1); font-weight: 700; border-bottom: 2px solid var(--accent-1); }
.portfolio-visual { background: linear-gradient(135deg, #1A1A1A, #333); height: 100%; min-height: 400px; display: flex; align-items: center; justify-content: center; position: relative; }
.browser-mockup { width: 80%; height: 70%; background: #000; border-radius: 10px; border: 1px solid #444; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.browser-header { background: #222; padding: 10px; display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.browser-body { height: 100%; display: flex; align-items: center; justify-content: center; background: #111; }

/* Founder Section */
.founder-section { padding: 6rem 0; }
.founder-container { background: linear-gradient(145deg, var(--card-bg), var(--bg-color)); border: 1px solid var(--border-color); border-radius: 30px; padding: 4rem; display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; position: relative; overflow: hidden; }
.founder-container::before { content: ''; position: absolute; top: -20%; left: -10%; width: 50%; height: 50%; background: var(--accent-2); filter: blur(80px); opacity: 0.15; z-index: 0; }
.founder-image-wrapper { position: relative; z-index: 1; }
.founder-img { width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.2); aspect-ratio: 1/1; object-fit: cover; transition: transform 0.3s ease; }
.founder-container:hover .founder-img { transform: scale(1.02); }
.founder-content { position: relative; z-index: 1; }
.founder-content h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.founder-content h3 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.founder-role { font-size: 1.1rem; font-weight: 600; color: var(--text-main); margin-bottom: 1.5rem; text-transform: uppercase; border-bottom: 2px solid var(--accent-2); display: inline-block; padding-bottom: 5px; }
.founder-bio { font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); max-width: 600px; }

/* Philosophy & Contact */
.philosophy-section { padding: 6rem 0; text-align: center; }
.philosophy-card h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 900px; margin: 0 auto 2rem auto; line-height: 1.3; }
.highlight-text { color: var(--accent-1); background: linear-gradient(120deg, transparent 0%, rgba(106, 0, 255, 0.2) 100%); }
.contact-section { padding-bottom: 6rem; }
.contact-card { background: linear-gradient(180deg, var(--card-bg), var(--bg-color)); border: 1px solid var(--border-color); border-radius: 30px; padding: 4rem 2rem; text-align: center; max-width: 800px; margin: 0 auto; min-height: 450px; display: flex; align-items: center; justify-content: center; }
#formContainer, #successMessage { width: 100%; transition: opacity 0.5s ease; }
.form-hidden { display: none; opacity: 0; }
.input-group { display: flex; gap: 20px; margin: 20px 0; }
input, select { width: 100%; padding: 18px; background: var(--input-bg); border: 1px solid var(--border-color); color: var(--text-main); border-radius: 12px; font-family: var(--font-body); font-size: 1rem; }
select option { background-color: var(--bg-color); color: var(--text-main); }
.btn-submit { width: 100%; padding: 18px; background: var(--gradient-main); border: none; color: white; font-weight: 700; border-radius: 12px; cursor: pointer; font-size: 1.1rem; margin-top: 1.5rem; text-transform: uppercase; transition: transform 0.2s, box-shadow 0.2s; }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -10px var(--accent-1); }

/* Success */
.success-message { display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fadeIn 0.5s ease forwards; }
.success-message h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--text-main); }
.success-message p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.checkmark { width: 80px; height: 80px; border-radius: 50%; display: block; stroke-width: 3; stroke: var(--text-main); stroke-miterlimit: 10; box-shadow: inset 0px 0px 0px var(--accent-2); animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both; position: relative; margin-bottom: 20px; }
.checkmark__circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 3; stroke-miterlimit: 10; stroke: var(--accent-2); 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; }
@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 var(--accent-2); stroke: #FFF; } }

/* Footer & WhatsApp */
footer { padding: 3rem 0; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; }
.social-links a { color: var(--accent-2); text-decoration: none; margin: 0 5px; transition: color 0.3s;}
.social-links a:hover { color: var(--accent-1); }
.whatsapp-float { position: fixed; bottom: 40px; right: 40px; width: 60px; height: 60px; background-color: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: transform 0.3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.15) rotate(5deg); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); }
.whatsapp-float svg { width: 32px; height: 32px; fill: white; }

/* --- MOBILE RESPONSIVENESS (PERFECT FIT) --- */
@media (max-width: 900px) { 
    .bento-grid { grid-template-columns: repeat(2, 1fr); } 
    .portfolio-card { grid-template-columns: 1fr; } 
    .portfolio-visual { min-height: 250px; } 
}

@media (max-width: 768px) { 
    .container { padding: 0 15px; }
    
    .bento-grid { grid-template-columns: 1fr; gap: 20px; } 
    
    .input-group { flex-direction: column; margin: 10px 0; } 
    
    /* Marquee Mobile */
    .marquee-wrapper { 
        padding: 12px 0; 
        margin-top: 2rem;
    } 
    .marquee-content { font-size: 1.1rem; } 
    
    /* Founder Mobile */
    .founder-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        padding: 2.5rem 1.5rem; 
        gap: 2rem; 
    } 
    .founder-image-wrapper { max-width: 200px; margin: 0 auto; } 
    .founder-content h3 { font-size: 1.8rem; } 
    .founder-role { margin: 0 auto 1.5rem auto; } 
    
    /* Portfolio Mobile */
    .portfolio-content { padding: 2rem; }
    .portfolio-content h3 { font-size: 2rem; }
    
    /* Controls Mobile */
    .mood-dock { bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; justify-content: center; } 
    .whatsapp-float { width: 50px; height: 50px; bottom: 85px; right: 20px; } /* Moved up slightly to clear dock */
    .whatsapp-float svg { width: 24px; height: 24px; } 
    
    .nav-links { display: none; } 
}
/* --- SEO/Accessibility Additions (No Visual Impact) --- */

/* Screen reader only - invisible but readable by crawlers & assistants */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip link - hidden until focused (keyboard / crawler accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent-1);
    color: white;
    padding: 10px 20px;
    z-index: 9999;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* Footer logo as p (not div) for semantic correctness */
footer .logo {
    display: block;
    margin-bottom: 0.5rem;
}
