/* ==========================================================================
   Dr Henry Website Design System & Styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --color-primary: #1e3a8a;        /* Deep Slate Blue */
    --color-primary-dark: #0f172a;   /* Rich Navy */
    --color-secondary: #0ea5e9;     /* Soft Medical Sky Blue */
    --color-accent: #0d9488;        /* Medical Teal */
    --color-accent-light: #ccfbf1;  /* Light Teal Background */
    --color-text-main: #334155;     /* Slate Gray for body */
    --color-text-dark: #0f172a;     /* Deep Slate for headers */
    --color-text-light: #64748b;    /* Light Slate for notes */
    --color-bg-light: #f8fafc;      /* Cold Off-white */
    --color-bg-white: #ffffff;
    --color-bg-card: rgba(255, 255, 255, 0.75); /* Glassmorphic Card */
    --color-border: #e2e8f0;        /* Cool Gray Border */
    --color-border-glow: rgba(14, 165, 233, 0.2);
    
    /* Grahic Gradients */
    --grad-primary: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
    --grad-medical: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
    --grad-light: linear-gradient(180deg, #f0f7fc 0%, #ffffff 100%);
    --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    --grad-purple: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-glow-blue: 0 0 30px rgba(14, 165, 233, 0.25);
    --shadow-glow-teal: 0 0 30px rgba(13, 148, 136, 0.25);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & General Styles
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-bottom: 16px;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   3. Reusable UI Components
   -------------------------------------------------------------------------- */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 10px;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
    color: white;
}

.btn-secondary {
    background: var(--grad-medical);
    color: white;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: rgba(30, 58, 138, 0.05);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--color-primary);
    padding: 12px 0;
}

.btn-text .arrow {
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: var(--color-accent);
}

.btn-text:hover .arrow {
    transform: translateX(5px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-teal {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.badge-purple {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.section-tag.centered {
    display: table;
    margin: 0 auto 12px auto;
}

/* Helper Class Section */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.75rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.logo-text .dot {
    color: var(--color-secondary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-main);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 95vh;
    padding-top: 130px;
    padding-bottom: 60px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--grad-light);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.75rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 36px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.globe-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(13, 148, 136, 0.05) 50%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

#hero-globe-canvas {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    cursor: grab;
}

#hero-globe-canvas:active {
    cursor: grabbing;
}

.globe-instructions {
    position: absolute;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--color-border);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--color-text-light);
    pointer-events: none;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   6. About Section
   -------------------------------------------------------------------------- */
.about {
    padding: 100px 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.about-image-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    background: var(--grad-primary);
    opacity: 0.08;
    filter: blur(20px);
    top: 20px;
    left: 20px;
    z-index: 0;
}

.about-image-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: #f1f5f9;
    border: 1px solid var(--color-border);
    z-index: 1;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #e0f2fe 0%, #bae6fd 100%);
    position: relative;
}

.about-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder-bg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(0deg, rgba(14, 165, 233, 0.15) 0%, rgba(255,255,255,0) 100%);
}

.placeholder-doctor-icon {
    font-size: 8rem;
    color: var(--color-primary);
    opacity: 0.85;
    filter: drop-shadow(0 8px 16px rgba(30, 58, 138, 0.15));
    animation: pulseProfile 3s ease-in-out infinite;
}

@keyframes pulseProfile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.about-description {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.about-body {
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 16px;
    background: var(--color-bg-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   7. Featured Podcast Section
   -------------------------------------------------------------------------- */
.podcast {
    padding: 100px 0;
    background: var(--grad-light);
}

.podcast-card-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.podcast-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 40px;
}

.podcast-cover {
    padding: 24px;
    background: var(--grad-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-cover-inner {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius-md);
    background: var(--grad-medical);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.podcast-cover-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
}

.podcast-icon {
    font-size: 4rem;
    color: white;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.podcast-badge {
    position: absolute;
    bottom: 16px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(15, 23, 42, 0.4);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    z-index: 1;
}

.podcast-player-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.podcast-episode-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.35;
}

.podcast-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* Custom Audio Controls */
.custom-audio-player {
    width: 100%;
}

.player-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.player-btn {
    background: var(--grad-primary);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
    transition: var(--transition-smooth);
}

.player-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(30, 58, 138, 0.3);
}

.player-btn i {
    font-size: 1.15rem;
}

.player-btn .play-icon {
    margin-left: 2px;
}

.timeline-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-display {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-weight: 500;
    min-width: 32px;
}

.timeline-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--color-border);
    outline: none;
    cursor: pointer;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-secondary);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: 0.1s ease;
}

.timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-volume {
    width: 32px;
    height: 32px;
    background: none;
    box-shadow: none;
    color: var(--color-text-light);
}

.btn-volume:hover {
    box-shadow: none;
    transform: none;
    color: var(--color-primary);
}

.btn-volume i {
    font-size: 1rem;
}

.volume-slider {
    width: 60px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--color-border);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-text-light);
    border: none;
}

/* More Episodes Banner */
.more-episodes-banner {
    background: rgba(255, 255, 255, 0.4);
    border: 1px dashed var(--color-border);
    padding: 20px 28px;
    border-radius: var(--border-radius-md);
}

.banner-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.banner-icon {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   8. Free eBook Download Section
   -------------------------------------------------------------------------- */
.ebook {
    padding: 100px 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
}

.ebook-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.ebook-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-weight: 300;
}

.ebook-description {
    margin-bottom: 30px;
}

.ebook-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-text-dark);
}

.highlight-item i {
    color: var(--color-accent);
}

.ebook-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ebook-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* 3D Book Layout */
.book-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.book-container {
    width: 280px;
    height: 380px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.book-container:hover {
    transform: rotateY(-20deg) rotateX(10deg);
}

.book {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.book-cover-front {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px 12px 12px 3px;
    z-index: 5;
    background: #1c3d27; /* Dark Forest Green for Cultural Nutrition theme */
    box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.4), 10px 10px 25px rgba(15, 23, 42, 0.25);
    transform: translateZ(10px);
    overflow: hidden;
}

.cover-design {
    width: 100%;
    height: 100%;
    border: 8px solid rgba(255, 255, 255, 0.08);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.cover-header {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a7f3d0;
    text-align: center;
}

.cover-title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    text-align: center;
    margin-top: 20px;
    letter-spacing: -0.5px;
}

.cover-subtitle {
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: center;
    color: #cbd5e1;
    margin-top: 15px;
    padding: 0 5px;
}

.cover-volume {
    font-size: 0.65rem;
    text-align: center;
    color: #f1f5f9;
    letter-spacing: 1px;
    margin-top: auto;
    margin-bottom: 20px;
}

.cover-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
}

.cover-logo {
    font-size: 1.5rem;
    color: #34d399;
}

.cover-footer span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

/* Page edges */
.book-pages {
    position: absolute;
    width: 20px;
    height: 96%;
    top: 2%;
    right: -10px;
    background: #e2e8f0;
    background-image: linear-gradient(to right, #cbd5e1 0%, #f1f5f9 20%, #e2e8f0 40%, #cbd5e1 100%);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transform: rotateY(90deg) translateZ(270px);
    border-radius: 0 4px 4px 0;
    z-index: 4;
}

.book-cover-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px 12px 12px 3px;
    background: #102a1a;
    z-index: 1;
    box-shadow: 2px 2px 20px rgba(0,0,0,0.2);
}

/* --------------------------------------------------------------------------
   9. Interactive World Map Section
   -------------------------------------------------------------------------- */
.map-section {
    padding: 100px 0;
    background: var(--grad-light);
}

.interactive-map-container {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
}

.map-layout {
    display: block;
}

/* 2D Responsive Map Styling */
.map-2d-wrapper {
    position: relative;
    width: 100%;
    background: radial-gradient(circle, #eef6fc 0%, #e0f2fe 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vignette effect */
.map-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(15, 23, 42, 0.15) 100%);
    pointer-events: none;
    z-index: 3;
}

.map-2d-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 626;
    overflow: hidden;
    /* Subtle slow pan/zoom (Ken Burns effect) */
    animation: mapKenBurns 60s ease-in-out infinite alternate;
}

@keyframes mapKenBurns {
    0% {
        transform: scale(1.0);
    }
    100% {
        transform: scale(1.05) translate(-1%, -0.5%);
    }
}

.map-2d-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Connecting Lines SVG */
.map-connecting-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.map-connecting-lines path {
    fill: none;
    stroke: rgba(0, 224, 255, 0.4);
    stroke-width: 1.5;
    stroke-dasharray: 6, 6;
    animation: strokeDashAnim 30s linear infinite;
}

@keyframes strokeDashAnim {
    to {
        stroke-dashoffset: -100;
    }
}

/* Markers Overlay */
.map-markers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Map Marker */
.map-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 5;
}

.map-marker:hover,
.map-marker.active {
    z-index: 20;
}

.marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #00E0FF;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00E0FF;
    z-index: 3;
}

/* Pulsing effect */
.marker-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #00E0FF;
    border-radius: 50%;
    animation: markerPulseKeyframe 2s ease-in-out infinite;
    opacity: 0.8;
    z-index: 2;
}

@keyframes markerPulseKeyframe {
    0% {
        transform: scale(1.0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.0);
        opacity: 0.8;
    }
}

/* Glow effect */
.marker-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background: rgba(0, 224, 255, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(6px);
    z-index: 1;
    transition: transform 0.3s ease, background 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Highlighted marker styles */
.map-marker.active .marker-dot {
    background: #ffffff;
    box-shadow: 0 0 15px #00E0FF, 0 0 30px #00E0FF, 0 0 45px rgba(0, 224, 255, 0.8);
}

.map-marker.active .marker-pulse {
    border-color: #ffffff;
    animation: markerPulseKeyframe 0.8s ease-in-out infinite; /* Increased pulse speed */
}

.map-marker.active .marker-glow {
    background: rgba(0, 224, 255, 0.7); /* Increased glow intensity */
    width: 36px;
    height: 36px;
}

/* Popup style */
.marker-popup {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    width: 240px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

/* Hover show popup card near marker */
.map-marker:hover .marker-popup,
.map-marker.active .marker-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Adjust popup offset for markers that are near edges */
#marker-pacific .marker-popup {
    left: auto;
    right: 12px;
    transform: translateY(10px);
}
#marker-pacific:hover .marker-popup,
#marker-pacific.active .marker-popup {
    transform: translateY(0);
}

.popup-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 6px;
}

.popup-bullets {
    margin: 0;
    padding-left: 16px;
    list-style-type: disc;
}

.popup-bullets li {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
    line-height: 1.4;
}

.popup-bullets li:last-child {
    margin-bottom: 0;
}



/* --------------------------------------------------------------------------
   10. Store Section
   -------------------------------------------------------------------------- */
.store {
    padding: 100px 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.store-item {
    background: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.store-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.store-item-cover {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.store-item-icon {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.store-item-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(15, 23, 42, 0.65);
    color: white;
    font-size: 0.65rem;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Gradients for store item icons */
.bg-grad-blue { background: var(--grad-primary); }
.bg-grad-teal { background: var(--grad-medical); }
.bg-grad-purple { background: var(--grad-purple); }
.bg-grad-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }

.store-item-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.store-item-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-secondary);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.store-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.store-item p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.store-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.store-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-dark);
}

.store-launch-note {
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-light);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

.store-launch-note i {
    color: var(--color-secondary);
    margin-right: 6px;
}

/* --------------------------------------------------------------------------
   11. Community Portal Section
   -------------------------------------------------------------------------- */
.community {
    padding: 100px 0;
    background: var(--grad-light);
}

.community-banner-card {
    background: var(--grad-dark);
    border-radius: var(--border-radius-lg);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.community-bg-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 0);
    background-size: 24px 24px;
    top: -50%;
    left: -50%;
    transform: rotate(15deg);
    pointer-events: none;
}

.community-card-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.community-description {
    color: #94a3b8;
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.community-avatars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: -12px;
    box-shadow: var(--shadow-sm);
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #334155;
    border: 3px solid var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: -12px;
}

.avatar-text {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.active-dot {
    color: #22c55e;
    font-size: 0.6rem;
    animation: pulseActive 2s ease-in-out infinite;
}

@keyframes pulseActive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.btn-glow-purple {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.btn-glow-purple:hover {
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.55);
}

/* --------------------------------------------------------------------------
   12. Newsletter Signup
   -------------------------------------------------------------------------- */
.newsletter {
    padding: 100px 0;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
}

.newsletter-card {
    background: var(--grad-primary);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-lg);
    color: white;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter-card .section-tag {
    color: #bae6fd;
}

.newsletter-card .section-title {
    color: white;
    margin-bottom: 12px;
}

.newsletter-subtitle {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.newsletter-form {
    width: 100%;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 6px;
    position: relative;
    align-items: center;
    transition: var(--transition-smooth);
}

.input-group:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.input-icon {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-left: 16px;
    margin-right: 12px;
}

.input-group input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 10px 0;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.btn-submit {
    padding: 12px 24px;
}

.privacy-note {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 12px;
    margin-bottom: 0;
}

.privacy-note a {
    color: #e0f2fe;
    text-decoration: underline;
}

.newsletter-success-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    border-radius: var(--border-radius-sm);
    animation: slideUpFade 0.4s ease;
}

.success-icon {
    font-size: 1.75rem;
    color: #34d399;
}

.newsletter-success-message h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.newsletter-success-message p {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 0;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.newsletter-simple-subscribe {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.email-app-note {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-top: 4px;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: var(--color-primary-dark);
    color: #cbd5e1;
    padding: 80px 0 30px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 24px;
    max-width: 380px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: white;
    padding-left: 4px;
}

.badge-tag {
    font-size: 0.65rem;
    background-color: rgba(14, 165, 233, 0.15);
    color: var(--color-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

.copyright {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}

.disclaimer {
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. Modal Portal Structure
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.3s ease;
}

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

.modal-card {
    background: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay:not(.hidden) .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--color-text-dark);
}

.modal-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.modal-icon-wrapper i {
    font-size: 2.25rem;
}

.modal-icon-blue {
    background-color: #e0f2fe;
    color: var(--color-secondary);
}

.modal-icon-teal {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.modal-icon-purple {
    background-color: #f3e8ff;
    color: #8b5cf6;
}

.modal-icon-orange {
    background-color: #ffedd5;
    color: #f97316;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-form-shortcut {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.modal-small-text {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.modal-form-shortcut .btn {
    width: 100%;
}

/* --------------------------------------------------------------------------
   15. Mobile Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-frame {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .podcast-card {
        grid-template-columns: 1fr;
    }
    
    .podcast-cover {
        padding: 40px;
    }
    
    .podcast-cover-inner {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .ebook-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .ebook-highlights {
        align-items: center;
    }
    
    .ebook-actions {
        justify-content: center;
    }
    

    
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: absolute;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-white);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 24px;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .header-actions .nav-btn {
        display: none;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
