/* 
   THE COSMIC CV - Main Stylesheet
   Sci-Fi HUD Theme
   Design System:
   - Colors: Cyan (#00f3ff), Gold (#ffaa00), Deep Space (#000005)
   - Fonts: 'Cinzel' (Headers), 'Courier Prime' (Data/Text)
*/

:root {
    --color-bg: #000005;
    --color-cyan: #00f3ff;
    --color-cyan-dim: rgba(0, 243, 255, 0.3);
    --color-gold: #ffaa00;
    --font-heading: 'Cinzel', serif;
    --font-mono: 'Courier Prime', monospace;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: #ffffff;
    font-family: var(--font-mono);
    overflow-x: hidden;
}

#cosmic-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* ---------------------------------------------------------
   PLANET LABELS
   --------------------------------------------------------- */
.planet-labels-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.planet-label {
    position: absolute;
    transform: translate(-50%, -100%);
    color: var(--color-cyan);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.6), 0 0 2px #000;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.planet-label[data-planet="sun"] {
    color: var(--color-gold);
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.6), 0 0 2px #000;
}

/* ---------------------------------------------------------
   LOADER
   --------------------------------------------------------- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader--hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-text {
    color: var(--color-cyan);
    font-size: 0.8rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: #333;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 50%);
    background: var(--color-cyan);
    transition: width 0.3s ease;
    /* Remove animation when we have real progress */
}

.loader-bar:not(.loader-bar--progress)::after {
    animation: loadBar 2s infinite;
}

@keyframes loadBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Progress-based loader bar (can be controlled via JS) */
.loader-bar--progress {
    width: var(--progress, 0%);
    transition: width 0.3s ease;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ---------------------------------------------------------
   SCROLL LAYOUT - PAGED SNAP SCROLL
   --------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

.scroll-container {
    position: relative;
    z-index: 10;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Smooth touch on iOS */
}

/* Hide scrollbar for cleaner look, but keep functionality */
.scroll-container::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.page {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

/* Planet landing pages (card 0) - transparent to show 3D */
.page--planet {
    background: transparent;
}

/* Card pages - semi-transparent for readability */
.page--card {
    background: linear-gradient(135deg, rgba(0, 5, 15, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.page--welcome {
    background: transparent;
}

.page--end {
    background: rgba(10, 5, 0, 0.9);
}

/* Legacy .scene support (if any old references remain) */
.scene {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ---------------------------------------------------------
   HUD FRAMEWORK
   --------------------------------------------------------- */
.hud-frame {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    /* Styles are handled by dynamic components mostly */
}

.hud-frame--hero {
    text-align: center;
    background: transparent;
}

.hud-line--top {
    width: 2px;
    height: 50px;
    background: var(--color-cyan);
    margin: 0 auto 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4vw;
    font-weight: 700;
    letter-spacing: 10px;
    color: #fff;
    margin: 0 0 20px;
    text-shadow: 0 0 20px var(--color-cyan-dim);
}

.hero-subtitle {
    color: #8899aa;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.scroll-indicator {
    margin-top: 50px;
    color: var(--color-cyan);
    font-size: 0.8rem;
    letter-spacing: 4px;
    animation: bounce 2s infinite;
    /* Button reset styles */
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: color 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--color-gold);
    transform: scale(1.1);
}

.scroll-indicator:focus {
    outline: 1px solid var(--color-cyan);
    outline-offset: 4px;
}

@keyframes bounce {

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

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

/* ---------------------------------------------------------
   DYNAMIC HUD COMPONENTS (3-PANEL SYSTEM)
   --------------------------------------------------------- */
.hud-card-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    width: 90vw;
    max-width: 1400px;
    pointer-events: auto;
    opacity: 0;
    /* Animated in by GSAP */
}

.glass-panel {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.hud-panel--center {
    border-color: rgba(255, 200, 100, 0.4);
    background: rgba(20, 25, 45, 0.8);
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    /* Pop out */
    transform: scale(1.05);
}

.glow-border {
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.2);
}

.panel-header {
    font-family: 'Cinzel', serif;
    color: var(--color-cyan);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 1.2rem;
}

/* LEFT PANEL: SCIENCE */
.stat-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.stat-row label {
    color: #8899aa;
}

.stat-row span {
    color: #fff;
    font-weight: bold;
}

/* CENTER PANEL: HERO */
.hero-archetype {
    color: var(--color-gold);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-relation {
    font-family: 'Courier Prime', monospace;
    color: #8899aa;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    border: 1px solid #445566;
    padding: 2px 8px;
    border-radius: 4px;
}

.hero-name {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #fff;
    margin: 0 0 20px 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    line-height: 1.1;
}

.hero-bio {
    font-family: 'Courier Prime', monospace;
    font-style: italic;
    color: #ccddff;
    line-height: 1.6;
    max-width: 90%;
}

.time-counter {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border: 1px solid var(--color-cyan);
    font-family: 'Courier Prime', monospace;
    text-align: center;
    width: 100%;
}

.time-row {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
}

.time-row.sub {
    font-size: 0.9rem;
    color: var(--color-cyan);
    letter-spacing: 1px;
}

.earth-row {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #8899aa;
    text-transform: uppercase;
}

.highlight {
    color: var(--color-gold);
}

/* RIGHT PANEL: CV */
.panel-scroll {
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 10px;
}

/* Scrollbar */
.panel-scroll::-webkit-scrollbar {
    width: 4px;
}

.panel-scroll::-webkit-scrollbar-thumb {
    background: var(--color-cyan);
    border-radius: 2px;
}

.panel-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.prof-role {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.3rem;
    margin-top: 0;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.skill-tags span {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 4px 8px;
    font-size: 0.75rem;
    font-family: 'Courier Prime', monospace;
    color: var(--color-cyan);
    border-radius: 4px;
}

.skill-category {
    margin-bottom: 10px;
    font-size: 0.8rem;
    border-left: 2px solid var(--color-cyan);
    padding-left: 10px;
}

.project-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-head strong {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
}

.project-desc {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    color: #aaccff;
    line-height: 1.5;
    margin: 8px 0;
}

.project-stack {
    font-size: 0.7rem;
    color: #667788;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* History Item */
.history-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--color-gold);
}

.job-role {
    color: #fff;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
}

.job-company {
    color: var(--color-gold);
    font-size: 0.9rem;
    margin-top: 5px;
}

.job-period {
    display: block;
    color: #666;
    font-size: 0.75rem;
    margin-top: 3px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .hud-card-container {
        grid-template-columns: 1fr;
        height: auto;
        width: 95vw;
        gap: 30px;
    }

    .hud-panel {
        min-height: auto;
    }

    .hud-panel--center {
        order: -1;
        transform: none;
        margin-bottom: 20px;
    }

    .hero-name {
        font-size: 2rem;
    }
}

/* Contact Section */
.scene--contact {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-frame {
    text-align: center;
    padding: 50px;
    border: 1px solid var(--color-gold);
    background: rgba(10, 5, 0, 0.8);
}

.contact-links {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.hud-btn {
    padding: 10px 30px;
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    text-decoration: none;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.hud-btn:hover {
    background: var(--color-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--color-cyan);
}

/* ---------------------------------------------------------
   HOLOCARD COMPONENT (New 3-Panel System)
   --------------------------------------------------------- */
.holocard-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.holocard-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Scroll Pass-through: Make default container ignore pointers */
.holocard-wrapper .holocard-stack,
.holo-card,
.holo-card .card-content {
    pointer-events: none !important;
}

/* Allow interaction with specific elements */
.holo-card a,
.holo-card button,
.holocard-next-btn {
    pointer-events: auto !important;
    cursor: pointer;
}

.holocard-wrapper.hidden .holocard-content {
    transform: translateY(100vh);
    /* Start off-screen (bottom) */
}

.holocard-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

.holocard-wrapper.visible .holocard-content {
    transform: translateY(0);
    /* Fly into position */
}

.holocard-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.holocard-stack {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Changed from auto to none for scroll pass-through */
    display: flex;
    justify-content: center;
    align-items: center;
}

.holo-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 350px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, filter;
    cursor: grab;
    /* Cosmic enhancement */
    border-image: linear-gradient(45deg, rgba(0, 243, 255, 0.3), rgba(255, 170, 0, 0.3)) 1;
}

.holo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color, #00f3ff);
    box-shadow: 0 0 20px var(--accent-color);
}

.holo-card.dragging {
    cursor: grabbing;
    transition: none;
}

.holo-card .card-header {
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.holo-card .card-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin: 0;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.holo-card .card-content {
    flex: 1;
    overflow: hidden;
    /* Prevent internal scrolling */
    padding-right: 0;
    /* Remove padding reserved for scrollbar */
    display: flex;
    flex-direction: column;
}

.holocard-next-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: cyan;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.holocard-next-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: scale(1.1);
}

.holo-card .card-content::-webkit-scrollbar {
    width: 4px;
}

.holo-card .card-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

.holo-card .card-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

/* Insights Card Styles */
.insights-content {
    padding: 16px 0;
}

.insights-content h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.project-highlight,
.podcast-highlight {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.project-highlight:hover,
.podcast-highlight:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.project-highlight strong {
    color: #fff;
    font-family: 'Cinzel', serif;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.project-highlight p {
    color: #aaccff;
    font-family: 'Courier Prime', monospace;
    margin: 8px 0;
    line-height: 1.5;
}

.project-highlight small {
    color: #667788;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.pod-title {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.pod-context {
    color: #8899aa;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.center-panel {
    transform: scale(1.05);
    background: rgba(15, 20, 40, 0.85);
    border: 1px solid var(--accent-color);
    z-index: 10;
}

.panel-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.panel-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin: 0;
    color: var(--accent-color);
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.panel-header h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    color: #8899aa;
    margin: 0;
    letter-spacing: 2px;
}

.subtitle {
    text-align: center;
    color: #fff;
    font-family: 'Courier Prime', monospace;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: 5px;
}

.stat-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.stat-label {
    color: #8899aa;
}

.stat-value {
    color: var(--accent-color);
    font-weight: bold;
}

.planet-wireframe-placeholder {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.holo-circle {
    width: 150px;
    height: 150px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-color) inset, 0 0 20px var(--accent-color);
    animation: pulseObj 4s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holo-circle-text {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 0 10px var(--accent-color);
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

/* Fallback Circle for when WebGL is not available */
.fallback-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseObj 4s infinite ease-in-out;
    overflow: hidden;
}

.fallback-sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.fallback-texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease;
}

.fallback-circle-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    position: relative;
}

.fallback-circle-symbol {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.fallback-circle-label {
    font-size: 0.8rem;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.personal-narrative {
    text-align: center;
    margin-top: 20px;
}

.personal-narrative p {
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-style: italic;
}

.holo-quote {
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin: 20px 0;
    padding: 0 20px;
    border-left: 3px solid var(--accent-color);
}

.professional-content {
    overflow-y: auto;
    padding-right: 10px;
}

.professional-content::-webkit-scrollbar {
    width: 4px;
}

.professional-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

.podcast-list ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.podcast-link {
    display: block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.podcast-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.pod-title {
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.pod-context {
    display: block;
    color: #8899aa;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Desktop Card Stack Styles */
@media (min-width: 1025px) {
    .holocard-stack {
        position: relative;
        width: 400px;
        height: 600px;
    }

    .holo-card {
        position: absolute;
        width: 100%;
        height: 100%;
        max-width: 400px;
    }
}

@media (max-width: 1024px) {
    .holocard-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 100;
        overflow: hidden;
    }

    .holocard-stack {
        width: 100vw;
        height: 100vh;
        overflow-y: scroll;
        scroll-behavior: smooth;
        /* Enable Scroll Snap */
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .holocard-stack::-webkit-scrollbar {
        display: none;
    }

    .holo-card {
        position: relative;
        width: 100vw;
        min-height: 100vh;
        /* Full viewport height for snap */
        margin-bottom: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        /* Center content vertically and add padding */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 100px 20px 120px 20px;
        /* Space for header and button */
        box-sizing: border-box;
        /* Reset stack positioning for mobile */
        transform: none !important;
        /* Ensure proper spacing */
        margin: 0;
        /* Full width, no borders or shadows that might cause issues */
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        background: rgba(0, 0, 5, 0.95);
    }

    .holo-card .card-header {
        margin-bottom: 30px;
        text-align: center;
        width: 100%;
        max-width: 400px;
    }

    .holo-card .card-header h2 {
        font-size: 2rem;
        margin: 0 0 10px 0;
    }

    .holo-card .card-content {
        width: 100%;
        max-width: 400px;
        flex: 1;
        overflow: hidden;
        /* Prevent internal scrolling */
        padding: 0 10px;
        display: flex;
        flex-direction: column;
    }

    .holocard-next-btn {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        background: rgba(10, 15, 30, 0.95);
        border: 2px solid var(--accent-color);
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
        backdrop-filter: blur(10px);
        /* Make it more prominent on mobile */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .holocard-next-btn:hover {
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
    }
}

/* ---------------------------------------------------------
   HOLOCARD NEXT BUTTON
   --------------------------------------------------------- */
.holocard-next-btn {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 15, 30, 0.8);
    border: 2px solid var(--color-cyan);
    color: var(--color-cyan);
    font-size: 1.5rem;
    font-family: var(--font-mono);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.holocard-next-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.holocard-next-btn:hover {
    background: var(--color-cyan);
    color: #000;
    box-shadow: 0 0 25px var(--color-cyan);
    transform: scale(1.1);
}

.holocard-next-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.3);
}

.holocard-next-btn:active {
    transform: scale(0.95);
}

.holocard-next-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
    filter: grayscale(1);
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

@keyframes pulseObj {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }

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