:root {
    --primary-dark: #0a0a0f;
    --secondary-dark: #1a1a1a;
    --accent-gray: #4a5568;
    --dark-gray: #2a2a2a;
    --medium-gray: #6a6a6a;
    --light-gray: #8a8a8a;
    --dark-blue: #0f172a;
    --navy-blue: #1e293b;
    --slate-blue: #334155;
    --steel-blue: #475569;
    --deep-purple: #1e1b4b;
    --vintage-purple: #312e81;
    --muted-purple: #4c1d95;
    --dusty-purple: #5b21b6;
    --text-light: #e2e8f0;
    --primary-blue: #4a90e2;
    --primary-purple: #667eea;
}

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

body {
    background: var(--primary-dark);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Canvas layers */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#three-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Custom cursor system */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
}

/* Airplane logo container */
.airplane-logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.airplane-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.bell-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5));
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
}

/* Content container */
.content-container {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    text-align: center;
    pointer-events: none;
}

.studio-title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.8;
}

.title-part-1 {
    font-family: 'Press Start 2P', cursive;
    font-weight: 400;
    background: linear-gradient(45deg,
        #00ff00 0%,
        #00ffff 25%,
        #ff00ff 50%,
        #ffff00 75%,
        #00ff00 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pixelShift1 4s linear infinite;
    letter-spacing: 0.1em;
    font-size: 0.8em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.title-part-2 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    background: linear-gradient(90deg,
        var(--muted-purple) 0%,
        #00ffff 20%,
        var(--primary-blue) 40%,
        #ff00ff 60%,
        var(--dusty-purple) 80%,
        var(--muted-purple) 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pixelShift2 3s ease-in-out infinite;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.6em;
    margin-top: 0.2em;
}

@keyframes pixelShift1 {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes pixelShift2 {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Logo explosion and black hole animations */
.airplane-logo {
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.airplane-logo:hover {
    transform: scale(1.1);
}

.airplane-logo.exploding {
    animation: explode 0.8s ease-out forwards;
}

.airplane-logo.blackhole {
    animation: blackholeAppear 1.5s ease-in-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes blackholeAppear {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(0.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.explosion-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.explosion-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00ff00, #00ffff, #ff00ff, #ffff00);
    border-radius: 50%;
    opacity: 0;
}

.explosion-particle.active {
    animation: explodeParticle 1s ease-out forwards;
}

@keyframes explodeParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}


/* Social links */
.social-links {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.social-link {
    color: var(--light-gray);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-family: 'Teko', sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.social-link:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

/* Footer */
.main-footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
}

.main-footer p {
    font-size: 0.8rem;
    color: var(--medium-gray);
    opacity: 0.6;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .custom-cursor,
    .cursor-trail {
        display: none;
    }

    .airplane-logo {
        width: 120px;
    }

  
    .social-links {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }

    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Performance optimizations */
.airplane-logo,
.studio-title,
.nav-link {
    will-change: transform;
    transform: translateZ(0);
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    :root {
        --text-light: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .airplane-logo,
    .bell-pulse,
    .studio-title {
        animation: none;
    }

    .custom-cursor,
    .cursor-trail {
        display: none;
    }
}