:root {
    --bg: #050505;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --accent: #ffffff;
    --accent-purple: #8f6bff;
    --accent-lavender: #d7c6ff;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --panel: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --gloss-highlight: rgba(255, 255, 255, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: default;
}

#site-content {
    opacity: 1;
    transition: opacity 1.8s var(--ease-smooth);
}

body.site-hidden #site-content {
    opacity: 0;
}

body.site-ready #site-content {
    opacity: 1;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Splash */
#splash {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-smooth);
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.splash-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes logoEnter {
    0% {
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.45));
    }

    45% {
        transform: scale(1.22) rotate(-3deg);
        filter: drop-shadow(0 0 45px rgba(143, 107, 255, 0.8));
    }

    70% {
        transform: scale(0.98) translateY(4px);
        filter: drop-shadow(0 0 28px rgba(143, 107, 255, 0.55));
    }

    100% {
        transform: scale(0.9) translateY(18px);
        filter: drop-shadow(0 0 16px rgba(143, 107, 255, 0.35));
    }
}

.splash-logo.enter-anim {
    animation: logoEnter 1.1s var(--ease-smooth) forwards;
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.loader-line {
    width: 0;
    height: 2px;
    background: #fff;
    border-radius: 99px;
    animation: load 1.5s var(--ease-smooth) forwards;
    box-shadow: 0 0 10px #fff;
}

@keyframes load {
    to {
        width: 150px;
    }
}

#splash-quote {
    margin-top: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 1s ease;
    min-height: 1.2em;
    text-align: center;
    max-width: 80%;
}

.enter-btn {
    margin-top: 24px;
    padding: 10px 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(10, 10, 12, 0.55);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth), box-shadow 0.3s ease;
    backdrop-filter: blur(12px) saturate(140%);
}

.enter-btn:hover {
    box-shadow: 0 0 22px rgba(143, 107, 255, 0.35);
    border-color: rgba(143, 107, 255, 0.5);
}

#splash.ready .enter-btn {
    opacity: 1;
    transform: translateY(0);
}

#splash.exit {
    opacity: 0;
}

#splash.exit .splash-content {
    opacity: 0;
    transform: translateY(14px);
}



/* Player */
.music-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 900;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: width 0.4s var(--ease-smooth), height 0.4s var(--ease-smooth), background 0.3s;
    width: 250px;
    cursor: grab;
}

.music-player:active {
    cursor: grabbing;
}

.player-top {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.mini-controls,
.controls-row,
.volume-row {
    pointer-events: auto;
}

.music-player:hover {
    background: rgba(15, 15, 15, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

.disk {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #333 0%, #fff 50%, #333 100%);
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.disk::after {
    content: '';
    position: absolute;
    inset: 14px;
    background: #000;
    border-radius: 50%;
}

.spinning {
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.spinning.playing {
    animation-play-state: running;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.track-info {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    line-height: 1.3;
    flex-grow: 1;
    overflow: hidden;
}

.track-name {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.artist-name {
    color: var(--text-dim);
    font-size: 0.7rem;
}

.mini-controls button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.mini-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.player-expanded.hidden {
    display: none;
}

.player-expanded {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideDown 0.3s var(--ease-smooth);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.controls-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.controls-row button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.controls-row button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.main-play svg {
    width: 32px;
    height: 32px;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    padding: 0 4px;
}

.custom-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s;
}

.custom-slider:hover {
    height: 6px;
}

.slider-fill {
    background: #fff;
    height: 100%;
    border-radius: 99px;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.slider-thumb {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-slider:hover .slider-thumb {
    opacity: 1;
}

.hidden {
    display: none !important;
}

/* Typography */
h1,
h2,
h3,
h4,
.brand b {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

p {
    line-height: 1.6;
    color: var(--text-dim);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-smooth);
}

/* Layout */
.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 12, 0.2);
    transition: background 0.4s ease, padding 0.4s ease;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.brand img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Buttons & Rainbow */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 99px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 500;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.btn-rainbow {
    position: relative;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 99px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
    overflow: hidden;
}

.btn-rainbow::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(90deg, #6a4cff, #8f6bff, #b089ff, #d7c6ff, #b089ff, #8f6bff, #6a4cff);
    background-size: 200%;
    animation: rainbowMove 3s linear infinite;
}

.btn-rainbow::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: rgba(8, 8, 10, 0.75);
    backdrop-filter: blur(14px) saturate(140%);
    border-radius: 999px;
    z-index: -1;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.btn-rainbow:hover {
    transform: scale(1.05);
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-visual {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glowing-card {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(143, 107, 255, 0.2), 0 0 120px rgba(143, 107, 255, 0.12);
    backdrop-filter: blur(18px) saturate(140%);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: box-shadow 0.5s ease;
}

.glowing-card:hover {
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.2), 0 0 150px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 40%, rgba(5, 5, 5, 0.6) 100%);
    z-index: 2;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(140%);
    align-self: start;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.card:hover .tap-hint {
    opacity: 1;
    transform: translateY(0);
}

.card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.9s var(--ease-smooth), opacity 0.9s var(--ease-smooth);
    opacity: 0;
    margin-top: 0;
}

.card.expanded .card-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tap-hint {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
    display: block;
    margin-top: 10px;
}

/* Team Styles (About Page) */
.team-section {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    width: 300px;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(140%);
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.founder {
    transform: scale(1.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.founder:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
}

.member-avatar {
    position: relative;
    margin-bottom: 20px;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.discord-status {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    bottom: 5px;
    right: 5px;
    border: 3px solid #000;
    /* border to separate from avatar */
}

.online {
    background: #43b581;
    box-shadow: 0 0 10px #43b581;
}

.dnd {
    background: #f04747;
    box-shadow: 0 0 10px #f04747;
}

.offline {
    background: #747f8d;
}

.team-member h3 {
    margin: 0;
    font-size: 1.4rem;
}

.team-member .role {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: var(--accent);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-bio {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s var(--ease-smooth);
    margin-top: 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.team-member.active .member-bio {
    max-height: 150px;
    opacity: 1;
    margin-top: 15px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 0;
    margin-top: 60px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(140%);
    margin-bottom: 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 2.2s var(--ease-smooth), transform 2.2s var(--ease-smooth);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    --reveal-delay: 0.2s;
}

.delay-2 {
    --reveal-delay: 0.45s;
}

.delay-3 {
    --reveal-delay: 0.7s;
}

.grid>.reveal:nth-child(1) {
    --reveal-delay: 0.15s;
}

.grid>.reveal:nth-child(2) {
    --reveal-delay: 0.45s;
}

.grid>.reveal:nth-child(3) {
    --reveal-delay: 0.75s;
}

.grid>.reveal:nth-child(4) {
    --reveal-delay: 1.05s;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 3rem;
    }

    .nav-links {
        /* display: none; */
        /* Keeping nav links visible */
    }

    .hero-visual {
        min-height: 300px;
    }
}

/* Application View Styles */
#view-apply .application-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
}

#view-apply .application-form {
    max-width: 700px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#view-apply .application-form h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#view-apply .application-form .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

#view-apply .form-group {
    margin-bottom: 24px;
}

#view-apply .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

#view-apply .form-group label .required {
    color: #ff6b6b;
}

#view-apply .form-group input[type="text"],
#view-apply .form-group input[type="number"],
#view-apply .form-group input[type="url"],
#view-apply .form-group select,
#view-apply .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#view-apply .form-group input:focus,
#view-apply .form-group select:focus,
#view-apply .form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

#view-apply .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#view-apply .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

#view-apply .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#view-apply .checkbox-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

#view-apply .submit-btn {
    width: 100%;
    padding: 16px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 32px;
}

#view-apply .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

#view-apply .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#view-apply .success-message,
#view-apply .error-message {
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

#view-apply .success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

#view-apply .error-message {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

/* Branding Collaboration Styles */
.brand-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.brand-collab {
    font-size: 1em;
    font-weight: 600;
    white-space: nowrap;
}

.gradient-red {
    background: linear-gradient(90deg, #ff6b35, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.gradient-blue {
    background: linear-gradient(90deg, #00a8ff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Portfolio Grid (Updated for Side-by-Side) */
.portfolio-grid-featured,
.portfolio-grid-full {
    display: grid;
    /* Auto-fit with minmax(300px) ensures 2 or 3 cards fit side-by-side */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Portfolio Card */
.portfolio-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* Indicates it is clickable */
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(143, 107, 255, 0.15);
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .video-wrapper video {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-card:hover .video-overlay {
    opacity: 0;
}

.video-overlay svg {
    color: white;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Portfolio Card Info */
.portfolio-card-info {
    padding: 24px;
}

.portfolio-card-info h4 {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.portfolio-card-info p {
    color: var(--text-dim);
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive */
/* --- MOBILE RESPONSIVENESS --- */

/* Nav Adjustments */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.5s var(--ease-smooth);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--accent-purple);
}

/* Base Responsive Overrides */
@media (max-width: 900px) {
    .nav-links {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
        /* Hide top CTA on mobile, it's in the menu */
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        min-height: 300px;
        order: -1;
        /* Video on top */
    }

    .wrap {
        padding: 0 24px;
    }

    .music-player {
        width: calc(100% - 40px) !important;
        left: 20px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {

    .portfolio-grid-featured,
    .portfolio-grid-full,
    .team-grid,
    .grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .brand-collab {
        display: none;
    }

    section {
        padding: 60px 0;
    }

    #view-apply .application-form {
        padding: 30px 20px;
    }

    #view-apply .application-form h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .music-player {
        padding: 10px;
    }

    .disk {
        width: 32px;
        height: 32px;
    }

    .track-name {
        font-size: 0.8rem;
    }

    .artist-name {
        font-size: 0.7rem;
    }
}

/* --- LIGHTBOX / POPUP STYLES --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    background: #000;
    transform: scale(0.9);
    /* Uses your existing smooth ease variable */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    outline: none;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-family: var(--font-body);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Customer Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s var(--ease-smooth);
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(140%);
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.review-name {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.review-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
}

.review-stars {
    color: #ffcc00;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.review-card .tap-hint {
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 60px 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s var(--ease-smooth);
    z-index: 1;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#modal-body .review-card {
    background: none;
    border: none;
    padding: 0;
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}

#modal-body .review-name {
    font-size: 1.8rem;
}

#modal-body .review-text {
    font-size: 1.4rem;
    line-height: 1.5;
}

#modal-body .review-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

#modal-body .review-stars {
    font-size: 1.5rem;
}

#modal-body .tap-hint {
    display: none;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 40px 24px;
    }
}