/* ============================================
   Dr. Liubov Drobyshenets - Main Stylesheet
   Psychotherapist & Sexologist - Lviv
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (ANIMATIONS)
   ============================================ */
@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --holo-x {
    syntax: '<percentage>';
    initial-value: 50%;
    inherits: false;
}

@property --holo-y {
    syntax: '<percentage>';
    initial-value: 50%;
    inherits: false;
}

@property --glow-opacity {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /*
     * BRIGHT THERAPY PALETTE - myTherapyNYC Style
     * Based on: Bungalow Web Design research
     * - Deep Teal: Trust, professionalism, calm
     * - Sage Green: Healing, growth, nature
     * - Coral: Warmth, friendliness, action
     * - Dusty Pink: Compassion, softness
     */

    /* Light, warm backgrounds */
    --bg-void: #F8F6F3;
    --bg-deep: #FFFFFF;
    --bg-surface: #EEE9E5;

    /* Glass effects for light theme */
    --glass-fill: rgba(255, 255, 255, 0.7);
    --glass-stroke: rgba(26, 127, 127, 0.15);
    --glass-shine: rgba(255, 255, 255, 0.9);
    --glass-inner-glow: rgba(26, 127, 127, 0.05);

    /* Primary: Deep Teal - trust, calm, professional */
    --accent-primary: #1A7F7F;
    /* Secondary: Sage Green - healing, growth, nature */
    --accent-secondary: #5BA88A;
    /* Tertiary: Soft Sky Blue - openness, clarity, peace */
    --accent-tertiary: #7ABFCF;
    /* Warm: Coral - friendly, inviting, action CTAs */
    --accent-warm: #E8956D;
    /* Rose: Dusty Pink - compassion, nurturing, empathy */
    --accent-rose: #D4A5A5;

    /* Text - dark for readability on light background */
    --text-primary: #2D3E40;
    --text-secondary: rgba(45, 62, 64, 0.7);
    --text-muted: rgba(45, 62, 64, 0.45);

    /* Soft shadows for light theme */
    --glow-primary: rgba(26, 127, 127, 0.2);
    --glow-secondary: rgba(91, 168, 138, 0.15);
    --glow-tertiary: rgba(122, 191, 207, 0.15);

    --fluid-min: 320;
    --fluid-max: 1440;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   FLUID TYPOGRAPHY SYSTEM
   ============================================ */
.fluid-h1 {
    font-size: clamp(2.8rem, 5vw + 1.5rem, 6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.fluid-h2 {
    font-size: clamp(2rem, 3vw + 1rem, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.fluid-h3 {
    font-size: clamp(1.4rem, 1.5vw + 0.8rem, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.fluid-body {
    font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.125rem);
}

/* ============================================
   CUTTING-EDGE BACKGROUND SYSTEM
   ============================================ */
.bg-system {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Seamless Scrolling Background Image */
.bg-image-scroll {
    position: absolute;
    inset: 0;
    background-image: url('https://raw.githubusercontent.com/lucasromerodb/liquid-glass-effect-macos/refs/heads/main/assets/flowers.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-y;
    height: 200%;
    animation: bgScroll 60s linear infinite;
    opacity: 0.15;
}

@keyframes bgScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* WebGL-style Gradient Orbs */
.orb-container {
    position: absolute;
    inset: 0;
    filter: blur(120px) saturate(150%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

.orb-1 {
    width: 70vmax;
    height: 70vmax;
    top: -30%;
    left: -20%;
    background: radial-gradient(circle at 30% 30%,
        rgba(125, 189, 189, 0.25) 0%,
        rgba(100, 160, 160, 0.12) 40%,
        transparent 70%
    );
    animation: orbFloat1 25s ease-in-out infinite;
}

.orb-2 {
    width: 60vmax;
    height: 60vmax;
    bottom: -25%;
    right: -15%;
    background: radial-gradient(circle at 70% 70%,
        rgba(143, 188, 148, 0.2) 0%,
        rgba(120, 165, 125, 0.08) 40%,
        transparent 70%
    );
    animation: orbFloat2 30s ease-in-out infinite;
}

.orb-3 {
    width: 50vmax;
    height: 50vmax;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 50% 50%,
        rgba(157, 196, 212, 0.15) 0%,
        rgba(130, 175, 195, 0.05) 40%,
        transparent 70%
    );
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(5%, 8%) scale(1.05); }
    50% { transform: translate(-3%, 5%) scale(0.95); }
    75% { transform: translate(8%, -5%) scale(1.02); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-8%, -5%) scale(1.08); }
    66% { transform: translate(5%, 8%) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-45%, -55%) scale(1.1); }
}

/* Morphing SVG Background */
.morph-container {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

.morph-blob {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Holographic Noise Layer */
.holo-noise {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Interactive Particle Field */
.particle-field {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
}

/* Cyber Grid */
.cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(125, 189, 189, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 189, 189, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image:
        radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Scanline Effect */
.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    opacity: 0.15;
    animation: scanMove 10s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* ============================================
   NEXT-GEN LIQUID GLASS 2025
   ============================================ */
.neo-glass {
    position: relative;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 50%,
            rgba(255, 255, 255, 0.85) 100%
        );
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-radius: 32px;
    overflow: hidden;
    isolation: isolate;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 30px rgba(26, 127, 127, 0.08);
}

/* Multi-layer border system */
.neo-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        var(--gradient-angle),
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(125, 189, 189, 0.1) 50%,
        rgba(255, 255, 255, 0.03) 75%,
        rgba(240, 171, 252, 0.1) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 8s linear infinite;
    pointer-events: none;
}

@keyframes borderRotate {
    to { --gradient-angle: 360deg; }
}

/* Inner light refraction */
.neo-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        transparent 100%
    );
    border-radius: inherit;
    pointer-events: none;
}

/* Holographic shimmer */
.neo-glass .holo-shimmer {
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from var(--gradient-angle) at var(--holo-x) var(--holo-y),
        transparent 0deg,
        rgba(125, 189, 189, 0.03) 60deg,
        transparent 120deg,
        rgba(240, 171, 252, 0.02) 180deg,
        transparent 240deg,
        rgba(103, 232, 249, 0.02) 300deg,
        transparent 360deg
    );
    animation:
        holoRotate 12s linear infinite,
        holoPosition 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes holoRotate {
    to { --gradient-angle: 360deg; }
}

@keyframes holoPosition {
    0%, 100% { --holo-x: 30%; --holo-y: 30%; }
    50% { --holo-x: 70%; --holo-y: 70%; }
}

/* Depth shadow system - Light theme */
.neo-glass-float {
    box-shadow:
        0 0 0 1px rgba(26, 127, 127, 0.08),
        0 2px 4px -2px rgba(45, 62, 64, 0.06),
        0 8px 16px -4px rgba(45, 62, 64, 0.08),
        0 24px 48px -8px rgba(45, 62, 64, 0.1),
        0 48px 96px -16px rgba(45, 62, 64, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(45, 62, 64, 0.05);
}

/* Interactive glow state */
.neo-glass-glow {
    --glow-opacity: 0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 8px 32px -8px rgba(0, 0, 0, 0.5),
        0 32px 64px -16px rgba(125, 189, 189, calc(0.15 * var(--glow-opacity))),
        0 0 120px -20px rgba(125, 189, 189, calc(0.3 * var(--glow-opacity))),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: --glow-opacity 0.4s ease;
}

.neo-glass-glow:hover {
    --glow-opacity: 1;
}

/* 3D Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card-inner {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* ============================================
   NAVIGATION 2025 - Perfect Touch & Hover
   ============================================ */
.nav-wrapper {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 4px;
    border-radius: 100px;
}

.nav-inner {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 24px rgba(26, 127, 127, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Even distribution */
    justify-content: center;
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 22px;
    border-radius: 100px;
    overflow: hidden;
    /* Prevent text selection on touch */
    -webkit-user-select: none;
    user-select: none;
    /* Remove tap highlight */
    -webkit-tap-highlight-color: transparent;
    /* Smooth transitions */
    transition: color 0.3s ease, transform 0.2s ease;
    /* Touch target minimum 48px */
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent shrinking */
    flex-shrink: 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link span {
    position: relative;
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

/* ===========================================
   HOVER - Only for devices with hover capability
   =========================================== */
@media (hover: hover) and (pointer: fine) {
    .nav-link:hover {
        color: #FFFFFF;
        transform: translateY(-1px);
    }

    .nav-link:hover::before {
        opacity: 1;
    }

    .nav-link:active {
        transform: translateY(0) scale(0.98);
    }
}

/* ===========================================
   TOUCH - For touch devices (mobile/tablet)
   =========================================== */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        /* Faster response for touch */
        transition: color 0.15s ease, transform 0.1s ease, background 0.15s ease;
    }

    .nav-link:active {
        color: #FFFFFF;
        transform: scale(0.94);
    }

    .nav-link:active::before {
        opacity: 1;
    }
}

/* Touch state visual feedback class (added via JS) */
.nav-link.touch-active {
    color: #FFFFFF;
    transform: scale(0.94);
}

.nav-link.touch-active::before {
    opacity: 1;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 64px);
    position: relative;
    z-index: 10;
}

section {
    position: relative;
    scroll-snap-align: start;
}

/* ============================================
   HERO SECTION - IMMERSIVE EXPERIENCE
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 120px 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-warm);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s backwards;
}

.status-beacon {
    position: relative;
    width: 8px;
    height: 8px;
}

.status-beacon::before,
.status-beacon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-warm);
    border-radius: 50%;
}

.status-beacon::after {
    animation: beaconPulse 2s ease-out infinite;
}

@keyframes beaconPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    margin-bottom: 28px;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.4s backwards;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .gradient-text {
    background: linear-gradient(
        135deg,
        var(--accent-primary) 0%,
        var(--accent-secondary) 50%,
        var(--accent-tertiary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease-in-out infinite;
    font-style: italic;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-description {
    max-width: 540px;
    margin-bottom: 48px;
    color: var(--text-secondary);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s backwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.8s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Premium Buttons */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-premium-fill {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-void);
}

.btn-premium-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-premium-fill:hover::before {
    opacity: 1;
}

.btn-premium-fill:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px -10px rgba(125, 189, 189, 0.4),
        0 0 80px -20px rgba(125, 189, 189, 0.6);
}

.btn-premium span,
.btn-premium svg {
    position: relative;
    z-index: 1;
}

.btn-premium svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s ease;
}

.btn-premium:hover svg {
    transform: translateX(4px);
}

.btn-premium-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-stroke);
}

.btn-premium-ghost:hover {
    background: var(--glass-fill);
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px -10px var(--glow-primary);
}

/* Hero Card */
.hero-card-wrapper {
    perspective: 2000px;
    animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s backwards;
}

.hero-card {
    padding: 32px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-card:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

.doctor-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 28px;
}

.doctor-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: contrast(1.05) brightness(0.95);
}

.hero-card:hover .doctor-image {
    transform: scale(1.05);
    filter: contrast(1.1) brightness(1);
}

.doctor-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(248, 246, 243, 0.9) 0%,
        rgba(248, 246, 243, 0.3) 30%,
        transparent 60%
    );
    pointer-events: none;
}

.doctor-visual-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 150px;
    background: radial-gradient(ellipse, var(--glow-secondary) 0%, transparent 70%);
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-card:hover .doctor-visual-glow {
    opacity: 0.7;
}

.doctor-meta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
    font-weight: 500;
    margin-bottom: 8px;
}

.doctor-title-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid rgba(125, 189, 189, 0.2);
    margin-bottom: 20px;
}

.doctor-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    transition: all 0.3s ease;
}

.skill-chip:hover {
    color: var(--text-secondary);
    border-color: var(--accent-primary);
    background: rgba(125, 189, 189, 0.05);
}

/* ============================================
   CREDENTIALS - EDUCATION & EXPERIENCE
   ============================================ */
.credentials-section {
    padding: 120px 0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.credentials-column {
    display: flex;
    flex-direction: column;
}

.credentials-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-stroke);
}

.credentials-title svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.credentials-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    position: relative;
    padding: 24px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-item:hover {
    transform: translateX(8px);
    background: rgba(125, 189, 189, 0.03);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 32px;
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    opacity: 0.6;
}

.timeline-item:first-child::before {
    background: var(--accent-warm);
    opacity: 1;
    box-shadow: 0 0 20px var(--accent-warm);
}

.timeline-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.timeline-badge.current {
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-rose));
    color: var(--bg-void);
}

.timeline-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.4;
}

.timeline-period {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .credentials-section {
        padding: 80px 0;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-item {
        padding: 20px;
    }
}

/* ============================================
   SERVICES - BENTO GRID
   ============================================ */
.services-section {
    padding: 160px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.bento-card {
    padding: 40px;
    border-radius: 32px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.bento-card:hover .bento-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 30px var(--glow-primary));
}

.bento-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    color: var(--accent-primary);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================
   AI CHAT - CONVERSATIONAL UI
   ============================================ */
.ai-section {
    padding: 160px 0;
}

.ai-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.ai-intro h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    margin-bottom: 24px;
}

.ai-intro h2 .highlight {
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-intro > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.ai-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-feature-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.ai-feature-item:hover {
    background: var(--glass-fill);
}

.ai-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ai-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--bg-void);
}

.ai-feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ai-feature-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Chat Interface */
.chat-interface {
    height: 620px;
    display: flex;
    flex-direction: column;
    border-radius: 36px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-stroke);
}

.chat-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    display: grid;
    place-items: center;
}

.chat-avatar svg {
    width: 26px;
    height: 26px;
    color: var(--bg-void);
}

.chat-avatar-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--bg-surface);
}

.chat-header-info h4 {
    font-size: 16px;
    font-weight: 600;
}

.chat-header-info span {
    font-size: 12px;
    color: #22c55e;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--glass-stroke);
    border-radius: 2px;
}

.chat-message {
    max-width: 82%;
    animation: messageAppear 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-message.ai {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 16px 22px;
    border-radius: 24px;
    font-size: 14px;
    line-height: 1.7;
}

.chat-message.ai .message-bubble {
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    border-bottom-left-radius: 8px;
}

.chat-message.user .message-bubble {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-void);
    border-bottom-right-radius: 8px;
}

.message-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 8px;
    padding: 0 8px;
}

.chat-message.user .message-time {
    text-align: right;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 18px 24px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    border-radius: 24px;
    border-bottom-left-radius: 8px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingWave 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingWave {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-10px); opacity: 1; }
}

.chat-input-area {
    padding: 24px 32px;
    border-top: 1px solid var(--glass-stroke);
    display: flex;
    gap: 16px;
}

.chat-input {
    flex: 1;
    padding: 16px 24px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    border-radius: 100px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:focus {
    border-color: var(--accent-primary);
    background: rgba(125, 189, 189, 0.03);
}

.chat-send-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    color: var(--bg-void);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px -5px var(--glow-tertiary);
}

.chat-send-btn svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   BOOKING SECTION
   ============================================ */
.booking-section {
    padding: 160px 0 200px;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.booking-info h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    margin-bottom: 24px;
}

.booking-info > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.booking-perks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-perk {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}

.booking-perk svg {
    width: 24px;
    height: 24px;
    color: var(--accent-warm);
}

/* Form */
.booking-form {
    padding: 56px;
    border-radius: 40px;
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 44px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 18px 24px;
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.4s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(125, 189, 189, 0.03);
    box-shadow: 0 0 40px -15px var(--glow-primary);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(250,248,255,0.3)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    cursor: pointer;
}

.form-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-submit {
    width: 100%;
    padding: 22px;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 16px;
    color: var(--bg-void);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-submit:hover::before {
    opacity: 1;
}

.form-submit span {
    position: relative;
    z-index: 1;
}

.form-submit:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px -10px rgba(125, 189, 189, 0.5),
        0 0 80px -20px rgba(240, 171, 252, 0.5);
}

.form-disclaimer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-disclaimer a {
    color: var(--accent-primary);
    text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--glass-stroke);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================
   MODAL
   ============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(45, 62, 64, 0.85);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    place-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-backdrop.active {
    display: grid;
    opacity: 1;
}

.modal-card {
    padding: 72px;
    text-align: center;
    max-width: 480px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-backdrop.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    color: var(--accent-warm);
}

.modal-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.modal-card p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.modal-close {
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--glass-stroke);
    border-radius: 100px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--glass-fill);
    border-color: var(--accent-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-card-wrapper {
        max-width: 420px;
        margin: 0 auto;
    }

    .ai-container {
        grid-template-columns: 1fr;
    }

    .chat-interface {
        height: 560px;
    }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .booking-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Tablet/Mobile Navigation - Centered & Even */
    .nav-wrapper {
        top: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: auto;
        max-width: calc(100% - 24px);
        border-radius: 50px;
    }

    .nav-inner {
        gap: 2px;
        padding: 6px 8px;
        justify-content: center;
        /* No scroll - fit all items */
        overflow: visible;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.02em;
        flex-shrink: 0;
        /* Touch target - minimum 48px */
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .booking-form {
        padding: 36px 28px;
    }
}

/* Small tablets and large phones (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-link {
        padding: 14px 20px;
        font-size: 12px;
    }
}

/* Extra small screens - phones */
@media (max-width: 480px) {
    .nav-wrapper {
        top: 8px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: auto;
        max-width: calc(100% - 16px);
        border-radius: 40px;
    }

    .nav-inner {
        padding: 4px 6px;
        gap: 2px;
    }

    .nav-link {
        padding: 12px 14px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.01em;
        min-height: 44px;
        border-radius: 40px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-eyebrow {
        padding: 8px 14px;
        font-size: 9px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-premium {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        /* Touch-friendly button */
        min-height: 56px;
    }

    .modal-card {
        padding: 40px 24px;
        margin: 16px;
    }
}

/* Very small screens (320px) */
@media (max-width: 360px) {
    .nav-inner {
        padding: 3px 4px;
        gap: 1px;
    }

    .nav-link {
        padding: 10px 10px;
        font-size: 9px;
        min-height: 40px;
    }
}

/* ===========================================
   GLOBAL TOUCH IMPROVEMENTS
   =========================================== */
@media (pointer: coarse) {
    /* All touch-interactive elements */
    .btn-premium,
    .bento-card,
    .nav-link,
    .form-submit,
    .modal-close,
    .footer-links a {
        /* Remove 300ms delay */
        touch-action: manipulation;
        /* Minimum touch target */
        min-height: 44px;
    }

    /* Faster transitions for touch */
    .btn-premium,
    .bento-card,
    .form-submit {
        transition-duration: 0.15s;
    }

    /* Better active states */
    .btn-premium:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    .bento-card:active {
        transform: scale(0.98);
    }

    .form-submit:active {
        transform: scale(0.98);
    }
}

/* ============================================
   ENHANCED NAV GLOW EFFECT
   ============================================ */
.nav-link {
    position: relative;
}

/* Glow layer behind the link */
.nav-link::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.3s ease;
    z-index: -2;
    pointer-events: none;
}

/* Hover glow - desktop */
@media (hover: hover) and (pointer: fine) {
    .nav-link:hover::after {
        opacity: 0.5;
    }
}

/* Touch glow - mobile/tablet */
@media (hover: none) and (pointer: coarse) {
    .nav-link:active::after {
        opacity: 0.6;
    }
}

/* ============================================
   FLOATING SOCIAL BAR - Ultra Modern 2025
   ============================================ */
.social-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 4px 24px rgba(26, 127, 127, 0.15),
        0 0 0 1px rgba(26, 127, 127, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

.social-link svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Gradient background on hover/touch */
.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Phone - green gradient */
.social-link:nth-child(1)::before {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Telegram - blue gradient */
.social-link:nth-child(2)::before {
    background: linear-gradient(135deg, #0088cc, #00c6ff);
}

/* TikTok - pink/cyan gradient */
.social-link:nth-child(3)::before {
    background: linear-gradient(135deg, #ff0050, #00f2ea);
}

/* Instagram - rainbow gradient */
.social-link:nth-child(4)::before {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Glow effect layer */
.social-link::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    opacity: 0;
    filter: blur(16px);
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

/* Phone glow */
.social-link:nth-child(1)::after {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Telegram glow */
.social-link:nth-child(2)::after {
    background: linear-gradient(135deg, #0088cc, #00c6ff);
}

/* TikTok glow */
.social-link:nth-child(3)::after {
    background: linear-gradient(135deg, #ff0050, #00f2ea);
}

/* Instagram glow */
.social-link:nth-child(4)::after {
    background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
    .social-link:hover {
        color: #FFFFFF;
        transform: translateY(-4px) scale(1.1);
    }

    .social-link:hover::before {
        opacity: 1;
    }

    .social-link:hover::after {
        opacity: 0.5;
    }

    .social-link:hover svg {
        transform: scale(1.1);
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .social-link {
        transition: all 0.15s ease;
    }

    .social-link:active {
        color: #FFFFFF;
        transform: scale(0.92);
    }

    .social-link:active::before {
        opacity: 1;
    }

    .social-link:active::after {
        opacity: 0.6;
    }
}

/* Mobile positioning */
@media (max-width: 768px) {
    .social-bar {
        bottom: 16px;
        padding: 6px 10px;
        gap: 2px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .social-bar {
        bottom: 12px;
        padding: 5px 8px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}