:root {
    --text-color: #ffffff;
    --bg-color: #0f1012;
    --bg-secondary: #16181a;
    --accent-color: #00dc82;
    --accent-secondary: #00b878;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 16, 18, 0.8);

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    --x: 40vw;
    --y: 40vh;

    --transition-duration: 0.6s;
    --premium-bezier: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    font-family: var(--font-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo, .accent-text {
    font-family: var(--font-heading);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
.glass_navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-duration) var(--premium-bezier);
}

.glass_navbar.scrolled {
    padding: 0.75rem 4rem;
    background: rgba(15, 16, 18, 0.95);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-color);
}

.logo span {
    font-weight: 300;
    font-family: var(--font-primary);
}

.glass_navbar ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.glass_navbar a {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.7;
    position: relative;
    transition: opacity 0.3s ease;
}

.glass_navbar a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.glass_navbar a:hover {
    opacity: 1;
}

.glass_navbar a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-layer.bg-dark {
    background-image: linear-gradient(rgba(10, 10, 10, 0.5)), url('assets/user_foreground.png');
    z-index: 1;
}

.hero-layer.bg-light {
    background-image: url('assets/user_background.jpg');
    z-index: 2;
    clip-path: circle(var(--cursor-radius, 150px) at var(--x) var(--y));
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 3;
    padding: 0 4rem;
    max-width: 1200px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero-layer.bg-light .hero-content h1 {
    color: #000;
    text-shadow: none;
}

/* Hero UI Overlay */
.hero-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scroll-indicator {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.bottom-hud {
    position: absolute;
    bottom: 3rem;
    left: 0;
    width: 100%;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.bottom-hud .side {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 1px;
}

.bottom-hud .center {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.8;
    max-width: 400px;
}

.bottom-hud .side.right {
    text-align: right;
}

/* Section Base Styles */
section {
    min-height: 100vh;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* About Section */
#about {
    background: var(--bg-color);
}

.about-container {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.about-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    opacity: 0.9;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-color), rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.05rem;
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    max-width: 1400px;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.stat-box .accent-text {
    color: var(--accent-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-box p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Timeline Section */
#timeline {
    background: var(--bg-secondary);
}

.timeline-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.timeline-content {
    padding-left: 4rem;
}

.timeline-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4rem;
}

.timeline-items {
    position: relative;
    padding-left: 3rem;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(255, 255, 255, 0.1));
}

.timeline-item {
    position: relative;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 2.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-color);
    transform: translateX(10px);
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 30px var(--accent-color);
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-description {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.7;
}

/* Works Section */
#works {
    background: var(--bg-color);
    padding: 0;
    overflow: hidden;
    position: relative;
}

#works::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 220, 130, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.works-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.works-content {
    padding: 6rem 4rem 0;
}

.works-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--text-color), rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 6rem;
}

.work-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    transition: border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 220, 130, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.work-card:hover::before {
    opacity: 1;
}

.work-card:hover {
    border-color: rgba(0, 220, 130, 0.4);
    box-shadow: 0 30px 60px rgba(0, 220, 130, 0.15),
                0 0 40px rgba(0, 220, 130, 0.05);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.7;
    filter: grayscale(20%);
}

.work-card:hover img {
    transform: scale(1.08);
    opacity: 1;
    filter: grayscale(0%);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.95) 100%);
    transform: translateY(20px) translateZ(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

.work-card:hover .card-content {
    transform: translateY(0) translateZ(20px);
    opacity: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-content p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tags span {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 220, 130, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(0, 220, 130, 0.2);
}

/* Works Marquee Hero */
.marquee-section {
    position: relative;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
    color: var(--text-color);
    min-height: 40vh;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.marquee-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(0, 220, 130, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.marquee-super {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
}

.marquee-giant {
    display: inline-block;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    will-change: transform;
    line-height: 1;
    animation: marquee 30s linear infinite;
    text-transform: uppercase;
    letter-spacing: -5px;
}

.marquee-giant:hover {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-color);
    text-shadow: 0 0 30px var(--accent-color);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.works-intro {
    position: absolute;
    bottom: 5%;
    width: 100%;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    z-index: 2;
}

.works-intro .section-label {
    color: var(--accent-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Contact Section */
#contact {
    background: var(--bg-secondary);
    min-height: 100vh;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.contact-content {
    padding-left: 4rem;
}

.contact-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 600px;
}

.contact-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 220, 130, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.contact-link-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 220, 130, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-link-info {
    display: flex;
    flex-direction: column;
}

.contact-link-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 0.25rem;
}

.contact-link-value {
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

/* Footer */
footer {
    padding: 3rem 4rem;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(var(--fade-in-distance));
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .glass_navbar {
        padding: 1rem 2rem;
    }

    .glass_navbar ul {
        gap: 2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-label {
        margin-bottom: 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .marquee-giant {
        font-size: clamp(5rem, 10vw, 8rem);
    }
}

@media (max-width: 768px) {
    .glass_navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .glass_navbar ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2rem;
        padding: 0 1.5rem;
    }

    .bottom-hud {
        flex-direction: column;
        padding: 0 1.5rem;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .bottom-hud .side.right {
        text-align: center;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .marquee-section {
        min-height: 30vh;
    }

    .marquee-giant {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .works-intro {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
        bottom: 1rem;
    }

    .works-content {
        padding: 3rem 1.5rem 0;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-text,
    .timeline-content,
    .works-content,
    .contact-content {
        padding-left: 0;
    }

    .timeline-items {
        padding-left: 1.5rem;
    }

    .contact-cta {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
