/* Custom Styles for Strategic Mentorship Landing Page */

:root {
    --menthol: #2dd4bf;
    --navy-deep: #020617;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

/* ─── Custom Scrollbar: menthol gradient thumb ─── */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #1e293b, rgba(45, 212, 191, 0.4));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #334155, rgba(45, 212, 191, 0.7));
}

/* ─── Text Selection: readable light-on-menthol ─── */
::selection {
    background-color: rgba(45, 212, 191, 0.35);
    color: #e2e8f0;
}

/* Typography Enhancements */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

/* Glassmorphism utility */
.glass {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── Scroll Progress Bar ─── */
#scroll-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, rgba(45, 212, 191, 0.3), #2dd4bf);
    z-index: 9999;
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
    pointer-events: none;
    transition: width 0.08s linear;
}

/* ─── Product Card: Magnetic Light-Source Hover ─── */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* The radial glow follows the cursor via CSS vars --mouse-x / --mouse-y set by JS */
.product-card::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.13) 0%, transparent 65%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.45s ease, opacity 0.45s ease;
    pointer-events: none;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    opacity: 0;
    z-index: 0;
}

.product-card:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Ensure all card children sit above the glow layer */
.product-card>* {
    position: relative;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Menthol Glow Animation */
@keyframes menthol-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(45, 212, 191, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
    }
}

.pulse-primary {
    animation: menthol-pulse 2s infinite;
}

/* Language & UI States */
.lang-active {
    background-color: var(--menthol);
    color: var(--navy-deep);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
}

.expanded {
    max-height: 2000px !important;
    opacity: 1 !important;
}

.card-expandable {
    border: 1px dashed rgba(45, 212, 191, 0.4);
    background: linear-gradient(to bottom right, rgba(45, 212, 191, 0.05), transparent);
    cursor: pointer;
}

.card-expandable:hover {
    border-style: solid;
    border-color: var(--menthol);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.2);
}

/* ─── Keyboard Focus Ring (a11y) ─── */
:focus-visible {
    outline: 2px solid rgba(45, 212, 191, 0.85);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Mask for Hero Image */
.hero-mask {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Terminal Aesthetic */
.terminal-card {
    background-color: #000 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* Seamless transition utilities */
.fade-out {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
}

/* Visibility Utilities */
.invisible-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.visible-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ─── Reveal Animations: stagger delay is set inline per card ─── */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-item-active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }
}

/* REDESIGN: Hero SVG Background */
#hero-portrait-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    z-index: -2;
    opacity: 0.15;
    filter: saturate(0.5) brightness(0.8);
    pointer-events: none;
    transition: opacity 2s ease, filter 2s ease;
}

#hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent 60%,
            rgba(2, 6, 23, 0.5) 80%,
            var(--navy-deep) 100%);
    z-index: -1;
    pointer-events: none;
}

.ambient-active #hero-portrait-bg {
    opacity: 0.35;
    filter: saturate(1) brightness(1.2) drop-shadow(0 0 30px rgba(45, 212, 191, 0.4));
}

@media (max-width: 768px) {
    #hero-portrait-bg {
        width: 150vw;
        left: 30%;
        opacity: 0.1;
    }
}

/* ─── Interactive Terminal Styles ─── */
.terminal-window {
    background-color: #000;
    border: 1px solid rgba(45, 212, 191, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.terminal-header {
    background: #1e293b;
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.terminal-content {
    padding: 24px;
    min-height: 200px;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: var(--menthol);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    from,
    to {
        opacity: 0
    }

    50% {
        opacity: 1
    }
}

/* ─── Accordion Card Styles ─── */
.accordion-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion-card:hover,
.accordion-card.accordion-open {
    border-color: rgba(45, 212, 191, 0.2);
}

.accordion-card.accordion-open {
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.05);
}

.accordion-header {
    cursor: pointer;
    background: transparent;
    border: none;
    color: inherit;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-header:focus-visible {
    outline: 2px solid rgba(45, 212, 191, 0.85);
    outline-offset: -2px;
    border-radius: 1rem;
}

/* ─── Modal Visibility & Animations ─── */
.modal-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal-visible #modal-container {
    transform: scale(1) !important;
}

body.modal-open {
    overflow: hidden;
}