/* --- FONT FACE SETUP --- */
@font-face {
    font-family: 'Neue Montreal';
    src: url('fonts/NeueMontreal-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* --- LOCKED DARK MODE COLOR VARIABLES --- */
:root {
    --bg-color: #4149d9; 
    --text-color: #f2f2f2; 
    --accent-color: #d4e151;
    
    --nav-grad-1: rgba(255, 255, 255, 0.03); 
    --nav-grad-2: rgba(255, 255, 255, 0.14);
    
    --clear-glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.15);
    --cursor-glow: rgba(255, 255, 255, 0.15);
}

/* Custom Text Selection Highlight */
::selection { background-color: var(--accent-color); color: #000000; }
::-moz-selection { background-color: var(--accent-color); color: #000000; }

/* Basic Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: 'Neue Montreal', sans-serif; background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; }

/* Hide native cursor ONLY when holding the dollar bill */
body.hide-native-cursor, body.hide-native-cursor * {
    cursor: none !important;
}

/* --- DOLLAR BILL CURSOR (Isolated) --- */
.custom-cursor {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); opacity: 0; 
    transition: opacity 0.3s ease;
}
.custom-cursor.has-dollar {
    opacity: 1;
    width: 100px;        
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
@keyframes dollarSwallowWiggle {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    20% { transform: translate(-50%, -50%) rotate(-12deg) scale(0.92); }
    40% { transform: translate(-50%, -50%) rotate(10deg) scale(0.96); }
    60% { transform: translate(-50%, -50%) rotate(-10deg) scale(0.88); }
    80% { transform: translate(-50%, -50%) rotate(8deg) scale(0.82); }
}
.custom-cursor.swallowing {
    animation: dollarSwallowWiggle 1s ease-in-out 1;
}

/* --- HEADER LAYOUT & DYNAMIC CIRCLE --- */
.site-header {
    display: inline-flex; justify-content: center; align-items: center;            
    gap: 60px; padding: 12px 42px 12px 32px; position: fixed; 
    top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000;
    
    background: linear-gradient(120deg, var(--nav-grad-1), var(--nav-grad-2), var(--nav-grad-1));
    background-size: 200% 200%; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clear-glass-border); border-radius: 100px; 
    box-shadow: 0 8px 32px var(--glass-shadow); overflow: hidden; 
    
    max-width: 900px; height: 77px; 
    transition: max-width 1.4s cubic-bezier(0.22, 1, 0.36, 1), 
                padding 1.4s cubic-bezier(0.22, 1, 0.36, 1), 
                gap 1.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.8s ease, background-position 0.6s ease, background-color 0.4s ease;
}

.site-header:hover { background-position: 100% 50%; }
.site-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle 100px at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--cursor-glow), transparent);
    opacity: 0; z-index: -1; transition: opacity 0.4s ease; pointer-events: none; 
}
.site-header:hover::before { opacity: 1; }

.logo-link { flex-shrink: 0; display: flex; cursor: pointer; }
.header-logo { height: 53px; width: auto; display: block; user-select: none; -webkit-user-drag: none; }
.logo-light { display: none; } 

.main-nav {
    overflow: hidden; max-width: 700px;
    opacity: 1;
    transition: max-width 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.0s ease;
}

.nav-list { display: flex; align-items: center; list-style: none; gap: 50px; white-space: nowrap; }

.nav-link {
    display: inline-block;
    text-decoration: none; 
    color: var(--text-color); 
    font-size: 20px; 
    position: relative; 
    padding-bottom: 4px; 
    transition: color 0.4s ease; 
    cursor: pointer;
}
.nav-link::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    width: 0;  
    height: 2px;
    background-color: var(--accent-color); 
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), left 0.4s cubic-bezier(0.22, 1, 0.36, 1); 
}
.nav-link:hover { color: var(--accent-color); }
.nav-link:hover::after { width: 100%; left: 0; }
.nav-link.active { color: var(--accent-color); }
.nav-link.active::after { width: 100%; left: 0; background-color: var(--accent-color); }

.site-header.nav-collapsed { max-width: 77px; padding: 12px; gap: 0; }
.site-header.nav-collapsed .main-nav { max-width: 0; opacity: 0; pointer-events: none; }
.site-header.nav-collapsed:hover { max-width: 900px; padding: 12px 42px 12px 32px; gap: 60px; }
.site-header.nav-collapsed:hover .main-nav { max-width: 700px; opacity: 1; pointer-events: auto; }

/* --- HEADER INVERTED GLASS --- */
.site-header.inverted-glass {
    background: #4149d9 !important; 
    border-color: rgba(255, 255, 255, 0.2) !important;
}
.site-header.inverted-glass .nav-link { color: #ffffff !important; }
.site-header.inverted-glass .nav-link.active { color: var(--accent-color) !important; }

/* --- HOMEPAGE HERO & CTA --- */
.hero-section {
    position: relative; height: 100vh; width: 100%; padding: 0 10vw; 
    display: flex; align-items: center; padding-top: 100px; overflow: hidden;
    
    background-color: var(--bg-color);
    background-image: 
        url('hero-bg.png'),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 2px, transparent 2px);
    background-size: cover, 60px 60px, 60px 60px;
    background-position: center, center, center;
    background-repeat: no-repeat, repeat, repeat;
}

.hero-content { position: relative; max-width: 68%; z-index: 2; }
.hero-text { font-size: 3rem; font-weight: 400; line-height: 1.3; text-align: left; margin: 0; }

mark { background-color: transparent; color: inherit; }
mark span:not(.cursor) { background-color: var(--accent-color); color: var(--bg-color); }

.cursor { 
    color: var(--accent-color) !important; 
    background-color: transparent !important;
    font-weight: 400; 
    opacity: 1; 
}
.cursor.blinking { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.cta-wrapper { margin-top: 50px; opacity: 0; }
.hero-section.start-anim .cta-wrapper { animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 2.6s; }
@keyframes fadeUpIn { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(20px); } }

.cta-button {
    display: inline-flex; align-items: center; gap: 12px; padding: 16px 36px; 
    text-decoration: none; font-size: 20px; 
    font-weight: 400; 
    background-color: var(--accent-color); color: var(--bg-color); 
    border: 1px solid var(--accent-color); border-radius: 100px; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); }

.arrow { 
    font-size: 24px; 
    font-weight: 400; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}
.cta-button:hover .arrow { transform: translate(4px, -4px); }

/* --- PORTFOLIO BUTTON MODIFIER --- */
.portfolio-btn {
    background-color: var(--bg-color);
    color: var(--accent-color);
    border-color: var(--bg-color);
}

/* --- RIGHT SIDE HERO IMAGE --- */
.hero-image {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 40vw; max-width: 800px; height: auto; z-index: 1;
    user-select: none; -webkit-user-drag: none; pointer-events: none; opacity: 0;
}
.hero-section.start-anim .hero-image { animation: slideInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.8s; }
@keyframes slideInRight { from { opacity: 0; transform: translate(40px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }

/* --- ANIMATED MARQUEE STRIP --- */
.marquee-container {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background-color: #000000; color: #ffffff;
    display: flex; overflow: hidden; white-space: nowrap;
    padding: 18px 0; z-index: 10; font-size: 1.2rem; font-weight: 400;
}
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 85s linear infinite; }
.marquee-content { display: flex; align-items: center; flex-shrink: 0; }
.marquee-logo { height: 24px; width: auto; margin: 0 48px; user-select: none; -webkit-user-drag: none; }
.marquee-container .highlight { color: var(--accent-color); }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- HOMEPAGE: INTERACTIVE BOX SECTION --- */
.next-section { 
    position: relative;
    height: 100vh; 
    width: 100%; 
    background-image: url('interactive-box-bg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.box-container {
    position: relative;
    width: 50%; 
    max-width: 800px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-image {
    width: 100%; height: auto; display: block; position: relative; z-index: 1; 
    user-select: none; -webkit-user-drag: none;
}

.box-hole {
    position: absolute; top: 38%; width: 15%; aspect-ratio: 1; border-radius: 50%; z-index: 5; 
}
.left-hole { left: 11%; }
.right-hole { right: 11%; }

.eyes-bounds {
    position: absolute; top: 36%; left: 28%; width: 44%; height: 30%;   
    display: flex; justify-content: center; align-items: center; gap: 22%; 
    z-index: 2; overflow: hidden; 
}

.eye {
    position: relative; width: 30%; aspect-ratio: 1; background-color: #ffffff;
    border-radius: 75% 15%; transform: rotate(45deg); 
    border: 3px solid #000; border-top-width: 10px; border-left-width: 10px; 
    overflow: hidden; 
}

.pupil {
    position: absolute; top: 50%; left: 50%;
    width: 65%; height: 65%;
    will-change: transform;
}

.iris {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.iris-circle { background-color: #000000; border-radius: 50%; opacity: 1; transform: scale(1); }

.iris-dollar {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50%" y="54%" dominant-baseline="middle" text-anchor="middle" font-family="Arial, sans-serif" font-weight="900" font-size="65" fill="%23228b4a">S</text><rect x="42" y="18" width="4" height="64" fill="%23228b4a" rx="2"/><rect x="54" y="18" width="4" height="64" fill="%23228b4a" rx="2"/></svg>');
    background-size: contain; background-position: center; background-repeat: no-repeat;
    opacity: 0; transform: scale(0.5); 
}

.pupil.dollar .iris-circle { opacity: 0; transform: scale(1.3); }
.pupil.dollar .iris-dollar { opacity: 1; transform: scale(1.1); }

/* --- HOMEPAGE: BOTTOM GLASS BUTTON --- */
.dollar-btn {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    width: 77px; 
    height: 77px; 
    border-radius: 50%;
    background: linear-gradient(120deg, rgba(65, 73, 217, 0.04), rgba(65, 73, 217, 0.18), rgba(65, 73, 217, 0.04));
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(65, 73, 217, 0.25); box-shadow: 0 8px 32px var(--glass-shadow);
    z-index: 10; display: flex; justify-content: center; align-items: center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
    cursor: pointer;
}
.dollar-btn:hover { transform: translateX(-50%) scale(1.1); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); }
.dollar-btn img { width: 38px; height: 38px; pointer-events: none; }


/* --- ABOUT US PAGE STYLES --- */
body.about-page-body {
    background-color: var(--bg-color);
}

.about-hero {
    position: relative;
    width: 100%;
    padding: 160px 10vw 0 10vw; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center; 
    text-align: center;  
    overflow: hidden; 
    background-color: var(--bg-color);
    background-image: 
        url('about-bg.png'),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 2px, transparent 2px);
    background-size: cover, 60px 60px, 60px 60px;
    background-position: top center, center, center;
    background-repeat: no-repeat, repeat, repeat; 
}

@keyframes stopMotionDrop {
    0%   { opacity: 0; transform: scale(0.8) translate(0, 40px) rotate(0deg); }
    20%  { opacity: 1; transform: scale(1.05) translate(-5px, 10px) rotate(-4deg); }
    40%  { opacity: 1; transform: scale(0.95) translate(5px, -5px) rotate(3deg); }
    60%  { opacity: 1; transform: scale(1.02) translate(-2px, 5px) rotate(-2deg); }
    80%  { opacity: 1; transform: scale(0.99) translate(1px, -2px) rotate(1deg); }
    100% { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
}

.decorative-cloud, .decorative-item {
    position: absolute;
    pointer-events: auto; 
    user-select: none;
    opacity: 0;
    animation: stopMotionDrop 1.2s step-end forwards;
}

/* Original scale and placement */
.decorative-cloud { z-index: 1; }
.cloud-01 { top: 8%; left: 3%; width: 25vw; max-width: 320px; animation-delay: 0.3s; }
.cloud-02 { bottom: 8%; right: 3%; width: 28vw; max-width: 380px; animation-delay: 0.5s; }
.headphone { top: 14%; left: 11%; width: 11vw; max-width: 130px; z-index: 1; animation-delay: 0.4s; }
.camera { bottom: 4%; left: 2%; width: 11vw; max-width: 130px; z-index: 1; animation-delay: 0.6s; }
.computer { bottom: 32%; right: 9%; width: 14vw; max-width: 180px; z-index: 2; animation-delay: 0.7s; }
.siren { top: 3%; right: 2%; width: 10vw; max-width: 120px; z-index: 1; animation-delay: 0.5s; }

.hover-animate {
    width: 100%; height: auto; display: block; transform-origin: center center;
}

.hover-animate:hover { animation: stopMotionHover 0.6s step-end forwards; }

@keyframes stopMotionHover {
    0%   { transform: scale(1) translate(0, 0) rotate(0deg); }
    16%  { transform: scale(1.04) translate(-2px, 3px) rotate(-3deg); }
    32%  { transform: scale(0.96) translate(3px, -2px) rotate(2deg); }
    48%  { transform: scale(1.02) translate(-1px, 2px) rotate(-2deg); }
    64%  { transform: scale(0.98) translate(2px, -1px) rotate(1deg); }
    80%  { transform: scale(1.01) translate(-1px, 1px) rotate(-1deg); }
    100% { transform: scale(1) translate(0, 0) rotate(0deg); } 
}

/* Original Founder Rules Restored */
.founders-wrapper {
    position: relative; z-index: 2; width: 100%; max-width: 900px;
    margin-bottom: 0px; opacity: 1; transform: none; 
}
.founders-container { display: flex; justify-content: center; align-items: flex-end; gap: 40px; width: 100%; }
.founder-card { display: flex; flex-direction: column; align-items: center; width: 45%; min-width: 280px; }
.founder-image { width: 100%; height: auto; display: block; }
.founder-strip { width: 100vw; height: 3px; background-color: #b8c0d9; margin-top: 0px; position: relative; left: 50%; transform: translateX(-50%); }

.about-bottom { 
    width: 100%; 
    min-height: 40vh; 
    background-color: #f2f2f2; 
}

/* --- SHARED FOOTER WITH SOCIALS --- */
.simple-footer { 
    padding: 50px 10vw; 
    border-top: 1px solid var(--clear-glass-border); 
    color: var(--text-color); 
    font-size: 1rem; 
    opacity: 0.8; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 20px;
}
.simple-footer p { margin: 0; }

.simple-footer.light-theme-footer { 
    background-color: #f2f2f2; 
    color: var(--bg-color); 
    border-top: none; 
    opacity: 1; 
}
.footer-socials { display: flex; align-items: center; gap: 15px; }
.socials-text { font-weight: 500; margin-right: 8px; }
.social-links { display: flex; align-items: center; gap: 18px; }
.social-links a { color: inherit; display: flex; align-items: center; justify-content: center; transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; }
.social-links a svg { width: 22px; height: 22px; fill: currentColor; }
.social-links a:hover { color: var(--accent-color); transform: translateY(-4px) scale(1.15); }

/* --- SERVICES PAGE STYLES --- */
body.services-page-body {
    background-color: var(--bg-color);
}

body.services-page-body .site-header {
    background-color: rgba(65, 73, 217, 0.85);
    background-image: linear-gradient(120deg, var(--nav-grad-1), var(--nav-grad-2), var(--nav-grad-1));
}

body.services-page-body .site-header.glass-mode {
    background-color: transparent;
}

.services-scroll-track {
    position: relative;
    height: 250vh; 
    width: 100%;
}

.services-sticky-viewport {
    position: sticky;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    
    --hero-scale: 1;
    --hero-opacity: 1;
    --grid-scale: 0.2;
    --grid-opacity: 0;
    --grid-blur: 20px;
    --grid-pointer: none;
    --bg-crossfade: 0; 
}

.services-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0; 
}

.layer-wide { background-image: url('services-bg-wide.png'); }
.layer-close { background-image: url('services-bg-close.png'); opacity: var(--bg-crossfade); will-change: opacity; }

.services-hero {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10vw;
    z-index: 2; 
    
    transform: scale(var(--hero-scale));
    opacity: var(--hero-opacity);
    will-change: transform, opacity;
}

.services-statement {
    display: flex;
    align-items: center;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.accent-we {
    color: var(--text-color);
    margin-right: 0.3em; 
    text-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
}

.period {
    color: var(--text-color);
    margin-left: 0.1em; 
    text-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-container {
    position: relative;
    height: 1.6em; 
    display: inline-flex;
    justify-content: center; 
    align-items: center;
    perspective: 1200px;
    transform-style: preserve-3d;
    overflow: visible; 
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-word {
    position: absolute;
    left: 50%;
    top: 50%;
    width: max-content; 
    transform: translate(-50%, -50%); 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 12px; 
    pointer-events: none; 
    white-space: nowrap;
}

.flap {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(65, 73, 217, 0.85); 
    background-image: linear-gradient(120deg, var(--nav-grad-1), var(--nav-grad-2), var(--nav-grad-1));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clear-glass-border);
    border-radius: 16px;
    padding: 0 0.2em; 
    box-shadow: 0 8px 32px var(--glass-shadow), inset 0 1px 2px rgba(255,255,255,0.2);
    color: var(--accent-color);
    text-shadow: 0 4px 24px rgba(0,0,0,0.25);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    transition-delay: calc(var(--i) * 0.1s);
    transform-origin: center center;
    will-change: transform, opacity;
}

.carousel-word.active .flap { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); }
.carousel-word.next .flap { opacity: 0; transform: translateY(-100%) rotateX(90deg) scale(0.85); }
.carousel-word.prev .flap { opacity: 0; transform: translateY(100%) rotateX(-90deg) scale(0.85); }
.carousel-word.hidden-top .flap { opacity: 0; transform: translateY(-150%) rotateX(90deg) scale(0.7); }
.carousel-word.hidden-bottom .flap { opacity: 0; transform: translateY(150%) rotateX(-90deg) scale(0.7); }

.services-grid-section {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10vw;
    z-index: 3; 
    transform: scale(var(--grid-scale));
    opacity: var(--grid-opacity);
    filter: blur(var(--grid-blur));
    pointer-events: var(--grid-pointer); 
    will-change: transform, opacity, filter;
}

/* --- FORMS (CAREERS & WORK TOGETHER) --- */
.careers-main {
    position: relative;
    min-height: 100vh;
    padding-top: 180px;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.careers-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 2px, transparent 2px);
    background-size: 60px 60px, 60px 60px;
    background-position: center, center;
}

.careers-header {
    text-align: center;
    margin-bottom: 60px;
}

.form-container {
    width: 100%;
    max-width: 800px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(65, 73, 217, 0.6), rgba(65, 73, 217, 0.8));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
}

.word-count {
    font-size: 0.9rem;
    opacity: 0.6;
    font-weight: 400;
}

.word-count.limit-reached {
    color: #ff6b6b;
    opacity: 1;
}

input[type="text"],
input[type="tel"],
input[type="url"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    font-family: 'Neue Montreal', sans-serif;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    outline: none;
    color-scheme: dark; 
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input:focus,
textarea:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(212, 225, 81, 0.1);
}

/* Custom Premium Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
    cursor: pointer;
}

.dropdown-selected {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    font-family: 'Neue Montreal', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4); 
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-selected.has-value {
    color: var(--text-color);
}

.dropdown-selected::after {
    content: '▼';
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-selected::after {
    transform: rotate(180deg);
}

.custom-dropdown.open .dropdown-selected {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(45, 52, 166, 0.95); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--accent-color);
    border-top: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 14px 20px;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-option:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 20px;
    border: none;
    cursor: pointer; 
}

/* --- BLOG INDEX PAGE STYLES --- */
.blog-main {
    position: relative;
    min-height: 100vh;
    padding-top: 180px;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    padding: 0 5vw;
}

.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(65, 73, 217, 0.4), rgba(65, 73, 217, 0.7));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.blog-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15); 
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image-wrapper img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 30px;
    flex-grow: 1;
}

.read-more {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.blog-card:hover .read-more {
    gap: 12px;
}

/* --- INDIVIDUAL BLOG POST PAGE STYLES --- */
.post-main {
    position: relative;
    min-height: 100vh;
    padding-top: 180px;
    padding-bottom: 120px;
}

.post-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px auto;
    padding: 0 5vw;
}

.post-meta {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 2 Column Grid Layout */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.post-column {
    display: flex;
    flex-direction: column;
    gap: 25px; 
}

/* 4:5 Instagram Sized Media Wrapper */
.post-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15); 
    border: 1px solid var(--clear-glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-media img, 
.post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- WIDE MEDIA FOR FULL POSTS (PREVENTS CROPPING) --- */
.post-media-wide {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--clear-glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    display: block;
}

.post-media-wide img {
    width: 100%;
    height: auto; 
    display: block;
}

/* Glassmorphism Text Box */
.post-text-box {
    background: linear-gradient(135deg, rgba(65, 73, 217, 0.4), rgba(65, 73, 217, 0.7));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.post-text-box p {
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.seo-link {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
}

.seo-link:hover {
    text-decoration: underline;
}

/* --- "OUR STORY" SECTION STYLES --- */
.story-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 10vw;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.story-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--bg-color); 
    margin: 0;
    text-align: left;
    position: sticky;
    top: 150px; 
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.story-content p {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.6;
    color: var(--bg-color); 
    margin: 0;
    font-weight: 400;
    letter-spacing: 0;
    text-align: justify;
}

.story-highlight {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    line-height: 1.1;
    font-weight: 500;
}

/* --- HEADER INVERTED GLASS (When over light backgrounds) --- */
.site-header.inverted-glass {
    background: #4149d9 !important; /* Forces solid blue background over white sections */
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.site-header.inverted-glass .nav-link {
    color: #ffffff !important;
}

.site-header.inverted-glass .nav-link.active {
    color: var(--accent-color) !important;
}

/* --- SCROLL ANIMATION CLASSES --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating CTA Button & Scroll Docking */
.floating-cta {
    position: fixed;
    bottom: 40px;
    right: 4vw;
    z-index: 900;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================================= */
/* --- UNIVERSAL RESPONSIVE STYLES --- */
/* ========================================================================= */

/* TABLETS & IPADS (Max Width: 1024px) */
@media (max-width: 1024px) {
    /* Hide Interactive Box & Hero SVG Image */
    .next-section, .hero-image { 
        display: none !important; 
    }

    /* Remove the floating CTA button specifically on the landing page for non-desktop */
    .landing-floating-cta { display: none !important; }

    /* Hide "About Us" Decorative Elements completely on Tablet & Mobile */
    .decorative-cloud, .decorative-item {
        display: none !important;
    }

    /* Disable 3D Parallax Transition - Make it fill 100vh naturally */
    .services-scroll-track {
        height: 100vh !important;
        padding: 0 !important;
    }
    .services-sticky-viewport {
        position: relative !important;
        height: 100vh !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
        padding: 0 5vw;
        overflow: hidden;
    }
    .services-bg.layer-close {
        display: none; 
    }
    
    /* Adjust the hero background image to focus on the character */
    .services-bg.layer-wide {
        background-position: 85% center !important;
        background-size: cover !important;
    }

    .services-hero, .services-grid-section {
        position: relative !important;
        height: auto !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
    }
}

/* MOBILE PHONES (Max Width: 768px) */
@media (max-width: 768px) {
    /* Smart Mobile Navigation Bar */
    .site-header {
        gap: 15px;
        padding: 10px 20px;
        width: 90%;
        height: auto;
    }
    .site-header:hover {
        max-width: 900px;
        padding: 10px 20px;
        gap: 15px;
    }
    .nav-list { gap: 15px; }
    .nav-link { font-size: 16px; }
    .header-logo { height: 35px; }
    
    .site-header.nav-collapsed { max-width: 60px; padding: 10px; }
    .site-header.nav-collapsed .header-logo { height: 35px; }

    /* Index Hero Section Realignment */
    .hero-section {
        height: auto !important;
        min-height: 0 !important;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        padding-top: 100px !important; 
        padding-bottom: 140px !important; /* Balances top padding + accounts for marquee height */
    }
    .hero-content { max-width: 100%; padding: 0 5vw; }
    .hero-text { 
        font-size: 1.35rem; 
        text-align: justify; 
        line-height: 1.5; 
    }
    .cta-wrapper { 
        display: flex; 
        justify-content: center; 
        margin-top: 30px; 
        width: 100%;
    }

    /* Standardize and shrink CTA buttons */
    .cta-button {
        padding: 12px 24px !important;
        font-size: 16px !important;
    }

    /* Enlarge Founder GIFs on mobile */
    .about-hero {
        padding: 120px 2vw 0 2vw !important; /* Widen the container bounds */
    }
    .founders-wrapper {
        max-width: 100%; 
    }
    .founders-container { 
        gap: 10px; 
        width: 100%; 
        max-width: 500px; 
        margin: 0 auto; 
    }
    .founder-card { 
        width: 48%; 
        min-width: auto; 
    }

    /* Breathing Space fixes for forms and blog cards */
    .form-container { 
        width: 85%; 
        margin: 0 auto 40px auto; 
        padding: 40px 25px; 
        border-radius: 24px; 
    }
    .blog-grid { 
        width: 100%;
        padding: 0; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        gap: 40px; 
    }
    .blog-card { 
        width: 85%; 
        max-width: 450px; 
    }
    .careers-header, .post-header {
        padding: 0 7.5%;
        margin-bottom: 40px;
    }

    /* Marquee & Services Fixes */
    .marquee-container { font-size: 1rem; padding: 12px 0; }
    .marquee-logo { height: 18px; margin: 0 24px; }
    .services-statement { font-size: clamp(2rem, 8vw, 3rem); flex-wrap: wrap; justify-content: center; }
    .carousel-container { height: 1.5em; }

    /* Our Story Overrides */
    .story-container { grid-template-columns: 1fr; gap: 40px; padding: 80px 10vw; }
    .story-heading { position: relative; top: 0; text-align: center; }
    .story-content p { 
        font-size: 1.1rem !important; 
        text-align: justify !important; 
        line-height: 1.5; 
    }

    /* Shared Footer Alignment */
    .simple-footer { 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        text-align: left; 
        padding: 20px 5vw;
        gap: 10px;
    }
    .simple-footer p { font-size: 0.8rem; }
    
    .footer-socials { 
        flex-direction: row; 
        gap: 10px; 
    }
    
    /* Hide the "Join Community:" text to ensure it all fits on one line */
    .socials-text { 
        display: none; 
    }
    
    /* Floating CTA Bottom adjustment */
    .floating-cta { bottom: 30px; right: 5vw; padding: 12px 24px; font-size: 16px; }
}