:root {
    --bg-dark: #05070A;
    --text-main: #FFFFFF;
    --text-muted: #8A93A6;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.3);
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
a { text-decoration: none; color: inherit; }

/* Custom Cursor (Fixed positioning logic to be foolproof) */
.cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; background: var(--text-main); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); }
.cursor-ring { position: fixed; top: 0; left: 0; width: 36px; height: 36px; border: 1px solid var(--border-hover); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, border-color 0.2s; }
body:hover .cursor-ring.hovered { width: 60px; height: 60px; border-color: var(--text-main); background: rgba(255, 255, 255, 0.05); }

/* Background Effects */
.global-glow {
    position: fixed;
    top: -20vh; left: -10vw; right: -10vw; height: 140vh;
    background: radial-gradient(circle at 50% 30%, rgba(20, 60, 140, 0.18), transparent 70%);
    z-index: 0; pointer-events: none;
}
#particle-dust-canvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1; pointer-events: none;
}

/* Premium Gradients for Headings */
.hero-title, .stat-num, .exp-title, .step-title, .contact-title, .collab-card h3 {
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Global Typography */
.section-label { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 64px; text-transform: uppercase; letter-spacing: 0.1em; }
.center-label { text-align: center; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; padding: 24px 0; z-index: 100; mix-blend-mode: difference; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-mono); font-weight: 500; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 1px; background: var(--text-main); transition: width 0.3s var(--ease-out-expo); }
.nav-links a:hover::after { width: 100%; }
.btn-nav { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; border: 1px solid var(--border-subtle); padding: 10px 24px; border-radius: 100px; transition: border-color 0.3s, background 0.3s; }
.btn-nav:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; position: relative; overflow: hidden; }
#hero-particles-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-content { max-width: 800px; position: relative; z-index: 2; }
.hero-badge { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 32px; display: inline-block; border: 1px solid var(--border-subtle); padding: 8px 16px; border-radius: 100px; background: rgba(255,255,255,0.02); }
.hero-title { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 32px; }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 600px; line-height: 1.6; margin-bottom: 56px; }

.btn-primary {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 40px; background: var(--text-main); color: var(--bg-dark);
    font-weight: 600; font-size: 1rem; border-radius: 100px; border: none; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary span { transition: transform 0.3s; }
.btn-primary:hover span { transform: translateX(4px); }
.btn-primary:hover { box-shadow: 0 0 24px rgba(255,255,255,0.2); }

/* Marquee */
.marquee-wrapper { width: 100%; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 16px 0; overflow: hidden; position: relative; z-index: 2; background: rgba(5,7,10,0.5); backdrop-filter: blur(8px); }
.marquee-track { display: flex; width: max-content; animation: scrollMarquee 40s linear infinite; }
.marquee-content { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.15em; color: var(--text-muted); white-space: nowrap; padding-right: 2rem; opacity: 0.6; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Services (Accordion) */
.services { padding: 120px 0; }
.services-list { border-top: 1px solid var(--border-subtle); max-width: 1000px; }
.accordion-item { border-bottom: 1px solid var(--border-subtle); cursor: pointer; transition: background 0.3s, border-color 0.3s; background: rgba(255,255,255,0.005); }
.accordion-item:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.02); }
.accordion-header { padding: 40px 0; display: flex; justify-content: space-between; align-items: center; }
.accordion-title-wrap { display: flex; align-items: baseline; gap: 32px; }
.accordion-title-wrap .num { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); transition: color 0.3s; }

.accordion-title-wrap h3 {
    font-size: 2.5rem; font-weight: 500; letter-spacing: -0.02em; 
    background: linear-gradient(180deg, #8A93A6 0%, rgba(138, 147, 166, 0.4) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    transition: transform 0.4s var(--ease-out-expo);
}
.accordion-item:hover .accordion-title-wrap h3,
.accordion-item.active .accordion-title-wrap h3 {
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    transform: translateX(16px);
}
.accordion-item:hover .accordion-title-wrap .num { color: var(--text-main); }

.accordion-icon { width: 24px; height: 24px; position: relative; display: flex; align-items: center; justify-content: center; }
.accordion-icon span { position: absolute; background: var(--text-muted); transition: transform 0.4s var(--ease-out-expo), background 0.3s; }
.accordion-item:hover .accordion-icon span { background: var(--text-main); }
.line-h { width: 100%; height: 2px; }
.line-v { width: 2px; height: 100%; }
.accordion-item.active .accordion-icon span { background: var(--text-main); }
.accordion-item.active .line-v { transform: rotate(90deg); opacity: 0; }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out-expo); }
.content-inner { padding: 0 0 48px 64px; max-width: 700px; }
.short-desc { font-size: 1.25rem; font-weight: 500; margin-bottom: 16px; }
.long-desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 32px; }
.tags { display: flex; gap: 12px; flex-wrap: wrap; }
.tags span { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; border: 1px solid var(--border-subtle); padding: 6px 14px; border-radius: 100px; color: var(--text-muted); background: rgba(255,255,255,0.02); }

/* Stats */
.stats { padding: 60px 0; }
.stats-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: rgba(255,255,255,0.01); backdrop-filter: blur(4px); }
.stat-item { padding: 48px 32px; display: flex; flex-direction: column; border-right: 1px solid var(--border-subtle); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: clamp(3rem, 5vw, 4.5rem); font-family: var(--font-mono); font-weight: 400; margin-bottom: 16px; line-height: 1; }
.stat-label { font-size: 1rem; color: var(--text-muted); }

/* Experience */
.experience { padding: 120px 0; }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.exp-card { border: 1px solid var(--border-subtle); border-radius: 16px; padding: 48px 40px; background: rgba(255,255,255,0.01); backdrop-filter: blur(8px); transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s; cursor: pointer; }
.exp-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.exp-num { font-family: var(--font-mono); font-size: 1.2rem; color: var(--text-muted); margin-bottom: 32px; transition: color 0.4s; }
.exp-card:hover .exp-num { color: var(--text-main); }
.exp-title { font-size: 1.5rem; font-weight: 500; margin-bottom: 16px; letter-spacing: -0.01em; }
.exp-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

/* Philosophy */
.philosophy { padding: 120px 0; }
.text-center { text-align: center; }
.philosophy-quote { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; font-style: italic; max-width: 900px; margin: 0 auto 32px; line-height: 1.2; letter-spacing: -0.02em; }
.philosophy-author { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Process */
.process { padding: 120px 0; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.process-step { position: relative; padding-top: 24px; cursor: pointer; }
.step-line { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--border-subtle); transition: background 0.4s; }
.process-step:hover .step-line { background: var(--text-main); animation: lineFlash 0.6s ease; }
@keyframes lineFlash { 0% { background: var(--border-subtle); } 50% { background: var(--text-main); } 100% { background: var(--border-hover); } }
.process-step:hover .step-line { background: var(--border-hover); }
.step-num { font-family: var(--font-mono); font-size: 1.2rem; color: var(--text-muted); margin-bottom: 24px; }
.step-title { font-size: 1.5rem; font-weight: 500; margin-bottom: 16px; }
.step-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

/* Principles */
.principles { padding: 120px 0; }
.principles-list { display: flex; flex-direction: column; }
.principle-item { display: flex; gap: 40px; align-items: flex-start; padding: 40px 0; border-top: 1px solid var(--border-subtle); }
.principle-item:last-child { border-bottom: 1px solid var(--border-subtle); }
.p-num { font-family: var(--font-mono); font-size: 1rem; color: var(--text-muted); padding-top: 4px; }
.principle-item p { font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 400; letter-spacing: -0.01em; max-width: 800px; }

/* Collaboration */
.collaboration { padding: 120px 0; }
.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.collab-card { padding: 32px 0; border-top: 1px solid var(--border-subtle); transition: border-color 0.3s; cursor: pointer; }
.collab-card:hover { border-color: var(--border-hover); }
.collab-card h3 { font-family: var(--font-mono); font-size: 1.2rem; margin-bottom: 16px; font-weight: 500; }
.collab-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* Contact Form */
.contact { padding: 120px 0 160px; }
.contact-wrapper { max-width: 700px; margin: 0 auto; background: rgba(255,255,255,0.01); padding: 48px; border: 1px solid var(--border-subtle); border-radius: 24px; backdrop-filter: blur(12px); }
.contact-title { font-size: 3rem; font-weight: 500; margin-bottom: 16px; letter-spacing: -0.02em; }
.contact-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 48px; }

.custom-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

input, select, textarea {
    width: 100%; padding: 16px 0; background: transparent;
    border: none; border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-sans); font-size: 1.1rem; color: var(--text-main);
    transition: border-color 0.3s; outline: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus { border-color: var(--text-main); }
select option { background: var(--bg-dark); color: var(--text-main); }

.select-wrapper { position: relative; }
.select-wrapper svg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; color: var(--text-muted); }

/* Textarea Expansion */
.textarea-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.5s ease; opacity: 0; }
.textarea-wrapper.active { max-height: 200px; opacity: 1; }
textarea { resize: vertical; min-height: 100px; }

.custom-form .btn-primary { align-self: flex-start; margin-top: 16px; }

#form-success { font-family: var(--font-mono); color: var(--text-main); margin-top: 32px; padding: 24px; border: 1px solid var(--border-subtle); border-radius: 8px; background: rgba(255,255,255,0.05); }

/* Footer */
.footer { border-top: 1px solid var(--border-subtle); padding: 40px 0; background: rgba(5,7,10,0.8); backdrop-filter: blur(8px); }
.footer-inner { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; }

/* Animations */
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
.animate-on-load { opacity: 0; animation: fadeUp 1s var(--ease-out-expo) forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; } .delay-4 { animation-delay: 0.4s; }

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .stats-wrapper { grid-template-columns: repeat(2, 1fr); border-bottom: none; }
    .stat-item { border-bottom: 1px solid var(--border-subtle); }
    .stat-item:nth-child(2) { border-right: none; }
    .exp-grid, .process-grid, .collab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; }
    .accordion-title-wrap { flex-direction: column; gap: 12px; }
    .accordion-title-wrap h3 { font-size: 2rem; }
    .content-inner { padding: 0 0 32px 0; }
    
    .stats-wrapper { grid-template-columns: 1fr; }
    .stat-item { border-right: none; }
    .exp-grid, .process-grid, .collab-grid { grid-template-columns: 1fr; }
    .principle-item { flex-direction: column; gap: 16px; }
    .contact-wrapper { padding: 32px 24px; border: none; border-radius: 0; border-top: 1px solid var(--border-subtle); }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 16px; align-items: center; text-align: center; }
}