/* ============================================
   ENHANCED UI - Fixed Light Mode + Modern Design
   Complete design system with readable light mode
   ============================================ */

/* ==========================================
   1. ROOT VARIABLES - LIGHT MODE (Default)
   ========================================== */
:root {
    /* === Primary Brand Colors === */
    --primary: #2f6f61;
    --primary-light: #4ca899;
    --primary-dark: #1e4a40;
    --primary-50: #ecf5f3;
    --primary-100: #d0e8e3;
    --primary-200: #a8d5cb;
    --primary-300: #7bc2b3;
    --primary-400: #54af9c;
    --primary-500: #2f6f61;
    --primary-600: #285b50;
    --primary-700: #1f4940;
    --primary-800: #173731;
    --primary-900: #0f2621;
    
    /* === Warm Accent === */
    --warm: #c78f4a;
    --warm-light: #d9a86d;
    --warm-dark: #a67339;
    
    /* === LIGHT MODE BACKGROUNDS === */
    --bg: #ffffff;
    --bg-secondary: #f4f7f6; /* Slightly cooler grey for better separation */
    --bg-tertiary: #eef2f0;
    --bg-muted: #e2e8e6;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --surface-hover: #f8faf9;
    --background-color: #ffffff;
    --background-gradient: linear-gradient(180deg, #ffffff 0%, #f4f7f6 100%);
    --card-bg: #ffffff;
    
    /* === LIGHT MODE TEXT - High Contrast === */
    --text: #111816; /* Darker, almost black */
    --text-color: #111816;
    --text-primary: #111816;
    --text-secondary: #3a4a46;
    --text-muted: #5c706a;
    --text-light: #7a8f89;
    --text-inverse: #ffffff;
    --muted-text: #5c706a;
    
    /* === LIGHT MODE BORDERS === */
    --border-color: #dde5e3;
    --border-light: #eef2f0;
    --border-strong: #cbd5d1;
    --border-default: #d1dad7;
    --border-focus: var(--primary);
    
    /* === LIGHT MODE SHADOWS - Luxurious & Soft === */
    --shadow-xs: 0 1px 2px rgba(15, 23, 21, 0.04);
    --shadow-sm: 0 2px 4px rgba(15, 23, 21, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 21, 0.08); /* More spread */
    --shadow-lg: 0 12px 32px rgba(15, 23, 21, 0.12); /* Modern spread */
    --shadow-xl: 0 20px 48px rgba(15, 23, 21, 0.15);
    --shadow-2xl: 0 32px 64px rgba(15, 23, 21, 0.18);
    --shadow: 0 4px 16px rgba(15, 23, 21, 0.08);
    
    /* === Card Shadows === */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    
    /* === Button Shadows === */
    --btn-shadow: 0 4px 14px rgba(47, 111, 97, 0.25);
    --btn-shadow-hover: 0 8px 25px rgba(47, 111, 97, 0.35);
    
    /* === Glass Effect - Light Mode (Refined) === */
    --glass-bg: rgba(255, 255, 255, 0.85); /* More solid for readability */
    --glass-border: rgba(255, 255, 255, 0.6);
    --header-bg: rgba(255, 255, 255, 0.95);
    
    /* === Semantic Colors === */
    --success: #0d9668;
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --error: #dc2626;
    --danger: #dc2626;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
    --info: #2563eb;
    --info-bg: #dbeafe;
    --info-text: #1e40af;
    
    /* === Form Inputs - Light Mode === */
    --input-bg: #ffffff;
    --input-border: #b8c9c4;
    --input-border-hover: #9fb5ae;
    --input-border-focus: var(--primary);
    --input-text: #1a1a1a;
    --input-placeholder: #7a8b85;
    
    /* === Gradients === */
    --gradient-primary: linear-gradient(135deg, #2f6f61 0%, #3d8a7a 100%);
    --gradient-warm: linear-gradient(135deg, #c78f4a 0%, #d9a86d 100%);
    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    --gradient-hero: linear-gradient(135deg, #f0f7f5 0%, #faf8f5 50%, #f5f9f8 100%);
    
    /* === Spacing === */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* === Border Radius === */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    --border-radius: 4px;
    --border-radius-small: 8px;
    
    /* === Transitions === */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   2. DARK MODE VARIABLES
   ========================================== */
[data-theme="dark"] {
    /* === DARK MODE BACKGROUNDS === */
    --bg: #0b1210; /* Deeper black-green */
    --bg-secondary: #111a17;
    --bg-tertiary: #16211e;
    --bg-muted: #1c2b27;
    --surface: #111a17;
    --surface-elevated: #16211e;
    --surface-hover: #1e2e2a;
    --background-color: #0b1210;
    --background-gradient: linear-gradient(180deg, #0b1210 0%, #111a17 100%);
    --card-bg: #16211e;
    
    /* === DARK MODE TEXT === */
    --text: #f0f7f5; /* Clean white-green tint */
    --text-color: #f0f7f5;
    --text-primary: #f0f7f5;
    --text-secondary: #b4c9c2;
    --text-muted: #86a399;
    --text-light: #6a887f;
    --muted-text: #86a399;
    
    /* === DARK MODE BORDERS === */
    --border-color: #24332e;
    --border-light: #1e2b27;
    --border-strong: #2f453d;
    --border-default: #24332e;
    
    /* === DARK MODE SHADOWS === */

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.55);
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.5);
    
    --btn-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    --btn-shadow-hover: 0 8px 20px rgba(47, 111, 97, 0.35);
    
    /* === Glass - Dark Mode === */
    --glass-bg: rgba(11, 18, 16, 0.75); /* Darker glass for better text pop */
    --glass-border: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(11, 18, 16, 0.90);
    
    /* === Semantic - Dark Mode === */
    --success-bg: rgba(16, 185, 129, 0.15);
    --success-text: #6ee7b7;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --warning-text: #fcd34d;
    --error-bg: rgba(239, 68, 68, 0.15);
    --error-text: #fca5a5;
    --info-bg: rgba(59, 130, 246, 0.15);
    --info-text: #93c5fd;
    
    /* === Form Inputs - Dark Mode === */
    --input-bg: #1a2723;
    --input-border: #3a4f48;
    --input-border-hover: #4a635a;
    --input-text: #e8f0ed;
    --input-placeholder: #6a887f;
    
    /* === Gradients - Dark Mode === */
    --gradient-surface: linear-gradient(180deg, #0f1715 0%, #151f1c 100%);
    --gradient-hero: linear-gradient(135deg, rgba(47, 111, 97, 0.12) 0%, rgba(199, 143, 74, 0.06) 50%, rgba(47, 111, 97, 0.08) 100%);
}

/* ==========================================
   3. BASE STYLES - LIGHT MODE FIX
   ========================================== */
html {
    color-scheme: light;
}

[data-theme="dark"] html,
html[data-theme="dark"] {
    color-scheme: dark;
}

body {
    background: var(--bg) !important;
    background-color: var(--bg) !important;
    color: var(--text) !important;
}

/* ==========================================
   4. HEADER - Light Mode Fixed
   ========================================== */
.site-header,
header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

[data-theme="dark"] .site-header,
[data-theme="dark"] header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.site-header.scrolled,
header.scrolled {
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Navigation Links - Light Mode */
.desktop-nav ul li a,
nav ul li a,
.nav-link {
    color: var(--text-color) !important; /* Light mode: keep links dark for readability */
    text-shadow: none;
    font-weight: 600;
    transition: var(--transition);
}

.site-header.scrolled .desktop-nav ul li a,
header.scrolled nav ul li a,
header.scrolled .nav-link {
    color: var(--text-secondary) !important; /* Back to normal when scrolled */
    text-shadow: none;
}

.desktop-nav ul li a:hover,
nav ul li a:hover,
.nav-link:hover {
    color: var(--primary) !important;
}

/* Nav Buttons - Light Mode */
.nav-button,
.nav-btn,
.theme-toggle {
    background: var(--surface) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition);
}

.nav-button:hover,
.nav-btn:hover,
.theme-toggle:hover {
    background: var(--surface-hover) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

/* ==========================================
   5. HERO SECTION - Light Mode Fixed
   ========================================== */
.hero {
    background: var(--gradient-hero) !important;
}

/* HERO LAYOUT FIXES */
.hero-background-image {
    width: 100% !important; /* Full width image */
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 0.9; /* Slight fade to make sure text pops if card is glass */
}

.hero-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-8) var(--space-10); /* optimized padding */
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 900px; /* Increased to use more space */
    position: relative;
    z-index: 10;
}

.hero h1 {
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background: none !important;
}

.hero p,
.hero .lead {
    color: var(--text-secondary) !important;
}

/* ==========================================
   6. CARDS - Light Mode Fixed
   ========================================== */
.card,
.room-card,
.service-card,
.contact-card,
.booking-wizard {
    background: var(--surface) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow) !important;
    transition: var(--transition);
}

.card:hover,
.room-card:hover,
.service-card:hover {
    box-shadow: var(--card-shadow-hover) !important;
    transform: translateY(-4px);
    border-color: var(--border-color) !important;
}

/* Card Content - CRITICAL FIX */
.card-title,
.room-card-title,
.service-card h3,
.card h3,
.card h4,
.card h5 {
    color: var(--text-primary) !important;
}

.card-text,
.room-card-text,
.service-card p,
.card p {
    color: var(--text-secondary) !important;
}

/* Service Icon */
.service-icon {
    background: var(--primary-50) !important;
    border: 1px solid var(--primary-100) !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-sm);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: var(--btn-shadow-hover);
}

/* Room Price */
.room-price {
    color: var(--primary) !important;
    font-weight: 700;
}

/* ==========================================
   7. BUTTONS - Light Mode Fixed
   ========================================== */
.btn-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: var(--btn-shadow) !important;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px);
    color: white !important;
}

.btn-outline-primary,
.btn-ghost {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    font-weight: 500;
}

.btn-outline-primary:hover,
.btn-ghost:hover {
    background: var(--primary-50) !important;
    color: var(--primary-dark) !important;
}

.btn-cta {
    background: var(--gradient-warm) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(199, 143, 74, 0.3) !important;
}

.btn-cta:hover {
    box-shadow: 0 8px 20px rgba(199, 143, 74, 0.4) !important;
    transform: translateY(-2px);
}

/* ==========================================
   8. FORMS - Light Mode Fixed (CRITICAL)
   ========================================== */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select,
.form-select {
    background: var(--input-bg) !important;
    background-color: var(--input-bg) !important;
    border: 2px solid var(--input-border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--input-text) !important;
    padding: 0.65rem 0.9rem !important;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--input-placeholder) !important;
    opacity: 1 !important;
}

.form-control:hover,
input:hover,
textarea:hover,
select:hover,
.form-select:hover {
    border-color: var(--input-border-hover) !important;
    background: var(--surface) !important;
    background-color: var(--surface) !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus,
.form-select:focus {
    border-color: var(--input-border-focus) !important;
    background: var(--surface) !important;
    background-color: var(--surface) !important;
    box-shadow: 0 0 0 4px rgba(47, 111, 97, 0.12) !important;
    outline: none !important;
}

/* Form Labels - CRITICAL */
.form-label,
label {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Date Picker Specific */
input[type="date"] {
    background: var(--input-bg) !important;
    color: var(--input-text) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.7;
    cursor: pointer;
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* ==========================================
   9. TEXT UTILITIES - Light Mode Fixed (CRITICAL)
   ========================================== */
.text-muted {
    color: var(--text-muted) !important;
}

p {
    color: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

/* Lead text */
.lead {
    color: var(--text-secondary) !important;
}

/* Section Headings */
.section h2::after,
.services h2::after,
h2::after {
    background: var(--gradient-primary);
}

/* ==========================================
   10. BOOKING COMPONENTS - Light Mode Fixed
   ========================================== */
.booking-wizard {
    background: var(--surface) !important;
    padding: var(--space-8);
}

.booking-step-title {
    color: var(--text-primary) !important;
}

.step-badge {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: var(--btn-shadow);
}

.booking-preview {
    background: var(--primary-50) !important;
    border: 1px solid var(--primary-100) !important;
    border-left: 4px solid var(--primary) !important;
}

.booking-preview-label {
    color: var(--text-muted) !important;
}

.booking-preview-value {
    color: var(--primary) !important;
}

.booking-info-box {
    background: #fffbf5 !important;
    border: 1px solid rgba(199, 143, 74, 0.2) !important;
    border-left: 4px solid var(--warm) !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .booking-info-box {
    background: rgba(199, 143, 74, 0.1) !important;
}

/* Availability Badges */
.availability-badge.available {
    background: var(--success-bg) !important;
    color: var(--success-text) !important;
}

.availability-badge.unavailable {
    background: var(--error-bg) !important;
    color: var(--error-text) !important;
}

/* Price Box */
.price-calculation-box {
    background: var(--primary-50) !important;
    border: 1px solid var(--primary-100) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .price-calculation-box {
    background: rgba(47, 111, 97, 0.1) !important;
    border-color: rgba(47, 111, 97, 0.2) !important;
}

/* ==========================================
   11. MOBILE NAV - Light Mode Fixed
   ========================================== */
.mobile-nav {
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-lg) !important;
}

.mobile-nav ul li a {
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.mobile-nav ul li a:hover {
    background: var(--primary-50) !important;
    color: var(--primary) !important;
}

/* ==========================================
   12. FOOTER - Light Mode Fixed
   ========================================== */
footer {
    background: linear-gradient(135deg, #1f4940 0%, #2f6f61 50%, #1e4a40 100%) !important;
    color: white !important;
}

footer p,
footer a {
    color: rgba(255, 255, 255, 0.85) !important;
}

footer a:hover {
    color: white !important;
}

/* ==========================================
   13. ALERTS - Light Mode Fixed
   ========================================== */
.alert {
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-bg) !important;
    color: var(--success-text) !important;
    border-color: var(--success) !important;
}

.alert-danger {
    background: var(--error-bg) !important;
    color: var(--error-text) !important;
    border-color: var(--error) !important;
}

.alert-warning {
    background: var(--warning-bg) !important;
    color: var(--warning-text) !important;
    border-color: var(--warning) !important;
}

.alert-info {
    background: var(--info-bg) !important;
    color: var(--info-text) !important;
    border-color: var(--info) !important;
}

/* ==========================================
   14. COUNTER INPUTS - Light Mode Fixed
   ========================================== */
.input-group.input-group-sm {
    background: var(--surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md);
}

.input-group.input-group-sm .btn {
    background: transparent !important;
    color: var(--primary) !important;
    border: none !important;
}

.input-group.input-group-sm .btn:hover {
    background: var(--primary-50) !important;
}

.input-group.input-group-sm .form-control {
    background: transparent !important;
    color: var(--text-primary) !important;
    border: none !important;
}

/* ==========================================
   15. LANGUAGE SELECTOR - Light Mode Fixed
   ========================================== */
.lang-select {
    background: var(--surface) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
}

.lang-select:hover {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
}

.lang-select option {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
}

/* ==========================================
   16. TERMS BOX - Light Mode Fixed
   ========================================== */
.terms-box {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.terms-box a {
    color: var(--primary) !important;
}

/* ==========================================
   17. MISC OVERRIDES - Light Mode
   ========================================== */

/* Muted Background Fix */
.muted,
.bg-muted {
    background: var(--bg-muted) !important;
}

/* Calendar */
.fc {
    background: var(--surface);
}

.fc .fc-toolbar-title {
    color: var(--text-primary) !important;
}

.fc .fc-button {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Room Cards Grid */
.room-card img {
    transition: transform 0.4s ease;
}

.room-card:hover img {
    transform: scale(1.05);
}

.room-card-body {
    padding: 1.25rem;
}

/* Tables */
table {
    color: var(--text-primary);
}

th {
    color: var(--text-primary) !important;
}

td {
    color: var(--text-secondary) !important;
}

/* Links */
a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Better scrollbar - Light Mode */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================
   18. SPECIFIC COMPONENT FIXES
   ========================================== */

/* Hero copy text */
.hero-copy p,
.hero-copy .lead {
    color: var(--text-secondary) !important;
}

/* Service cards text */
.service-card h3 {
    color: var(--text-primary) !important;
}

.service-card p {
    color: var(--text-secondary) !important;
}

/* Room card improvements */
[data-theme="light"] .room-card-text,
:root .room-card-text {
    color: var(--text-secondary) !important;
}

/* Booking preview items */
.booking-preview-item {
    color: var(--text-primary) !important;
}

/* Date picker label */
.date-picker-label {
    color: var(--text-secondary) !important;
}

/* ==========================================
   19. ANIMATION & TRANSITIONS
   ========================================== */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* ==========================================
   20. RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero-content {
        padding: var(--space-6);
        margin: 0 var(--space-4);
    }
    
    .service-card {
        padding: var(--space-6);
    }
    
    .booking-wizard {
        padding: var(--space-5);
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: var(--space-5);
        border-radius: var(--radius-xl);
    }
    
    .btn-primary {
        padding: var(--space-3) var(--space-5);
        font-size: 0.95rem;
    }
}

/* ==========================================
   21. REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-up {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .text-primary-gradient {
        animation: none !important;
    }
    
    .scroll-down-indicator {
        animation: none !important;
    }
    
    .hover-lift:hover,
    .hover-card-lift:hover,
    .feature-card-v2:hover {
        transform: none !important;
    }
}

/* ==========================================
   22. HIGH CONTRAST MODE
   ========================================== */
@media (prefers-contrast: high) {
    .glass-panel {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 2px solid #000 !important;
    }
    
    [data-theme="dark"] .glass-panel {
        background: rgba(0, 0, 0, 0.95) !important;
        border: 2px solid #fff !important;
    }
    
    .btn-hero-primary {
        border: 2px solid #fff !important;
    }
    
    .btn-hero-secondary {
        border: 3px solid currentColor !important;
    }
    
    .feature-card-v2 {
        border: 2px solid var(--text-primary) !important;
    }
}

/* ==========================================
   23. HERO RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 85vh;
        min-height: 85dvh;
    }
    
    .glass-panel {
        padding: 2rem 1.75rem;
    }
    
    .hero-heading {
        font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
        min-height: 80dvh;
        padding-top: 70px;
    }
    
    .glass-panel {
        padding: 1.75rem 1.5rem;
        border-radius: 4px;
    }
    
    .hero-heading {
        font-size: clamp(1.6rem, 5vw, 2.25rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }
    
    /* Feature cards responsive */
    .section-features {
        padding: 3.5rem 0;
    }
    
    .feature-card-v2 {
        padding: 1.75rem 1.5rem;
    }
    
    .feature-icon-wrap {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
        border-radius: 4px;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 479.98px) {
    .hero-section {
        min-height: 75vh;
        min-height: 75dvh;
    }
    
    .glass-panel {
        padding: 1.5rem 1.25rem;
        border-radius: 4px;
    }
    
    .hero-eyebrow {
        font-size: 0.7rem;
    }
    
    .hero-heading {
        font-size: 1.5rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 0.85rem;
        padding: 0.8rem 1.25rem;
    }
}

/* ==========================================
   Startseite Overhaul - 2026 Update (Polished)
   ========================================== */

/* ---------- HERO SECTION ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height for mobile browsers */
    width: 100%;
    margin-top: -100px;
    padding-top: 80px;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

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

.hero-background-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Day/Night Transition Logic for Wrapper */
.hero-background-wrapper .hero-bg-day {
    opacity: 1;
    z-index: 1;
}
.hero-background-wrapper .hero-bg-night {
    opacity: 0;
    z-index: 2;
}

html[data-theme="dark"] .hero-background-wrapper .hero-bg-day,
body[data-theme="dark"] .hero-background-wrapper .hero-bg-day {
    opacity: 0;
}

html[data-theme="dark"] .hero-background-wrapper .hero-bg-night,
body[data-theme="dark"] .hero-background-wrapper .hero-bg-night {
    opacity: 1;
}

/* ---------- OVERLAY GRADIENT ---------- */
.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.30) 35%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

[data-theme="dark"] .overlay-gradient {
    background: radial-gradient(
        ellipse 70% 100% at 25% 50%,
        rgba(11, 18, 16, 0.72) 0%,
        rgba(11, 18, 16, 0.45) 45%,
        rgba(11, 18, 16, 0.15) 80%,
        transparent 100%
    );
}

/* ---------- HERO CONTENT (GLASS PANEL) ---------- */
.hero-content-improved {
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 2.75rem 3rem;
    border-radius: 4px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    border-color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .glass-panel {
    background: rgba(11, 18, 16, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

[data-theme="dark"] .glass-panel:hover {
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    border-color: rgba(255, 255, 255, 0.15);
}

/* ---------- HERO TYPOGRAPHY ---------- */
.hero-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .hero-eyebrow {
    color: var(--primary-300, #7bc2b3);
}

.hero-heading {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.text-primary-gradient {
    background: linear-gradient(135deg, #2f6f61 0%, #4ca899 50%, #2f6f61 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary);
    display: inline-block;
    animation: shimmer-gradient 4s ease-in-out infinite;
}

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

[data-theme="dark"] .text-primary-gradient {
    background: linear-gradient(135deg, #4ca899 0%, #a8d5cb 50%, #4ca899 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-gradient 4s ease-in-out infinite;
}

.hero-description {
    font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 540px;
}

/* ---------- HERO CTA BUTTONS ---------- */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff !important;
    background: linear-gradient(135deg, #2f6f61 0%, #3d8a7a 100%);
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(47, 111, 97, 0.3);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(47, 111, 97, 0.4);
    color: #fff !important;
    text-decoration: none;
}

.btn-hero-primary:hover::before {
    opacity: 1;
}

.btn-hero-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(47, 111, 97, 0.35);
}

.btn-hero-primary:focus-visible {
    outline: 3px solid rgba(47, 111, 97, 0.5);
    outline-offset: 3px;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--border-strong, #cbd5d1);
    border-radius: 4px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.25s ease,
        background 0.25s ease;
}

.btn-hero-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.btn-hero-secondary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-hero-secondary:focus-visible {
    outline: 3px solid rgba(47, 111, 97, 0.5);
    outline-offset: 3px;
}

[data-theme="dark"] .btn-hero-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary) !important;
}

[data-theme="dark"] .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-300, #7bc2b3);
    color: var(--primary-300, #7bc2b3) !important;
}

/* ---------- SCROLL DOWN INDICATOR ---------- */
.scroll-down-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    animation: float-indicator 3s ease-in-out infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-down-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-color);
    border-radius: 4px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background: var(--text-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 1.8s ease-in-out infinite;
}

[data-theme="dark"] .mouse { border-color: rgba(255,255,255,0.7); }
[data-theme="dark"] .wheel { background: rgba(255,255,255,0.7); }

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    60% { top: 18px; opacity: 0.4; }
    100% { top: 8px; opacity: 0; }
}

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

/* ---------- HERO ENTRY ANIMATION ---------- */
.animate-up {
    animation: heroFadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- FEATURES SECTION ---------- */
.section-features {
    padding: 5.5rem 0;
    background: var(--bg-secondary, #f4f7f6);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .section-features {
    background: var(--bg-secondary);
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--primary);
    background: var(--primary-50, #ecf5f3);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

[data-theme="dark"] .section-badge {
    background: rgba(47, 111, 97, 0.2);
    color: var(--primary-300, #7bc2b3);
}

.section-heading {
    font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-subheading {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- FEATURE CARDS V2 ---------- */
.feature-card-v2 {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-light, #eef2f0);
    border-radius: 4px;
    padding: 2.25rem 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light, #4ca899) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200, #a8d5cb);
}

.feature-card-v2:hover::before {
    opacity: 1;
}

.feature-card-v2:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

[data-theme="dark"] .feature-card-v2 {
    background: var(--surface-elevated, #16211e);
    border-color: var(--border-color, #24332e);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .feature-card-v2:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: var(--primary-700, #1f4940);
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--primary-50, #ecf5f3);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

.feature-card-v2:hover .feature-icon-wrap {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light, #4ca899) 100%);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(47, 111, 97, 0.3);
}

[data-theme="dark"] .feature-icon-wrap {
    background: rgba(47, 111, 97, 0.2);
    color: var(--primary-300, #7bc2b3);
}

[data-theme="dark"] .feature-card-v2:hover .feature-icon-wrap {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light, #4ca899) 100%);
    color: #fff;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ---------- SECTION SPACING ---------- */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ---------- UTILITY OVERRIDES ---------- */
.text-muted { color: var(--muted-text) !important; }
.text-dark { color: var(--text-color) !important; }

.tracking-widest {
    letter-spacing: 0.15em;
}

/* ---------- HOVER INTERACTIONS ---------- */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

.hover-card-lift {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
}

.hover-card-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover) !important;
    border-color: var(--primary-200);
}

/* Legacy feature card support */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

[data-theme="dark"] .feature-card {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-muted));
    border: 1px solid var(--border-light);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 111, 97, 0.05) 0%, rgba(47, 111, 97, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

.bg-primary-subtle {
    background-color: var(--primary-50) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .bg-primary-subtle {
    background-color: rgba(47, 111, 97, 0.25) !important;
    color: var(--text-primary) !important;
}

.feature-card:hover .bg-primary-subtle {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* Glass toggle for secondary button (legacy) */
.glass-btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-color: currentColor;
}

[data-theme="dark"] .glass-btn-secondary {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

[data-theme="dark"] .glass-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

/* Blob Decoration */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.35;
    border-radius: 50%;
    pointer-events: none;
}

.blob-1 {
    top: -60px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: var(--primary-100);
}

[data-theme="dark"] .blob-1 {
    background: var(--primary-900);
    opacity: 0.15;
}
