/* =============================================
   HERO EFFECTS & PAGE POLISH
   The Code Munk
   ============================================= */

/* ========================================
   HERO SECTION – CREATIVE EFFECTS
   ======================================== */

.hero {
    position: relative;
    overflow: hidden;
}

/* ---- Dot-grid background ---- */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #d1d1d1 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .35;
    pointer-events: none;
    z-index: 0;
    /* fade out at edges */
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
}

/* ---- Soft radial glows ---- */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 0, 0, .04);
    top: -120px;
    left: -80px;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 0, 0, .03);
    bottom: -80px;
    right: -60px;
    animation-delay: 3s;
}

@keyframes glowPulse {
    from { transform: scale(1) translateY(0); opacity: .6; }
    to   { transform: scale(1.15) translateY(-20px); opacity: 1; }
}

/* ---- Floating orbs ---- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 12px;
    height: 12px;
    background: #111;
    opacity: .12;
    top: 18%;
    left: 8%;
    animation: floatOrb 7s ease-in-out infinite;
}

.hero-orb-2 {
    width: 8px;
    height: 8px;
    background: #555;
    opacity: .1;
    top: 60%;
    right: 10%;
    animation: floatOrb 9s ease-in-out infinite reverse;
    animation-delay: 2s;
}

.hero-orb-3 {
    width: 18px;
    height: 18px;
    background: #000;
    opacity: .06;
    bottom: 25%;
    left: 15%;
    animation: floatOrb 11s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%       { transform: translateY(-18px) rotate(120deg); }
    66%       { transform: translateY(10px) rotate(240deg); }
}

/* ---- Ensure content above bg ---- */
.hero .container { position: relative; z-index: 2; }

/* ---- Hero tag with live dot ---- */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(8px);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
    color: #666;
    margin-bottom: 28px;
    animation: fadeSlideDown .6s ease both;
}

.hero-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: blink 1.5s infinite;
}

/* ---- Headline animations ---- */
.hero-title {
    animation: fadeSlideUp .7s ease .1s both;
}

/* Shiny gradient text on "With Confidence" */
.hero-title-shine {
    background: linear-gradient(
        120deg,
        #111 0%,
        #111 30%,
        #888 48%,
        #fff  52%,
        #888 56%,
        #111 70%,
        #111 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 4s linear 1s infinite;
    display: inline-block;
}

@keyframes textShine {
    0%   { background-position: 200% center; }
    100% { background-position: -100% center; }
}

/* ---- Description ---- */
.hero-description {
    animation: fadeSlideUp .7s ease .25s both;
}

/* ---- Social proof ---- */
.hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 28px auto 0;
    padding: 10px 20px;
    border: 1px solid #ececec;
    border-radius: 50px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    animation: fadeSlideUp .7s ease .35s both;
}

.hero-proof-avatars {
    display: flex;
}

.hero-proof-avatars span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -7px;
}

.hero-proof-avatars span:first-child { margin-left: 0; }

.hero-proof-text {
    font-size: 13px;
    color: #555;
}

.hero-proof-text strong {
    color: #111;
}

.hero-proof-stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: 1px;
}

.hero-proof-rating {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

/* ---- Buttons ---- */
.hero-buttons {
    animation: fadeSlideUp .7s ease .45s both;
}

.hero-cta-primary {
    position: relative;
    overflow: hidden;
    border-radius: 12px !important;
    padding: 15px 30px !important;
    font-size: 15px;
    transition: transform .2s, box-shadow .2s !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
}

.hero-cta-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 32px rgba(0,0,0,.25) !important;
}

/* Shimmer sweep on primary button */
.btn-shimmer {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,.25) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: btnShimmer 3.5s ease-in-out 1.5s infinite;
    pointer-events: none;
}

@keyframes btnShimmer {
    0%   { left: -75%; }
    40%  { left: 125%; }
    100% { left: 125%; }
}

.hero-cta-secondary {
    border-radius: 12px !important;
    padding: 15px 28px !important;
    font-size: 15px;
    transition: transform .2s, background .2s !important;
}

.hero-cta-secondary:hover {
    background: #f5f5f5 !important;
    transform: translateY(-2px) !important;
}

/* ---- Stats row ---- */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    animation: fadeSlideUp .7s ease .55s both;
}

.hero-stat-item {
    padding: 14px 24px;
    text-align: center;
}

.hero-stat-item strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #111;
    letter-spacing: -.5px;
    line-height: 1;
}

.hero-stat-item span {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-top: 3px;
    display: block;
}

.hero-stat-sep {
    width: 1px;
    height: 36px;
    background: #ececec;
    flex-shrink: 0;
}

/* ========================================
   ENTRANCE ANIMATIONS
   ======================================== */

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   SECTION TAG – PILL STYLE WITH SHINE
   ======================================== */

.section-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 16px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    letter-spacing: 2.5px !important;
    font-weight: 700 !important;
    color: #888 !important;
    background: #fafafa;
    margin-bottom: 14px !important;
}

/* Underline-accent on section headings */
.section-title-accent {
    position: relative;
    display: inline-block;
}

.section-title-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #111;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineGrow .8s ease .5s forwards;
}

@keyframes underlineGrow {
    to { transform: scaleX(1); }
}

/* ========================================
   CARD HOVER EFFECTS – EVENTS & COURSES
   ======================================== */

/* Event card – clean hover, NO black border accent */
.event-card {
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease !important;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

/* Course card – shimmer on hover */
.course-card {
    position: relative;
    overflow: hidden;
}

.course-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(0,0,0,.03) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left .5s ease;
    pointer-events: none;
}

.course-card:hover::after {
    left: 125%;
}

/* ========================================
   HEADER – NAV LINK UNDERLINE EFFECT
   ======================================== */

/* removed – no underline animation on nav links */

/* ========================================
   SECTION BADGE (used in why, faq etc.)
   ======================================== */

.section-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 16px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    letter-spacing: 2.5px !important;
    font-weight: 700 !important;
    background: #fafafa;
    color: #888;
}

/* ========================================
   LOAD MORE BUTTON POLISH
   ======================================== */

.load-more-btn {
    position: relative;
    overflow: hidden;
    padding: 12px 28px;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 50px !important;
    background: #fff !important;
    color: #111 !important;
    font-weight: 600;
    font-size: 14px;
    transition: border-color .2s, transform .2s;
}

.load-more-btn:hover {
    border-color: #111 !important;
    transform: translateY(-2px);
}

/* ========================================
   SCROLL-IN FADE (Intersection Observer)
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {

    .hero-stats {
        flex-wrap: wrap;
        border-radius: 14px;
    }

    .hero-stat-item {
        padding: 12px 18px;
    }

    .hero-stat-item strong {
        font-size: 17px;
    }

    .hero-proof {
        gap: 8px;
        padding: 8px 14px;
    }

    .hero-proof-text {
        font-size: 12px;
    }

    .hero-stat-sep {
        height: 28px;
    }

    .hero-orb-1,
    .hero-orb-2,
    .hero-orb-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stat-sep {
        display: none;
    }

    .hero-stat-item:nth-child(1),
    .hero-stat-item:nth-child(3) {
        border-right: 1px solid #ececec;
    }

    .hero-stat-item:nth-child(1),
    .hero-stat-item:nth-child(2) {
        border-bottom: 1px solid #ececec;
    }
}
