:root {
    --color-gold: #D4AF37;
    --color-gold-light: #F0CF69;
    --color-blue: #002366;
    --color-blue-dark: #00153D;
    --color-orange: #CC5500;
    --color-cream: #FFFDD0;
    --color-cream-dark: #F5F5DC;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-luxury: 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Buttery smooth */
    --transition-hover: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    /* Prevent horizontal scroll globally */
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Double ensuring */
    position: relative;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-blue);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col {
    padding: 0 1rem;
    flex: 1;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.text-dark {
    color: var(--color-text) !important;
}

.text-light {
    color: var(--color-white) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-hover);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-blue-dark);
}

.btn-primary:hover {
    background-color: var(--color-blue);
    color: var(--color-gold);
}

.btn-gold {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-blue-dark);
}

.btn-outline {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.btn-outline:hover {
    background-color: var(--color-blue);
    color: var(--color-white) !important;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, padding 0.4s ease;
    background: transparent;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.main-header.hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo image styling */
.logo-img {
    height: 120px;
    width: auto;
    transition: var(--transition-fast);
}

.main-header.scrolled .logo-img {
    height: 90px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.main-header.scrolled .nav-link {
    color: var(--color-blue-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: var(--transition-fast);
}

.main-header.scrolled .bar {
    background-color: var(--color-blue-dark);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding-top: 80px;
}

.mandala-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    animation: pan 60s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes pan {
    0% {
        transform: scale(1.1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-2%, -2%);
    }

    100% {
        transform: scale(1.1) translate(0, 0);
    }
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    margin: 0 auto;
}

.hero-emblem img {
    margin: 0 auto;
    display: block;
    animation: float-pulse 4s ease-in-out infinite;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-gold);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes float-pulse {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    }

    50% {
        transform: translateY(-10px) scale(1.05);
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    }

    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    }
}

/* Sections */
.section {
    padding: 6rem 0;
    scroll-margin-top: 90px;
}

.bg-cream {
    background-color: var(--color-cream-dark);
}

.bg-dark {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-orange);
    text-align: center;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.decorative-divider {
    height: 3px;
    width: 80px;
    background-color: var(--color-gold);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* About Section */
.about-image-col,
.about-text-col {
    flex-basis: 50%;
}

.about-text-col {
    padding-left: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-frame {
    position: relative;
    padding: 15px;
    border: 2px solid var(--color-gold);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    border-top: 4px solid var(--color-blue);
    border-left: 4px solid var(--color-blue);
}

.image-frame::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-bottom: 4px solid var(--color-blue);
    border-right: 4px solid var(--color-blue);
}

/* Menu Section */
.menu-tab {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 1rem;
    padding-bottom: 0.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.menu-tab.active {
    color: var(--color-orange);
    border-color: var(--color-orange);
}

.menu-categories {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.menu-grid {
    display: grid;
    /* auto-fill prevents items from stretching too wide when few are visible */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    /* Centers items if they don't fill the row */
}

.menu-item {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-medium);
    border-left: 4px solid transparent;
    max-width: 400px;
    /* Prevent excessive width */
    margin: 0 auto;
    /* Center in grid cell */
    width: 100%;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-left-color: var(--color-gold);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px dotted var(--color-gold);
    padding-bottom: 0.5rem;
}

.menu-item-title {
    font-size: 1.2rem;
    margin: 0;
}

.menu-item-price {
    font-weight: 700;
    color: var(--color-orange);
}

/* Gallery - Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    height: 250px;
    background-color: #ddd;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.gallery-item .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    background-color: #aaa;
    transition: var(--transition-medium);
}

.gallery-item:hover .placeholder-img {
    transform: scale(1.05);
}

/* Contact - Royal Heritage Redesign */
.contact-section {
    background-color: var(--color-cream);
    background-image: linear-gradient(rgba(255, 253, 208, 0.9), rgba(255, 253, 208, 0.9)), url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Unified Royal Card Container - REMOVED, now just a wrapper */
.contact-section .container {
    background: transparent;
    max-width: 1100px;
    padding: 0;
    box-shadow: none;
    border: none;
    overflow: visible;
    position: relative;
    margin: 0 auto;
}

.contact-section .row {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    /* The Gap */
    justify-content: center;
}

/* Left Column: Info Box */
.contact-info {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding: 3rem;
    /* Reduced from 4rem */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border: 1px solid var(--color-gold);
    /* Individual border */
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    /* Individual shadow */
    flex: 1;
    /* Take equal width */
    min-width: 350px;
    /* Prevent squishing */
}

/* Right Column: Form Box */
.contact-form-wrapper {
    background-color: #fff;
    padding: 3rem;
    /* Reduced from 4rem */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--color-gold);
    /* Individual border */
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    /* Individual shadow */
    flex: 1;
    /* Take equal width */
    min-width: 350px;
    /* Prevent squishing */
}

.contact-section {
    padding-top: 4rem;
    /* Reduced from 6rem */
    padding-bottom: 4rem;
}

.contact-info .section-title {
    color: var(--color-gold);
    text-align: left;
    margin-bottom: 1.5rem;
    /* Reduced spacing */
    font-size: 2.2rem;
    /* Slightly smaller for single page fit */
}

.contact-details p {
    margin-bottom: 1.5rem;
    /* Reduced spacing */
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    /* Reduced spacing */
}

.contact-details p:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-details strong {
    color: var(--color-gold-light);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details i {
    color: var(--color-gold);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-form-wrapper::before {
    display: none;
}

.form-title {
    text-align: left;
    color: var(--color-blue-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
}

/* Decorative underline for form title */
.form-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-gold);
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

/* Classic Elegant Inputs */
input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    background-color: #fff;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-section .row {
        flex-direction: column;
    }

    .contact-info {
        border-right: none;
        border-bottom: 4px solid var(--color-gold);
        padding: 2rem;
    }
}








/* Map Container Styling */
.map-container {
    margin-top: 4rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--color-gold);
    line-height: 0;
}

.map-container iframe {
    display: block;
}

/* Footer */
.main-footer {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.footer-logo img {
    margin: 0 auto 1.5rem;
    max-width: 300px;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    margin: 0 15px;
    color: var(--color-gold);
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-white);
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-gold);
    color: var(--color-blue-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 991px) {
    .container {
        width: 100%;
        /* Use full width with padding */
        padding: 0 1.5rem;
        /* Safe side padding */
    }

    .contact-section .container {
        padding: 0 1.5rem;
        /* Override desktop padding: 0 */
    }

    .row {
        margin-left: 0;
        margin-right: 0;
        /* Disable negative margins causing overflow */
    }

    .col {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 0;
        background-color: var(--color-blue-dark);
    }

    .nav-list {
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-list.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-blue-dark);
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        opacity: 1;
        visibility: visible;
        z-index: 1001;
        overflow-y: auto;
    }

    .header-actions .btn {
        display: none;
    }

    .main-header.scrolled .nav-link {
        color: var(--color-white);
    }

    .main-header.scrolled .bar {
        background-color: var(--color-white);
    }

    .main-header.scrolled {
        background-color: var(--color-blue-dark);
        padding: 0.8rem 0;
        box-shadow: var(--shadow-soft);
    }

    .hero-section {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-image-col,
    .about-text-col,
    .col {
        flex-basis: 100%;
    }

    .about-text-col {
        padding-left: 0;
        margin-top: 2rem;
        text-align: center;
    }

    .about-image-col {
        height: auto;
        margin-bottom: 2rem;
    }

    .about-image-col img {
        width: 100%;
        height: 300px !important;
        object-fit: cover;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-section .row {
        flex-direction: column;
        gap: 2rem;
        /* Clear separation between boxes */
    }

    .contact-info,
    .contact-form-wrapper {
        width: 100%;
        /* Force exact fit */
        min-width: 0;
        /* Override generic min-width */
        margin-bottom: 0;
        padding: 1.5rem !important;
        /* Compact padding for mobile */
        border-radius: 8px;
        /* Standardize radius */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        /* Subtle shadow */
    }

    .contact-info {
        text-align: left;
        border: 1px solid var(--color-gold);
    }

    .contact-form-wrapper {
        border: 1px solid var(--color-gold);
        /* Ensure matching border */
    }

    .contact-info .section-title,
    .form-title {
        font-size: 1.6rem !important;
        /* Smaller titles for mobile */
        margin-bottom: 1rem;
    }

    .contact-details p {
        font-size: 0.95rem;
        /* Readable but compact */
    }

    /* Disable reveal animations on mobile for better stability */
    .fade-up,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .menu-tab {
        margin: 0 0.5rem;
        font-size: 1rem;
    }

    .section {
        padding: 4rem 0;
    }
}

/* Reveal Animations */
/* Cinematic Scroll - Controlled by JS */
.cinematic-element,
.fade-up,
.reveal-up,
.reveal-left,
.reveal-right,
.zoom-in,
.reveal-scale-image {
    opacity: 0;
    will-change: transform, opacity;
    /* Transformation handled by JS */
}

/* Cinematic Transition Curtain */
#transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

#transition-curtain.active {
    opacity: 1;
    pointer-events: all;
}

#transition-curtain .curtain-logo {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

#transition-curtain.active .curtain-logo {
    transform: scale(1);
}

/* Image Scale Reveal: 1.05 -> 1.0 */
.reveal-scale-image {
    /* JS will interpolate scale from 1.05 to 1.0 */
    transform: scale(1.05);
}

/* Parallax Classes */
.parallax-slow {
    will-change: transform;
}

.parallax-fast {
    will-change: transform;
}

.active-reveal {
    /* Legacy/Fallback */
    opacity: 1;
    transform: none;
}

/* Hover Scale Effect for Images - Refined */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform var(--transition-hover);
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
    /* Subtle zoom */
}