:root {
    --bg-light: #e0e0e0; /* The light gray of hero */
    --bg-dark: #000000; /* Solid black background */
    --text-dark: #111111;
    --text-light: #f5f5f5;
    --accent-red: #d33833;
    --border-dark: #2a2a2a;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

body:has(.hero) .header {
    background-color: var(--bg-light);
    color: #000000;
}

.nav-center {
    display: flex;
    gap: 4rem;
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.lang-switch a {
    color: #555555;
    transition: color 0.3s;
    text-decoration: none;
}

.lang-switch a:hover {
    color: var(--text-light);
}

.lang-switch a.active {
    color: var(--accent-red);
}

.lang-switch .divider {
    color: #444;
    font-weight: 300;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0 4rem 4rem;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    isolation: isolate;
    transform: translate3d(0,0,0);
}

.hero-title {
    font-size: 14vw;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.8;
    padding-bottom: 0.2em;
    text-align: center;
    white-space: nowrap;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.hero-title-blend {
    z-index: 3;
    color: #ffffff;
    mix-blend-mode: difference;
}

.hero-title-overlay {
    z-index: 4;
    background: linear-gradient(to right, #000000 36%, transparent 38%, transparent 53%, #000000 58%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    position: relative;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through to potential links below, except for specific elements */
}

.social-links, .hero-role {
    pointer-events: auto;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.85rem;
    padding-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: opacity 0.3s ease;
    color: #000000;
}

.social-links a:hover {
    opacity: 0.6;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.hero-role {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    letter-spacing: -0.02em;
    padding-bottom: 2rem;
    color: var(--accent-red);
}

/* Common Section Styles */
.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 4rem;
}

.slash {
    color: var(--accent-red);
    margin-right: 0.5rem;
}

/* Tech Marquee Section */
.tech-marquee-wrapper {
    padding: 4rem 0;
    width: 100%;
    background-color: var(--bg-dark);
}

.marquee-label {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1rem;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    padding: 0 4rem;
}

.tech-marquee {
    background-color: #111111;
    padding: 2.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    position: relative;
    display: flex;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    animation: marquee 40s linear infinite;
}

.marquee-content span {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #F3F3F3;
    -webkit-text-stroke: 0;
    font-family: var(--font-main);
    text-transform: uppercase;
}

.marquee-content span .sep {
    color: var(--accent-red);
    margin: 0 1.5rem;
    font-weight: 800;
}

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

/* Intro Section */
.intro {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 6rem 4rem;
    position: relative;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.intro-heading {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
}

.intro-heading .highlight {
    color: var(--accent-red);
}

.intro-sub {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
    width: 100%;
}

.intro-sub p {
    font-size: 1rem;
    color: #888;
    max-width: 400px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #333;
    border-radius: 2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--text-light);
}

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

/* Projects Intro Section */
.projects-intro {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.projects-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-family: var(--font-main);
    background: linear-gradient(to right, #222222 0%, #888888 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.projects-desc {
    font-size: 1.1rem;
    color: #D1D1D1;
    line-height: 1.6;
    max-width: 60%;
    margin-bottom: 1.5rem;
}

.projects-hint {
    font-size: 0.85rem;
    font-family: monospace;
    color: #666666;
    display: block;
    letter-spacing: 0.05em;
}

/* Spotlight Gallery Section */
.spotlight-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

/* Base dark layer */
.spotlight-base {
    position: relative;
    z-index: 1;
    filter: brightness(0.15) grayscale(100%);
    transition: filter 0.3s ease;
}

/* Bright overlay layer that follows mouse */
.spotlight-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), black 0%, transparent 80%);
    mask-image: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), black 0%, transparent 80%);
}

.spotlight-card {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.spotlight-reveal .spotlight-card {
    cursor: default;
}

.spotlight-card h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: var(--font-main);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    letter-spacing: -0.02em;
    transition: all 0.5s ease;
}

/* Expansion Engine for Spotlight */
.spotlight-container.is-expanded .spotlight-reveal {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    pointer-events: auto;
}

.spotlight-container.is-expanded .spotlight-base {
    opacity: 0;
    pointer-events: none;
}

.spotlight-card.expanded-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    padding: 3rem;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    background-image: none !important;
    overflow-y: auto;
    justify-content: flex-start;
    border-radius: 0;
}

.spotlight-container.is-expanded .spotlight-card:not(.expanded-card) {
    opacity: 0;
    pointer-events: none;
}

.spotlight-card.expanded-card h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

/* Inner Project Gallery Content */
.project-inner-content {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s ease 0.3s;
    display: none;
    flex-direction: column;
}

.spotlight-card.expanded-card .project-inner-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    display: flex;
}

/* Close Button */
.close-project {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    font-family: var(--font-main);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.spotlight-card.expanded-card .close-project {
    opacity: 1;
    pointer-events: auto;
}

.close-project:hover {
    background: #fff;
    color: #000;
}

/* Inner Grid Placeholders */
.inner-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.inner-item {
    aspect-ratio: 16/9;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background-size: cover;
    background-position: center;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Services Section */
.services {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 6rem 4rem;
    border-top: 1px solid #222;
}

.services-content {
    display: flex;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.services-number {
    font-size: 16rem;
    font-weight: 300;
    line-height: 0.8;
    -webkit-text-stroke: 1.5px #444;
    color: transparent;
    flex-shrink: 0;
    letter-spacing: -0.05em;
}

.services-details {
    flex-grow: 1;
    padding-top: 1.5rem;
}

.services-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.services-desc {
    color: #888;
    max-width: 500px;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.services-list {
    list-style: none;
    border-top: 1px solid #333;
}

.services-list li {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid #333;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.services-list li:hover {
    color: #fff;
}

.service-num {
    color: #666;
    font-weight: 400;
}

/* About Section */
.about {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 6rem 4rem;
    border-top: 1px solid #222;
}

.about-content {
    display: flex;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.premium-two-col {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

.about-meta {
    flex: 0 0 25%;
    margin-top: 5.5rem; /* Aligns with the paragraph below the title */
}

.meta-list {
    list-style: none;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    color: #888888;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.meta-list li {
    display: flex;
    gap: 1rem;
}

.meta-label {
    min-width: 80px;
    color: #666;
}

.meta-sep {
    color: var(--accent-red);
}

.meta-val {
    color: #a0a0a0;
}

.about-narrative {
    flex: 1;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.about-desc {
    font-size: 1.1rem;
    color: #D1D1D1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.highlight-red {
    color: var(--accent-red);
    font-weight: 600;
}

.about-logo {
    margin-top: 3rem;
    width: 140px;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    filter: grayscale(100%);
}

.about-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.about-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 6rem 4rem;
    border-top: 1px solid #222;
}

.contact-header {
    margin-bottom: 5rem;
}

.contact-title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.contact-desc {
    font-size: 1.2rem;
    color: #a0a0a0;
    max-width: 600px;
    line-height: 1.6;
}

.contact-content {
    display: flex;
    gap: 6rem;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
}

.info-value a {
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: var(--accent-red);
}

.contact-form-container {
    flex: 1.5;
    max-width: 600px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    padding: 0.5rem 0;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #ffffff;
}

.form-submit {
    align-self: flex-start;
    background: transparent;
    cursor: pointer;
    margin-top: 1rem;
}

.form-submit:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

/* Blog / Insights Section */
.blog-section {
    padding: 6rem 4rem;
    background-color: var(--bg-dark);
    max-width: 1200px;
    margin: 0 auto;
}

.blog-header {
    margin-bottom: 4rem;
}

.blog-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-family: var(--font-main);
}

.blog-header p {
    font-size: 1.1rem;
    color: #888888;
    max-width: 600px;
    line-height: 1.6;
}

.blog-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #333333;
}

/* Full Blog Posts */
.blog-post {
    padding: 4rem 0;
    border-bottom: 1px solid #222;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post-meta {
    font-family: monospace;
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.blog-post-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: var(--font-main);
    transition: color 0.3s ease;
}

.blog-post {
    padding: 4rem 0;
    border-bottom: 1px solid #222;
    cursor: pointer;
}

.blog-post:hover .blog-post-title {
    color: #aaaaaa;
}

.blog-post-body {
    display: none;
    padding-top: 1rem;
    border-top: 1px dashed #333;
}

.blog-post.expanded .blog-post-body {
    display: block;
    animation: fadeInDown 0.4s ease forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.blog-post-body p {
    font-size: 1.15rem;
    color: #aaaaaa;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.blog-post-body p:last-child {
    margin-bottom: 0;
}

.blog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0;
    border-bottom: 1px solid #333333;
    text-decoration: none;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.blog-row:hover {
    background-color: #111111;
    padding: 2.5rem 1.5rem;
}

.blog-meta {
    flex: 0 0 20%;
    font-family: monospace;
    font-size: 0.9rem;
    color: #666666;
    letter-spacing: 0.05em;
}

.blog-title {
    flex: 1;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 2rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-row:hover .blog-title {
    transform: translateX(15px);
}

.blog-arrow {
    flex: 0 0 5%;
    text-align: right;
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-row:hover .blog-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: #444;
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    border-top: 1px solid #1a1a1a;
}

/* Responsive basics */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 18vw;
    }
    .hero-role {
        font-size: 2rem;
    }
    .marquee-content span {
        font-size: 3rem;
    }
    .services-content {
        gap: 3rem;
    }
    .about-content,
    .contact-content {
        gap: 3rem;
    }
    .contact-title {
        font-size: 4rem;
    }
    .services-number {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
        mix-blend-mode: normal;
        color: #ffffff;
    }
    body:has(.hero) .header {
        background-color: var(--bg-light);
        color: #000000;
    }
    .logo {
        font-size: 0.7rem;
    }
    .hero-title {
        font-size: 12vw;
    }
    .nav-center {
        display: none;
    }
    .hero {
        padding: 0 1.5rem 2rem;
    }
    .hero-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    .hero-role {
        text-align: center;
        font-size: 1.5rem;
        padding-bottom: 0;
    }
    .social-links {
        display: none;
    }
    .intro {
        padding: 4rem 1.5rem;
    }
    .intro-heading {
        font-size: 2.2rem;
    }
    .intro-sub {
        align-items: center;
        text-align: center;
    }
    .marquee-label {
        padding: 0 1.5rem;
    }
    .tech-marquee {
        padding: 2rem 0;
    }
    .marquee-content span {
        font-size: 2rem;
    }
    .spotlight-grid {
        grid-template-columns: 1fr;
    }
    .spotlight-grid .spotlight-card:nth-child(1) { order: 1; }
    .spotlight-grid .spotlight-card:nth-child(2) { order: 3; }
    .spotlight-grid .spotlight-card:nth-child(3) { order: 2; }
    .spotlight-grid .spotlight-card:nth-child(4) { order: 4; }
    .spotlight-card.expanded-card {
        padding: 1.5rem;
        padding-top: 5rem;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
    }
    .spotlight-card.expanded-card h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
    }
    .close-project {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .spotlight-reveal {
        top: 0; left: 0; width: 100%; height: 100%;
        -webkit-mask-image: radial-gradient(circle 150px at var(--mouse-x) var(--mouse-y), black 0%, transparent 80%);
        mask-image: radial-gradient(circle 150px at var(--mouse-x) var(--mouse-y), black 0%, transparent 80%);
    }
    .services {
        padding: 4rem 1.5rem;
    }
    .projects-desc {
        max-width: 100%;
    }
    .blog-section {
        padding: 4rem 1.5rem;
    }
    .blog-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 0;
    }
    .blog-row:hover {
        padding: 2rem 1rem;
    }
    .blog-title {
        margin: 1rem 0;
        font-size: 1.4rem;
    }
    .blog-meta {
        margin-bottom: 0.5rem;
    }
    .blog-arrow {
        align-self: flex-end;
    }
    .services-content {
        flex-direction: column;
    }
    .services-number {
        font-size: 8rem;
    }
    .about {
        padding: 4rem 1.5rem;
    }
    .premium-two-col {
        flex-direction: column;
        gap: 3rem;
    }
    .about-meta {
        flex: 1;
        width: 100%;
        border-bottom: 1px solid #222;
        padding-bottom: 2rem;
        margin-top: 0;
    }
    .contact {
        padding: 4rem 1.5rem;
    }
    .contact-title {
        font-size: 2.8rem;
    }
    .contact-content {
        flex-direction: column;
        gap: 4rem;
    }
    .contact-form-container {
        width: 100%;
    }
    
    /* Hamburger Menu Styles */
    .nav-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 16px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    .hamburger-menu span {
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        transition: all 0.3s ease;
        transform-origin: left;
    }
    body:has(.hero) .hamburger-menu span {
        background-color: #000000;
    }
    .hamburger-menu.active span {
        background-color: #ffffff !important;
    }
    .hamburger-menu.active span:first-child {
        transform: rotate(45deg);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:last-child {
        transform: rotate(-45deg);
    }
    
    /* Mobile Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: var(--bg-dark);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .mobile-menu-overlay a {
        color: var(--text-light);
        text-decoration: none;
        font-size: 2.5rem;
        font-weight: 700;
        letter-spacing: -0.03em;
        transition: color 0.3s ease;
    }
    .mobile-menu-overlay a:hover {
        color: var(--accent-red);
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
    .mobile-menu-overlay {
        display: none;
    }
}

/* Global Loader */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-dark);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.global-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.05em;
    font-family: var(--font-main);
    animation: loaderPulse 1.5s infinite ease-in-out;
}

.loader-bar-container {
    width: 200px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background-color: var(--accent-red);
    border-radius: 2px;
    animation: loaderProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes loaderProgress {
    0% { width: 0%; }
    40% { width: 50%; }
    100% { width: 100%; }
}
