:root {
    --primary-green: #293623;
    --primary-green-hover: #3A4B31;
    --gold-accent: #B09F7B;
    --light-beige: #EFECE5;
    --dark-beige: #E5E2D9;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .logo-text-fallback h2 {
    font-family: var(--font-heading);
    font-weight: 500;
}

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

/* Ornaments */
.ornament-line {
    display: inline-block;
    width: 60px;
    height: 1px;
    background-color: var(--text-dark);
    vertical-align: middle;
    margin: 0 15px;
    position: relative;
}

.ornament-line::after {
    content: "♦";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: inherit;
}

.ornament-line:first-child::after {
    right: -10px;
}

.ornament-line:last-child::after {
    left: -10px;
}

.ornament-line.gold {
    background-color: var(--gold-accent);
    color: var(--gold-accent);
}

.ornament-line.small {
    width: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header.center {
    justify-content: center;
}

.section-title {
    font-size: 2rem;
    letter-spacing: 2px;
}

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

.btn-primary {
    background-color: var(--primary-green);
    color: var(--text-light);
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--gold-accent);
    padding: 12px 30px;
    border-radius: 4px;
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 1.15rem;
}

/* Header */
.header {
    background-color: var(--light-beige);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
    flex: 1;
    position: relative;
    height: 60px; /* Force header height */
    display: flex;
    align-items: center;
}

.logo img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: #000;
    border-radius: 50%;
    padding: 15px;
    border: 1px solid var(--gold-accent);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    position: absolute;
    top: -10px;
    left: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo img {
        width: 80px;
        height: 80px;
        top: -5px;
        padding: 8px;
    }
}

.logo-text-fallback {
    text-align: center;
    color: var(--gold-accent);
    background: #000;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: absolute;
    top: -10px;
    z-index: 10;
}

.logo-text-fallback h2 {
    font-size: 1.4rem;
    margin: 0;
    letter-spacing: 1px;
}

.logo-text-fallback p {
    font-size: 0.75rem;
    margin: 0;
    letter-spacing: 2px;
}

.nav-menu {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.header-action {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden; /* Ensure video doesn't overflow */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Allow clicks through to content */
}

.hero-video-container iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100%; 
    min-width: 177.77vh; /* Cover even in vertical orientations */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(239, 236, 229, 0.9) 0%, rgba(239, 236, 229, 0.6) 40%, rgba(239, 236, 229, 0) 100%);
    z-index: 1; /* Above video, below content */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero .subtitle {
    display: flex;
    align-items: center;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero .ornament {
    color: var(--gold-accent);
    margin: 0 10px;
    font-size: 0.9rem;
}

.hero .title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--primary-green);
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 550px;
    color: #444;
}

/* Features Bar */
.features-bar {
    background-color: var(--primary-green);
    color: var(--text-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 5%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.feature-icon {
    color: var(--gold-accent);
    font-size: 1.2rem;
}

.feature-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Introduction Section */
.introduction {
    padding: 80px 5%;
    background-color: var(--light-beige);
}

.intro-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-content {
    flex: 1;
    text-align: center;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Specifications */
.specifications {
    padding: 80px 5%;
    background-color: var(--dark-beige);
}

.spec-subtitle {
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 50px;
    font-size: 0.9rem;
}

.spec-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.spec-list {
    flex: 1;
}

.spec-list ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    font-weight: 500;
}

.list-icon {
    color: var(--gold-accent);
}

.spec-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-img-wrapper img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Amenities */
.amenities {
    padding: 80px 5%;
    background-color: var(--primary-green);
    color: var(--text-light);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.amenity-item {
    padding: 20px 10px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.amenity-item:last-child {
    border-right: none;
}

.amenity-icon {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
}

.amenity-item p {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Gallery */
.gallery {
    padding: 80px 5%;
    background-color: var(--light-beige);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f5f0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.preloader-content {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.loader-logo {
    width: 120px;
    height: 120px;
    background: white;
    padding: 20px;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid var(--gold-accent);
    object-fit: contain;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 100px;
    height: 2px;
    background: #ddd;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-accent);
    animation: loading 2s linear infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--text-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo, .footer-center, .footer-contact {
    flex: 1;
}

.logo-placeholder {
    color: var(--gold-accent);
    text-align: center;
    display: inline-block;
}

.logo-placeholder h2 {
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 2px;
}

.logo-placeholder p {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.decorative-leaf {
    color: var(--gold-accent);
    margin-bottom: 20px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--gold-accent);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--light-beige);
    color: var(--text-dark);
    font-size: 0.85rem;
}

.footer-ornament {
    display: flex;
    align-items: center;
}

.small-icon {
    font-size: 0.6rem;
    margin: 0 10px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--gold-accent);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    z-index: 2010;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--gold-accent);
    color: var(--primary-green);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .title {
        font-size: 3rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 20px;
    }
    
    .amenity-item:nth-child(3) {
        border-right: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .intro-container, .spec-container {
        flex-direction: column;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .footer-contact ul {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 5%;
        height: auto;
    }
    
    .logo img {
        width: 100px;
        height: 100px;
        top: -5px;
    }

    .logo-container {
        height: 50px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light-beige);
        padding: 30px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }
    
    .mobile-menu-btn {
        display: block;
        color: var(--primary-green);
    }
    
    .header-action {
        display: none;
    }
    
    .hero {
        height: 70vh;
        text-align: center;
    }
    
    .hero-overlay {
        background: rgba(239, 236, 229, 0.7);
    }
    
    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero .subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    .hero .title {
        font-size: 2.5rem;
    }
    
    .hero .description {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .features-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 10px;
        padding: 40px 5%;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .feature-divider {
        display: none;
    }
    
    .introduction, .specifications, .amenities, .gallery, .footer-top {
        padding: 50px 5%;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenity-item:nth-child(even) {
        border-right: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero .title {
        font-size: 2rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 10px;
    }
    
    .amenity-item {
        border-right: none !important;
        border-bottom: none !important;
        padding: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .spec-list li {
        font-size: 0.95rem;
        align-items: flex-start;
    }
    
    .list-icon {
        margin-top: 5px;
    }
}

/* Custom Mobile UI fixes for new sections */
@media (max-width: 768px) {
    .masterplan-container {
        gap: 20px !important;
        flex-direction: column !important;
    }
    
    .floor-plan, .lifestyle-images div {
        min-width: 100% !important;
    }
    
    .lifestyle-spaces {
        margin-top: 50px !important;
    }
    
    .lifestyle-spaces .section-title {
        font-size: 1.4rem !important;
        line-height: 1.4;
    }
    
    .lifestyle-images {
        gap: 20px !important;
        margin-top: 30px !important;
    }
    
    .intro-container {
        flex-direction: column !important;
    }
    
    .intro-content {
        margin-top: 20px;
    }
    
    #why-kumbhalgarh .intro-content {
        text-align: center !important;
    }
    
    #why-kumbhalgarh .section-header {
        justify-content: center !important;
    }
    
    #why-kumbhalgarh .spec-list ul {
        text-align: left;
    }
}
