:root {
    /* Colors - Dark Premium Theme */
    --bg-color: #050505;
    --bg-gradient-start: #0a0a0a;
    --bg-gradient-end: #000000;
    --text-color: #e0e0e0;
    --text-muted: #888888;
    --primary-color: #ffffff;
    --primary-bg: #ffffff;
    --primary-text-on-color: #000000;
    --secondary-bg: #111111;
    --card-bg: rgba(20, 20, 20, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);

    /* Spacing */
    --container-padding: 2rem;
    --section-spacing: 120px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #151515, var(--bg-color) 80%);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 65ch;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-spacing) 0;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: table;
    /* Shrink to fit */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--primary-bg);
    color: var(--primary-text-on-color);
    border: 1px solid var(--primary-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    margin-left: 1rem;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 10;
    padding-top: 80px;
    /* Offset for aesthetic balance */
    overflow: hidden;
    /* Prevent overflow issues */
    justify-content: center;
    /* Ensure centering */
}

#hero-canvas {
    position: fixed;
    /* Parallax effect */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    /* Expand to accommodate 2 columns */
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    /* Space between text and lottie */
}

.hero-text {
    flex: 1;
    max-width: 650px;
    /* Limit text width */
}

.hero-lottie {
    flex: 1;
    max-width: 500px;
    min-height: 360px;
    /* Ensure non-zero height as requested */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.85;
    position: relative;
    /* For containment */
}

#lottie-animation {
    width: 100%;
    height: 100%;
    max-height: 500px;
    /* Prevent it from getting too tall */
    display: flex;
    /* Fixes some SVG centering issues */
}

/* Ensure the animation respects container on smaller screens if needed */
.hero-lottie svg {
    width: 100% !important;
    height: auto !important;
}

.hero-title {
    font-size: 4.5rem;
    /* Larger, more impactful */
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background-clip: text;
    /* standard property */
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 90%;
    /* Allow full width in column context */
    margin-bottom: 3rem;
    font-weight: 300;
    color: var(--text-muted);
}

.hero-cta-group {
    display: flex;
    align-items: center;
}

/* About Section */
.about-list {
    margin-top: 2rem;
}

.about-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.125rem;
    color: var(--text-color);
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    /* Minimal */
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 60%);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.project-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-desc {
    font-size: 1rem;
    margin-bottom: 0;
    /* Align with bottom */
    color: var(--text-muted);
}

/* Philosophy Section - Minimalist Manifesto */
.philosophy {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(var(--bg-color), var(--secondary-bg));
}

.philosophy h2 {
    font-size: 2rem;
    opacity: 0.8;
}

.philosophy-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.philosophy-list li {
    font-size: 2rem;
    /* Large, statement typography */
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.9;
    letter-spacing: -0.02em;
}

/* Audience Section */
.audience-list li {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.audience-list li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact {
    text-align: left;
    /* Changed from center for a more modern feel */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact .section-title {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    text-align: left;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
        --section-spacing: 80px;
    }

    .hero {
        align-items: center;
        /* Center vertically specifically */
        justify-content: center;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        /* Text on top (visually, check DOM order) - actually usually text top, image bottom on mobile. Let's do column. */
        flex-direction: column;
        gap: 2rem;
        margin: 0 auto;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-lottie {
        width: 100%;
        max-width: 320px;
        min-height: 250px;
        /* Retain space on mobile but smaller */
        margin-top: 1rem;
        order: 2;
        /* Ensure it's below text if DOM order changes, but with column transparent */
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-list li {
        font-size: 1.5rem;
    }
}