/* ─── Index Page ─── */
body {
    background: #07070b !important;
}

body::before {
    display: none !important;
}

/* ─── Center Logo ─── */
#centerLogo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.2) rotateY(12deg) rotateX(4deg) !important;
    z-index: 100;
    transition: all 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Hidden Content ─── */
.hidden-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    display: none;
}

.content-revealed .hidden-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: block;
    margin-top: 2.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    animation: contentReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes contentReveal {
    0% { opacity: 0; transform: translateY(40px) scale(0.97); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.content-revealed #centerLogo {
    position: relative !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) scale(1.3) !important;
    margin-bottom: 2rem;
    display: block;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    filter: none !important;
}

.content-revealed #centerLogo .logo-energy,
.content-revealed #centerLogo .logo-rings,
.content-revealed #centerLogo .logo-orbit,
.content-revealed #centerLogo .logo-particles {
    opacity: 0 !important;
    animation: none !important;
    transition: opacity 1.5s ease;
}

.content-revealed #centerLogo .logo-core {
    transform: none !important;
    transition: transform 1.5s ease;
}

.content-revealed #centerLogo .logo-letter {
    text-shadow: none !important;
    transition: text-shadow 1.5s ease;
}

/* Staggered reveals */
.content-revealed .main-logo-text { transition-delay: 0.05s; }
.content-revealed .subtitle { transition-delay: 0.2s; }
.content-revealed .description { transition-delay: 0.35s; }
.content-revealed .nav-links { transition-delay: 0.5s; }

/* ─── Main Container ─── */
.container-fluid {
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(160deg, #07070b 0%, #0d0d14 40%, #111118 100%);
    position: relative;
    overflow: hidden;
}

.container-fluid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.text-center {
    position: relative;
    z-index: 2;
}

/* ─── Typography ─── */
h1 {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.subtitle {
    font-size: 1.15rem;
    color: rgba(165, 180, 252, 0.6);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(200, 200, 220, 0.55);
    font-weight: 400;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Navigation Buttons ─── */
.nav-links {
    gap: 1rem !important;
}

.nav-link {
    padding: 0.9rem 2.2rem;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-link:nth-child(2) {
    background: transparent;
    border: 1px solid rgba(165, 180, 252, 0.2);
    box-shadow: none;
    color: #a5b4fc;
}

.nav-link:nth-child(2)::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.nav-link:nth-child(2):hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(165, 180, 252, 0.4);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
    color: #e0e7ff;
    transform: translateY(-3px);
}

/* ─── Particle Canvas ─── */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ─── Cursor Glow ─── */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
}

/* ─── Logo Effects ─── */
.main-logo-icon {
    position: relative;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    overflow: visible;
    transform-style: preserve-3d;
    user-select: none;
}

.logo-core {
    position: relative;
    z-index: 5;
    transition: all 0.6s ease;
}

.logo-letter {
    position: relative;
    z-index: 6;
    transition: all 0.6s ease;
}

.logo-energy {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
    animation: energyPulse 4s ease-in-out infinite;
}

.logo-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.6s ease;
}

.logo-rings::before,
.logo-rings::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.logo-rings::before {
    width: 60%;
    height: 60%;
    border-width: 1px;
    animation: ringExpand1 5s ease-in-out infinite;
}

.logo-rings::after {
    width: 80%;
    height: 80%;
    animation: ringExpand2 5s ease-in-out infinite 1.5s;
}

.logo-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.6s ease;
}

.logo-orbit::before,
.logo-orbit::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #818cf8;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

.logo-orbit::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbit1 8s linear infinite;
}

.logo-orbit::after {
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    animation: orbit2 8s linear infinite reverse;
}

.logo-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.logo-particles::before,
.logo-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #a5b4fc;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(165, 180, 252, 0.5);
    opacity: 0;
}

.logo-particles::before {
    top: 15%;
    right: 20%;
    animation: particleFloat1 5s ease-in-out infinite;
}

.logo-particles::after {
    bottom: 20%;
    left: 25%;
    animation: particleFloat2 5s ease-in-out infinite 2.5s;
}

/* Active logo state */
.main-logo-icon {
    filter: drop-shadow(0 10px 40px rgba(99, 102, 241, 0.5));
}

#centerLogo.floating-p {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-radius: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.5rem !important;
    color: white !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    cursor: pointer !important;
}

.main-logo-icon .logo-core {
    transform: rotateZ(8deg) scale(1.05);
}

.main-logo-icon .logo-letter {
    text-shadow:
        0 0 20px rgba(99, 102, 241, 0.8),
        0 0 40px rgba(139, 92, 246, 0.5),
        0 0 60px rgba(165, 180, 252, 0.3);
}

.main-logo-icon .logo-energy {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

.main-logo-icon .logo-rings {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.main-logo-icon .logo-rings::before,
.main-logo-icon .logo-rings::after {
    opacity: 1;
}

.main-logo-icon .logo-orbit {
    opacity: 1;
    animation: orbitSpin 3s linear infinite;
}

.main-logo-icon .logo-particles {
    opacity: 1;
}

.main-logo-icon .logo-particles::before,
.main-logo-icon .logo-particles::after {
    opacity: 1;
}

.main-logo-icon:hover {
    transform: scale(1.35) rotateY(15deg) rotateX(6deg);
    filter: drop-shadow(0 15px 50px rgba(99, 102, 241, 0.6));
}

/* ─── Animations ─── */
@keyframes energyPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

@keyframes ringExpand1 {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.15; }
}

@keyframes ringExpand2 {
    0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.1; }
}

@keyframes orbit1 {
    0% { transform: translateX(-50%) rotate(0deg) translateX(90px) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg) translateX(90px) rotate(-360deg); }
}

@keyframes orbit2 {
    0% { transform: translateX(50%) rotate(0deg) translateX(-90px) rotate(0deg); }
    100% { transform: translateX(50%) rotate(360deg) translateX(-90px) rotate(-360deg); }
}

@keyframes orbitSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes particleFloat1 {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-15px) scale(1.3); opacity: 1; }
}

@keyframes particleFloat2 {
    0%, 100% { transform: translateX(0) scale(1); opacity: 0.5; }
    50% { transform: translateX(12px) scale(1.2); opacity: 0.9; }
}

/* ─── Subtle Background Grid ─── */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
}

/* ─── Geometric Shapes ─── */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.geometric-shapes::before,
.geometric-shapes::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(99, 102, 241, 0.04);
    animation: geometricFloat 20s ease-in-out infinite;
}

.geometric-shapes::before {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    transform: rotate(45deg);
}

.geometric-shapes::after {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 15%;
    border-radius: 50%;
    animation-delay: -10s;
}

@keyframes geometricFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.04; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.08; }
}

/* ─── Scan Lines (very subtle) ─── */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(99, 102, 241, 0.008) 2px,
        rgba(99, 102, 241, 0.008) 4px
    );
    pointer-events: none;
    z-index: 10;
}

/* ─── Vignette ─── */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    z-index: 5;
}

/* ─── Page Loading State ─── */
.page-loading *,
.page-loading *::before,
.page-loading *::after {
    animation: none !important;
    transition: none !important;
}

.page-loading .drop-element {
    opacity: 0 !important;
    transform: translateY(-100vh) !important;
    visibility: hidden !important;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .profile-img {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        width: 200px;
        text-align: center;
    }

    .cursor-glow {
        display: none;
    }

    .matrix-bg,
    .scan-lines {
        display: none;
    }

    .typewriter-cursor {
        animation: none !important;
        display: none;
    }

    .ambient-blobs .blob {
        filter: blur(100px);
        opacity: 0.06;
    }
}

/* ═══════════════════════════════════════════
   AMBIENT LIGHT BLOBS
   ═══════════════════════════════════════════ */
.ambient-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    animation: blobFadeIn 3s ease 0.5s forwards;
}

@keyframes blobFadeIn {
    to { opacity: 1; }
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.08);
    top: -10%;
    left: -5%;
    animation: blobFadeIn 3s ease 0.5s forwards, blobDrift1 25s ease-in-out infinite 3s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.06);
    bottom: -10%;
    right: -5%;
    animation: blobFadeIn 3s ease 1s forwards, blobDrift2 30s ease-in-out infinite 3.5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: rgba(167, 139, 250, 0.04);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: blobFadeIn 3s ease 1.5s forwards, blobDrift3 20s ease-in-out infinite 4s;
}

@keyframes blobDrift1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(60px, 40px); }
    50% { transform: translate(20px, 80px); }
    75% { transform: translate(-40px, 30px); }
}

@keyframes blobDrift2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-50px, -30px); }
    50% { transform: translate(-20px, -70px); }
    75% { transform: translate(30px, -40px); }
}

@keyframes blobDrift3 {
    0%, 100% { transform: translateX(-50%) translate(0, 0); }
    33% { transform: translateX(-50%) translate(40px, -50px); }
    66% { transform: translateX(-50%) translate(-30px, 40px); }
}

/* ═══════════════════════════════════════════
   TYPEWRITER EFFECT
   ═══════════════════════════════════════════ */
.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline;
    font-weight: 300;
    animation: cursorBlink 0.8s step-end infinite;
    margin-left: 2px;
    opacity: 1;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ═══════════════════════════════════════════
   STAGGERED CONTENT FADE-IN
   ═══════════════════════════════════════════ */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-item.stagger-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

