﻿/* ============================================================
   Ground Zero Academy — Shared Design System
   Extracted from the original single-page site so every page
   (home, course, about, blog, contact, terms) stays visually
   identical. Do not fork this file per page.
   ============================================================ */

:root {
    --brand-green: #8DC63F;
    /* Extracted from the 'GROUND' text / top logo gradient */
    --brand-blue: #1D5288;
    /* Extracted from the 'ZERO' text / 'Z' logo */
    --accent-glow: rgba(141, 198, 63, 0.25);
    --bg-main: #f9fafb;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: #111827;
    overflow-x: hidden;
}

/* --- Lenis Required CSS --- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.glow-text {
    color: var(--brand-green);
    text-shadow: 0 0 25px var(--accent-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(29, 82, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(29, 82, 136, 0.5);
}

/* CTA Button with Live Cursor Effect */
.cta-btn {
    background: #111827;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--brand-green);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(141, 198, 63, 0.4);
    border-color: transparent;
}

.cta-btn span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, var(--brand-green), transparent);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.cta-btn:hover::before {
    width: 400px;
    height: 400px;
    opacity: 1;
}

/* Custom Accordion for FAQ */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

/* Ambient Background Glows */
.ambient-glow-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(141, 198, 63, 0.12) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.ambient-glow-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(29, 82, 136, 0.08) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

/* --- Smooth Loader CSS --- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(29, 82, 136, 0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-progress {
    position: absolute;
    height: 100%;
    background: var(--brand-green);
    width: 0%;
    transition: width 0.4s ease;
}

/* --- 3D Scroll Reveal CSS --- */
.reveal-3d {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

@media (min-width: 768px) {
    .reveal-3d {
        transform: perspective(1000px) rotateX(15deg) translateY(40px) scale(0.95);
        transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    }
}

.reveal-3d.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
    .reveal-3d.active {
        transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
    }
}

/* 3D Transparent Partitions */
.trust-partition {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    box-shadow: 0 10px 30px rgba(29, 82, 136, 0.05);
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.trust-partition:hover {
    transform: perspective(1000px) translateZ(20px) translateY(-8px) rotateX(10deg);
    box-shadow:
        0 20px 40px rgba(29, 82, 136, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.6) !important;
}

.trust-partition h3 {
    transform: translateZ(15px);
    display: inline-block;
}

.trust-partition:hover h3 {
    color: var(--brand-green);
}

/* Role Detail Modal CSS */
.role-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.role-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.role-modal-content {
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.role-modal-overlay.active .role-modal-content {
    transform: scale(1);
}

/* --- Social Media Buttons Styling --- */
.social-btn {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.social-btn-facebook::before {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.08) 0%, rgba(24, 119, 242, 0.15) 100%);
}

.social-btn-instagram::before {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.08) 0%, rgba(225, 48, 108, 0.15) 100%);
}

.social-btn-linkedin::before {
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.08) 0%, rgba(10, 102, 194, 0.15) 100%);
}

.social-btn-youtube::before {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.08) 0%, rgba(255, 0, 0, 0.15) 100%);
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:hover {
    transform: translateY(-5px);
}

.social-btn-facebook:hover {
    border-color: rgba(24, 119, 242, 0.4);
    box-shadow: 0 15px 30px rgba(24, 119, 242, 0.15);
}

.social-btn-instagram:hover {
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 15px 30px rgba(225, 48, 108, 0.15);
}

.social-btn-linkedin:hover {
    border-color: rgba(10, 102, 194, 0.4);
    box-shadow: 0 15px 30px rgba(10, 102, 194, 0.15);
}

.social-btn-youtube:hover {
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.15);
}

.social-btn svg,
.social-btn span {
    position: relative;
    z-index: 1;
}

/* Logo Marquee (used on About page trust strip) */
@keyframes slide-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.5rem));
    }
}

.animate-slide-logos {
    animation: slide-logos 30s linear infinite;
    will-change: transform;
}

.animate-slide-logos:hover {
    animation-play-state: paused;
}

.logo-mask {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* ============================================================
   Site Navigation (new — added while rebuilding page structure)
   Kept in the same visual language as the rest of the site:
   uppercase tracking-widest labels, brand-blue/green accents,
   glass-panel surfaces, same easing curves as cta-btn/modals.
   ============================================================ */
.nav-link {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #374151;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-blue);
}

#mobile-nav-toggle {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#mobile-nav-toggle:hover {
    transform: scale(1.05);
}

#mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1D5288;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}

#mobile-nav-toggle span::before,
#mobile-nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #1D5288;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#mobile-nav-toggle span::before {
    top: -6px;
}

#mobile-nav-toggle span::after {
    top: 6px;
}

#mobile-nav.active #mobile-nav-toggle span {
    background: transparent;
}

#mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#mobile-nav-overlay .mobile-nav-link {
    font-size: 1.75rem;
    font-weight: 900;
    color: #111827;
    text-decoration: none;
    letter-spacing: -0.02em;
}

#mobile-nav-overlay .mobile-nav-link:hover {
    color: var(--brand-green);
}

/* Inner-page header band: shorter version of the hero pattern,
   used on Course / Blog / About / Contact / Terms pages so every
   page opens the same way the homepage hero does. */
.page-header-band {
    position: relative;
    padding-top: 9rem;
    padding-bottom: 1.5rem;
    text-align: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .page-header-band {
        padding-top: 11rem;
        padding-bottom: 2rem;
    }
}

/* ============================================================
   Testimonial Carousel Styles
   ============================================================ */

.testimonial-track-outer {
    overflow: hidden;
    border-radius: 2rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
}

/* Circular profile image wrapper */
.testimonial-img-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 3px solid var(--brand-green);
    box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.15);
    background: linear-gradient(135deg, var(--brand-green), var(--brand-blue));
    position: relative;
    flex-shrink: 0;
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback initials circle */
.testimonial-img-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
}

/* Stars */
.testimonial-stars {
    color: #F59E0B;
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

/* Navigation arrows */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--brand-blue);
    transition: all 0.25s ease;
    z-index: 10;
}

.testimonial-arrow:hover {
    background: var(--brand-blue);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 28px rgba(29, 82, 136, 0.35);
}

.testimonial-arrow-left {
    left: -25px;
}

.testimonial-arrow-right {
    right: -25px;
}

@media (max-width: 640px) {
    .testimonial-arrow-left { left: 4px; }
    .testimonial-arrow-right { right: 4px; }
}

/* Dot indicators */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.75rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(29, 82, 136, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.testimonial-dot.active {
    background: var(--brand-blue);
    width: 28px;
    border-radius: 6px;
}

/* ============================================================
   Site Footer — 4-column layout (brand + link columns)
   Deep navy derived from --brand-blue, green accent on hover.
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, #0B2140 0%, #050F1E 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.75rem;
}

.footer-link {
    color: #d1d5db;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link:hover {
    color: var(--brand-green);
    padding-left: 4px;
}

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-social:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(141, 198, 63, 0.35);
}

/* ============================================================
   Career-Path Marquee (course page hero) — continuous
   auto-scrolling columns, alternating direction, matching the
   reference hero's moving photo-card grid. Height is synced to
   the hero's left column height by a small inline script on the
   course page (so it ends just past the text column, not at the
   height of its own — much taller — looping card content).
   ============================================================ */
.career-marquee {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    height: 320px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

@media (min-width: 480px) {
    .career-marquee {
        height: 380px;
        gap: 0.75rem;
    }
}

@media (min-width: 640px) {
    .career-marquee {
        height: 440px;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .career-marquee {
        height: 520px;
    }
}

.career-marquee-col {
    position: relative;
    overflow: hidden;
}

.career-marquee-track {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: career-marquee-scroll linear infinite;
    will-change: transform;
}

@media (min-width: 480px) {
    .career-marquee-track {
        gap: 0.75rem;
    }
}

@media (min-width: 640px) {
    .career-marquee-track {
        gap: 1rem;
    }
}

.career-marquee-col.reverse .career-marquee-track {
    animation-direction: reverse;
}

@keyframes career-marquee-scroll {
    from {
        transform: translateY(0);
    }

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

.career-marquee-col:hover .career-marquee-track {
    animation-play-state: paused;
}

@media (hover: none) and (pointer: coarse) {
    .career-marquee-col:hover .career-marquee-track {
        animation-play-state: running;
    }
}

.career-card {
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .career-card {
        border-radius: 1.5rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    }
}

.career-card .career-card-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    opacity: 0.9;
}

.career-card .career-card-label {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 0.4rem 0.5rem;
}

@media (min-width: 640px) {
    .career-card .career-card-label {
        padding: 0.6rem;
    }
}

.career-card .career-card-label p.career-card-name {
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .career-card .career-card-label p.career-card-name {
        font-size: 0.75rem;
    }
}

.career-card .career-card-label p.career-card-tag {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.55rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .career-card .career-card-label p.career-card-tag {
        font-size: 0.65rem;
    }
}

@media (max-width: 767px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .career-marquee-track {
        animation: none;
    }
}

/* ============================================================
   Hero Glass Panel (course page) — the whole hero wrapped in
   one frosted-glass card, matching the reference's full-bleed
   hero container but in our own glass/blur language.
   ============================================================ */
.hero-glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: 0 30px 80px rgba(29, 82, 136, 0.08);
}

/* ============================================================
   Responsive polish — keeps the existing design, only adapts it
   ============================================================ */

/* Big screens: the layout is built in rem, so a larger root size scales
   everything proportionally instead of leaving a small centred column. */
@media (min-width: 1600px) { html { font-size: 17px; } }
@media (min-width: 1920px) { html { font-size: 18px; } }
@media (min-width: 2560px) { html { font-size: 22px; } }
@media (min-width: 3200px) { html { font-size: 26px; } }
@media (min-width: 3840px) { html { font-size: 30px; } }

/* Mobile browsers: 100vh includes the collapsing address bar, which pushes
   the hero's bottom (scroll cue) off-screen. svh is the visible height. */
@supports (height: 100svh) {
    #hero-section { min-height: 100svh; }
}

/* Phones: marquee card captions were 8.8px and clipped with "…" — let names
   wrap onto two lines and keep tags at a readable 10px+. */
@media (max-width: 639px) {
    .career-card .career-card-label p.career-card-name {
        font-size: 0.7rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .career-card .career-card-label p.career-card-tag {
        font-size: 0.63rem;
        white-space: normal;
    }
}

/* Red variant of the CTA button (course page "Buy Now" buttons): red surface,
   red hover glow instead of the default dark surface / green glow. */
.cta-btn.cta-btn-red {
    background: #dc2626;
    border-color: #ef4444;
}

.cta-btn.cta-btn-red:hover {
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.45);
}

.cta-btn.cta-btn-red::before {
    background: radial-gradient(circle closest-side, #ff6b6b, transparent);
}
