@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --gold: #eab308;
    --gold-dim: rgba(234, 179, 8, 0.2);
    --blue: #3b82f6;
    --blue-dim: rgba(59, 130, 246, 0.2);
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.1);
    --surface: rgba(15, 23, 42, 0.5);
  }
}
:root {
            --forest-accent: #042F2E;
            --sepia-text: #5D4037;
        }
        body {
            background-color: theme('colors.parchment');
            color: theme('colors.ink');
            line-height: 1.8;
            overflow-x: hidden;
            margin: 0;
            padding: 0;
            width: 100vw;
        }

        /* The giant canvas that holds all our content stations */
        #canvas-world {
            position: fixed;
            top: 0;
            left: 0;
            width: 500vw; /* 5 screens wide */
            height: 400vh; /* 4 screens tall */
            /* Advanced animated mesh gradient background */
            background-color: #0b1120;
            background-image:
                radial-gradient(circle at 10vw 20vh, rgba(59, 130, 246, 0.15), transparent 40vw),
                radial-gradient(circle at 120vw 80vh, rgba(234, 179, 8, 0.1), transparent 40vw),
                radial-gradient(circle at 250vw 20vh, rgba(59, 130, 246, 0.15), transparent 50vw),
                radial-gradient(circle at 350vw 80vh, rgba(234, 179, 8, 0.15), transparent 40vw),
                radial-gradient(circle at 450vw 10vh, rgba(59, 130, 246, 0.1), transparent 50vw),
                linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8));
            will-change: transform;
        }

        /* Ambient floating orbs in the background */
        #canvas-world::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 500vw; height: 400vh;
            background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: -1;
        }

        /* Each section of the M */
        .station {
            position: absolute;
            width: 100vw;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: clamp(1rem, 5vw, 4rem);
            z-index: 10;
            box-sizing: border-box;
        }

        /*
           M Shape Stations (9 points total)
           We are in a 400vw x 400vh world.
           0vw = Left edge
           400vw = Right edge
           0vh = Top edge
           400vh = Bottom edge
        */

        /* Line 1: Up */
        #station-1 { top: 300vh; left: 0; }             /* 0vw, Bottom */
        #station-2 { top: 150vh; left: 0; }             /* 0vw, Middle */
        #station-3 { top: 0; left: 0; }                 /* 0vw, Top */

        /* Line 2: Diagonal Down */
        #station-4 { top: 150vh; left: 100vw; }         /* 100vw, Middle */
        #station-5 { top: 300vh; left: 200vw; }         /* 200vw, Bottom Center */

        /* Line 3: Diagonal Up */
        #station-6 { top: 150vh; left: 300vw; }         /* 300vw, Middle */
        #station-7 { top: 0; left: 400vw; }             /* 400vw, Top */

        /* Line 4: Down */
        #station-8 { top: 150vh; left: 400vw; }         /* 400vw, Middle */
        #station-9 { top: 300vh; left: 400vw; }         /* 400vw, Bottom */

        /* The proxy element that creates a normal scrollbar */
        #scroll-proxy {
            position: absolute;
            top: 0;
            left: 0;
            width: 1px;
            /* 900vh tall to give enough scroll distance for 9 stations */
            height: 1800vh;
            z-index: -1;
        }

        /* Internal section styling */
        .station-content {
    max-height: calc(100vh - 4rem) !important;
            background: rgba(15, 23, 42, 0.6) !important; /* Glassmorphism Base */
            backdrop-filter: blur(24px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.1) !important;
            padding: 3rem;
            border-radius: 24px; /* More modern, softer corners */
            max-width: 1200px;
            width: 100%;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            justify-content: center;



            /* transition removed for smooth js lerp */
            opacity: 0.05;
            transform: scale(0.95);
        }

        @media (max-width: 768px) {
            .station-content {
                padding: 2rem 1.5rem !important;
                max-height: 85vh;
                border-radius: 16px;
            }
        }

        /* Hide scrollbar for inner content */
        .station-content {
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        .station-content::-webkit-scrollbar {
            display: none; /* Chrome, Safari and Opera */
        }

        /* Keep existing typography */
        .editorial-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
        .journal-entry { border-top: 1px solid theme('colors.muted'); padding-top: 3rem; }
        .leading-journal { line-height: 2; }
        .drop-cap::first-letter {
            float: left; font-size: 5rem; line-height: 1; padding-top: 4px; padding-right: 12px;
            font-family: 'Cormorant Garamond', serif; color: var(--forest-accent);
        }

        /* --- MINI M MAP NAVIGATION --- */
        #nav-overlay {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    pointer-events: auto;
}

@media (max-width: 768px) {
    #nav-overlay {
        top: 2.5rem; /* a bit more top padding on mobile */
        transform: translateX(-50%) scale(0.9); /* slight scale down for small screens */
    }
}

/* =========================================================
   NAVIGATION MAP MENU STYLES
   Three distinct themes are provided here.
   By default, Theme 1 (Premium Glass Gold) is active.
   To switch themes, change the classes on `#nav-overlay .map-container` in HTML.
   E.g., <div class="map-container theme-cyberpunk relative">
   ========================================================= */

/* --- Base Container --- */
.map-container {
    position: relative;
    width: 160px;
    height: 120px;
    padding: 1rem;
    border-radius: 16px;
    transition: all 0.5s ease;
}

/* THEME 1: Premium Glass Gold (Default) */
.map-container.theme-premium {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(234, 179, 8, 0.2);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.8), inset 0 0 20px rgba(234, 179, 8, 0.05);
}
.map-container.theme-premium .map-dot {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.05);
}
.map-container.theme-premium .map-dot:hover {
    background-color: #fef08a;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.6);
}
.map-container.theme-premium .map-dot.active {
    background: linear-gradient(135deg, #fef08a, #ca8a04);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.8), 0 0 40px rgba(234, 179, 8, 0.4);
    border: 1px solid #fff;
}
.map-container.theme-premium .map-lines path {
    stroke: rgba(234, 179, 8, 0.3);
    filter: drop-shadow(0 0 5px rgba(234,179,8,0.2));
}

/* THEME 2: Cyberpunk / Neon Blue */
.map-container.theme-cyberpunk {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2), inset 0 0 15px rgba(14, 165, 233, 0.1);
}
.map-container.theme-cyberpunk .map-dot {
    background-color: rgba(14, 165, 233, 0.2);
}
.map-container.theme-cyberpunk .map-dot.active {
    background-color: #0ea5e9;
    box-shadow: 0 0 20px #0ea5e9, 0 0 40px #38bdf8;
    border: 1px solid #fff;
}
.map-container.theme-cyberpunk .map-lines path {
    stroke: rgba(14, 165, 233, 0.4);
}

/* THEME 3: Solid Minimalist */
.map-container.theme-minimal {
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.map-container.theme-minimal .map-dot {
    background-color: #475569;
}
.map-container.theme-minimal .map-dot.active {
    background-color: #f8fafc;
    box-shadow: none;
    transform: translate(-50%, -50%) scale(1.2);
}
.map-container.theme-minimal .map-lines path {
    stroke: #334155;
}

/* --- Common Dot Mechanics --- */
.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 2.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 5;
}
.map-dot:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 20;
}
.map-dot.active {
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 10;
}

/* --- Map Tooltips (Labels) --- */
.map-dot::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%) translateX(-5px);
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    color: #f1f5f9;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 2.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(15, 23, 42, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.3);
}

.map-dot.active::after,
.map-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.map-container:hover .map-dot.active:not(:hover)::after {
    opacity: 0;
}

/* Precise dot placement for the M shape in the 160x120 container */
        /* Note: container has padding, so we place these relative to the inner bounds */
        #map-dot-0 { bottom: 10%; left: 10%; }           /* Start */
        #map-dot-1 { bottom: 50%; left: 10%; }
        #map-dot-2 { top: 10%; left: 10%; }              /* Top Left */

        #map-dot-3 { top: 50%; left: 30%; }
        #map-dot-4 { bottom: 10%; left: 50%; }           /* Center Bottom */

        #map-dot-5 { top: 50%; left: 70%; }
        #map-dot-6 { top: 10%; left: 90%; }              /* Top Right */

        #map-dot-7 { bottom: 50%; left: 90%; }
        #map-dot-8 { bottom: 10%; left: 90%; }           /* End */

        /* Faint connecting lines behind the dots on the map */
        .map-lines {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none;
        }

/* --- Injected Styles from User Input --- */
:root {
  --gold: #eab308;
  --gold-dim: rgba(234, 179, 8, 0.2);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.2);
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.1);
  --surface: rgba(15, 23, 42, 0.5);
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.title-xl { font-family: 'Cormorant Garamond', serif; font-size: 3rem; line-height: 1.1; color: #f8fafc; }
.title-md { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: #f8fafc; }
.display { font-family: 'Cormorant Garamond', serif; font-size: 4rem; line-height: 1; color: #f8fafc; }

.body-text { font-family: 'Inter', sans-serif; font-size: 1.1rem; color: rgba(248, 250, 252, 0.8); line-height: 1.6; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--gold), #ca8a04);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary:hover { transform: scale(1.05); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-ghost:hover { background: rgba(234, 179, 8, 0.1); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }
.btn-whatsapp:hover { background: #1ebe5d; transform: scale(1.05); }

.divider { height: 1px; background: var(--border); margin: 2rem 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}
.pill .material-symbols-outlined { font-size: 14px; color: var(--gold); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.service-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--gold-dim); }
.service-card h6 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; margin-bottom: 0.5rem; color: #f8fafc; }
.service-card p { font-size: 0.9rem; color: var(--text-dim); }
.service-card .icon { font-size: 32px; color: var(--gold); margin-bottom: 1rem; display: block; }

.icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #f8fafc; font-size: 0.95rem; }
.icon-row .material-symbols-outlined { color: var(--blue); }

.img-overlay { position: relative; border-radius: 16px;  border: 1px solid var(--border); }
.img-overlay img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.5s; }
.img-overlay:hover img { opacity: 1; }

.stat-card { text-align: center; padding: 1rem; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid var(--border); }
.stat-card .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 4px; }
.stat-card .value { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--gold); line-height: 1; }

.contact-link { font-size: 2rem; font-family: 'Inter', sans-serif; font-weight: 300; color: #f8fafc; text-decoration: none; transition: color 0.3s; }
.contact-link:hover { color: var(--gold); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; background: rgba(0,0,0,0.2); border: 1px solid var(--border);
  border-radius: 8px; color: #fff; font-family: 'Inter', sans-serif; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }

@media (max-width: 768px) {
  .split, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .display { font-size: 2.5rem; }
  .title-xl { font-size: 2rem; }
}

/* Hide some raw text pieces that were left over from user input */
.raw-text-hidden { display: none !important; }

/* --- Enriched Premium Styles --- */


.title-xl {
  background: linear-gradient(135deg, #f8fafc, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

.display {
  background: linear-gradient(to right, #eab308, #ca8a04);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

.service-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -5px rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
}
.service-card .icon {
  background: rgba(234, 179, 8, 0.1);
  padding: 1rem;
  border-radius: 50%;
  display: inline-flex;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 10px rgba(234, 179, 8, 0.2);
}

.wellness-item {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}
.wellness-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -4px rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.3);
}

.secure-card {
  background: rgba(30, 41, 59, 0.3);
  padding: 2rem !important;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.secure-card:hover {
  background: rgba(30, 41, 59, 0.5);
  transform: scale(1.01);
}

.stat-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
}

/* Subtle glowing background orbs to enrich sections */
.station-content::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}


/* Explicitly disable scrolling in journal1 sections */
.station-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
/* Premium Gradients */
.text-gradient-gold {
  background: linear-gradient(135deg, #fef08a, #eab308, #a16207);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}
.text-gradient-blue {
  background: linear-gradient(135deg, #bfdbfe, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}
.text-gradient-silver {
  background: linear-gradient(135deg, #f8fafc, #94a3b8, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Station Aura Glow */
.station-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(234, 179, 8, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
    filter: blur(40px);
}
.station.active .station-glow {
    opacity: 1;
}

/* Ensure content stays above the glow */
.station-content {
    z-index: 10;
}
