/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&family=Noto+Sans+Devanagari:wght@400;500;700&display=swap');

:root {
    /* IDENTITY & THEME */
    --col-navy: #0C1427;
    --col-navy-light: #162038;
    --col-navy-dark: #050914;

    --col-gold: #C6A961;
    --col-gold-light: #D4BC7D;
    --col-gold-dark: #A38845;

    --col-cream: #FDFCF9;
    --col-cream-dim: #F2F0E9;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-mr: 'Noto Sans Devanagari', sans-serif;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--col-navy);
    color: var(--col-cream);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* UTILITIES */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 8rem 0;
}

.text-gold {
    color: var(--col-gold);
}

.text-navy {
    color: var(--col-navy);
}

.font-heading {
    font-family: var(--font-heading);
}

/* BUTTONS */
.btn-gold {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--col-gold);
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-gold:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* HEADER */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: 0.5s;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(12, 20, 39, 0.95);
    border-bottom: 1px solid rgba(198, 169, 97, 0.2);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    text-decoration: none;
    padding: 5px 0;
}

.nav-logo-img {
    height: 50px;
    /* Reduced for better fit */
    width: auto;
    /* Convert black logo to White for visibility on dark header */
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    display: block;
}

/* Shrink logo slightly when scrolling */
header.scrolled .nav-logo-img {
    height: 40px;
}

.nav-logo-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--col-gold);
}

/* CARDS from Step 890 (The Rich Grid) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    border: 1px solid rgba(198, 169, 97, 0.2);
    transition: all 0.5s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--col-gold);
}

.feature-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    opacity: 0.8;
}

/* HERO CENTERED */
.hero-centered {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    background-attachment: scroll;
    /* FORCE SCROLL to prevent 'cutting' glitch */
}

.hero-bg-grad {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-inner h1 {
    font-size: 5rem;
    line-height: 1.1;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

/* Feature Row */
.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background: var(--col-navy-light);
    padding: 4rem 0;
    border-top: 1px solid rgba(198, 169, 97, 0.2);
    border-bottom: 1px solid rgba(198, 169, 97, 0.2);
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon-circle {
    width: 60px;
    height: 60px;
    border: 1px solid var(--col-gold);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--col-gold);
    font-size: 1.2rem;
}

.feature-title {
    color: var(--col-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-desc {
    opacity: 0.6;
    font-size: 0.9rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3D TEXT ANIMATION (Home Page) */
.hero-3d-text {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    transform-style: preserve-3d;
    transform: perspective(100px);
    text-shadow:
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0, 0, 0, .1),
        0 0 5px rgba(0, 0, 0, .1),
        0 1px 3px rgba(0, 0, 0, .3),
        0 3px 5px rgba(0, 0, 0, .2),
        0 5px 10px rgba(0, 0, 0, .25);
    animation: floatText 3s ease-in-out infinite alternate;
}

@keyframes floatText {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

/* 3D OPTICAL GALLERY CARD */
.gallery-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem;
    perspective: 1000px;
}

.frame-card {
    position: relative;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(198, 169, 97, 0.2);
}

.frame-card:hover {
    transform: rotateX(10deg) rotateY(-10deg) translateY(-20px) scale(1.05);
    border-color: var(--col-gold);
    box-shadow: 0 20px 50px rgba(198, 169, 97, 0.3);
    z-index: 10;
}

.frame-img-box {
    height: 70%;
    width: 100%;
    overflow: hidden;
}

.frame-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.frame-card:hover .frame-img-box img {
    transform: scale(1.2);
}

.frame-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateZ(20px);
}

.frame-info h4 {
    color: var(--col-gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
}


.frame-info p {
    color: #fff;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* RESPONSIVE / MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 1rem;
    }

    .hero-inner h1,
    .display-title,
    .royal-title,
    .hero-3d-text {
        font-size: 3rem !important;
    }

    .lead,
    .text-feature,
    article p {
        font-size: 1rem !important;
    }

    .card-grid,
    .grid-2,
    .grid-3,
    .services-grid,
    .rooms-grid,
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .feature-card {
        height: 350px;
    }

    .feature-row {
        grid-template-columns: 1fr 1fr;
    }

    .nav-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}