/* ============================================================
   STATTEN IMAGE — Components & Layout Styles
   ============================================================ */

/* ---- Splash Screen ---- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.splash-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.splash-ring {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- THE ICON FIX --- */
.splash-icon {
    width: 100px;
    height: auto;
    z-index: 2;
    opacity: 0;
    /* LIGHT MODE DEFAULT: Force the authentic black icon */
    content: url('/assets/img/icon-black.png');
    /* Destroy any artificial brightness filters */
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.15)) !important; 
    -webkit-filter: drop-shadow(0 0 15px rgba(0,0,0,0.15)) !important;
    transition: opacity var(--transition-normal);
}

/* DARK THEME: Force the authentic white/gold icon */
[data-theme="dark"] .splash-icon {
    content: url('/assets/img/icon.png');
    filter: drop-shadow(0 0 15px var(--accent-glow)) !important; 
    -webkit-filter: drop-shadow(0 0 15px var(--accent-glow)) !important;
}
/* -------------------- */

.splash-ring svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    filter: drop-shadow(0 0 8px var(--accent));
    z-index: 1;
}
.splash-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: flex;
    overflow: hidden;
}
.splash-text .s-char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}
.splash-tagline {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-top: 1rem;
    opacity: 0;
}

/* Floating Crystals */
.splash-crystals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.crystal {
    position: absolute;
    /* Light Theme Default: Mix gold with a deeper dark blue for strong contrast */
    background: linear-gradient(135deg, var(--accent) 0%, rgba(26, 26, 46, 0.4) 50%, var(--accent) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Darker shadow for white background */
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

/* Dark Theme Crystal Overrides */
[data-theme="dark"] .crystal {
    /* Mix gold with frosty white for dark backgrounds */
    background: linear-gradient(135deg, var(--accent) 0%, rgba(255, 255, 255, 0.8) 50%, var(--accent) 100%);
    box-shadow: 0 0 20px var(--accent-glow); /* Soft gold glow for dark background */
}
/* Randomize crystal starting positions and sizes */
.crystal.c1 { top: 20%; left: 20%; width: 20px; height: 35px; }
.crystal.c2 { top: 70%; left: 30%; width: 15px; height: 25px; }
.crystal.c3 { top: 30%; left: 75%; width: 25px; height: 45px; }
.crystal.c4 { top: 60%; left: 80%; width: 10px; height: 20px; }
.crystal.c5 { top: 80%; left: 50%; width: 30px; height: 50px; }
.crystal.c6 { top: 15%; left: 55%; width: 12px; height: 22px; }
.crystal.c7 { top: 45%; left: 10%; width: 18px; height: 30px; }
.crystal.c8 { top: 85%; left: 85%; width: 22px; height: 38px; }

/* ---- Navigation ---- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.main-nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--accent);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-normal);
}

.mobile-nav-overlay.active .mobile-nav-link {
    transform: translateY(0);
    opacity: 1;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center center;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 22, 40, 0.8), rgba(10, 22, 40, 0.4));
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero-title .char {
    display: inline-block;
    transform: translateY(100%);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #F0EDE6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0;
}

.hero-cta {
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #FFFFFF;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* ---- Services Carousel ---- */
.services-section {
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.services-carousel {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 0 0 350px;
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
}

.service-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.service-card-content {
    padding: 2rem;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

/* ---- Gallery Grid ---- */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent);
    color: #1A1A2E;
    border-color: var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10,22,40,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.gallery-category {
    color: var(--accent);
    font-size: 0.875rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-title,
.gallery-item:hover .gallery-category {
    transform: translateY(0);
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 22, 40, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #FFFFFF;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

/* ---- Booking Form & Calendar ---- */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.calendar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.calendar-day-header {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-day:not(.empty):hover {
    background-color: var(--bg-secondary);
}

.calendar-day.selected {
    background-color: var(--accent);
    color: #1A1A2E;
    font-weight: 700;
}

.calendar-day.disabled {
    color: var(--text-secondary);
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ---- Footer ---- */
.site-footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--accent);
    color: #1A1A2E;
    border-color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 992px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: block;
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}