/* 
* Maharani Palace - Premium Luxury Theme 
* Palette: Dark Charcoal (#0f1014), Royal Gold (#F6C343), Soft White (#f4f4f4)
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --bg-main: #0f1014;
    --bg-card: #1a1c23;
    --bg-card-hover: #22252e;
    --text-main: #f4f4f4;
    --text-muted: #a0a0a0;
    --accent-gold: #F6C343;
    --accent-gold-hover: #e0b138;
    --border-color: rgba(246, 195, 67, 0.15);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(246, 195, 67, 0.15);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 span,
h2 span {
    color: var(--accent-gold);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Buttons --- */
.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold), #d4af37);
    color: #000;
    padding: 0.8rem 2.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%) skewX(-15deg);
    transition: var(--transition);
    z-index: -1;
}

.btn-gold:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.btn-gold:hover {
    box-shadow: 0 0 20px rgba(246, 195, 67, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--accent-gold);
    padding: 0.8rem 2.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(246, 195, 67, 0.3);
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(15, 16, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.header-cta {
    display: none;
}

@media (min-width: 992px) {
    .header-cta {
        display: block;
    }
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(15, 16, 20, 0.4) 0%, rgba(15, 16, 20, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* --- Sections --- */
.section-padding {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.premium-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.premium-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-soft);
    border-color: var(--border-color);
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.premium-card:hover .card-icon {
    color: var(--accent-gold);
    text-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.premium-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.premium-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- About Layout --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.5;
}

/* --- Pricing Cards --- */
.price-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
}

.price-card.popular {
    background: linear-gradient(145deg, #1a1c23, #252830);
    border: 1px solid var(--accent-gold);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-gold);
    color: #000;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-bottom-left-radius: 12px;
}

.price {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin: 1.5rem 0;
    font-weight: 700;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.features-list li i {
    color: var(--accent-gold);
}

/* --- Forms --- */
.form-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(246, 195, 67, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--accent-gold);
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

/* --- Footer --- */
footer {
    background: #0a0b0e;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-main);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(246, 195, 67, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-layout,

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .premium-card {
        padding: 2rem 1.5rem;
    }

    .gallery-item:hover .gallery-overlay i {
        transform: translateY(0);
    }

    /* --- Footer --- */
    footer {
        background: #0a0b0e;
        padding: 5rem 0 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 4rem;
        margin-bottom: 4rem;
    }

    .footer-brand h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-brand p {
        color: var(--text-muted);
        margin-bottom: 2rem;
    }

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-main);
        margin-right: 10px;
        transition: var(--transition);
    }

    .social-links a:hover {
        background: var(--accent-gold);
        color: #000;
        transform: translateY(-3px);
    }

    .footer-links h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        color: var(--accent-gold);
    }

    .footer-links li {
        margin-bottom: 1rem;
    }

    .footer-links a {
        color: var(--text-muted);
        transition: var(--transition);
    }

    .footer-links a:hover {
        color: var(--text-main);
        padding-left: 5px;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.9rem;
    }

    /* --- Animations --- */
    .fade-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* --- Lightbox --- */
    .lightbox {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 2000;
        display: none;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .lightbox.active {
        display: flex;
        opacity: 1;
    }

    .lightbox img {
        max-width: 90%;
        max-height: 90vh;
        border: 2px solid var(--accent-gold);
        box-shadow: 0 0 30px rgba(246, 195, 67, 0.2);
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }

    .lightbox.active img {
        transform: scale(1);
    }

    .lightbox-close {
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 3rem;
        color: #fff;
        cursor: pointer;
        transition: var(--transition);
    }

    .lightbox-close:hover {
        color: var(--accent-gold);
        transform: rotate(90deg);
    }

    /* --- Responsive --- */
    @media (max-width: 992px) {
        .nav-links {
            position: fixed;
            top: 0;
            right: -100%;
            width: 80%;
            height: 100vh;
            background: var(--bg-card);
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: var(--transition);
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        }

        .nav-links.active {
            right: 0;
        }

        .mobile-toggle {
            display: block;
            z-index: 1001;
        }

        .hero-content h1 {
            font-size: 3.5rem;
        }

        .about-layout,

        .section-header {
            margin-bottom: 3rem;
        }

        .section-header h2 {
            font-size: 2.2rem;
        }

        .hero-content h1 {
            font-size: 2.5rem;
        }

        .hero-content p {
            font-size: 1.1rem;
        }

        .container {
            padding: 0 1.5rem;
        }

        .card-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .premium-card {
            padding: 2rem 1.5rem;
        }

        .form-box {
            padding: 2rem 1.5rem;
        }

        .footer-grid {
            gap: 2.5rem;
        }
    }

    .form-box {
        padding: 2rem 1.5rem;
    }

    .price-card.popular {
        transform: scale(1);
    }
}

/* --- Carousel Styles --- */
.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.carousel-track-container {
    overflow: hidden;
    padding: 2rem 0;
    /* Space for scaling */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.carousel-slide {
    min-width: 33.33%;
    /* Show 3 items */
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.5;
    transform: scale(0.9);
}

.carousel-slide.current-slide {
    opacity: 1;
    transform: scale(1.1);
    z-index: 10;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: #000;
}

.prev-btn {
    left: -50px;
}

.next-btn {
    right: -50px;
}

/* Mobile Carousel */
@media (max-width: 768px) {
    .carousel-slide {
        min-width: 85%;
        /* Show 1 item mostly */
        opacity: 1;
        transform: scale(1);
    }

    .carousel-slide.current-slide {
        transform: scale(1);
    }

    .carousel-track {
        gap: 1rem;
    }

    .carousel-btn {
        display: none;
        /* Hide arrows on mobile, use swipe */
    }

    .swipe-hint {
        display: block !important;
    }

    .carousel-wrapper {
        padding: 0;
    }
}