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

:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #0ea5e9;
    --gold: #fbbf24;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(226, 232, 240, 0.1);
    --surface: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1a1f35 50%, #0f172a 100%);
    color: #f1f5f9;
    line-height: 1.6;
    background-attachment: fixed;
}

/* ============ GLASSMORPHISM ============ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.glass-sm {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.08);
    border-radius: 12px;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1f35;
}

::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* ============ ANIMATIONS ============ */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============ UTILITIES ============ */
.transition-smooth {
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift {
    transition: all 300ms ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

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

.text-gold {
    color: var(--gold);
}

.underline-accent {
    position: relative;
    padding-bottom: 4px;
}

.underline-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms ease;
}

.underline-accent:hover::after {
    transform: scaleX(1);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* Logo text styling */
.logo-text {
    font-weight: 800;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.85);
}

.logo-text:hover {
    text-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
}

/* Mobile menu panel (working variant) */
#mobile-menu.mobile-menu-panel {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: #0f172a;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

body.mobile-menu-open #mobile-menu {
    display: flex !important;
}

/* ============ BACK TO TOP BUTTON ============ */
.back-to-top {
    position: fixed;
    bottom: 60px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.5);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 40px;
        right: 20px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ============ LANGUAGE SWITCHER ============ */
#language-switcher {
    position: relative;
}

#lang-dropdown {
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
}

#lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

#lang-dropdown::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 3px;
}

#lang-dropdown::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.5);
    border-radius: 3px;
}

#lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.7);
}

.lang-option:active,
.mobile-lang-option:active {
    transform: scale(0.98);
}

/* Mobile language switcher adjustments */
@media (max-width: 1024px) {
    #mobile-language-switcher {
        margin-top: 8px;
    }
}

/* Active menu item styling */
.active-menu-item {
    position: relative;
}

.active-menu-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 1px;
}

@media (max-width: 1024px) {
    .active-menu-item,
    .active-menu-item::after {
        /* Mobile styling can be different if needed */
    }
}

/* BOOKING MODAL STYLES */
#booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

#booking-modal.hidden {
    display: none;
}

#booking-modal > div[data-backdrop] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

/* Modal dialog on top of backdrop */
#booking-modal > div:not([data-backdrop]) {
    position: fixed;
    z-index: 10001;
    /* Hide scrollbar for all browsers */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Select field height fix */
#booking-modal select {
    height: 44px !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    vertical-align: middle !important;
    padding: 0.5rem 2.5rem 0.5rem 1rem !important;
    padding-right: 2.5rem !important;
}

/* Date input styling for white icons */
#booking-modal input[type="date"] {
    height: 44px !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding: 0.5rem 2.5rem 0.5rem 1rem !important;
    vertical-align: middle !important;
}

/* Calendar icon color - webkit browsers */
#booking-modal input[type="date"]::-webkit-calendar-picker-indicator {
    filter: brightness(0) invert(1) !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
}

/* Firefox calendar icon */
#booking-modal input[type="date"]::-moz-calendar-picker-indicator {
    filter: brightness(0) invert(1) !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
}

/* Hide webkit scrollbar (Chrome, Safari, Edge) */
#booking-modal > div:not([data-backdrop])::-webkit-scrollbar {
    display: none;
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    /* Modal adjustments for tablets */
    #booking-modal > div:not([data-backdrop]) {
        max-width: 90vw !important;
        max-height: 85vh !important;
        top: 50% !important;
        left: 50% !important;
    }
}

@media (max-width: 640px) {
    /* Modal for mobile phones - full screen with margins */
    #booking-modal > div:not([data-backdrop]) {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: 100% !important;
        width: calc(100vw - 1.5rem) !important;
        max-height: 90vh !important;
        border-radius: 1rem !important;
    }

    /* Modal header - smaller padding and font size */
    #booking-modal > div:not([data-backdrop]) > div:first-child {
        padding: 1.5rem !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Modal header title - smaller on mobile */
    #booking-modal > div:not([data-backdrop]) > div:first-child h3 {
        font-size: 1.5rem !important;
    }

    /* Modal header subtitle */
    #booking-modal > div:not([data-backdrop]) > div:first-child p {
        font-size: 0.8rem !important;
    }

    /* Close button - larger touch target */
    #modal-close {
        width: 2.5rem !important;
        height: 2.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Modal body - smaller padding */
    #booking-modal > div:not([data-backdrop]) > div:last-child {
        padding: 1.5rem !important;
    }

    /* Form grid items - single column on mobile */
    #booking-form > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    #booking-form > div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Input fields - larger padding for easier touch */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
        padding: 0.875rem 1rem !important;
        font-size: 1rem !important;
        min-height: 44px !important;
    }

    /* Form labels - smaller font size */
    label {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Form group gaps */
    #booking-form {
        gap: 1.25rem !important;
    }

    /* Buttons - full width and larger touch targets */
    #booking-modal button {
        padding: 1rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
        border-radius: 0.75rem !important;
    }

    /* Submit buttons container */
    #booking-form > div[style*="display: flex; gap: 1rem"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding-top: 1rem !important;
    }

    /* Success message adjustments */
    #success-message {
        padding: 2rem 1rem !important;
    }

    #success-message h4 {
        font-size: 1.5rem !important;
    }

    #success-message p {
        font-size: 0.9rem !important;
    }

    /* Newsletter checkbox - better spacing */
    #booking-form > div[style*="display: flex; align-items: flex-start"] {
        padding: 0.75rem !important;
    }

    /* Checkbox size for touch */
    input[type="checkbox"] {
        width: 1.5rem !important;
        height: 1.5rem !important;
        min-width: 1.5rem !important;
    }
}

