@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --navy-deep: #030E24;
    --navy-surface: #07193D;
    --navy-card: rgba(10, 29, 68, 0.65);
    --cyan-electric: #00D4FF;
    --cyan-soft: #38BDF8;
    --gold-prestige: #D4AF37;
    --gold-light: #F7E199;
    --gold-amber: #F59E0B;
    --surface-light: #F8FAFC;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', 'Prompt', sans-serif;
}

body {
    background-color: var(--navy-deep);
    color: #FFFFFF;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Plus Jakarta Sans', 'Prompt', sans-serif;
}

.font-thai {
    font-family: 'Prompt', sans-serif;
}

/* Reading Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan-electric), var(--gold-prestige), var(--gold-light));
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.7);
}

/* Navbar Glass Morphing */
.nav-2027 {
    background: rgba(3, 14, 36, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-2027.scrolled {
    background: rgba(3, 14, 36, 0.94);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Metallic Gold & Electric Cyan Typography */
.text-gold-shimmer {
    background: linear-gradient(120deg, #C59B27 0%, #FFF3C4 35%, #D4AF37 65%, #F6D365 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 5s linear infinite;
}

@keyframes goldShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.text-cyan-gold {
    background: linear-gradient(90deg, #38BDF8 0%, #00D4FF 50%, #F7E199 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Background Grid & Glow */
.hero-mesh-bg {
    background-color: #030E24;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(0, 212, 255, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 82% 22%, rgba(212, 175, 55, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 50% 85%, rgba(7, 42, 108, 0.55) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

/* Surgical HUD Rings & Pulse */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

.hud-ring-outer {
    animation: spinSlow 36s linear infinite;
}

.hud-ring-inner {
    animation: spinReverseSlow 24s linear infinite;
}

.hud-float {
    animation: floatGentle 5s ease-in-out infinite;
}

/* Animated Border-Beam CTA Button */
.btn-beam {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-beam::before {
    content: "";
    position: absolute;
    inset: -120%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 260deg, #00D4FF 300deg, #F7E199 340deg, transparent 360deg);
    animation: spinSlow 3.5s linear infinite;
}

.btn-beam:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.28);
}

.btn-beam-inner {
    position: relative;
    z-index: 1;
    border-radius: 9999px;
    background: linear-gradient(135deg, #061A40 0%, #030E24 100%);
    color: #FFFFFF;
    padding: 0.85rem 2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.3s ease;
}

.btn-beam:hover .btn-beam-inner {
    background: linear-gradient(135deg, #092559 0%, #041433 100%);
}

/* Spotlight Interactive Cards */
.spotlight-card {
    position: relative;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.spotlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(450px circle at var(--mouse-x) var(--mouse-y), rgba(0, 212, 255, 0.14), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.spotlight-card:hover::after {
    opacity: 1;
}

.spotlight-card-light::after {
    background: radial-gradient(450px circle at var(--mouse-x) var(--mouse-y), rgba(0, 168, 232, 0.09), transparent 65%);
}

/* 3D Tilt Container for Scrubs Showcase */
.tilt-stage {
    perspective: 1100px;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}

/* Scroll Reveal Animations */
.js-ready .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #030E24;
}

::-webkit-scrollbar-thumb {
    background: #17346B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* =========================================================
   HERO SURGICAL HUD & BANGKOK SKYLINE ANIMATIONS (2027)
========================================================= */
@keyframes ecgDraw {
    0% { stroke-dashoffset: 320; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -320; }
}

@keyframes flarePulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.35); opacity: 1; }
}

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

@keyframes badgeFloatB {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(7px); }
}

.ecg-trace {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: ecgDraw 3.6s linear infinite;
}

.surgical-flare {
    transform-origin: center;
    animation: flarePulse 2.4s ease-in-out infinite;
}

.tool-badge-1 { animation: badgeFloatA 4.2s ease-in-out infinite; }
.tool-badge-2 { animation: badgeFloatB 4.8s ease-in-out infinite; }
.tool-badge-3 { animation: badgeFloatA 4.5s ease-in-out infinite; }
.tool-badge-4 { animation: badgeFloatB 5.1s ease-in-out infinite; }
.tool-badge-5 { animation: badgeFloatA 4.6s ease-in-out infinite; }

.hud-tool-circle {
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.25), rgba(3, 14, 36, 0.92));
    border: 1.5px solid rgba(0, 212, 255, 0.65);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.35), inset 0 0 12px rgba(0, 212, 255, 0.25);
    transition: all 0.3s ease;
}

.hud-tool-circle:hover {
    border-color: #F7E199;
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.65), inset 0 0 14px rgba(0, 212, 255, 0.45);
    transform: scale(1.12);
}

.btn-gold-cta {
    background: linear-gradient(135deg, #D4AF37 0%, #F5D77F 50%, #C59B27 100%);
    background-size: 200% auto;
    color: #030E24;
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.38);
    transition: all 0.3s ease;
}

.btn-gold-cta:hover {
    background-position: right center;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 34px rgba(212, 175, 55, 0.55);
}