/* --- Project Verse: Core Variables & Utilities --- */
:root {
    --verse-bg: #030712;
    /* Deepest Void */
    --verse-accent-cyan: #22d3ee;
    --verse-accent-purple: #c084fc;
    --verse-accent-pink: #f472b6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
}

body {
    background-color: var(--verse-bg);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.15), transparent 25%);
    background-attachment: fixed;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

body.gate-locked {
    overflow: hidden;
}

/* Interactive Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(38, 78, 112, 0.15), transparent 80%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sora', sans-serif;
}

/* Animated Gradient Text */
.animated-gradient {
    background: linear-gradient(90deg, #3B82F6, #A855F7, #EC4899, #3B82F6);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 5s linear infinite;
}

@keyframes gradient-flow {
    to {
        background-position: 200% center;
    }
}

/* Card Glow Effect */
.card-glow {
    position: relative;
    background: #161B22;
    border: 1px solid #30363D;
}

.card-glow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x-card) var(--mouse-y-card), rgba(255, 255, 255, 0.05), transparent 80%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

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

/* Timeline Pulse Animation */
.timeline-dot {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Fade-in on Scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrolling Skills Marquee */
.skills-marquee {
    display: flex;
    width: max-content;
    flex-shrink: 0;
    animation: scroll 40s linear infinite;
}

.skills-container {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* 12px */
    background-color: #161B22;
    padding: 0.5rem 1rem;
    /* 8px 16px */
    border-radius: 9999px;
    border: 1px solid #30363D;
}

/* Swiper 3D Carousel Styles */
/* --- Holographic Data-Deck (Verse Certificates) --- */
.certificates-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 80px;
    perspective: 1200px;
    /* Deep 3D space */
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 340px;
    height: 480px;
    background: rgba(15, 23, 42, 0.6);
    /* Darker glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 211, 238, 0.3);
    /* Cyan tint */
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    overflow: visible;
    /* overflow must be visible for projector effect */
    transition: all 0.5s ease;
    /* Verse Tech Border Effect */
    clip-path: polygon(0 15px, 15px 0,
            calc(100% - 15px) 0, 100% 15px,
            100% calc(100% - 15px), calc(100% - 15px) 100%,
            15px 100%, 0 calc(100% - 15px));
}

.swiper-slide-active {
    box-shadow:
        0 0 30px rgba(34, 211, 238, 0.2),
        inset 0 0 20px rgba(34, 211, 238, 0.1);
    border-color: var(--verse-accent-cyan);
    z-index: 10;
}

/* Holographic Scanline Overlay */
.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(34, 211, 238, 0.05) 51%,
            transparent 52%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 5;
}

/* Image Styling */
.swiper-slide img {
    width: 100%;
    height: 75%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

/* Content Area */
.swiper-slide-content {
    height: 25%;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(8, 14, 25, 0.8) 0%, rgba(8, 14, 25, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 6;
    text-align: left;
}

.swiper-slide-content h3 {
    font-family: 'Sora', sans-serif;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.swiper-slide-content p {
    color: #94a3b8;
    font-size: 0.8rem;
    font-family: 'Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Holographic Projector Base (Pseudo-element below active slide) */
.swiper-slide-active::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -10%;
    width: 120%;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.4) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 1;
    z-index: -1;
    animation: pulse-hologram 3s infinite;
}

@keyframes pulse-hologram {

    0%,
    100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }

    50% {
        opacity: 0.8;
        transform: scaleX(1.2);
    }
}

/* Pagination Dots - Tech Style */
.swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--verse-accent-cyan);
    box-shadow: 0 0 10px var(--verse-accent-cyan);
    width: 50px;
}

/* --- Add these styles to the end of your style.css file --- */

/* New Project List Styles */
.project-item {
    display: block;
}

.tech-tag {
    background-color: #30363D;
    /* gray-800 */
    color: #c9d1d9;
    /* gray-300 */
    font-size: 0.75rem;
    /* 12px */
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    /* 4px 12px */
    border-radius: 9999px;
}

.project-link {
    font-weight: 600;
    color: #58a6ff;
    /* blue-400 */
    transition: color 0.3s;
}

.project-link:hover {
    color: #388bfd;
    /* blue-300 */
}

/* For the show more/less transition */
.transition-max-height {
    transition: max-height 0.7s ease-in-out;
}

/* --- Add these styles to the end of your style.css file --- */

/* Certificates Swiper Styles */
.certificates-swiper .swiper-slide {
    cursor: pointer;
    /* Indicates that the slides are clickable */
}

.certificates-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    background-color: #6b7280;
    /* gray-500 */
}

.certificates-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active {
    background-color: #3B82F6;
    /* blue-500 */
}

/* --- Add these styles to the end of your style.css file --- */

/* Confirmation Modal Visibility */
#confirm-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

#confirm-modal.is-visible #confirm-modal-box {
    transform: scale(1);
}

/* --- Cyber Orb / Firefly Animation --- */
.cyber-orb {
    position: absolute;
    border-radius: 50%;
    background: white;
    filter: blur(8px);
    /* Glowing effect */
    opacity: 0.6;
    z-index: 0;
    /* Behind content */
    pointer-events: none;
}

.orb-blue {
    width: 150px;
    height: 150px;
    background: var(--verse-accent-cyan);
    top: 10%;
    left: 20%;
    animation: float-orb-1 25s infinite ease-in-out alternate;
    opacity: 0.3;
}

.orb-purple {
    width: 200px;
    height: 200px;
    background: var(--verse-accent-purple);
    bottom: 20%;
    right: 10%;
    animation: float-orb-2 30s infinite ease-in-out alternate;
    opacity: 0.25;
}

.orb-pink {
    width: 100px;
    height: 100px;
    background: var(--verse-accent-pink);
    top: 40%;
    right: 30%;
    animation: float-orb-3 20s infinite ease-in-out alternate;
    opacity: 0.3;
}

/* --- Skills Resume-Aligned Styles --- */
.skill-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: #e2e8f0;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: default;
    display: inline-block;
}

.skill-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--verse-accent-cyan);
    color: white;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
    transform: translateY(-2px);
}

.skill-pill.is-active {
    border-color: var(--verse-accent-cyan);
    color: white;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.35);
}

/* Category Specific Hover Glows */
.glass-panel:hover .skill-pill {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Small fireflies */
.firefly {
    position: fixed;
    width: 4px;
    height: 4px;
    background-color: var(--verse-accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--verse-accent-cyan);
    animation: fly-random 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

/* --- Holographic Timeline Verse Styles --- */
.holo-beam {
    position: absolute;
    left: 4px;
    /* Default for mobile */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--verse-accent-cyan), var(--verse-accent-purple), var(--verse-accent-pink));
    box-shadow: 0 0 15px var(--verse-accent-cyan);
    z-index: 0;
}

@media (min-width: 768px) {
    .holo-beam {
        left: 50%;
        transform: translateX(-50%);
    }
}

.neon-emitter {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #030712;
    border: 2px solid var(--verse-accent-cyan);
    box-shadow: 0 0 10px var(--verse-accent-cyan), inset 0 0 10px var(--verse-accent-cyan);
    left: 4px;
    /* Default alignment */
    transform: translateX(-43%);
    /* Center dot on line */
    margin-top: 1.5rem;
    z-index: 10;
}

@media (min-width: 768px) {
    .neon-emitter {
        left: 50%;
        transform: translateX(-50%);
    }
}

.neon-emitter::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--verse-accent-cyan);
    opacity: 0;
    animation: emit-pulse 2s infinite;
}

@keyframes emit-pulse {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.8;
    }

    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}


.firefly:nth-child(2) {
    animation-duration: 25s;
    animation-delay: -5s;
    background-color: var(--verse-accent-purple);
    box-shadow: 0 0 10px 2px var(--verse-accent-purple);
}

.firefly:nth-child(3) {
    animation-duration: 18s;
    animation-delay: -2s;
    background-color: white;
}

.firefly:nth-child(4) {
    animation-duration: 30s;
    animation-delay: -10s;
    background-color: var(--verse-accent-pink);
    box-shadow: 0 0 10px 2px var(--verse-accent-pink);
}

@keyframes float-orb-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 100px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

/* Typing Effect Cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--verse-accent-cyan);
    margin-left: 5px;
    animation: blink-cursor 0.7s infinite;
    vertical-align: middle;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes float-orb-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-100px, -50px) scale(1.2);
    }

    100% {
        transform: translate(50px, -100px) scale(0.9);
    }
}

@keyframes float-orb-3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, 80px) scale(1.1);
    }

    100% {
        transform: translate(80px, -20px) scale(0.9);
    }
}

@keyframes fly-random {
    0% {
        top: 100%;
        left: 10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: -10%;
        left: 80%;
        opacity: 0;
    }
}

/* --- Add these styles to the end of your style.css file --- */

/* Constellation Network Animation Styles */
#constellation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Ensure it's in the background */
}

/* --- Add these styles to the end of your style.css file --- */

/* Profile Image Glow Animation */
.profile-glow {
    animation: pulse-glow 5s ease-in-out infinite;
    transition: box-shadow 0.3s ease;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    }

    100% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
    }
}

/* Custom Red Accent for Text */
.text-red-accent {
    display: inline-block;
    /* จำเป็นเพื่อให้ transform และ animation ทำงาน */
    background-image: linear-gradient(45deg, #FF5733, #C70039);
    /* สีแดงสดแบบไล่ระดับ */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;

    /* Animation */
    opacity: 0;
    /* ซ่อนไว้ก่อนเริ่ม animation */
    animation: slide-and-slant 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.5s;
    /* หน่วงเวลาเล็กน้อยเพื่อให้ดูน่าสนใจ */
}

/* Keyframes สำหรับ animation สไลด์และเอียง */
@keyframes slide-and-slant {
    from {
        opacity: 0;
        transform: translateX(-20px) skewX(-20deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) skewX(-10deg);
    }
}





/* --- Project Verse: Advanced Utilities --- */

/* Glassmorphism Card System */
.glass-panel {
    background: var(--verse-bg);
    /* Fallback */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(34, 211, 238, 0.05);
}

.glass-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(34, 211, 238, 0.05), rgba(192, 132, 252, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}

.glass-panel:hover::after {
    opacity: 1;
}

/* Neon Text Utilities */
.text-glow {
    text-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
}

.text-gradient-verse {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Work Experience Wow Enhancements */
.experience-card-verse {
    position: relative;
    overflow: hidden;
}

.experience-card-verse::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 30% 10%, rgba(34, 211, 238, 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.experience-card-verse:hover::before {
    opacity: 1;
}

.holo-beam::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -50%;
    width: 200%;
    height: 20%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
    opacity: 0.6;
    animation: beam-sweep 4.5s linear infinite;
}

.neon-emitter::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(192, 132, 252, 0.5);
    animation: orbit-ring 3s linear infinite;
}

@keyframes beam-sweep {
    0% {
        transform: translateY(0) translateX(-30%);
    }

    50% {
        transform: translateY(50%) translateX(30%);
    }

    100% {
        transform: translateY(100%) translateX(-30%);
    }
}

@keyframes orbit-ring {
    0% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.9;
    }

    100% {
        transform: scale(0.8) rotate(360deg);
        opacity: 0.5;
    }
}

/* Hero Echo Text */
.hero-echo {
    animation: hero-echo 6s ease-in-out infinite;
}

@keyframes hero-echo {
    0%,
    100% {
        text-shadow: 0 0 15px rgba(34, 211, 238, 0.15), 0 0 30px rgba(192, 132, 252, 0.1);
    }

    50% {
        text-shadow: 0 0 25px rgba(34, 211, 238, 0.35), 0 0 45px rgba(192, 132, 252, 0.2);
    }
}

/* 3D Tilt Base Style (JS will animate transforms) */
.tilt-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease-out;
    /* Super fast for mouse follow */
}

.tilt-content {
    transform: translateZ(20px);
    /* Floating content effect */
}

/* Floating Animation */
@keyframes float-slow {

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

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

.animate-float {
    animation: float-slow 6s ease-in-out infinite;
}

/* Navigation Dock */
.nav-dock {
    background: rgba(3, 7, 18, 0.8) !important;
    /* Force override */
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    /* Ensure border exists */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    /* Floating effect */
    width: 90%;
    /* Floating dock width */
    max-width: 1200px;
    left: 50% !important;
    transform: translateX(-50%);
    border-radius: 9999px !important;
}

/* Adjust timeline dot for the new theme */
.timeline-dot {
    box-shadow: 0 0 15px var(--verse-accent-cyan);
    background-color: var(--verse-accent-cyan) !important;
}

/* --- Cyber Shapes (Verse Background) --- */
.cyber-shape {
    position: fixed;
    border-radius: 20px;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.4;
    transform: rotate(45deg);
    animation: float-rotate 20s infinite linear alternate;
}

.shape-cyan {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--verse-accent-cyan), transparent);
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.shape-purple {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--verse-accent-purple), transparent);
    bottom: 10%;
    right: -50px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-pink {
    width: 250px;
    height: 250px;
    background: linear-gradient(225deg, var(--verse-accent-pink), transparent);
    top: 40%;
    left: 20%;
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes float-rotate {
    0% {
        transform: rotate(45deg) translate(0, 0) scale(1);
    }

    100% {
        transform: rotate(225deg) translate(50px, 50px) scale(1.1);
    }
}

/* --- Verse Portal (AI-DictX visual panel) --- */
.verse-portal {
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.25), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(192, 132, 252, 0.2), transparent 45%),
        linear-gradient(135deg, #0b1120 0%, #0a0f1a 55%, #05070f 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.verse-portal-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 70% 20%, rgba(56, 189, 248, 0.12), transparent 60%);
    opacity: 0.9;
}

.verse-portal-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: rotateX(55deg) translateY(20%);
    opacity: 0.35;
}

.verse-portal-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.2);
    animation: portal-spin 18s linear infinite;
}

.verse-portal-ring.ring-inner {
    width: 150px;
    height: 150px;
    border-color: rgba(192, 132, 252, 0.35);
    box-shadow: 0 0 30px rgba(192, 132, 252, 0.2);
    animation-duration: 12s;
}

.verse-portal-orb {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--verse-accent-cyan);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.9);
    animation: portal-orb 6s ease-in-out infinite;
}

.verse-portal-orb.orb-a {
    top: 20%;
    left: 18%;
}

.verse-portal-orb.orb-b {
    bottom: 18%;
    right: 20%;
    background: var(--verse-accent-pink);
    box-shadow: 0 0 18px rgba(244, 114, 182, 0.8);
    animation-delay: -2s;
}

.verse-portal-spark {
    position: absolute;
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), transparent);
    top: 30%;
    left: 10%;
    animation: portal-spark 4s ease-in-out infinite;
}

.verse-portal-spark.spark-2 {
    top: 55%;
    left: 60%;
    animation-delay: -1s;
}

.verse-portal-spark.spark-3 {
    top: 70%;
    left: 25%;
    animation-delay: -2s;
}

.verse-portal-spark.spark-4 {
    top: 18%;
    left: 65%;
    animation-delay: -3s;
}

.verse-portal-icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

@keyframes portal-spin {
    from {
        transform: rotate(0deg) scale(1);
    }

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

@keyframes portal-orb {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

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

@keyframes portal-spark {
    0%,
    100% {
        opacity: 0.1;
        transform: translateX(0);
    }

    50% {
        opacity: 0.8;
        transform: translateX(40px);
    }
}

/* --- Verse AI Figure (Projects) --- */
.verse-ai-figure {
    position: absolute;
    width: 220px;
    max-width: 55vw;
    pointer-events: none;
    z-index: 8;
    animation: ai-float 7s ease-in-out infinite;
}

.project-verse-figure {
    right: 80px;
    top: -165px;
    animation: none;
}

.ai-figure-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(34, 211, 238, 0.25)) drop-shadow(0 0 25px rgba(192, 132, 252, 0.25));
    transform: translateZ(0);
}

.ai-figure-glow {
    position: absolute;
    inset: -8%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 65%);
    filter: blur(18px);
    opacity: 0.9;
    z-index: -1;
    animation: ai-glow-pulse 4.5s ease-in-out infinite;
}

.ai-figure-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(34, 211, 238, 0.18) 50%, transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.6;
    animation: ai-scan 3.5s ease-in-out infinite;
}

.ai-figure-base {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -6px;
    height: 28px;
    border-radius: 9999px;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.35), rgba(15, 23, 42, 0.1) 65%, transparent 75%);
    filter: blur(2px);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.25);
    opacity: 0.9;
    z-index: -1;
    animation: ai-base-pulse 4s ease-in-out infinite;
}

@keyframes ai-float {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-14px) rotate(1deg);
    }
}

@keyframes ai-glow-pulse {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes ai-scan {
    0%,
    100% {
        transform: translateY(-10%);
        opacity: 0.3;
    }

    50% {
        transform: translateY(10%);
        opacity: 0.8;
    }
}

@keyframes ai-base-pulse {
    0%,
    100% {
        transform: scaleX(0.95);
        opacity: 0.6;
    }

    50% {
        transform: scaleX(1.05);
        opacity: 0.95;
    }
}

@media (max-width: 767px) {
    .project-verse-figure {
        right: 10px;
        top: -135px;
        width: 170px;
        opacity: 0.9;
        animation: none;
    }
}

/* Scroll Milestone */
.scroll-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 180px;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.15);
    z-index: 60;
    overflow: hidden;
}

.scroll-indicator-bar {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.9), rgba(192, 132, 252, 0.9));
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
    border-radius: 9999px;
    transition: height 0.2s ease-out;
}

@media (max-width: 767px) {
    .scroll-indicator {
        right: 10px;
        height: 120px;
    }
}

/* Project Hover Spotlight */
.project-spotlight {
    --spot-x: 50%;
    --spot-y: 50%;
}

.project-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--spot-x) var(--spot-y), rgba(34, 211, 238, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.project-spotlight:hover::before {
    opacity: 1;
}

.project-spotlight > * {
    position: relative;
    z-index: 2;
}

/* Skills Constellation Canvas */
.skills-constellation-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;
    z-index: 0;
}

#skills .container > :not(.skills-constellation-canvas) {
    position: relative;
    z-index: 1;
}

/* AI Companion */
.ai-avatar-panel {
    position: relative;
    padding: 12px;
    text-align: center;
}

.ai-avatar-img {
    width: 320px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
    filter: drop-shadow(0 25px 50px rgba(34, 211, 238, 0.35));
    transform: translateZ(0);
    animation: ai-float-natural 6.8s ease-in-out infinite;
}

.ai-avatar-aura {
    position: absolute;
    inset: 10% 18%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 65%);
    filter: blur(20px);
    opacity: 0.9;
    z-index: -1;
    animation: ai-aura-pulse 4s ease-in-out infinite;
}

.ai-avatar-aura::after {
    content: '';
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.25), transparent 70%);
    filter: blur(26px);
    opacity: 0.8;
    animation: ai-aura-drift 6s ease-in-out infinite;
}

.ai-avatar-speech-line {
    position: absolute;
    top: 52%;
    right: -8px;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), rgba(34, 211, 238, 0.8));
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
    transform-origin: left center;
    animation: ai-speech-line 2.2s ease-in-out infinite;
}

.ai-avatar-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ai-avatar-subtitle {
    color: rgba(148, 163, 184, 0.9);
    margin-top: 6px;
    font-size: 0.95rem;
}

.ai-chat-panel {
    border-radius: 24px;
    background: rgba(10, 15, 26, 0.65);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 0;
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.1);
    margin-left: -20px;
    overflow: hidden;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(34, 211, 238, 0.08);
    border-bottom: 1px solid rgba(34, 211, 238, 0.15);
}

.ai-chat-header-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ai-chat-header-title {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.ai-chat-header-status {
    margin-left: auto;
    font-size: 0.75rem;
    color: #22d3ee;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-chat-panel .ai-chat-log,
.ai-chat-panel .ai-chat-input,
.ai-chat-panel .ai-suggestions {
    padding-left: 24px;
    padding-right: 24px;
}

.ai-chat-panel .ai-chat-log {
    padding-top: 16px;
}

.ai-chat-panel .ai-suggestions {
    padding-bottom: 20px;
}

.ai-chat-log {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
    margin-bottom: 16px;
}

.ai-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.ai-bubble-user {
    align-self: flex-end;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.ai-bubble-bot {
    align-self: flex-start;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.35);
}

.ai-typing {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.ai-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.8);
    animation: ai-typing 1s ease-in-out infinite;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ai-typing {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.ai-chat-input {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.ai-chat-input input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 9999px;
    padding: 10px 16px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.ai-chat-input button {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.85));
    color: #0f172a;
    border-radius: 9999px;
    padding: 10px 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ai-chat-input button:hover {
    transform: translateY(-1px);
}

.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-suggestion {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    border-radius: 9999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-suggestion:hover {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
}

@media (max-width: 767px) {
    .ai-avatar-img {
        width: 240px;
    }

    .ai-chat-log {
        max-height: 220px;
    }
}

@keyframes ai-aura-pulse {
    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes ai-speech-line {
    0%,
    100% {
        transform: scaleX(0.6);
        opacity: 0.5;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes ai-aura-drift {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(6px, -8px) scale(1.05);
    }
}

@keyframes ai-float-natural {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-0.6deg) scale(1);
    }

    25% {
        transform: translate3d(-3px, -6px, 0) rotate(0.4deg) scale(1.01);
    }

    50% {
        transform: translate3d(0, -12px, 0) rotate(-0.3deg) scale(1.015);
    }

    75% {
        transform: translate3d(3px, -6px, 0) rotate(0.5deg) scale(1.01);
    }
}

/* Time-Warp Intro */
.time-warp {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.12), rgba(3, 7, 18, 0.98) 60%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.time-warp.time-warp--show {
    opacity: 1;
}

.time-warp.time-warp--hide {
    opacity: 0;
}

.time-warp-core {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.8), transparent 65%);
    filter: blur(2px);
    animation: warp-pulse 2.5s ease-in-out infinite;
}

.time-warp-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.2);
    animation: warp-spin 3.5s linear infinite;
}

.time-warp-ring.ring-1 {
    width: 220px;
    height: 220px;
}

.time-warp-ring.ring-2 {
    width: 320px;
    height: 320px;
    animation-duration: 5s;
    border-color: rgba(192, 132, 252, 0.35);
}

.time-warp-ring.ring-3 {
    width: 420px;
    height: 420px;
    animation-duration: 6.5s;
    border-color: rgba(244, 114, 182, 0.25);
}

@keyframes warp-pulse {
    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.7;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

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

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



/* ============================================ */
/* ===== VERSE GATE — Stellar Title ===== */
/* ============================================ */
.verse-gate {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* dynamic viewport for mobile browsers */
    z-index: 9998;
    background: radial-gradient(ellipse at center, #0a1a2e 0%, #020817 50%, #000005 100%);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Sora', sans-serif;
    margin: 0;
    padding: 0;
}

.gate-door {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(180deg, #020617, #0a0f1f, #020617);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8);
    transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 50;
    pointer-events: none;
    transform: translateX(-100%);
}
.gate-right { transform: translateX(100%); }

/* Starfield */
.vg-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,0.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 45% 22%, rgba(186,230,253,0.9), transparent 60%),
        radial-gradient(1px 1px at 62% 84%, rgba(255,255,255,0.6), transparent 60%),
        radial-gradient(1px 1px at 78% 14%, rgba(192,132,252,0.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 88% 58%, rgba(34,211,238,0.85), transparent 60%),
        radial-gradient(1px 1px at 8% 88%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 95% 92%, rgba(255,255,255,0.7), transparent 60%),
        radial-gradient(1px 1px at 35% 5%, rgba(244,114,182,0.6), transparent 60%),
        radial-gradient(1px 1px at 55% 50%, rgba(255,255,255,0.4), transparent 60%),
        radial-gradient(1px 1px at 18% 45%, rgba(186,230,253,0.6), transparent 60%),
        radial-gradient(1px 1px at 70% 35%, rgba(255,255,255,0.7), transparent 60%),
        radial-gradient(1px 1px at 5% 30%, rgba(255,255,255,0.6), transparent 60%),
        radial-gradient(1px 1px at 92% 25%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 38% 90%, rgba(186,230,253,0.5), transparent 60%);
    animation: vg-twinkle 6s ease-in-out infinite;
}
@keyframes vg-twinkle { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }

/* Aurora glow background */
.vg-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(34, 211, 238, 0.18), transparent 70%),
        radial-gradient(ellipse 40% 25% at 30% 80%, rgba(192, 132, 252, 0.12), transparent 70%),
        radial-gradient(ellipse 40% 25% at 70% 20%, rgba(34, 211, 238, 0.1), transparent 70%);
}

.vg-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.7) 100%);
}

/* Subtle ambient rings */
.vg-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.12);
    pointer-events: none;
    z-index: 2;
    aspect-ratio: 1;
}
.vg-ring-1 {
    width: min(900px, 75vmin);
    margin-top: calc(min(900px, 75vmin) / -2);
    margin-left: calc(min(900px, 75vmin) / -2);
    border-style: dashed;
    border-color: rgba(34, 211, 238, 0.13);
    animation: vg-spin 80s linear infinite;
}
.vg-ring-2 {
    width: min(620px, 50vmin);
    margin-top: calc(min(620px, 50vmin) / -2);
    margin-left: calc(min(620px, 50vmin) / -2);
    border-color: rgba(192, 132, 252, 0.16);
    animation: vg-spin 50s linear infinite reverse;
}
.vg-ring-1::before,
.vg-ring-2::before {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--verse-accent-cyan);
    box-shadow: 0 0 14px rgba(34, 211, 238, 1);
    top: -4px; left: 50%;
    transform: translateX(-50%);
}
.vg-ring-2::before {
    background: var(--verse-accent-purple);
    box-shadow: 0 0 14px rgba(192, 132, 252, 1);
}
@keyframes vg-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Center clickable stage */
.vg-stage {
    position: relative;
    z-index: 10;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: clamp(30px, 6vh, 70px) clamp(16px, 4vw, 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    color: inherit;
    font-family: inherit;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
    max-width: 100vw;
    box-sizing: border-box;
}
.vg-stage:hover { transform: scale(1.02); }

/* Aura behind title */
.vg-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(820px, 88vw);
    height: min(360px, 50vh);
    transform: translate(-50%, -65%);
    background: radial-gradient(ellipse at center,
        rgba(34, 211, 238, 0.32) 0%,
        rgba(192, 132, 252, 0.18) 30%,
        transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
    animation: vg-aura-pulse 5s ease-in-out infinite;
}
@keyframes vg-aura-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -65%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -65%) scale(1.08); }
}

/* Title — fluid sizing using vmin so it scales by SHORTER axis (won't overflow on narrow viewports) */
.vg-title {
    font-size: clamp(1.6rem, 8.5vmin, 5.5rem);
    font-weight: 800;
    letter-spacing: clamp(2px, 1.1vmin, 12px);
    color: #fff;
    margin: 0 0 clamp(20px, 4vh, 40px);
    line-height: 1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 92vw;
    text-shadow:
        0 0 28px rgba(34, 211, 238, 0.55),
        0 0 60px rgba(192, 132, 252, 0.35),
        0 0 100px rgba(34, 211, 238, 0.2);
}

.vg-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: vg-letter-in 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.vg-letter-space { display: inline-block; width: 0.4em; }
.vg-letter:nth-child(1)  { animation-delay: 0.20s; }
.vg-letter:nth-child(2)  { animation-delay: 0.27s; }
.vg-letter:nth-child(3)  { animation-delay: 0.34s; }
.vg-letter:nth-child(4)  { animation-delay: 0.41s; }
.vg-letter:nth-child(5)  { animation-delay: 0.48s; }
.vg-letter:nth-child(6)  { animation-delay: 0.55s; }
.vg-letter:nth-child(7)  { animation-delay: 0.62s; }
.vg-letter:nth-child(8)  { animation-delay: 0.69s; }
.vg-letter:nth-child(10) { animation-delay: 0.80s; }
.vg-letter:nth-child(11) { animation-delay: 0.87s; }
@keyframes vg-letter-in {
    to { opacity: 1; transform: translateY(0); }
}

/* Line + ENTER */
.vg-line {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    opacity: 0;
    animation: vg-fade-in 0.8s ease-out 1.1s forwards;
}
.vg-line-bar {
    display: block;
    width: clamp(40px, 10vw, 110px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.85));
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}
.vg-line-bar:last-child {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.85), transparent);
}
.vg-enter-text {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 6px;
    color: rgba(186, 230, 253, 0.95);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
    font-weight: 700;
}

.vg-arrow {
    color: rgba(34, 211, 238, 0.85);
    font-size: 0.95rem;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
    opacity: 0;
    animation:
        vg-fade-in 0.8s ease-out 1.4s forwards,
        vg-arrow-bounce 2s ease-in-out 2.4s infinite;
}
@keyframes vg-fade-in { to { opacity: 1; } }
@keyframes vg-arrow-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%      { transform: translateY(6px); opacity: 1; }
}

.vg-stage:hover .vg-aura {
    animation-duration: 2.5s;
}
.vg-stage:hover .vg-title {
    text-shadow:
        0 0 36px rgba(34, 211, 238, 0.75),
        0 0 80px rgba(192, 132, 252, 0.5),
        0 0 130px rgba(34, 211, 238, 0.3);
}

/* Open animation */
.verse-gate.gate-open { transition: opacity 1s ease 0.3s; }
.verse-gate.gate-open .gate-left  { transform: translateX(-100%); }
.verse-gate.gate-open .gate-right { transform: translateX(100%); }
.verse-gate.gate-open .vg-stage {
    transform: scale(1.4);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.6, 0, 0.4, 1), opacity 0.7s ease 0.2s;
}
.verse-gate.gate-open .vg-stars,
.verse-gate.gate-open .vg-aurora,
.verse-gate.gate-open .vg-ring {
    opacity: 0;
    transition: opacity 0.6s ease;
}

@media (max-width: 767px) {
    .vg-title {
        font-size: clamp(1.4rem, 9vw, 3rem);
        letter-spacing: clamp(2px, 0.6vw, 6px);
        margin-bottom: 22px;
    }
    .vg-line-bar { width: 30px; }
    .vg-enter-text { font-size: 0.6rem; letter-spacing: 4px; }
    .vg-line { gap: 12px; }
}

@media (max-aspect-ratio: 1/1) {
    /* Portrait — title can scale with width comfortably */
    .vg-title { font-size: clamp(1.6rem, 9vw, 5rem); }
}

/* AI Signal HUD */
.ai-hud {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: rgba(10, 15, 26, 0.75);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 14px;
    padding: 12px 14px;
    z-index: 55;
    min-width: 150px;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.15);
}

.hud-title {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: rgba(148, 163, 184, 0.85);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #e2e8f0;
}

.hud-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--verse-accent-cyan);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
    animation: hud-blink 1.6s ease-in-out infinite;
}

.hud-bars {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.hud-bars span {
    width: 6px;
    height: 16px;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.9), rgba(34, 211, 238, 0.2));
    animation: hud-bars 1.4s ease-in-out infinite;
}

.hud-bars span:nth-child(2) {
    animation-delay: -0.2s;
}

.hud-bars span:nth-child(3) {
    animation-delay: -0.4s;
}

.hud-bars span:nth-child(4) {
    animation-delay: -0.6s;
}

.hud-bars span:nth-child(5) {
    animation-delay: -0.8s;
}

@keyframes hud-blink {
    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes hud-bars {
    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

@media (max-width: 767px) {
    .ai-hud {
        right: 12px;
        bottom: 14px;
        transform: scale(0.9);
    }
}

/* Resume Hologram Tooltip */
.resume-wrap {
    position: relative;
}

.resume-tooltip {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    padding: 6px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: rgba(226, 232, 240, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
}

.resume-hud-link:hover + .resume-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Project DNA Strip */
.project-dna {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-direction: column;
}

.dna-track {
    display: flex;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(15, 23, 42, 0.5);
}

.dna-track span {
    width: 8px;
    height: 24px;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.9), rgba(192, 132, 252, 0.2));
    animation: dna-flow 1.6s ease-in-out infinite;
}

.dna-track span:nth-child(2) {
    animation-delay: -0.2s;
}

.dna-track span:nth-child(3) {
    animation-delay: -0.4s;
}

.dna-track span:nth-child(4) {
    animation-delay: -0.6s;
}

.dna-track span:nth-child(5) {
    animation-delay: -0.8s;
}

.dna-track span:nth-child(6) {
    animation-delay: -1s;
}

.dna-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(148, 163, 184, 0.8);
    text-transform: uppercase;
}

@keyframes dna-flow {
    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1.1);
        opacity: 1;
    }
}

/* Parallax Depth */
.parallax-item {
    transform: translateY(var(--parallax-y, 0));
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Neural Lattice Background */
.neural-lattice {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(120deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px),
        linear-gradient(240deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(192, 132, 252, 0.08), transparent 45%);
    background-size: 80px 80px, 80px 80px, 100% 100%;
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: lattice-drift 32s linear infinite;
}

@keyframes lattice-drift {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 300px 160px, -260px -200px, 0 0;
    }
}

@media (max-width: 767px) {
    .neural-lattice {
        opacity: 0.28;
    }
}

/* ===== WORK EXPERIENCE - Redesigned Timeline ===== */
.exp-timeline {
    position: relative;
    padding: 0 20px;
}

.exp-timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        var(--verse-accent-cyan),
        var(--verse-accent-purple) 50%,
        rgba(148, 163, 184, 0.15));
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
}

@media (min-width: 768px) {
    .exp-timeline {
        padding: 0;
    }

    .exp-timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Card Wrap */
.exp-card-wrap {
    position: relative;
    margin-bottom: 60px;
    padding-left: 50px;
}

@media (min-width: 768px) {
    .exp-card-wrap {
        padding-left: 0;
        width: 50%;
    }

    .exp-card-right {
        margin-left: 50%;
        padding-left: 50px;
    }

    .exp-card-left {
        padding-right: 50px;
        text-align: left;
    }
}

/* Timeline Node */
.exp-node {
    position: absolute;
    left: 11px;
    top: 32px;
    width: 20px;
    height: 20px;
    z-index: 5;
}

@media (min-width: 768px) {
    .exp-card-right .exp-node {
        left: -10px;
    }

    .exp-card-left .exp-node {
        right: -10px;
        left: auto;
    }
}

.exp-node-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.4);
    animation: exp-ring-pulse 2.5s ease-in-out infinite;
}

.exp-node-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--verse-bg);
    border: 2px solid rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.exp-node-active {
    background: var(--verse-accent-cyan);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
    animation: exp-node-glow 2s ease-in-out infinite;
}

@keyframes exp-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 0; }
}

@keyframes exp-node-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(34, 211, 238, 0.4); }
    50% { box-shadow: 0 0 25px rgba(34, 211, 238, 0.8); }
}

/* Experience Card */
.exp-card {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.exp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x-card, 50%) var(--mouse-y-card, 50%),
        rgba(34, 211, 238, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

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

.exp-card:hover {
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(34, 211, 238, 0.05);
}

/* Current Position Highlight */
.exp-card-current {
    border-color: rgba(34, 211, 238, 0.25);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.08);
}

.exp-card-current::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--verse-accent-cyan), var(--verse-accent-purple), var(--verse-accent-cyan));
    background-size: 200% 100%;
    animation: exp-current-border 3s linear infinite;
}

@keyframes exp-current-border {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Card Header */
.exp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* New meta row — badge + duration + number */
.exp-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.exp-card-meta .exp-card-number {
    margin-left: auto;
}

.exp-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(186, 230, 253, 0.85);
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 9999px;
    text-transform: uppercase;
}
.exp-duration i { font-size: 0.65rem; opacity: 0.7; }

.exp-card-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    font-family: 'Sora', sans-serif;
    line-height: 1;
    user-select: none;
}

/* Badges */
.exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.exp-badge-current {
    background: rgba(34, 211, 238, 0.1);
    color: var(--verse-accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.exp-badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--verse-accent-cyan);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
    animation: hud-blink 1.4s ease-in-out infinite;
}

.exp-badge-green {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.exp-badge-blue {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.exp-badge-purple {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.25);
}

/* Company */
.exp-company {
    display: flex;
    align-items: center;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 6px;
}

/* Role title — replaces inline classes */
.exp-role {
    font-family: 'Sora', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    margin-top: 16px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .exp-role { font-size: 1.85rem; }
}

/* Company row — icon + name + sector */
.exp-company-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}
.exp-company-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--verse-accent-cyan);
    font-size: 0.85rem;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.1);
}
.exp-company-name {
    color: rgba(226, 232, 240, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}
.exp-company-sector {
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.72rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 4px 0 0 0;
}

/* Divider */
.exp-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.45), rgba(192, 132, 252, 0.25), transparent);
    margin: 18px 0;
    border-radius: 9999px;
    position: relative;
}
.exp-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 5px;
    background: var(--verse-accent-cyan);
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
}

/* Details List */
.exp-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    color: rgba(203, 213, 225, 0.85);
    line-height: 1.7;
}

.exp-detail-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--verse-accent-cyan);
    margin-top: 2px;
}

/* Tech Tags */
.exp-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.exp-tech-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(186, 230, 253, 0.85);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.exp-tech-tags span i {
    color: var(--verse-accent-cyan);
    font-size: 0.7rem;
    opacity: 0.85;
}

.exp-tech-tags span:hover {
    border-color: rgba(34, 211, 238, 0.45);
    color: #fff;
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.18);
    transform: translateY(-1px);
}
.exp-tech-tags span:hover i { opacity: 1; }

/* Responsive */
@media (max-width: 767px) {
    .exp-card {
        padding: 24px;
    }

    .exp-card-number {
        font-size: 2rem;
    }

    .exp-card-wrap {
        margin-bottom: 40px;
    }
}

/* ===== SKILLS - AI-Themed Redesign ===== */

/* Hero Card (Applied AI) */
.skills-hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
    border: 1px solid rgba(34, 211, 238, 0.2);
    transition: all 0.4s ease;
}

.skills-hero-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.08);
}

.skills-hero-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

.skills-hero-inner {
    position: relative;
    padding: 36px 40px;
    z-index: 1;
}

.skills-hero-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skills-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(192, 132, 252, 0.1));
    border: 1px solid rgba(34, 211, 238, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--verse-accent-cyan);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.15);
    flex-shrink: 0;
}

.skills-hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Skill Chips (Hero) */
.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.skill-chip i {
    font-size: 0.75rem;
    color: var(--verse-accent-cyan);
}

.skill-chip-highlight {
    background: rgba(34, 211, 238, 0.06);
    border-color: rgba(34, 211, 238, 0.18);
}

.skill-chip-highlight:hover {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
    transform: translateY(-2px);
}

/* Skill Cards (Grid) */
.skill-card {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.skill-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

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

.skill-accent-cyan { background: linear-gradient(90deg, var(--verse-accent-cyan), transparent); }
.skill-accent-purple { background: linear-gradient(90deg, var(--verse-accent-purple), transparent); }
.skill-accent-pink { background: linear-gradient(90deg, var(--verse-accent-pink), transparent); }
.skill-accent-yellow { background: linear-gradient(90deg, #facc15, transparent); }
.skill-accent-green { background: linear-gradient(90deg, #4ade80, transparent); }
.skill-accent-blue { background: linear-gradient(90deg, #60a5fa, transparent); }
.skill-accent-orange { background: linear-gradient(90deg, #fb923c, transparent); }

.skill-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.skill-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
    font-family: 'Sora', sans-serif;
}

.skill-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 767px) {
    .skills-hero-inner {
        padding: 24px;
    }

    .skills-hero-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .skill-card {
        padding: 22px;
    }
}

/* --- Mission Quote Section --- */
.mission-quote-card {
    position: relative;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(34, 211, 238, 0.12);
    border-radius: 24px;
    backdrop-filter: blur(8px);
}

.mission-quote-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), transparent 50%, rgba(192, 132, 252, 0.1));
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

.mission-quote-icon {
    font-size: 2.5rem;
    color: rgba(34, 211, 238, 0.3);
    margin-bottom: 20px;
}

.mission-quote-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(226, 232, 240, 0.9);
    font-style: italic;
}

.mission-quote-author {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--verse-accent-cyan);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
}

.mission-quote-dash {
    width: 32px;
    height: 2px;
    background: var(--verse-accent-cyan);
    display: inline-block;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--verse-accent-cyan);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    transform: translateY(-3px);
}

/* ========================================== */
/* === HERO ENHANCEMENTS === */
/* ========================================== */

/* --- Status Pill --- */
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: rgba(134, 239, 172, 0.95);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
    animation: pill-glow 3s ease-in-out infinite;
}

.hero-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9), 0 0 20px rgba(34, 197, 94, 0.5);
    animation: status-pulse 1.6s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes pill-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.15); }
    50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.3); }
}

/* --- Achievement Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
    padding: 18px 26px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(34, 211, 238, 0.06);
    position: relative;
    overflow: hidden;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 70px;
}

.hero-stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.hero-stat-label {
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(148, 163, 184, 0.85);
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.4), transparent);
}

/* --- Holographic Profile System --- */
.profile-holo-system {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating Orbit Rings */
.profile-orbit-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.orbit-ring-1 {
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(34, 211, 238, 0.3);
    animation: orbit-spin 30s linear infinite;
}

.orbit-ring-1::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--verse-accent-cyan);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.95);
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-ring-2 {
    width: 88%;
    height: 88%;
    border: 1px dotted rgba(192, 132, 252, 0.28);
    border-width: 2px;
    animation: orbit-spin 22s linear infinite reverse;
}

.orbit-ring-2::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--verse-accent-purple);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.9);
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-ring-3 {
    width: 76%;
    height: 76%;
    border: 1px solid rgba(244, 114, 182, 0.18);
    animation: orbit-spin 16s linear infinite;
}

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

/* Floating Tech Icons (fixed positions, gentle bob) */
.profile-orbit-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: var(--verse-accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(34, 211, 238, 0.25);
    backdrop-filter: blur(8px);
    z-index: 5;
    animation: orbit-icon-float 5s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.profile-orbit-icon:hover {
    transform: scale(1.18) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 28px rgba(34, 211, 238, 0.6);
}

@keyframes orbit-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pos-1 { top: -4%;  left: 50%; transform: translateX(-50%); animation-delay: 0s;   }
.pos-2 { top: 12%;  right: 4%;  animation-delay: 0.6s; color: var(--verse-accent-purple); border-color: rgba(192, 132, 252, 0.45); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(192, 132, 252, 0.3); }
.pos-3 { top: 50%;  right: -4%; transform: translateY(-50%); animation-delay: 1.2s; }
.pos-4 { bottom: 12%; right: 4%; animation-delay: 1.8s; color: var(--verse-accent-pink); border-color: rgba(244, 114, 182, 0.45); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(244, 114, 182, 0.3); }
.pos-5 { bottom: -4%; left: 50%; transform: translateX(-50%); animation-delay: 2.4s; }
.pos-6 { bottom: 12%; left: 4%;  animation-delay: 3s;   color: var(--verse-accent-purple); border-color: rgba(192, 132, 252, 0.45); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(192, 132, 252, 0.3); }
.pos-7 { top: 50%;  left: -4%;  transform: translateY(-50%); animation-delay: 3.6s; }
.pos-8 { top: 12%;  left: 4%;   animation-delay: 4.2s; color: var(--verse-accent-pink); border-color: rgba(244, 114, 182, 0.45); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(244, 114, 182, 0.3); }

/* Outer rotating ring — dashed cyan */
.profile-ring-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
    border-radius: 50%;
    border: 1px dashed rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.15), inset 0 0 30px rgba(34, 211, 238, 0.08);
    animation: profile-spin 30s linear infinite;
    pointer-events: none;
    z-index: 2;
}
.profile-ring-outer::before {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--verse-accent-cyan);
    box-shadow: 0 0 18px rgba(34, 211, 238, 1), 0 0 32px rgba(34, 211, 238, 0.6);
    top: -5px; left: 50%;
    transform: translateX(-50%);
}

/* Mid rotating ring — solid purple */
.profile-ring-mid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 330px;
    height: 330px;
    margin: -165px 0 0 -165px;
    border-radius: 50%;
    border: 1px solid rgba(192, 132, 252, 0.4);
    box-shadow: 0 0 25px rgba(192, 132, 252, 0.2), inset 0 0 25px rgba(192, 132, 252, 0.08);
    animation: profile-spin 22s linear infinite reverse;
    pointer-events: none;
    z-index: 2;
}
.profile-ring-mid::before {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--verse-accent-purple);
    box-shadow: 0 0 16px rgba(192, 132, 252, 1), 0 0 28px rgba(192, 132, 252, 0.6);
    top: -4px; left: 50%;
    transform: translateX(-50%);
}

@keyframes profile-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Conic gradient halo — sweeping light around image */
.profile-conic-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(34, 211, 238, 0.55) 60deg,
        transparent 130deg,
        rgba(192, 132, 252, 0.45) 200deg,
        transparent 280deg,
        rgba(34, 211, 238, 0.35) 340deg,
        transparent 360deg
    );
    filter: blur(18px);
    mask-image: radial-gradient(circle, transparent 42%, black 50%, black 70%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle, transparent 42%, black 50%, black 70%, transparent 85%);
    animation: profile-conic-spin 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes profile-conic-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Holo Frame */
.profile-holo-frame {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.profile-frame-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.45), rgba(192, 132, 252, 0.22) 40%, transparent 72%);
    filter: blur(35px);
    animation: profile-glow-pulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes profile-glow-pulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.profile-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(186, 230, 253, 0.55);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.3),
        0 0 0 6px rgba(34, 211, 238, 0.08),
        0 0 40px rgba(34, 211, 238, 0.5),
        0 0 80px rgba(192, 132, 252, 0.25),
        inset 0 0 30px rgba(0, 0, 0, 0.4);
    background: #0f172a;
    animation: profile-float-natural 6s ease-in-out infinite;
}

.profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

@keyframes profile-float-natural {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Scanning line effect */
.profile-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), transparent);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.9);
    animation: profile-scan 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes profile-scan {
    0%, 100% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(280px); opacity: 0; }
}

.profile-overlay-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.4;
    z-index: 1;
}


/* --- Scroll Cue --- */
.hero-scroll-cue {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(148, 163, 184, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    z-index: 5;
}

.hero-scroll-cue:hover {
    color: var(--verse-accent-cyan);
}

.scroll-cue-text {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-cue-line {
    width: 1px;
    height: 38px;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.6));
}

.scroll-cue-arrow {
    color: var(--verse-accent-cyan);
    font-size: 0.85rem;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
    animation: scroll-arrow-bounce 2s ease-in-out infinite;
}

@keyframes scroll-arrow-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* --- Hero Responsive --- */
@media (max-width: 1024px) {
    .profile-holo-system { width: 360px; height: 360px; }
    .profile-holo-frame { width: 240px; height: 240px; }
    .profile-ring-outer { width: 330px; height: 330px; margin: -165px 0 0 -165px; }
    .profile-ring-mid   { width: 285px; height: 285px; margin: -142px 0 0 -142px; }
    .profile-conic-halo { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
}

@media (max-width: 767px) {
    .profile-holo-system { width: 300px; height: 300px; }
    .profile-holo-frame { width: 200px; height: 200px; }
    .profile-ring-outer { width: 270px; height: 270px; margin: -135px 0 0 -135px; }
    .profile-ring-mid   { width: 235px; height: 235px; margin: -117px 0 0 -117px; }
    .profile-conic-halo { width: 215px; height: 215px; margin: -107px 0 0 -107px; }
    .hero-scroll-cue { display: none; }
}
