/* =========================================================================
   M.I Classic Lodge - Premium Dark Luxury Theme (Anti-Gravity Aesthetic)
   ========================================================================= */

/* --- Variables --- */
:root {
    /* Colors */
    --bg-dark: #05080c;
    --bg-card: rgba(15, 22, 35, 0.7);
    --bg-card-hover: rgba(25, 35, 55, 0.9);
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: rgba(212, 175, 55, 0.2);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing & Layout */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius: 16px;

    /* Transitions & Shadows */
    --transition-slow: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s ease;
    --shadow-base: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--gold-glow);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px var(--gold-glow);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gold {
    color: var(--gold-primary);
}

/* --- Particle System Background --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* --- Layout Utility --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.title-underline {
    height: 2px;
    width: 60px;
    background-color: var(--gold-primary);
    margin-bottom: 30px;
    box-shadow: var(--shadow-glow);
}

.title-underline.center {
    margin: 0 auto 30px auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* --- Button Styles --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-slow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), #b2932c);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-slow);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 8, 12, 0.85);
    backdrop-filter: blur(10px); /* Glassmorphism */
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition-fast);
    box-shadow: 0 0 5px var(--gold-primary);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a.nav-btn {
    background-color: transparent;
    border: 1px solid var(--gold-primary);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--gold-primary);
}

.nav-links li a.nav-btn::after {
    display: none;
}

.nav-links li a.nav-btn:hover {
    background-color: var(--gold-glow);
    box-shadow: 0 0 15px var(--gold-glow);
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding: 0 20px;
}

.hero-logo-container {
    margin-bottom: 30px;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: contain;
    margin: 0 auto;
    border: 2px solid var(--gold-primary);
    padding: 5px;
    box-shadow: 0 0 30px var(--gold-primary);
    background: #000;
}

.glow-text {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: transparent;
    -webkit-text-stroke: 1px var(--gold-light);
    background: linear-gradient(180deg, #fff 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--gold-primary);
    animation: bounce 2s infinite;
}

/* --- Animations (Anti-Gravity Core) --- */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

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

.float-up {
    animation: floatUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

.float-hover {
    transition: var(--transition-slow);
}

.float-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.float-hover-sm:hover {
    transform: translateY(-5px);
}

/* Scroll Reveal Classes (Intersection Observer) */
.observer-target {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.observer-target.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- About Section --- */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    flex: 1;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-base);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-icon {
    font-size: 1rem;
    margin-left: 5px;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-base);
}

.image-wrapper img {
    border-radius: var(--border-radius);
    transition: var(--transition-slow);
}

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

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(212, 175, 55, 0.2);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    pointer-events: none;
}

/* --- Amenities Section --- */
#amenities {
    background: linear-gradient(to bottom, #05080c, #0a0f18);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.amenity-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-base);
    position: relative;
    overflow: hidden;
}

.amenity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
}

.amenity-card:hover::before {
    opacity: 1;
}

.amenity-card:hover {
    border-color: var(--border-color);
}

.amenity-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
    transition: var(--transition-fast);
}

.amenity-card:hover .amenity-icon {
    transform: scale(1.1);
}

.amenity-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.amenity-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Rooms & Pricing (3D Tilt Cards) --- */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

.tilt-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-base);
    transform-style: preserve-3d;
    transition: box-shadow var(--transition-slow);
}

/* Remove CSS hover scale, JS will handle 3D tilt */
.tilt-card .room-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    transform: translateZ(30px); /* 3D effect layer */
}

.tilt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.tilt-card:hover img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-primary);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.room-info {
    padding: 30px;
    transform: translateZ(50px); /* 3D effect layer */
}

.room-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.room-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.room-features {
    margin-bottom: 30px;
}

.room-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.room-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.room-price span {
    font-size: 2.2rem;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Room AC Toggle Switch --- */
.room-ac-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ac-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.ac-label.active {
    color: var(--gold-primary);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--gold-primary);
}

input:checked + .slider {
    background-color: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.slider.round {
    border-radius: 26px;
}

.slider.round:before {
    border-radius: 50%;
}

/* --- Gallery Section (Irregular/Floating Grid) --- */
#gallery {
    background: #05080c;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: var(--transition-slow);
}

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

.gallery-item:nth-child(2) {
    transform: translateY(40px);
}

.gallery-item:nth-child(3) {
    transform: translateY(-20px);
}

/* --- Reviews Section --- */
#reviews {
    background: linear-gradient(to top, #05080c, #0a0f18);
    position: relative;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.review-bubble {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-base);
}

.review-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    border-width: 15px 15px 0 0;
    border-style: solid;
    border-color: var(--bg-card) transparent transparent transparent;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 30px;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-stars {
    color: var(--gold-primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-author h4 {
    font-size: 1rem;
    font-family: var(--font-body);
}

/* --- Contact & Footer --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.info-card i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-muted);
}

.contact-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
}

footer {
    background: #020305;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.social-links a:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        grid-row: 1;
    }
    .glow-text {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: rgba(5, 8, 12, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 40px 0;
        transition: 0.4s ease-in-out;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3) {
        transform: translateY(0);
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .glow-text {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column;
    }
}
