/* ================= GLOBAL ================= */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.unlocked::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.unlocked,
html,
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 1. Force the lock by default */
html, body {
    height: 100%;
    overflow: hidden !important; /* Total lock */
    position: fixed; /* Prevents "bounce" scrolling on mobile */
    width: 100%;
}

/* 2. The key to unlock everything */
/* 2. The key to unlock everything */
body.unlocked, 
html.unlocked {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important; /* Forces it out of the 'fixed' state */
}

/* Scroll Down Indicator Animation */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s ease 0.5s; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    z-index: 100;
}

.scroll-indicator.active {
    opacity: 0.7;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid #a78bfa;
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 3px;
    height: 6px;
    background: #a78bfa;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

body {
    font-family: 'Inter', sans-serif;
    background: #05040a;
    color: white;
    overflow-x: hidden;
}

/* Animated purple background */
body::before {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, #6b5cff33, transparent 40%),
        radial-gradient(circle at 80% 60%, #a855ff33, transparent 40%),
        radial-gradient(circle at 50% 80%, #7c3aed33, transparent 40%);
    animation: bgMove 18s linear infinite;
    z-index: -1;
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-10%, -10%); }
    100% { transform: translate(0, 0); }
}

/* ================= BACKGROUND SYSTEMS ================= */

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    z-index: 9999;
}

.language-picker {
    flex-shrink: 0;
}

.language-picker select {
    appearance: none;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(167, 139, 250, .28);
    border-radius: 14px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    max-width: 150px;
    outline: none;
    padding: 9px 34px 9px 12px;
}

.language-picker::after {
    color: #a78bfa;
    content: "v";
    font-size: 10px;
    font-weight: 900;
    margin-left: -24px;
    pointer-events: none;
}

.language-picker select option {
    background: #12091f;
    color: #ffffff;
}

.doc-language-picker {
    position: fixed;
    right: 30px;
    top: 30px;
    z-index: 1000;
}

.spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(139, 92, 246, .18), transparent 60%);
    filter: blur(80px);
    z-index: -1;
}





/* ================= LOADER ================= */
#loader {
    position: fixed;
    inset: 0;
    background: #050507;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

/* Keeps everything inside neat and tidy */
/* 1. Remove the fixed width from the wrapper to let text expand */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Increased gap for a more premium feel */
    width: 100%; /* Let it take full width */
}

/* 2. Restore the large, wide text look */
.loader-text {
    font-size: 42px; /* Increased from 32px */
    letter-spacing: 12px; /* Increased for that premium "wide" look */
    color: #a855f7;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap; /* Forces it into a single line */
    
    animation: pulse 1.5s infinite ease-in-out;
    
    transform: translateZ(0);
    will-change: opacity;
}

/* The container: Thinned out to make the bar look sleeker */
.loader-progress-container {
    width: 320px; /* Made slightly longer to emphasize the thin tips */
    height: 3px;  /* Reduced height for a thinner profile */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: #a855f7;
    box-shadow: 0 0 15px #a855f7;
    position: relative;
    
    /* THE NEEDLE TAPER:
       Points 1 & 6: Start at 50% height (the "needle" tip)
       Points 2 & 5: Quickly expand to full height at 10% of the width
       Points 3 & 4: Stay at full height until 90% of the width
       Points 7 & 8: Close back to 50% height at the end
    */
    clip-path: polygon(
        0% 50%,     /* Left Tip Start */
        10% 0%,     /* Transition to parallel top */
        90% 0%,     /* Parallel top end */
        100% 50%,   /* Right Tip */
        90% 100%,   /* Transition to parallel bottom */
        10% 100%    /* Parallel bottom end */
    );
    
    animation: fillProgress 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* The Pulse Keyframes */
@keyframes pulse {
    0%, 100% { 
        opacity: 0.4;
        text-shadow: 0 0 10px rgba(168, 85, 247, 0); /* Glow off */
    }
    50% { 
        opacity: 1; 
        text-shadow: 0 0 20px rgba(168, 85, 247, 0.5); /* Soft glow on */
    }
}


/* The "Power Surge" highlight moving inside the bar */
.loader-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent
    );
    animation: shimmer 1s infinite;
}

@keyframes fillProgress {
    0% { width: 0%; filter: brightness(1); }
    70% { filter: brightness(1.5); } /* Brightens up as it nears completion */
    100% { width: 100%; filter: brightness(1.2); }
}

@keyframes shimmer {
    100% { left: 100%; }
}
/* ================= INTRO GATE ================= */

.intro-gate {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: #05040a;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s ease;
}

.intro-content {
    text-align: center;
}

.intro-logo {
    font-size: 72px;
    letter-spacing: 10px;
    font-weight: 800;
    background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    line-height: 1.1;
    animation: logoGlow 3s ease-in-out infinite;
}

.intro-sub {
    text-align: center;
    color: #bdbdfc;
    margin-top: 10px;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 0px rgba(167, 139, 250, .2)); }
    50% { filter: drop-shadow(0 0 25px rgba(167, 139, 250, .6)); }
    100% { filter: drop-shadow(0 0 0px rgba(167, 139, 250, .2)); }
}

/* ================= NAVBAR ================= */

.nav {
    position: fixed;
    width: 100%;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    backdrop-filter: blur(18px);
    background: rgba(10, 10, 25, .35);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    z-index: 1000;
    opacity: 1;
    transform: translateY(0);
    transition: .6s ease;
}

.nav.active {
    opacity: 1;
    transform: translateY(0);
}

.logo {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
}

.links {
    display: flex;
    gap: 20px;
}

.links a {
    color: #bdbdfc;
    text-decoration: none;
    transition: .3s;
}

.links a:hover {
    color: #ffffff;
}

/* ================= HERO ================= */

.hero {
    height: 110vh;
    display: flex;
    padding: 180px 8% 80px;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    clip-path: ellipse(150% 100% at 50% 0%);
    transform-style: preserve-3d;
}

/* Using your specific class from index.html */
/* Prevent GPU Ghosting on Hero Text */
.hero, .hero-title, .hero-sub, .hero-button {
    /* Forces the browser to keep these elements on their own layer */
    transform: translateZ(0); 
    backface-visibility: hidden;
    perspective: 1000;
}

/* Ensure the wipe animation doesn't leave a ghost mask */
.wipe-mask {
    pointer-events: none;
}
.hero-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background:
        radial-gradient(circle at 30% 40%, #7c3aed33, transparent),
        radial-gradient(circle at 70% 60%, #a855ff33, transparent);
    animation: floatBg 14s ease-in-out infinite;
    z-index: -1;
    filter: blur(120px);
}

@keyframes floatBg {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-40px); }
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
}

/* .wipe {
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
} */

/* Update the existing .wipe and .reveal classes in your CSS */

.wipe {
    display: block;
    position: relative;
    overflow: hidden;
    /* Ensure the text has a base visibility so it doesn't flicker */
    opacity: 1 !important; 
    background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ensure the hero section doesn't hide itself once it has been seen */
.hero.reveal.active {
    opacity: 1 !important;
    transform: none !important;
}

.wipe div {
    pointer-events: none;
}

.hero-sub {
    color: #cfcfff;
    margin-top: 15px;
    font-size: 16px;
}

.hero-button a{
    display:contents;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #05040a);
    pointer-events: none;
}

/* ================= BUTTON ================= */

.primary {
    margin-top: 25px;
    padding: 14px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: white;
    font-weight: 600;
    transition: .35s;
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px #8b5cf6aa;
}

/* ================= SECTIONS ================= */

.section {
    padding: 140px 80px;
    text-align: center;
    transform-style: preserve-3d;
}

.section h2 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= CARDS ================= */

.card-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

/* .card {
    padding: 35px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(167, 139, 250, .15);
    transition: .45s;
    position: relative;
    opacity: 0;
    transform: translateY(70px) scale(.96);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 0 40px rgba(139, 92, 246, .45),
        inset 0 0 25px rgba(139, 92, 246, .2);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    margin-top: 15px;
}

.card p {
    color: #cfcfff;
    font-size: 14px;
    line-height: 1.6;
} */

/* ================= ABOUT ================= */

.about-container {
    display: flex;
    justify-content: center;
    gap: 120px;
    align-items: center;
    flex-wrap: wrap;
    text-align: left;
}

.about-left {
    max-width: 520px;
}

.about-left h2 {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-left p {
    color: #cfcfff;
    margin-bottom: 18px;
    line-height: 1.6;
}

.about-right {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.stat {
    padding: 28px 36px;
    background: rgba(255, 255, 255, .03);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, .2);
    opacity: 0;
    transform: translateY(70px) scale(.96);
    transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .9s ease;
}

.stat.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stat h3 {
    font-size: 36px;
    color: #c084fc;
    margin-bottom: 8px;
}

.stat span {
    color: #a78bfa;
    font-size: 14px;
}

/* ================= WHY CHOOSE US ================= */

.why {
    background: transparent;
}

.section-title {
    font-size: 48px;
    background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 60px;
}

.why-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 70px;
    flex-wrap: wrap;
}

.why-card {
    width: 300px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(139, 92, 246, .2);
    opacity: 0;
    transform: translateY(80px);
    transition: .4s;
}

.why-card.active {
    opacity: 1;
    transform: translateY(0);
}

.why-card:hover {
    box-shadow: 0 0 60px rgba(139, 92, 246, .5);
    transform: translateY(-12px) scale(1.03);
}

.why-card h3 {
    font-size: 20px;
    margin: 15px 0 10px;
}

/* ================= PROCESS ================= */

.process {
    background: transparent;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.step-card {
    padding: 30px;
    width: 260px;
    background: rgba(255, 255, 255, .03);
    border-radius: 18px;
    border: 1px solid rgba(139, 92, 246, .2);
    opacity: 0;
    transform: translateY(70px) scale(.96);
    transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .9s ease;
    text-align: center;
}

.step-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.step-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #a78bfa;
}

.step-card p {
    color: #cfcfff;
    font-size: 13px;
    line-height: 1.5;
}

.arrow {
    font-size: 40px;
    color: #a78bfa;
}

/* ================= GAME PROFILES ================= */

.game-profiles {
    padding: 80px 8%;
    text-align: center;
}

/* ...existing code... */

.section-header {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(120px) scale(.96);
    transition: 1.2s cubic-bezier(.16, 1, .3, 1);
}

.section-header.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section-header h2 {
    font-size: 48px;
    background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ...existing code... */

.badge {
    display: inline-block;
    background: rgba(139, 92, 246, .2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.gradient-text {
    background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(139, 92, 246, .15);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: .3s ease;
    text-align: left;
}

.game-card:hover {
    background: rgba(255, 255, 255, .06);
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, .4);
    box-shadow: 0 0 30px rgba(139, 92, 246, .3);
}

.game-icon {
    background: rgba(139, 92, 246, .15);
    color: #a78bfa;
    padding: 10px;
    width: auto;
    height: auto;
    border-radius: 12px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: white;
}

.game-info p {
    color: #8383a3;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.status {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(34, 197, 94, .2);
    color: #22c55e;
    text-transform: uppercase;
    font-weight: 700;
}

.status.idle {
    background: rgba(234, 179, 8, .2);
    color: #eab308;
}

.status.offline {
    background: rgba(255, 255, 255, .1);
    color: #8383a3;
}

/* ================= SOCIALS ================= */

.socials {
    padding: 80px 8%;
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.social-card {
    align-items: center;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(139, 92, 246, .18);
    border-radius: 20px;
    color: #ffffff;
    display: flex;
    gap: 18px;
    min-height: 120px;
    padding: 24px;
    text-align: left;
    text-decoration: none;
    transition: .3s ease;
}

.social-card:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(139, 92, 246, .45);
    box-shadow: 0 0 30px rgba(139, 92, 246, .22);
    transform: translateY(-5px);
}

.social-mark {
    align-items: center;
    background: rgba(139, 92, 246, .16);
    border: 1px solid rgba(167, 139, 250, .28);
    border-radius: 14px;
    color: #c4b5fd;
    display: flex;
    flex: 0 0 58px;
    height: 58px;
    justify-content: center;
}

.social-mark svg {
    fill: currentColor;
    height: 30px;
    width: 30px;
}

.social-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.social-card p {
    color: #cfcfff;
    font-size: .92rem;
    line-height: 1.45;
    opacity: .8;
}

/* ================= STAFF ================= */

.staff {
    background: transparent;
}

.staff h2 {
    font-size: 48px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.staff-subtitle {
    color: #cfcfff;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto 18px;
    max-width: 560px;
    opacity: .78;
}

.card {
    padding: 25px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(167, 139, 250, .15);
    transition: .45s;
    position: relative;
    opacity: 0;
    transform: translateY(70px) scale(.96);
    display: flex;
    flex-direction: column;
}

.portfolio-card-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.portfolio-card-link .card {
    cursor: pointer;
    height: 100%;
}

.card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 0 40px rgba(139, 92, 246, .45),
        inset 0 0 25px rgba(139, 92, 246, .2);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    margin-top: 2px;
}

.card p {
    color: #cfcfff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: auto;
    background: rgba(139, 92, 246, .2);
    padding: 4px 8px;
    border-radius: 100px;
    font-size: 10px;
    color: #fff;
    border: 1px solid rgba(139, 92, 246, .4);
    text-transform: uppercase;
    font-weight: 600;
}

.designation {
    color: #a78bfa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.staff-email {
    display: inline-block;
    margin-top: auto;
    font-size: 13px;
    color: #8b5cf6;
    text-decoration: none;
    transition: .3s;
    opacity: 0.8;
}

.staff-email:hover {
    opacity: 1;
    letter-spacing: 0.5px;
    cursor: pointer;
}

/* ================= CTA ================= */

.cta {
    padding: 80px;
    text-align: center;
    background: linear-gradient(90deg, #140f2f, #1e124a);
    align-items: center;
    position: relative;
    overflow: hidden;
    clip-path: ellipse(250% 175% at 50% 10%);
}

.cta h2 {
    font-size: 48px;
    background: linear-gradient(90deg, #a78bfa, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

/* ================= FOOTER ================= */

.footer {
    background: #05040a;
    padding: 80px 60px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    text-align: left;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.brand-logo img{
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 10px;
    font-size: 24px;
}


.brand-header h2 {
    font-size: 18px;
    letter-spacing: 1px;
}

.footer-brand p {
    color: #8383a3;
    line-height: 1.6;
    font-size: 15px;
}

.footer-column h3 {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-column a,
.footer-column .wip {
    display: block;
    color: #8383a3;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: .3s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-privacy {
    font-size: 13px;
    margin-top: 15px;
}

.footer-privacy a {
    display: inline-block;
    color: #9e9edf;
    text-decoration: none;
    margin: 0 5px;
    transition: .3s;
}

.footer-privacy a:hover {
    color: #fff;
}

/* ================= REVEAL ANIMATIONS ================= */

.reveal {
    opacity: 0;
    transform: translateY(120px) scale(.96);
    transition: 1.2s cubic-bezier(.16, 1, .3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature {
    opacity: 0;
    transform: translateY(60px);
    transition: .6s;
}

.feature.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= MODAL ================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: .4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(139, 92, 246, .2);
    position: relative;
    transform: translateY(20px);
    transition: .4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#contactForm input,
#contactForm textarea {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(139, 92, 246, .2);
    padding: 12px;
    border-radius: 8px;
    color: white;
    outline: none;
    transition: .3s;
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: rgba(139, 92, 246, .5);
    background: rgba(255, 255, 255, .06);
}

/* ================= UTILITY ================= */

.grid-container {
    position: relative;
    z-index: 2;
    margin-top: -50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 8%;
    width: 100%;
}

.card a {
    cursor: grab;
}

/* ================= PORTFOLIO PAGES ================= */

.portfolio-page {
    position: relative;
}

.portfolio-logo-link {
    color: #fff;
    text-decoration: none;
}

.portfolio-hero {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
    min-height: 100vh;
    padding: 150px 8% 90px;
}

.portfolio-hero-copy {
    max-width: 760px;
}

.portfolio-name {
    background: linear-gradient(90deg, #fff, #c084fc, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: .9;
    margin: 22px 0 16px;
    -webkit-text-fill-color: transparent;
}

.portfolio-name-kicker {
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 800;
    letter-spacing: 1.8px;
    line-height: 1.15;
    text-transform: uppercase;
}

.portfolio-display-name {
    font-size: clamp(72px, 10vw, 150px);
    font-weight: 800;
    letter-spacing: 0;
}

.portfolio-role {
    color: #c4b5fd;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.portfolio-hero p,
.portfolio-section p,
.portfolio-contact p {
    color: #d8d4ff;
    font-size: 17px;
    line-height: 1.8;
}

.portfolio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.portfolio-button {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    text-decoration: none;
}

.portfolio-button.secondary {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(167, 139, 250, .25);
    color: #fff;
}

.portfolio-mark {
    align-items: center;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at 50% 42%, rgba(192, 132, 252, .32), transparent 58%),
        rgba(255, 255, 255, .035);
    border: 1px solid rgba(167, 139, 250, .18);
    border-radius: 28px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.portfolio-mark img {
    filter: drop-shadow(0 0 34px rgba(192, 132, 252, .42));
    max-width: 72%;
}

.portfolio-section {
    padding: 90px 8%;
}

.portfolio-section-heading {
    margin-bottom: 34px;
}

.portfolio-section h2,
.portfolio-contact h2 {
    font-size: clamp(34px, 4vw, 58px);
    margin: 14px 0 12px;
}

.portfolio-card-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-panel,
.portfolio-timeline article,
.portfolio-contact {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(167, 139, 250, .17);
    border-radius: 18px;
    box-shadow: inset 0 0 24px rgba(139, 92, 246, .12);
}

.portfolio-panel {
    padding: 26px;
}

.portfolio-panel h3,
.portfolio-timeline h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.portfolio-split {
    align-items: start;
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.portfolio-timeline {
    display: grid;
    gap: 18px;
}

.portfolio-timeline article {
    padding: 24px;
}

.portfolio-timeline span {
    color: #a78bfa;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.portfolio-contact {
    margin: 80px 8% 100px;
    padding: 46px;
    text-align: center;
}

.portfolio-contact .portfolio-button {
    margin-top: 26px;
}

.portfolio-media-placeholder {
    align-items: center;
    border: 1px dashed rgba(196, 181, 253, .38);
    border-radius: 18px;
    display: flex;
    min-height: 320px;
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.portfolio-media-placeholder::before {
    background:
        linear-gradient(135deg, rgba(167, 139, 250, .18), transparent 42%),
        radial-gradient(circle at 70% 40%, rgba(192, 132, 252, .22), transparent 36%);
    content: "";
    inset: 0;
    position: absolute;
}

.portfolio-media-placeholder > div {
    max-width: 620px;
    position: relative;
    z-index: 1;
}

.portfolio-media-placeholder span {
    color: #a78bfa;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.portfolio-media-placeholder h3 {
    font-size: clamp(24px, 3vw, 38px);
    margin-bottom: 14px;
}

.portfolio-project-showcase {
    align-items: stretch;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(167, 139, 250, .17);
    border-radius: 18px;
    box-shadow: inset 0 0 24px rgba(139, 92, 246, .12);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    overflow: hidden;
    padding: 24px;
}

.portfolio-project-media {
    align-items: center;
    background: rgba(5, 4, 10, .45);
    border: 1px solid rgba(167, 139, 250, .16);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 320px;
    overflow: hidden;
    padding: 14px;
}

.portfolio-project-media video {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    display: block;
    width: 100%;
}

.portfolio-project-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.portfolio-project-gallery img {
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(167, 139, 250, .16);
    border-radius: 10px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.portfolio-project-gallery img:hover {
    border-color: rgba(167, 139, 250, .45);
    transform: translateY(-2px);
}

.portfolio-project-copy {
    align-self: center;
    padding: 12px 8px;
}

.portfolio-project-copy span {
    color: #5ee493;
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.portfolio-project-copy h3 {
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
    margin-bottom: 16px;
}

.portfolio-project-copy p + p {
    margin-top: 14px;
}

/* ================= MOBILE OPTIMIZATIONS ================= */


@media (max-width: 768px) {

/* 2. The key to unlock everything */
body.unlocked {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important; /* This allows links and scrolling to work again */
}

    /* 1. Fix "PALLADIUM WORKS" Intro Logo */
    .intro-logo {
        font-size: 28px !important; /* Shrunk significantly to prevent horizontal scroll */
        letter-spacing: 3px !important; 
        text-align: center;
        display: block;
        width: 100vw;
        padding: 0 10px;
    }
    .arrow {
        font-size: 30px !important;
        rotate: 90deg; /* Flip arrows for better mobile flow */
    }
    /* 2. Fix Hero "Legendary" Text Clipping */
    .hero::before {
        padding: 100px 15px 40px !important;
        height: auto !important;
        min-height: 70vh;
    }

    .loader-text {
        font-size: 28px !important;
        letter-spacing: 4px !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    .hero-title {
        font-size: 28px !important; /* Shrunk to 28px to ensure it fits any phone width */
        line-height: 1.3 !important;
        width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .hero-sub {
        font-size: 14px !important;
        padding: 0 10px;
    }

    /* 3. Fix Oversized Cards & Grid */
    .grid-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 15px !important;
        margin-top: 10px !important;
        gap: 15px !important;
    }

    .card {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 180px !important; /* Reduced from 280px */
        padding: 20px !important;
        transform: none !important; /* Removing hover transform to prevent clipping on touch */
    }

    .card h3 {
        font-size: 18px !important;
    }

    /* 4. Fix Footer Layout */
    .footer {
        padding: 40px 20px !important;
    }

    /* ================= MOBILE OPTIMIZATIONS ================= */
    /* Fix: Navigation Scrollable Left-to-Right */
    .nav {
        padding: 12px 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 15px !important;
    }

    .logo {
        flex-shrink: 0 !important; /* Prevents logo from squishing */
        z-index: 10;
        background: inherit; /* Matches nav background */
    }

    .nav .links {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 20px !important;
        padding: 5px 0;
        -webkit-overflow-scrolling: touch;
        
        /* The Shadow Fade Effect */
        mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent 100%);
        
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }

    .logo {
        flex-shrink: 0 !important; /* Prevent logo from squishing */
        margin-right: 20px !important;
        font-size: 12px !important;
        letter-spacing: 2px !important;
    }


    .nav .links::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }

    /* Fix: Intro/Hero Text Clipping */
    .intro-logo, .hero-title {
        font-size: 30px !important;
        width: 100% !important;
        text-align: center !important;
        word-wrap: break-word !important;
    }

    /* Fix: Grid and Card Oversizing */
    .grid-container {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
    }

    .card {
        width: 100% !important;
        min-height: auto !important;
        align-content: center !important;
    }

    /* Fix: Footer Clipping */
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-column a {
        white-space: normal !important;
    }

    .portfolio-hero,
    .portfolio-split,
    .portfolio-card-grid,
    .portfolio-project-showcase {
        grid-template-columns: 1fr;
    }

    .portfolio-hero {
        gap: 34px;
        min-height: auto;
        padding-top: 125px;
    }

    .portfolio-mark {
        border-radius: 20px;
        margin: 0 auto;
        max-width: 360px;
        width: 100%;
    }

    .portfolio-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portfolio-button {
        width: 100%;
    }

    .portfolio-contact {
        margin: 60px 8% 80px;
        padding: 28px 20px;
    }

    .portfolio-project-showcase {
        padding: 16px;
    }

    .portfolio-project-media {
        min-height: auto;
    }

    .portfolio-project-gallery {
        grid-template-columns: 1fr;
    }


    /* Fix Section Headers */
    .section h2, 
    .section-header h2,
    .section-title {
        font-size: 26px !important; /* Keeps headers small enough for phone screens */
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.email{
    color: #a855f7;
}

/* AUTO-UNLOCK for Privacy & Terms Pages */
/* If the intro gate is missing, we must release the fixed position */
html:not(:has(.intro-gate)),
body:not(:has(.intro-gate)) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    height: auto !important;
}
