/*
  FILE: styles.css
  LAST UPDATED: v1.3.6 (2026-03-29)
  CHANGE: Added .cohort-urgency-ribbon and .upgrade-note styles.
*/

:root {
    --bg-dark: #07090f;
    --bg-panel: rgba(15, 20, 35, 0.7);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-blue: #00b4d8;
    --accent-gold: #ffb703;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.subheadline { color: var(--text-muted); margin-bottom: 3rem; font-size: 1.1rem; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #0077b6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

.btn-primary.massive {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

.full-width { width: 100%; margin-top: 1rem; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 9, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}
.logo span { color: var(--accent-blue); }

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 5%;
}
.min-width { max-width: 800px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
}

.glass-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Section 1: Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 5% 0;
}

.hero-bg {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.4;
}

.hero-bg .overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}
.highlight { color: var(--accent-gold); }
.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}
.quote-author { font-style: italic; color: var(--accent-blue) !important; font-weight: 500; }

/* Section 2: Flywheel */
.flywheel-steps { margin-top: 2rem; }
.step {
    border-left: 2px solid var(--accent-blue);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.step::before {
    content: ''; position: absolute; left: -6px; top: 0;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Section 3: Courses */
.cards-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}

.card {
    display: flex; flex-direction: column;
    transition: transform 0.3s ease;
    position: relative;
}
.card:hover { transform: translateY(-10px); }

.card.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.15);
}

.card-label {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent-gold); color: #000;
    font-size: 0.8rem; font-weight: 800; padding: 2px 12px;
    border-radius: 20px; text-transform: uppercase;
}

.card-header { padding-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); margin-bottom: 1.5rem; text-align: center; }
.card-header h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.price { font-size: 2.5rem; font-weight: 800; color: var(--accent-blue); }

.format { color: var(--accent-gold); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.outcomes { list-style: none; margin: 1.5rem 0; flex-grow: 1; }
.outcomes li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; font-size: 0.95rem; color: var(--text-muted); }
.outcomes li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-blue); }

/* Section 4: FAQ */
.accordion { margin-top: 3rem; }
.accordion-item { border-bottom: 1px solid var(--glass-border); }
.accordion-header {
    width: 100%; text-align: left; padding: 1.5rem 0;
    background: none; border: none; color: var(--text-main);
    font-size: 1.2rem; font-weight: 600; font-family: 'Outfit', sans-serif;
    cursor: pointer; display: flex; justify-content: space-between;
}
.accordion-header::after { content: '+'; font-size: 1.5rem; color: var(--accent-blue); transition: transform 0.3s; }
.accordion-header.active::after { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-content p { padding-bottom: 1.5rem; color: var(--text-muted); }

/* Section 5: Enroll / Guarantee */
.guarantee-img { max-width: 700px; margin: 3rem auto; display: block; }
.guarantee-box { max-width: 800px; margin: 0 auto; border-left: 4px solid var(--accent-gold); }

/* Keyframe: discount modal border pulses between gold and white every 3s */
@keyframes discountBorderPulse {
    0%, 100% { border-color: var(--accent-gold); box-shadow: 0 0 50px rgba(255,183,3,0.3); }
    50%       { border-color: #ffffff;            box-shadow: 0 0 50px rgba(255,183,3,0.5), 0 0 25px rgba(255,255,255,0.15); }
}

/* Modal */
.modal {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    align-items: center; justify-content: center;
}
.modal.show { display: flex; }
.modal-content {
    width: 90%; max-width: 500px; position: relative;
}
/* Discount modals: wider and use border pulse animation */
.modal-content.discount-glass {
    max-width: 660px; /* enlarged to fit bigger text */
    animation: discountBorderPulse 3s ease-in-out infinite;
}
.close, span.close-discount {
    position: absolute; top: 0.5rem; right: 1rem;
    color: var(--text-muted); font-size: 3.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s;
    /* Minimum 48×48px tap target for mobile */
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.close:hover, span.close-discount:hover { color: var(--text-main); }
.price-display { margin-bottom: 2rem; font-size: 1.2rem; }
.price-display strong { color: var(--accent-gold); }

.input-group { margin-bottom: 1.2rem; text-align: left; }
.split-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
input {
    width: 100%; padding: 0.8rem; border-radius: 5px;
    background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border);
    color: var(--text-main); outline: none; transition: border-color 0.3s;
    font-size: 1rem; /* iOS auto-zoom fix: must be ≥16px to prevent page zoom on tap */
}
input:focus { border-color: var(--accent-blue); }

.success-text { color: #10b981; margin-bottom: 1rem; }

/* Reveal Animation */
.section-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.section-reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .split, .cards-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
}

/* Bio Grid */
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.bio-card { padding: 2rem; border-top: 3px solid var(--accent-blue); }
.bio-header h3 { font-size: 1.8rem; color: #fff; margin-bottom: 0.2rem; }
.credential { color: var(--accent-gold); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.bio-details { list-style: none; }
.bio-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    opacity: 0;
    animation: bioLiIn 0.5s ease forwards;
}
.bio-details li:nth-child(1) { animation-delay: 0.3s; }
.bio-details li:nth-child(2) { animation-delay: 0.7s; }
.bio-details li:nth-child(3) { animation-delay: 1.1s; }
.bio-details li:nth-child(4) { animation-delay: 1.5s; }
@keyframes bioLiIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.bio-details li::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 7px;
    box-shadow: 0 0 6px var(--accent-blue);
}

/* HARVARD / Babson MBA credential highlights */
.harvard-text {
    color: #cc1111;
    font-weight: 900;
    animation: harvardPulse 2.2s ease-in-out infinite;
}
@keyframes harvardPulse {
    0%, 100% { text-shadow: 0 0 6px #cc0000, 0 0 16px #8b0000; color: #cc1111; }
    50%       { text-shadow: 0 0 14px #ff2222, 0 0 30px #cc0000, 0 0 48px #8b0000; color: #ff3333; }
}
.babson-text {
    font-weight: 900;
    animation: babsonPulse 2.2s ease-in-out infinite;
}
@keyframes babsonPulse {
    0%, 100% { text-shadow: 0 0 6px #00cc66, 0 0 16px #009944; color: #00dd77; }
    50%       { text-shadow: 0 0 12px #ffffff, 0 0 28px #00ff88, 0 0 48px #00cc66; color: #ffffff; }
}

/* Pathways Grid */
.pathway-container { background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 12px; padding: 2rem; margin-bottom: 3rem; }
.pathway-header { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--glass-border); }
.pathway-header h3 { font-size: 2rem; color: #fff; }
.pathway-header p { color: var(--text-muted); font-size: 1.1rem; margin-top: 0.5rem; }
.highlight-header h3 { color: var(--accent-blue); }
.badge { font-size: 0.7rem; background: var(--glass-border); padding: 4px 8px; border-radius: 4px; vertical-align: middle; margin-left: 10px; color: #fff; }
.badge.gold { background: var(--accent-gold); color: #000; }
.dual-grid { grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; }
.mt-5 { margin-top: 4rem; }
.massive-btn { padding: 1rem; font-size: 1.1rem; }


/* New 3-Column Image-Inspired Pricing Design */
.pricing-container {
    background: radial-gradient(circle at top, #111a31 0%, var(--bg-dark) 60%);
    padding: 6rem 0;
}

.three-columns { grid-template-columns: repeat(3, 1fr) !important; gap: 2.5rem; }

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.pricing-card:hover { border: 1px solid rgba(255, 255, 255, 0.4); }

.featured-glow {
    border: 2px solid #00b4d8; /* Electric Blue/Purple glow */
    background: rgba(0, 180, 216, 0.05);
    box-shadow: 0 0 35px rgba(0, 180, 216, 0.3), inset 0 0 20px rgba(0, 180, 216, 0.1);
    transform: scale(1.05);
    z-index: 10;
}

.featured-glow:hover { transform: scale(1.07); }

.most-popular-badge {
    position: absolute;
    top: 0; left: 50%; transform: translate(-50%, -50%);
    background: linear-gradient(90deg, #00b4d8, #a200ff);
    color: white; font-size: 0.75rem; font-weight: bold; letter-spacing: 1px;
    padding: 6px 16px; border-radius: 20px; text-transform: uppercase;
}

/* Cohort urgency ribbon — sits at the top of the Masterclass pricing card */
.cohort-urgency-ribbon {
    margin: -2.5rem -1.5rem 1.4rem -1.5rem;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3px;
    border-radius: 14px 14px 0 0;
    border-bottom: 2px solid rgba(255, 107, 53, 0.5);
    position: relative;
    z-index: 1;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .cohort-urgency-ribbon {
        font-size: 0.72rem;
        padding: 8px 12px;
    }
}

/* Upgrade path note — below Catalyst card enroll button */
.upgrade-note {
    margin-top: 1rem;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 6px 6px 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #a1a1aa;
    text-align: left;
}

.upgrade-note-link {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.upgrade-note-link:hover {
    color: #fff;
}

.pt-2 { padding-top: 1rem; }
.text-sm { font-size: 0.9rem; color: #a1a1aa; }
.mb-2 { margin-bottom: 1.5rem; }
.tier-title { font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 800; }
.text-blue { color: #00b4d8; }
.text-purple { color: #b78cfc; }
.text-pink { color: #f472b6; }
.text-glow { text-shadow: 0 0 15px currentColor; }

.card-divider { height: 1px; width: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent); margin: 1.5rem 0; }

.outcomes { padding: 0 1rem; }

/* Certifications inside Cards */
.cert-box {
    margin: 2rem 0; padding: 1rem; background: rgba(0,0,0,0.3); border-radius: 8px;
    border: 1px dashed rgba(255,255,255,0.1);
}
.mini-cert { height: 60px; object-fit: contain; margin-bottom: 0.5rem; }
.cert-box p { font-size: 0.8rem; color: var(--accent-gold); font-weight: 600; line-height: 1.2; }

.oval { border-radius: 30px !important; padding: 1rem !important; letter-spacing: 1px; font-weight: 700; }
.btn-purple { background: linear-gradient(90deg, #a200ff, #f472b6); color: white; border: none; }
.btn-purple:hover { opacity: 0.9; box-shadow: 0 0 20px rgba(162, 0, 255, 0.5); }

/* The Glorious Mega Guarantee Seal */
.guarantee-seal-wrapper { display: flex; align-items: center; justify-content: center; margin-top: 4rem; }
.horizontal-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent); max-width: 300px; }
.mega-seal { width: 150px; height: auto; margin: 0 2rem; border-radius: 50%; box-shadow: 0 0 50px rgba(255,183,3,0.4); animation: pulse 3s infinite; }
.mt-2 { margin-top: 1.5rem; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 50px rgba(255,183,3,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 70px rgba(255,183,3,0.6); }
    100% { transform: scale(1); box-shadow: 0 0 50px rgba(255,183,3,0.3); }
}


/* Ambient Background Animations */
.bg-effects { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; pointer-events: none; z-index: -99; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; animation: orbit 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1); }
.orb-1 { width: 500px; height: 500px; background: rgba(0, 180, 216, 0.15); top: -10%; left: -10%; }
.orb-2 { width: 600px; height: 600px; background: rgba(162, 0, 255, 0.12); bottom: -20%; right: -10%; animation-duration: 25s; }
.orb-3 { width: 400px; height: 400px; background: rgba(255, 183, 3, 0.1); top: 40%; left: 50%; opacity: 0.3; animation-duration: 30s; }
@keyframes orbit { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(100px, 100px) scale(1.1); } 100% { transform: translate(-50px, 150px) scale(1); } }

/* Shine Effect on Badges */
.shine-effect { position: relative; overflow: hidden; }
.shine-effect::after { content:''; position: absolute; top:0; left:-100%; width:50%; height:100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%); transform: skewX(-20deg); animation: shine 5s infinite; }
@keyframes shine { 0% {left: -100%;} 20% {left: 200%;} 100% {left: 200%;} }

/* Float Hover applied to cards/bios */
.hover-float { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.hover-float:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.7); }

/* Discount Glass specifically — border pulse animation set on .modal-content.discount-glass above */
.discount-glass { border: 3px solid var(--accent-gold); box-shadow: 0 0 50px rgba(255,183,3,0.3); }

/* Discount modal text sizing — ~50% larger than original defaults for readability */
.discount-glass h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.discount-glass p  { font-size: 1.2rem; line-height: 1.6; }
/* Override the inline font-size: 0.8rem on "no thanks" footnote links */
.discount-glass p.close-discount { font-size: 1.1rem !important; }

/* Mobile: scale back so popup doesn't overflow on small screens */
@media (max-width: 768px) {
    .modal-content.discount-glass { max-width: 95vw; }
    .discount-glass h2 { font-size: 1.5rem; }
    .discount-glass p  { font-size: 1rem; }
    .discount-glass p.close-discount { font-size: 0.95rem !important; }
}


/* Twinkling Stars Effect */
.star { position: absolute; border-radius: 50%; animation: twinkle infinite alternate ease-in-out; z-index: 1; pointer-events: none; }
@keyframes twinkle { 0% { opacity: 0.1; transform: scale(0.6); box-shadow: 0 0 2px currentColor; } 100% { opacity: 0.8; transform: scale(1.4); box-shadow: 0 0 10px currentColor, 0 0 20px currentColor; } }


/* Flywheel Animation — wrapper + slow clockwise rotation */
.flywheel-wrap {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.12),
        0 0 80px rgba(0, 180, 216, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.6);
    /* gentle ambient gold pulse on the container */
    animation: fwWrapPulse 5s ease-in-out infinite;
}

@keyframes fwWrapPulse {
    0%   { box-shadow: 0 0 40px rgba(255,215,0,0.10), 0 0 80px rgba(0,180,216,0.12), 0 20px 60px rgba(0,0,0,0.6); }
    50%  { box-shadow: 0 0 70px rgba(255,215,0,0.28), 0 0 120px rgba(0,180,216,0.18), 0 20px 60px rgba(0,0,0,0.6); }
    100% { box-shadow: 0 0 40px rgba(255,215,0,0.10), 0 0 80px rgba(0,180,216,0.12), 0 20px 60px rgba(0,0,0,0.6); }
}

/* The inner div that carries both the image and SVG overlay — rotates together */
.flywheel-spin {
    position: relative;
    width: 100%;
    height: 100%;
    animation: fwSpinCW 30s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes fwSpinCW {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.flywheel-spin img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

/* SVG gold-shimmer overlay — same footprint as the image */
.flywheel-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* =====================================================
   INSTRUCTOR HEADSHOT AVATARS
   ===================================================== */

/* Small avatar — sits to the right of the badge */
.instructor-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid rgba(255, 215, 0, 0.65);
    box-shadow:
        0 0 10px rgba(255, 215, 0, 0.35),
        0 0 22px rgba(255, 215, 0, 0.15);
    flex-shrink: 0;
    animation: avatarGoldPulse 4s ease-in-out infinite;
}

/* Medium avatar — sits next to the "Scott Magnacca" heading */
.instructor-avatar-md {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2.5px solid rgba(255, 215, 0, 0.7);
    box-shadow:
        0 0 14px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.18);
    flex-shrink: 0;
    animation: avatarGoldPulse 4s ease-in-out infinite 0.6s;
}

@keyframes avatarGoldPulse {
    0%   { box-shadow: 0 0 10px rgba(255,215,0,0.30), 0 0 20px rgba(255,215,0,0.12); border-color: rgba(255,215,0,0.55); }
    50%  { box-shadow: 0 0 18px rgba(255,215,0,0.60), 0 0 36px rgba(255,215,0,0.28); border-color: rgba(255,215,0,0.90); }
    100% { box-shadow: 0 0 10px rgba(255,215,0,0.30), 0 0 20px rgba(255,215,0,0.12); border-color: rgba(255,215,0,0.55); }
}

/* =====================================================
   3D BOOK COVER WITH GOLD SHIMMER GLOW
   ===================================================== */

/* Perspective scene wrapper */
.book-3d-scene {
    perspective: 900px;
    perspective-origin: 50% 40%;
    padding: 2rem 1rem 1.5rem;
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* The element that rotates in 3D */
.book-3d-wrap {
    position: relative;
    transform: rotateY(-18deg) rotateX(4deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    display: inline-block;
    animation: book3dFloat 6s ease-in-out infinite;
}

.book-3d-wrap:hover {
    transform: rotateY(-6deg) rotateX(2deg) scale(1.04);
}

@keyframes book3dFloat {
    0%   { transform: rotateY(-18deg) rotateX(4deg) translateY(0px); }
    50%  { transform: rotateY(-14deg) rotateX(3deg) translateY(-10px); }
    100% { transform: rotateY(-18deg) rotateX(4deg) translateY(0px); }
}

/* The actual book image */
.book-cover-3d {
    width: 100%;
    max-width: 260px;
    border-radius: 4px 10px 10px 4px;
    position: relative;
    z-index: 2;
    display: block;
    /* Spine shadow on left to enhance 3D */
    box-shadow:
        -8px 0 18px rgba(0,0,0,0.6),
        4px 4px 20px rgba(0,0,0,0.5);
}

/* Gold shimmer glow — pseudo-element on the wrap */
.book-3d-wrap::before {
    content: '';
    position: absolute;
    inset: -14px -10px;
    border-radius: 6px 14px 14px 6px;
    z-index: 1;
    background: transparent;
    box-shadow:
        0 0 25px 8px rgba(255, 215, 0, 0.30),
        0 0 55px 18px rgba(255, 185, 0, 0.18),
        0 0 90px 30px rgba(255, 140, 0, 0.10);
    animation: bookGoldGlow 3.5s ease-in-out infinite;
    pointer-events: none;
}

/* Thin gold border ring */
.book-3d-wrap::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 4px 12px 12px 4px;
    z-index: 3;
    border: 1.5px solid rgba(255, 215, 0, 0.50);
    animation: bookBorderShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bookGoldGlow {
    0%   { box-shadow: 0 0 20px 6px rgba(255,215,0,0.22), 0 0 45px 14px rgba(255,185,0,0.12), 0 0 80px 26px rgba(255,140,0,0.07); }
    50%  { box-shadow: 0 0 35px 14px rgba(255,215,0,0.50), 0 0 70px 28px rgba(255,185,0,0.28), 0 0 110px 40px rgba(255,140,0,0.16); }
    100% { box-shadow: 0 0 20px 6px rgba(255,215,0,0.22), 0 0 45px 14px rgba(255,185,0,0.12), 0 0 80px 26px rgba(255,140,0,0.07); }
}

@keyframes bookBorderShimmer {
    0%   { border-color: rgba(255,215,0,0.35); }
    50%  { border-color: rgba(255,240,120,0.85); }
    100% { border-color: rgba(255,215,0,0.35); }
}

/* Typewriter CSS */
.typewriter-text { margin-top: 5px; }
.typewriter-text:not(.finished-typing)::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-blue);
    margin-left: 2px;
}


/* Bio Photos & Credentials */
.bio-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 3px solid var(--accent-gold); margin-bottom: 1.5rem; box-shadow: 0 0 25px rgba(255,183,3,0.4); }
.text-left { text-align: left; }
.credentials-img { max-width: 100%; height: auto; max-height: 80px; opacity: 0.7; filter: grayscale(100%) contrast(1.2); transition: filter 0.3s, opacity 0.3s; }
.credentials-img:hover { filter: grayscale(0%); opacity: 1; }
.bio-card.text-center .bio-header h3 { margin-bottom: 0.5rem; }


/* Testimonials Section */
.star-rating { color: var(--accent-gold); font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 1rem; }
.quote { font-size: 1.1rem; font-style: italic; line-height: 1.8; margin-bottom: 1.5rem; position: relative; padding-left: 20px; border-left: 3px solid var(--accent-blue); }
.quote-author strong { display: block; font-size: 1.2rem; color: #fff; }
.audio-grid { display: grid; gap: 1.5rem; }
.audio-card { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.audio-header { display: flex; align-items: center; gap: 1rem; }
.audio-header .avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-gold); }
.name { font-weight: 600; font-size: 1.1rem; }
.audio-player audio { width: 100%; max-width: 250px; height: 35px; outline: none; }
audio::-webkit-media-controls-enclosure { background-color: rgba(255,255,255,0.2); border-radius: 5px; }


/* Buffett Sketch Animation */
.buffett-container { width: 180px; height: 180px; margin: 0 auto 2rem; position: relative; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent-gold); box-shadow: 0 0 30px rgba(255,183,3,0.3); background-color: rgba(0,0,0,0.5); }
.buffett-sketch { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(100%) contrast(1.2); transition: opacity 1.5s ease-in-out, clip-path 2s cubic-bezier(0.25, 1, 0.5, 1); clip-path: circle(0% at 50% 50%); }
.buffett-sketch.active { opacity: 1; clip-path: circle(100% at 50% 50%); }


/* Diffuse Buffett sketch into black background */
.buffett-container { border: none !important; box-shadow: none !important; background: transparent !important; overflow: visible !important; }
.buffett-sketch { border-radius: 50% !important; -webkit-mask-image: radial-gradient(circle, black 45%, transparent 70%); mask-image: radial-gradient(circle, black 45%, transparent 70%); filter: grayscale(100%) contrast(1.5) brightness(1.1) !important; }


/* Increase Buffett Container Size by 25% */
.buffett-container { width: 225px !important; height: 225px !important; }


/* Shading Pencil Illusion overrides v2 */
.buffett-sketch { opacity: 1 !important; z-index: 1; clip-path: inset(0 0 100% 0) !important; transition: clip-path 4s linear !important; filter: grayscale(100%) contrast(1.5) brightness(1.1) !important; }
.buffett-sketch.active { z-index: 2; clip-path: inset(0 0 0 0) !important; }
.buffett-sketch.holding { z-index: 1; clip-path: inset(0 0 0 0) !important; transition: none !important; }

.shading-pencil { position: absolute; width: 32px; height: 32px; z-index: 10; opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 5px rgba(0,0,0,0.5)); transform-origin: bottom left; }
.shading-pencil.drawing { opacity: 1; animation: shadeDown 4s linear forwards, scribble 0.25s ease-in-out infinite alternate; }

@keyframes shadeDown { 0% { top: 0%; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes scribble { 0% { left: 10%; transform: translate(-10px, -28px) rotate(-20deg); } 100% { left: 90%; transform: translate(-10px, -28px) rotate(20deg); } }


/* Revert to Organic Circle Dissolve */
.buffett-sketch { opacity: 0 !important; z-index: 1; clip-path: circle(0% at 50% 50%) !important; transition: opacity 1.5s ease-in-out, clip-path 2s cubic-bezier(0.25, 1, 0.5, 1) !important; filter: grayscale(100%) contrast(1.5) brightness(1.1) !important; }
.buffett-sketch.active { opacity: 1 !important; clip-path: circle(100% at 50% 50%) !important; z-index: 2; }
.shading-pencil { display: none !important; }

/* Bottom Contact CTA Animations */
.text-wave-animation {
    background: linear-gradient(
        270deg, 
        #ffffff 0%, 
        #ffffff 40%, 
        #00b4d8 50%, 
        #ea580c 60%, 
        #ffffff 100%
    );
    background-size: 300% 100%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textWave 4s infinite linear;
}

@keyframes textWave {
    0% { background-position: 200% 50%; }
    100% { background-position: -100% 50%; }
}

.orange-heartbeat-glow {
    border: 1px solid rgba(234, 88, 12, 0.3) !important;
    animation: orangeHeartbeat 4s infinite ease-in-out;
}

@keyframes orangeHeartbeat {
    0%   { box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 15px rgba(234, 88, 12, 0.1); }
    15%  { box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 45px rgba(234, 88, 12, 0.6); border-color: rgba(234, 88, 12, 0.9) !important; }
    30%  { box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 20px rgba(234, 88, 12, 0.2); border-color: rgba(234, 88, 12, 0.4) !important; }
    45%  { box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 55px rgba(234, 88, 12, 0.8); border-color: rgba(234, 88, 12, 1.0) !important; }
    100% { box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 15px rgba(234, 88, 12, 0.1); }
}

.orange-border-pulse {
    animation: orangeBorderPulse 4s infinite ease-in-out;
}

@keyframes orangeBorderPulse {
    0% { border-color: rgba(234, 88, 12, 0.2) !important; box-shadow: 0 0 40px rgba(234, 88, 12, 0.05) !important; }
    50% { border-color: rgba(234, 88, 12, 0.9) !important; box-shadow: 0 0 60px rgba(234, 88, 12, 0.4) !important; }
    100% { border-color: rgba(234, 88, 12, 0.2) !important; box-shadow: 0 0 40px rgba(234, 88, 12, 0.05) !important; }
}

.waveform-base {
    background-size: 300% 100% !important;
    color: transparent !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* =====================================================
   ACCESSIBILITY — REDUCED MOTION
   Respects users who prefer minimal animation
   (vestibular disorders, motion sensitivity, battery saving)
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
