:root {
    --bg-color: #08050a;
    /* Slightly purple-tinted black */
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;

    /* Passion & Ambition Palette */
    --neon-primary: #E63946;
    /* Passion Red */
    --neon-secondary: #E63946;
    /* Ambition Purple */
    --neon-accent: #4361EE;
    /* Mastery Blue */

    --font-heading: 'Anton', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --easing-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --easing-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* RESET & BASE */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    cursor: auto;
}

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

/* CUSTOM CURSOR REMOVED */

/* GRAIN OVERLAY */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* HEADER & NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s var(--easing-smooth);
    mix-blend-mode: difference;
    color: #fff;
    pointer-events: none;
    /* Allow clicking through header area */
}

header * {
    pointer-events: auto;
    /* Re-enable clicks on elements */
}

/* Scrolled State (Glassmorphism) */
header.scrolled {
    background: rgba(8, 5, 10, 0.85);
    /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    /* Frost effect */
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 3rem;
    /* Compact height */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 1px;
    color: #E63946;
    text-decoration: none;
}

.logo span {
    color: #E63946;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    /* transition: color 0.3s; Remove standard transition */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--neon-primary);
    transition: width 0.4s var(--easing-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    /* Full menu for desktop currently */
    font-weight: 800;
    cursor: pointer;
}

/* SECTIONS COMMON */
main {
    padding-top: 0;
}

section {
    padding: 6rem 3rem;
    position: relative;
}

.section-marker {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--neon-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    opacity: 0.8;
}

/* HERO SECTION */
/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 10rem;
    /* Asymmetric top padding */
    padding-bottom: 5rem;
    overflow: hidden;
    position: relative;
}

/* MARQUEE BACKGROUND */
.marquee-container {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    transform: rotate(-5deg) scale(1.1);
    opacity: 0.03;
    /* Very subtle */
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.marquee-content {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--text-primary);
    animation: marquee 40s linear infinite;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.hero-content {
    width: 60%;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 8vw;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

/* Kinetic Typography Offsets */
.hero-title .line-2 {
    margin-left: 2vw;
    /* Indent line 2 */
}

.hero-title .line-3 {
    margin-left: 0;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
    /* Outline effect */
}

.hero-sub {
    font-size: 1.2rem;
    max-width: 400px;
    margin-left: 5px;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--text-primary);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    /* Slight roundness */
    transition: transform 0.3s var(--easing-elastic), box-shadow 0.3s;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s var(--easing-smooth);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

.btn-secondary:hover {
    border-color: var(--neon-primary);
    color: var(--neon-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s var(--easing-smooth);
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    color: var(--text-primary);
    border-bottom-color: var(--neon-primary);
}

/* Orbs */
.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--neon-secondary) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation: float 12s ease-in-out infinite;
    mix-blend-mode: screen;
}

.orb-2 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--neon-primary) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation: float-reverse 15s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-40px, 30px) scale(1.1);
    }
}

@keyframes float-reverse {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -40px) scale(0.9);
    }
}

/* PROJECTS SECTION (Broken Grid) */
.projects {
    padding-bottom: 10rem;
}

/* FILTERS */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--easing-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--neon-primary);
    color: var(--neon-primary);
    background: rgba(230, 57, 70, 0.05);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid Spanning - Overridden for Uniform Grid */
.project-large,
.project-medium,
.project-wide,
.project-portrait,
.project-centered-poster {
    grid-column: span 1;
    aspect-ratio: 16/9;
    /* Standard wide ratio */
    width: 100%;
    margin-top: 0;
}

/* Offset class - Removed effect */
.offset-top {
    margin-top: 0;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-large,
    .project-medium,
    .project-wide,
    .project-portrait,
    .project-centered-poster {
        aspect-ratio: 16/9;
    }
}

/* Project Item - Clean Reset */
.project-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s var(--easing-smooth);
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.project-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
    background: none !important;
    /* Ensure no background color */
}

.project-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s var(--easing-smooth);
    display: block;
}

/* Hover Zoom */
.project-item:hover .project-img {
    transform: scale(1.05);
}

/* Overlay - Strictly Text Only */
.project-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    pointer-events: none;
    /* Explicitly remove any backgrounds */
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    mix-blend-mode: normal !important;
}

/* Tags Styles */
.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    /* Smaller font */
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    /* Smaller padding */
    border: 1px solid var(--neon-primary);
    border-radius: 20px;
    color: var(--neon-primary);
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    letter-spacing: 0.05em;

}

.project-overlay h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    color: var(--neon-primary);
    /* Solid Violet */
    margin-bottom: 0.5rem;
    transition: transform 0.4s var(--easing-smooth);
    /* No shadow, no background */
    text-shadow: none !important;
    background: none !important;
    padding: 0;
    -webkit-text-stroke: 0;
    /* Ensure no outline */
}

/* Description */
.project-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #fff;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--easing-smooth);
    text-shadow: none !important;
    background: none !important;
}

/* Hover Effects */
.project-item:hover .project-overlay h3 {
    transform: translateY(-10px);
}

.project-item:hover .project-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Overlay for better text visibility */
.project-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darker default: 0.7 */
    z-index: 1;
    pointer-events: none;
    transition: background 0.4s var(--easing-smooth);
}

/* Colored Outline */
.project-img-wrapper {
    border: 2px solid var(--neon-secondary);
    /* Colored contour */
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
    /* Optional glow */
}

.project-item:hover .project-img-wrapper::after {
    background: rgba(0, 0, 0, 0.9);
    /* Darken more on hover: 0.9 */
}


/* ABOUT SECTION */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.photo-frame {
    width: 300px;
    height: 400px;
    border: 2px solid var(--neon-primary);
    padding: 1rem;
    position: relative;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
    /* Simulate image */
}

.about-text .section-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.bio-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #ccc;
    max-width: 650px;
}

.bio-text .highlight-p {
    border-left: 2px solid var(--neon-secondary);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
}

/* SKILLS SECTION (New 3-Col Layout) */
.skills-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

/* SKILLS SECTION (4-Col Layout) */
.skills-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .skills-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid-4 {
        grid-template-columns: 1fr;
    }
}

.skill-col {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s var(--easing-smooth);
}

/* Middle col accent */
.skill-col.middle-col {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-20px);
    /* Subtle lift */
}

.skill-col:hover {
    border-color: var(--neon-primary);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-header h3 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.skill-icon {
    color: var(--neon-primary);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #aaa;
    transition: color 0.3s, transform 0.3s;
    cursor: default;
}

.skill-list li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}


/* INTERESTS */
.interests-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}

.interest-card {
    text-align: center;
    width: 150px;
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.3s;
}

.interest-card .icon-svg {
    color: var(--neon-secondary);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.interest-card:hover {
    background: #111;
    border-color: var(--neon-secondary);
}

.interest-card:hover .icon-svg {
    transform: scale(1.1) rotate(5deg);
    color: var(--text-primary);
}

/* FOOTER */
footer {
    padding: 6rem 3rem 2rem 3rem;
    border-top: 1px solid #222;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 8rem;
    line-height: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

/* UTILITIES & ANIMATIONS */
.tilt-hover {
    transition: transform 0.4s var(--easing-elastic);
}

.tilt-hover:hover {
    transform: rotate(-1deg) scale(1.02);
    /* The "Human" rotation */
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-large,
    .project-medium,
    .project-wide {
        grid-column: 1 / -1;
        aspect-ratio: 16/9;
        margin-top: 2rem;
    }

    .offset-top {
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 15vw;
    }

    .footer-title {
        font-size: 15vw;
    }

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

    .skills-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* PROJECT PAGE SPECIFIC */
.project-hero {
    min-height: 80vh;
    /* Taller for impact */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    /* Blur + Darken */
    z-index: 0;
    transform: scale(1.1);
    /* Prevent blur edges */
}

/* Ensure content is above bg */
.project-hero .hero-content {
    z-index: 2;
    position: relative;
}

.gallery-item {
    margin-bottom: 6rem;
    /* More compact spacing */
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Equal width for better balance */
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    /* Subtle card effect */
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--neon-secondary);
    margin-bottom: 1rem;
}

.gallery-text p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Image constraints & specific styling */
/* Image constraints & specific styling */
.image-container,
.brochure-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brochure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.image-container img,
.brochure-grid img {
    max-height: 500px;
    /* Reduced from 80vh to be more compact */
    max-width: 100%;
    width: auto;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Softer shadow */
    border-radius: 8px;
    /* Slightly more rounded */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.3s var(--easing-smooth);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.pdf-container {
    border: 1px solid #333;
    background: #111;
    height: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Index Card Overlay Update */
.project-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    /* Stronger gradient */
    padding-bottom: 1rem;
    /* breathe room */
}

@media (max-width: 900px) {
    .gallery-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-hero-bg {
        filter: blur(4px) brightness(0.3);
        /* Less blur on mobile */
    }
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s var(--easing-smooth);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--neon-primary);
    text-decoration: none;
    cursor: pointer;
}

/* Add cursor pointer to trackable images */
.lightbox-trigger {
    cursor: zoom-in;
}

/* Horizontal Scroll Gallery */
.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    margin-top: 4rem;
    margin-top: 4rem;
    -webkit-overflow-scrolling: touch;
    /* iOS momentum scrolling */
}

.gallery-scroll-item {
    flex: 0 0 auto;
    width: 75vw;
    /* Make items much wider */
    max-width: 1400px;
}

.gallery-scroll-item .image-container {
    width: 100%;
    height: 100%;
}

.gallery-scroll-item .image-container img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar for Gallery */
.gallery-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: var(--neon-primary);
    border-radius: 4px;
}


/* Comparison Grid Responsive */
.comparison-container {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.comparison-item {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

@media (max-width: 768px) {
    .comparison-container {
        flex-direction: column;
    }

    .comparison-item {
        min-width: 100%;
    }
}

/* MOBILE NAV */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--easing-smooth);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--easing-smooth);
}

.mobile-nav-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for links */
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

/* RESPONSIVE BREAKPOINTS */

@media (max-width: 1024px) {
    .skills-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 10vw;
    }
}

@media (max-width: 768px) {

    /* NAV */
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
        z-index: 1001;
        position: relative;
    }

    /* HERO */
    .hero {
        padding-top: 8rem;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 15vw;
        margin-bottom: 1.5rem;
    }

    .hero-title .line-2,
    .hero-title .line-3 {
        margin-left: 0;
    }

    .hero-sub {
        margin: 0 auto 2rem auto;
        font-size: 1rem;
    }

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* ORBS */
    .orb-1 {
        width: 80vw;
        height: 80vw;
        top: -20%;
        right: -20%;
    }

    .orb-2 {
        width: 60vw;
        height: 60vw;
        bottom: 0%;
        left: -10%;
    }

    /* ABOUT */
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text .section-title {
        font-size: 3rem;
    }

    /* PROJECTS */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-item {
        margin-bottom: 2rem;
    }

    .project-overlay h3 {
        font-size: 2rem;
    }

    /* SKILLS */
    .skills-grid-3 {
        grid-template-columns: 1fr;
    }

    .skill-col.middle-col {
        transform: none;
    }

    /* FOOTER */
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }

    .footer-title {
        font-size: 4rem;
    }

    .footer-links {
        text-align: left;
    }

    .footer-links a {
        font-size: 1.2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* EXPERIENCE ANIMATION */
.experience-anim {
    width: 300px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
    overflow: hidden;
    position: relative;
}

.cube-container {
    width: 100px;
    height: 100px;
    perspective: 800px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s infinite linear;
}

.face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-primary);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
    backface-visibility: visible;
}

.face.front {
    transform: translateZ(50px);
}

.face.back {
    transform: rotateY(180deg) translateZ(50px);
}

.face.right {
    transform: rotateY(90deg) translateZ(50px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.face.top {
    transform: rotateX(90deg) translateZ(50px);
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--neon-secondary);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(50px);
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--neon-secondary);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}