/* ═══════════════════════════════════════════════════════════════
   PRIMA'S DATA UNIVERSE — Space Portfolio Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
    --bg-deep: #0a0a1a;
    --bg-card: rgba(15, 15, 40, 0.65);
    --neon-purple: #a855f7;
    --neon-cyan: #06b6d4;
    --electric-blue: #3b82f6;
    --neon-pink: #ec4899;
    --orange: #f97316;
    --gold: #fbbf24;
    --teal: #14b8a6;
    --green: #22c55e;
    --red: #ef4444;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 15, 40, 0.55);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.4);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.4);
    --glow-orange: 0 0 20px rgba(249, 115, 22, 0.4);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Rocket Cursor ── */
body.rocket-active,
body.rocket-active *,
body.rocket-active *::before,
body.rocket-active *::after {
    cursor: none !important;
}

#rocket-cursor {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    width: 32px;
    height: 48px;
    transform: translate(-16px, -10px) rotate(0deg);
    transition: filter 0.3s ease;
    will-change: transform;
    filter: drop-shadow(0 0 4px rgba(100, 160, 255, 0.3));
    display: none;
}

body.rocket-active #rocket-cursor {
    display: block;
}

body.rocket-active #rocket-trail-canvas {
    display: block;
}

#rocket-trail-canvas {
    display: none;
}

#rocket-cursor.hovering {
    filter: drop-shadow(0 0 12px rgba(120, 180, 255, 0.7)) drop-shadow(0 0 24px rgba(80, 140, 255, 0.3));
}

#rocket-cursor.hovering .rocket-glow {
    opacity: 0.6;
}

#rocket-cursor.hovering .rocket-flame ellipse:first-child {
    fill: #60a0ff;
    opacity: 1;
}

#rocket-trail-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-purple) var(--bg-deep);
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

html::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color .3s, text-shadow .3s;
}

a:hover {
    color: #67e8f9;
    text-shadow: var(--glow-cyan);
}

/* ═══════════════════════════════════════════
   BIG BANG INTRO
   ═══════════════════════════════════════════ */
#bigbang-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

#bigbang-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#bigbang-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#bigbang-text {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: var(--font-heading);
    color: var(--text-secondary);
}

#bigbang-text p {
    font-size: clamp(1rem, 3vw, 1.6rem);
    margin: .4rem 0;
    opacity: 0;
    transition: opacity .6s;
}

#bigbang-text p.visible {
    opacity: 1;
}

#bigbang-btn {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    padding: 1rem 2.5rem;
    border: 2px solid rgba(180, 200, 255, .4);
    background: transparent;
    color: rgba(200, 220, 255, .9);
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all .4s ease;
    animation: btnPulse 2s ease-in-out infinite;
    transform-origin: center center;
}

#bigbang-btn:hover {
    background: rgba(180, 200, 255, .15);
    color: #fff;
    box-shadow: 0 0 40px rgba(150, 180, 255, .4), 0 0 80px rgba(130, 160, 255, .2);
    transform: scale(1.06);
}

#bigbang-btn.collapsing {
    animation: btnCollapse .4s ease-in forwards;
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(150, 180, 255, .2);
    }

    50% {
        box-shadow: 0 0 30px rgba(150, 180, 255, .4);
    }
}

@keyframes btnCollapse {
    0% {
        transform: scale(1);
        opacity: 1;
        border-radius: 50px;
        padding: 1rem 2.5rem;
    }

    50% {
        transform: scale(0.5);
        opacity: 0.8;
        border-radius: 50%;
        padding: .5rem;
    }

    100% {
        transform: scale(0);
        opacity: 0;
        border-radius: 50%;
        padding: 0;
        width: 0;
        height: 0;
    }
}

#bb-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, rgba(200, 220, 255, 1), rgba(150, 180, 255, .9), rgba(180, 160, 240, .8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(150, 180, 255, .3));
    }

    100% {
        filter: brightness(1.3) drop-shadow(0 0 30px rgba(180, 200, 255, .5));
    }
}

/* Mute toggle */
#mute-toggle {
    position: fixed;
    top: 14px;
    left: 16px;
    z-index: 1002;
    background: rgba(15, 15, 40, .7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    color: var(--text-secondary);
}

#mute-toggle:hover {
    border-color: rgba(150, 180, 255, .3);
    box-shadow: 0 0 12px rgba(150, 180, 255, .2);
}

/* ═══════════════════════════════════════════
   STARFIELD CANVAS
   ═══════════════════════════════════════════ */
#starfield-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════ */
#progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, .05);
    z-index: 1000;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan), var(--neon-pink));
    transition: width .5s ease;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--neon-cyan);
}

#progress-text {
    position: fixed;
    top: 8px;
    right: 16px;
    font-family: var(--font-heading);
    font-size: .7rem;
    color: var(--neon-cyan);
    z-index: 1001;
    text-shadow: var(--glow-cyan);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
#galaxy-nav {
    position: fixed;
    top: 4px;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: .8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 26, .75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: background .3s;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    white-space: nowrap;
}

#nav-links {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

#nav-links a {
    font-family: var(--font-heading);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: .3rem .5rem;
    border-radius: 4px;
    transition: all .3s;
}

#nav-links a:hover,
#nav-links a.active {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    background: rgba(6, 182, 212, .08);
}

#nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    padding: .2rem .6rem;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════ */
#toast-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.toast {
    font-family: var(--font-heading);
    font-size: .8rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(15, 15, 40, .9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--orange);
    box-shadow: var(--glow-orange);
    color: var(--orange);
    animation: toastIn .5s ease, toastOut .5s ease 3s forwards;
    max-width: 320px;
}

.toast .toast-title {
    font-weight: 700;
    margin-bottom: .3rem;
}

@keyframes toastIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   SECTIONS - GENERAL
   ═══════════════════════════════════════════ */
.section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.planet-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 3px;
    margin-bottom: .5rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: .75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    text-align: center;
    text-shadow: var(--glow-cyan);
}

.section-content {
    width: 100%;
    max-width: 1200px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ── Reveal animation ── */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   GLASSMORPHISM CARD
   ═══════════════════════════════════════════ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform .4s, box-shadow .4s, border-color .4s;
}

.glass-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(168, 85, 247, .3);
    box-shadow: var(--glow-purple);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
#hero {
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-planet-orbit {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(168, 85, 247, .15);
    border-radius: 50%;
    animation: orbit-spin linear infinite;
}

.ring-1 {
    inset: 0;
    animation-duration: 12s;
}

.ring-2 {
    inset: -20px;
    animation-duration: 18s;
    border-color: rgba(6, 182, 212, .12);
}

.ring-3 {
    inset: -40px;
    animation-duration: 25s;
    border-color: rgba(236, 72, 153, .1);
}

.orbit-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.ring-2::after {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

.ring-3::after {
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

@keyframes orbit-spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-planet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #7c3aed, #4c1d95);
    box-shadow: 0 0 40px rgba(124, 58, 237, .5), inset -8px -8px 16px rgba(0, 0, 0, .4);
    animation: planetPulse 3s ease-in-out infinite;
}

@keyframes planetPulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(124, 58, 237, .5);
    }

    50% {
        box-shadow: 0 0 60px rgba(124, 58, 237, .7);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 2.8rem);
    letter-spacing: 2px;
    margin-bottom: .5rem;
    color: var(--text-primary);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.neon-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, .4));
}

.hero-tagline {
    font-size: clamp(.9rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.typewriter-container {
    font-family: var(--font-heading);
    font-size: clamp(.8rem, 1.5vw, 1rem);
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    min-height: 2rem;
}

.typewriter-prefix {
    color: var(--neon-purple);
}

.typewriter-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-heading);
    font-size: .9rem;
    padding: .9rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--neon-purple);
    background: transparent;
    color: var(--neon-purple);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all .4s;
    text-decoration: none;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--electric-blue));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 30px rgba(168, 85, 247, .5);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about-card {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.about-card p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.about-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.focus-card {
    text-align: center;
}

.focus-icon {
    font-size: 2.5rem;
    margin-bottom: .8rem;
}

.focus-card h3 {
    font-family: var(--font-heading);
    font-size: .9rem;
    color: var(--neon-cyan);
    margin-bottom: .5rem;
}

.focus-card p {
    color: var(--text-secondary);
    font-size: .9rem;
}

/* ═══════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, .08), transparent 70%);
    opacity: 0;
    transition: opacity .4s;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: .8rem;
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: .9rem;
    margin-bottom: .3rem;
}

.skill-level {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-purple);
    font-family: var(--font-heading);
}

.xp-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, .06);
    border-radius: 4px;
    margin: .8rem 0 .5rem;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 1.5s cubic-bezier(.4, 0, .2, 1);
}

.xp-text {
    font-family: var(--font-heading);
    font-size: .65rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    transition: transform .5s, box-shadow .5s;
}

.project-card:hover {
    transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 0 30px rgba(168, 85, 247, .3), 0 20px 40px rgba(0, 0, 0, .3);
}

.project-status {
    font-family: var(--font-heading);
    font-size: .65rem;
    color: var(--green);
    margin-bottom: .5rem;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    margin-bottom: .5rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: .9rem;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    font-family: var(--font-heading);
    font-size: .6rem;
    padding: .25rem .7rem;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, .3);
    color: var(--neon-purple);
    background: rgba(168, 85, 247, .08);
}

.project-link {
    font-family: var(--font-heading);
    font-size: .75rem;
    color: var(--neon-cyan);
}

.loading-card {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(168, 85, 247, .2);
    border-top-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════
   EXPERIENCE TIMELINE
   ═══════════════════════════════════════════ */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-purple), var(--neon-cyan));
}

.timeline-item {
    position: relative;
    margin-left: 50px;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon-cyan);
    border: 3px solid var(--bg-deep);
    box-shadow: 0 0 12px var(--neon-cyan);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: .7rem;
    color: var(--neon-purple);
    margin-bottom: .5rem;
}

.timeline-item h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: .2rem;
}

.timeline-item h4 {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: .5rem;
    font-weight: 400;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: .9rem;
}

/* ═══════════════════════════════════════════
   ACHIEVEMENTS / HALL OF FAME
   ═══════════════════════════════════════════ */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.trophy-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trophy-card[data-tier="legendary"] {
    border-color: rgba(251, 191, 36, .3);
}

.trophy-card[data-tier="legendary"]:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, .3);
}

.trophy-card[data-tier="gold"] {
    border-color: rgba(249, 115, 22, .2);
}

.trophy-card[data-tier="gold"]:hover {
    box-shadow: 0 0 25px rgba(249, 115, 22, .3);
}

.trophy-card[data-tier="special"] {
    border-color: rgba(168, 85, 247, .3);
}

.trophy-card[data-tier="special"]:hover {
    box-shadow: 0 0 25px rgba(168, 85, 247, .3);
}

.trophy-card[data-tier="silver"] {
    border-color: rgba(148, 163, 184, .2);
}

.trophy-icon {
    font-size: 3rem;
    margin-bottom: .8rem;
    animation: float 3s ease-in-out infinite;
}

.trophy-card h3 {
    font-family: var(--font-heading);
    font-size: .85rem;
    color: var(--gold);
    margin-bottom: .3rem;
}

.trophy-card p {
    color: var(--text-secondary);
    font-size: .85rem;
}

.trophy-detail {
    display: block;
    margin-top: .5rem;
    font-size: .75rem;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
}

/* trophy reveal */
.trophy-card.revealed {
    animation: trophyUnlock .8s ease;
}

@keyframes trophyUnlock {
    0% {
        transform: scale(.6) rotateY(90deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.08) rotateY(-10deg);
    }

    100% {
        transform: scale(1) rotateY(0);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════════ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    text-align: center;
}

.cert-badge {
    font-size: 2.5rem;
    margin-bottom: .8rem;
}

.cert-card h3 {
    font-family: var(--font-heading);
    font-size: .85rem;
    color: var(--neon-cyan);
    margin-bottom: .3rem;
}

.cert-card p {
    color: var(--text-secondary);
    font-size: .8rem;
}

/* ═══════════════════════════════════════════
   LEADERSHIP
   ═══════════════════════════════════════════ */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.leadership-card {
    text-align: center;
}

.leader-icon {
    font-size: 2.5rem;
    margin-bottom: .8rem;
}

.leadership-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: .3rem;
}

.leadership-card h4 {
    font-size: .85rem;
    color: var(--text-secondary);
    margin-bottom: .6rem;
    font-weight: 400;
}

.leadership-card p {
    color: var(--text-secondary);
    font-size: .9rem;
}

/* ═══════════════════════════════════════════
   DATA COMMAND CENTER
   ═══════════════════════════════════════════ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    text-align: center;
}

.kpi-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.kpi-label {
    font-family: var(--font-heading);
    font-size: .7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: .3rem;
}

.charts-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    padding: 1.5rem;
}

.chart-card h3 {
    font-family: var(--font-heading);
    font-size: .85rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    text-align: center;
}

.chart-card canvas {
    width: 100% !important;
    height: auto !important;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.terminal-card {
    font-family: 'Courier New', monospace;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ef4444;
}

.terminal-dot.yellow {
    background: #fbbf24;
}

.terminal-dot.green {
    background: #22c55e;
}

.terminal-title {
    font-size: .75rem;
    color: var(--text-secondary);
    margin-left: .5rem;
}

.terminal-body p {
    margin-bottom: .5rem;
    font-size: .85rem;
}

.term-key {
    color: var(--neon-purple);
    font-weight: 700;
}

.term-cursor {
    animation: blink 1s step-end infinite;
    color: var(--neon-cyan);
}

.form-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: .7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: .4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 15, 40, .6);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: .9rem;
    transition: border-color .3s, box-shadow .3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
#footer {
    text-align: center;
    padding: 2rem;
    font-family: var(--font-heading);
    font-size: .7rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════
   EASTER EGG
   ═══════════════════════════════════════════ */
#easter-egg {
    position: fixed;
    bottom: 80px;
    left: 30px;
    z-index: 998;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: .15;
    animation: driftEgg 8s ease-in-out infinite alternate;
    transition: opacity .3s, transform .3s;
}

#easter-egg:hover {
    opacity: .7;
    transform: scale(1.3);
}

@keyframes driftEgg {
    0% {
        transform: translate(0, 0) rotate(0);
    }

    100% {
        transform: translate(15px, -20px) rotate(15deg);
    }
}

/* ═══════════════════════════════════════════
   AI ASSISTANT
   ═══════════════════════════════════════════ */
#ai-assistant {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
}

#ai-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.2rem;
    border-radius: 50px;
    border: 2px solid var(--neon-purple);
    background: rgba(15, 15, 40, .9);
    backdrop-filter: blur(12px);
    color: var(--neon-purple);
    font-family: var(--font-heading);
    font-size: .75rem;
    cursor: pointer;
    transition: all .4s;
    box-shadow: var(--glow-purple);
    animation: btnPulse 3s ease-in-out infinite;
}

#ai-toggle:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 40px rgba(168, 85, 247, .5);
}

.ai-icon {
    font-size: 1.2rem;
}

#ai-chat {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 380px;
    max-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(10, 10, 30, .95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, .3);
    box-shadow: 0 0 40px rgba(168, 85, 247, .2);
    display: flex;
    flex-direction: column;
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem 1rem;
    background: rgba(168, 85, 247, .1);
    font-family: var(--font-heading);
    font-size: .8rem;
    color: var(--neon-cyan);
    border-bottom: 1px solid rgba(168, 85, 247, .2);
}

#ai-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: color .3s;
}

#ai-close:hover {
    color: var(--red);
}

#ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    max-height: 320px;
}

.ai-msg {
    padding: .7rem 1rem;
    border-radius: 12px;
    font-size: .85rem;
    line-height: 1.5;
    max-width: 90%;
    animation: msgIn .3s ease;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-msg.bot {
    background: rgba(168, 85, 247, .1);
    border: 1px solid rgba(168, 85, 247, .2);
    align-self: flex-start;
    color: var(--text-primary);
}

.ai-msg.user {
    background: rgba(6, 182, 212, .1);
    border: 1px solid rgba(6, 182, 212, .2);
    align-self: flex-end;
    color: var(--neon-cyan);
}

.ai-suggested-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.ai-suggested-btn {
    font-family: var(--font-body);
    font-size: .7rem;
    padding: .3rem .7rem;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, .25);
    background: rgba(168, 85, 247, .06);
    color: var(--neon-purple);
    cursor: pointer;
    transition: all .3s;
    white-space: nowrap;
}

.ai-suggested-btn:hover {
    background: rgba(168, 85, 247, .15);
    border-color: var(--neon-purple);
}

.ai-chat-input {
    display: flex;
    gap: .5rem;
    padding: .8rem 1rem;
    border-top: 1px solid rgba(168, 85, 247, .15);
}

#ai-input {
    flex: 1;
    padding: .6rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(15, 15, 40, .6);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: .85rem;
    outline: none;
    transition: border-color .3s;
}

#ai-input:focus {
    border-color: var(--neon-purple);
}

#ai-send {
    background: var(--neon-purple);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all .3s;
}

#ai-send:hover {
    box-shadow: var(--glow-purple);
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    #nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 26, .95);
        backdrop-filter: blur(16px);
        padding: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    #nav-links.show {
        display: flex;
    }

    #nav-toggle {
        display: block;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .charts-area {
        grid-template-columns: 1fr;
    }

    #ai-chat {
        width: calc(100vw - 48px);
        right: -12px;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 6rem 1rem 3rem;
    }

    .skills-grid,
    .projects-grid,
    .achievements-grid,
    .certs-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-planet-orbit {
        width: 140px;
        height: 140px;
    }

    .hero-planet {
        width: 60px;
        height: 60px;
    }
}