/* ==========================================================================
   Base & Reset
   ========================================================================== */
:root {
    /* Light Theme Variables */
    --bg-color: #fbfbfd;
    --bg-alt: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(251, 251, 253, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --gradient-1: linear-gradient(135deg, #0071e3, #42a1ec);
    
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.04);
    --shadow-medium: 0 8px 32px rgba(0,0,0,0.08);
    
    --font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Layout Variables */
    --container-max: 1200px;
    --padding-x: 80px;
    --section-y: 120px;
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --bg-color: #000000;
    --bg-alt: #161617;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(0, 0, 0, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --accent: #2997ff;
    --accent-hover: #3e9eff;
    --gradient-1: linear-gradient(135deg, #2997ff, #62b0ff);

    --shadow-soft: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-medium: 0 8px 32px rgba(0,0,0,0.6);
}

@media (max-width: 992px) {
    :root {
        --padding-x: 40px;
        --section-y: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --padding-x: 20px;
        --section-y: 64px;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.large-text {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--padding-x);
}

.section-padding {
    padding: var(--section-y) 0;
}

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

.bg-alt {
    background-color: var(--bg-alt);
}

/* ==========================================================================
   Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1.0625rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-soft);
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--padding-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: var(--border-color);
}

[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }

.nav-cta {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 160px;
    padding-bottom: 80px;
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 60px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.25rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-top: 24px;
    line-height: 1.4;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-3d-container {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-right: 0;
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.highlight-item {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 32px;
}

.service-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--text-primary);
}

.service-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    z-index: 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 1;
    background: var(--bg-color);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateX(10px);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-alt);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
    margin-right: 12px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ==========================================================================
   Results & Why Us Split
   ========================================================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 3rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.why-list {
    list-style: none;
    margin-top: 3rem;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.why-list li:last-child {
    border-bottom: none;
}

.why-list i {
    color: var(--accent);
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.testimonial {
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 2rem;
}

.quote-icon i {
    width: 64px;
    height: 64px;
}

.testimonial-text {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section .glass-panel {
    padding: 100px 2rem;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.cta-section .glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent) 0%, transparent 60%);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding-top: 80px;
    padding-bottom: 40px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
    line-height: 28px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 28px;
}

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

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 28px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    max-width: 480px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 1.0625rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

[data-theme="light"] .form-input {
    background: rgba(0, 0, 0, 0.02);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.btn-glass {
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.4), rgba(66, 161, 236, 0.4));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 14px 32px;
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15);
}

.btn-glass:hover {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.6), rgba(66, 161, 236, 0.6));
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.5);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-glass {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.7), rgba(66, 161, 236, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

[data-theme="light"] .btn-glass:hover {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.9), rgba(66, 161, 236, 0.9));
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.6);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 140px;
        gap: 60px;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }
    
    .hero-title {
        align-items: center;
    }
    
    .hero-3d-container {
        width: 100%;
        height: 400px;
        margin-right: 0;
        margin-top: 0;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .cta-section .glass-panel {
        padding: 60px 1.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .process-timeline::before {
        left: 1.5rem;
    }
    
    .process-step {
        flex-direction: column;
        gap: 12px;
        padding: 24px;
    }
    
    .step-number {
        margin-right: 0;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}
