html {
    scroll-behavior: smooth;
}

:root {
    /* Primary brand colors - RESTORED TO PURPLE + CHROME VIBE */
    --accent-primary: #8a2be2;
    --accent-secondary: #c0c0c0;
    --accent-glow: rgba(138, 43, 226, 0.4);
    --accent-purple: #8a2be2;
    --purple-glow: rgba(138, 43, 226, 0.4);
    
    /* Base theme colors */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-main: #f5f5f5;
    --text-muted: #888888;

    --font-main: 'Outfit', sans-serif;

    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-color: var(--accent-primary);
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
}

/* Base custom cursor style - hidden by default, enabled via JS for pointer devices */
.custom-cursor {
    display: none;
}

@media (pointer: fine) {
    body {
        cursor: none;
    }

    .custom-cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 20px;
        height: 20px;
        border: 2px solid var(--accent-secondary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10002; /* Higher than lightbox (10000) */
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background-color 0.2s;
        mix-blend-mode: difference;
    }

    .custom-cursor.hover {
        width: 50px;
        height: 50px;
        background-color: rgba(205, 127, 50, 0.15);
    }

    .btn,
    .back-to-top,
    .submit-btn {
        cursor: none;
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-align: center;
}

.section-title span {
    color: var(--accent-primary);
    -webkit-text-stroke: 1px var(--accent-primary);
    color: transparent;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.4;
    /* dim background for text legibility */
}

.dark-section {
    background-color: transparent;
    /* allow bg image to show */
}

.dark-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.6) 0%, rgba(10, 10, 12, 0.95) 100%);
    z-index: -1; /* Above the image, below the text */
}

.darker-section {
    background-color: transparent;
    /* allow bg image to show */
}

.darker-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 6, 0.5) 0%, rgba(5, 5, 6, 0.85) 100%);
    z-index: -1;
}

.relative {
    position: relative;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-primary), #4b0082);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
    border: 1px solid transparent;
}

.primary-btn:hover {
    box-shadow: 0 0 30px var(--accent-primary);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s ease;
}

.glass-nav.scrolled {
    padding: 1rem 5%;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;  /* Centered logo icon/text */
    gap: 0.2rem;
    text-decoration: none;
    line-height: 1;
    z-index: 1001;
}

.nav-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, height 0.3s ease;
    border-radius: 4px;
}

.logo-text-sub {
    font-size: 0.9rem;
    letter-spacing: 4px;
    font-weight: 800;
    text-transform: uppercase;
}



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

.ig-mobile-icon {
    display: none;
    color: var(--accent-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(205, 127, 50, 0.1);
    line-height: 1;
    justify-content: center;
    align-items: center;
}

.ig-mobile-icon:hover {
    color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.1);
    transform: scale(1.1);
}

.logo-text-sub {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-main);
    text-transform: uppercase;
}

.logo-text-sub span {
    color: var(--accent-primary);
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--accent-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.ig-btn {
    border: 1px solid var(--accent-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(205, 127, 50, 0.05);
}

.ig-btn:hover {
    background: rgba(138, 43, 226, 0.15);
    box-shadow: 0 0 15px var(--purple-glow);
    transform: translateY(-2px);
}

/* Background Effects */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: 20%;
    left: -100px;
    opacity: 0.3;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 10%;
    right: -50px;
    opacity: 0.2;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('assets/IMG_0306.png');
    z-index: -1;
    transform: scale(1.05);
    transition: transform 0.5s ease-out;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.3) 0%, rgba(10, 10, 12, 0.9) 100%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
    padding-top: 2vh;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--accent-primary);
    opacity: 0.9;
}

.glitch {
    font-size: 5vw;
    font-weight: 900;
    position: relative;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 1rem 0 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.hero-cta .btn {
    width: 280px;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    z-index: 1;
}

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

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent-secondary);
    animation: scrollDrop 1.5s infinite linear;
}

@keyframes scrollDrop {
    0% {
        top: -10px;
    }

    100% {
        top: 40px;
    }
}

/* Bento Grid (Shared for Photos & Videos) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 270px; /* Reduced from 310px */
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    display: block;
    text-decoration: none;
    color: inherit;
}

.bento-item.span-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.span-2-col {
    grid-column: span 2;
}

.bento-item.span-4 {
    grid-column: span 4;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: auto; /* Fallback */
    filter: brightness(1.05); /* Subtle lift to reduce noise perception in dark areas */
}

.placeholder-img {
    width: 100%;
    height: 100%;
}

.bento-item.bento-main {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.bento-all-work {
    grid-column: span 4;
    height: 120px;
    margin-top: 1.5rem;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.bento-item:hover .bento-overlay,
.bento-item:active .bento-overlay,
.always-visible .bento-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-item:hover .bento-img {
    transform: scale(1.05);
}

.bento-overlay h4 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.neon-purple {
    background: linear-gradient(45deg, #2d0b38, #5a1846);
}


/* Contact Section */

/* Contact Section */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info h2 span {
    color: var(--accent-secondary);
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.social-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

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

.input-group {
    position: relative;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(0, 0, 0, 0.4);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-dark);
    padding: 0 5px;
    color: var(--accent-secondary);
}

.submit-btn {
    width: 100%;
    text-align: center;
    border: none;
    cursor: none;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    background: var(--bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.back-to-top {
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    cursor: pointer;
}

.back-to-top:hover {
    color: var(--accent-primary);
}

/* Animations (Reveal on scroll) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
    .glass-panel {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ig-mobile-icon {
        display: flex;
        /* Show icon on mobile */
    }

    .mobile-menu-btn {
        display: flex;
        margin-left: 0.5rem;
    }

    .desktop-only {
        display: none !important;
        /* Hide redundant IG button in mobile menu */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 0 10%;
    }

    .glitch {
        font-size: 1.8rem !important; /* Scaled down even more */
        line-height: 1.3;
        white-space: normal !important;
        text-align: center;
    }

    .hero-content p {
        font-size: 0.9rem !important;
        letter-spacing: 2px !important;
    }

    .hero-cta {
        width: 100%;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100% !important;
        max-width: 260px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
        gap: 1.5rem;
    }

    .bento-item.bento-main,
    .bento-item.bento-all-work,
    .bento-item.span-2,
    .bento-item.span-4 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        margin-top: 0 !important;
    }

    .glass-panel {
        padding: 1.5rem;
    }

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

/* Gallery Video Support */
.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(138, 43, 226, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.gallery-item:hover .video-icon {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    background: var(--primary-color);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 70vmin;
    height: 70vmin;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1.05);
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    border-radius: 8px;
}

.close-lightbox {
    position: fixed;
    top: 25px;
    right: 25px;
    color: var(--accent-primary);
    font-size: 1.8rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10015; /* Top priority */
    line-height: 1;
    backdrop-filter: blur(10px);
}

.close-lightbox:hover {
    transform: scale(1.1);
    color: white;
    background: var(--accent-primary);
}

/* Add zoom cursor to gallery images */
.bento-img {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 105vw;
        height: 105vw; /* Oversized for impact */
    }
    .lightbox-img {
        max-width: 100%;
        max-height: 100%;
    }
    .close-lightbox {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}