:root {
    --bg-color: #f8fafc;
    /* Slate 50 */
    --text-head: #1e293b;
    /* Slate 800 */
    --text-body: #475569;
    /* Slate 600 */
    --accent: #0F503C;
    /* Deep Emerald */
    --accent-gold: #c29d23;
    /* Polished Gold */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(148, 163, 184, 0.2);

    --font-head: 'Cinzel', serif;
    --font-body: 'Manrope', sans-serif;

    --container-padding: 2rem;
    --max-width: 1200px;
}

.gradient-mesh {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #334155 0%, #64748b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-body);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    color: var(--text-head);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography Utilities */
.title-lg {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.font-playfair {
    font-family: 'Playfair Display', serif !important;
}

/* Effects & Animations */
.glass {
    backdrop-filter: blur(20px);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up.visible {
    transform: translateY(0);
    opacity: 1;
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glow-hover {
    transition: all 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

.image-parallax {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rotate-hover {
    transition: transform 0.5s ease;
}

.rotate-hover:hover {
    transform: rotate(3deg) scale(1.02);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-head);
    border-radius: 50px;
    /* Pill shape */
}

.btn-primary:hover {
    background: #0a3d2e;
    transform: translateY(-2px);
}

.btn-outline {
    border: 3px solid #000;
    color: var(--text-head);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-color);
}

.btn-outline-gold {
    border: 1px solid var(--accent-gold);
    color: #fff;
    background: transparent;
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: #fff;
}

.btn-gold-fill {
    background: var(--accent-gold);
    color: var(--bg-color);
    font-weight: bold;
}

.btn-gold-fill:hover {
    background: #b5952f;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-text {
    font-family: var(--font-head);
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 2px;
}

.progress-bar-container {
    width: 100%;
    height: 2px;
    background: #333;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-gold);
    transition: width 0.1s linear;
}

.progress-percentage {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: background 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--container-padding);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--text-head);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-head);
}

/* Scrollytelling Section */
.hero-scroll-container {
    height: 800vh;
    /* Long scroll area */
    position: relative;
}

.sticky-canvas-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fallback */
}

/* Text Overlays */
.scroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 0;
    /* Hidden by default, controlled by JS */
    transition: opacity 0.5s ease;
    display: flex;
    padding: var(--container-padding);
    z-index: 5;
}

.scroll-overlay.active {
    opacity: 1;
}

.overlay-content {
    max-width: 500px;
}

.overlay-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.overlay-content p {
    font-size: 1.2rem;
    color: #fff;
}

/* Positions */
.position-bottom-left {
    align-self: flex-end;
    margin-bottom: 10vh;
    margin-left: 5vw;
}

.position-bottom-right {
    align-self: flex-end;
    margin-bottom: 10vh;
    margin-left: auto;
    margin-right: 5vw;
    text-align: right;
}

.position-middle-left {
    align-self: center;
    margin-left: 5vw;
}

.position-middle-right {
    align-self: center;
    margin-left: auto;
    margin-right: 5vw;
    text-align: right;
}

.position-center {
    margin: auto;
    text-align: center;
    z-index: 10;
    pointer-events: auto;
    /* Enable button clicks */
}

/* Post-Scroll Content */
.content-wrapper {
    position: relative;
    z-index: 2;
    background: var(--bg-color);
}

.section {
    padding: 6rem var(--container-padding);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.divider {
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
    margin: 0 auto;
}

/* White Theme Containers */
.bg-white-section {
    background-color: #ffffff;
    color: #333333;
    padding: 6rem var(--container-padding);
}

.bg-white-section h2 {
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bg-white-section .divider {
    background: #d4af37; /* Gold divider */
    height: 1px;
    width: 60px;
}

/* White Theme Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.white-glass-card {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Subtle gold border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft drop shadow */
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.white-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.white-glass-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #d4af37; /* Gold text */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.white-glass-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.6;
}

/* Portfolio White Theme */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    border-radius: 16px; /* Rounded corners for images */
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

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

.portfolio-item .item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    /* Always visible in white theme */
}

.portfolio-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Booking Process White Theme */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    text-align: center;
    background: #ffffff;
    padding: 0 10px; /* Overlap the line */
    z-index: 2;
    position: relative;
}

.step-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #d4af37; /* Gold number */
    margin-bottom: 0.2rem;
}

.step-name {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777777;
}

.step-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(212, 175, 55, 0.4); /* Gold line */
    margin: 0 -20px; /* Pull beneath the steps */
    z-index: 1;
    position: relative;
    top: -10px;
}

.white-cta-box {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 4rem 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.white-cta-box h2 {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.white-cta-box p {
    color: #555555;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.btn-gold-fill {
    background: #d4af37;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-gold-fill:hover {
    background: #b8962c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0;
    background: #0d0d0d;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.sister-brands {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #888;
}

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

.copyright {
    font-size: 0.8rem;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    /* Tailwind classes now handle navbar display toggles. */
    /* Hiding of .nav-links is covered by 'hidden md:flex' on HTML element */

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

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

    .process-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .step-line {
        width: 1px;
        height: 30px;
        margin: 0.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    /* Crucial Mobile Hero Adjustments */
    .overlay-content {
        position: absolute;
        bottom: 10vh !important;
        left: 50% !important;
        transform: translateX(-50%);
        width: 90%;
        text-align: center !important;
        margin: 0 !important;

        /* Ensure readability */
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .position-center {
        bottom: 50% !important;
        transform: translate(-50%, 50%) !important;
    }

    .overlay-content h2,
    .overlay-content p {
        color: #fff;
    }

    /* Adjust text sizes for mobile context */
    .overlay-content h2 {
        font-size: 2rem;
    }

    .overlay-content p {
        font-size: 1rem;
    }
}

/* Enhanced Timeline Styles */
.timeline-step {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    background: #e2e8f0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-dot.active {
    background: #475569;
    transform: scale(1);
    box-shadow: 0 0 20px rgba(71, 85, 105, 0.4);
}

.progress-line {
    height: 0%;
    background: linear-gradient(to bottom, #475569, #64748b);
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(71, 85, 105, 0.3);
}