/* ============================================
   Mahla Hospitality — Premium CSS v3
   Royal • Colorful • Motion Rich
   ============================================ */
html {
    scroll-behavior: smooth;
}

::selection {
    background: #C41E3A;
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFFBF5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C41E3A, #C8956C);
    border-radius: 10px;
}

/* ---- Nav ---- */
#mainNav.scrolled {
    background: rgba(255, 251, 245, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

#mainNav .nav-brand-text {
    color: white;
    transition: color 0.4s;
}

#mainNav.scrolled .nav-brand-text {
    color: #0F1F36;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#mainNav.scrolled .nav-link {
    color: #1B2A4A;
}

#mainNav .nav-link:hover span {
    width: 75% !important;
}

#mainNav.scrolled .nav-link:hover {
    color: #C41E3A;
}

#mainNav .hamburger-lines span {
    background: white;
}

#mainNav.scrolled .hamburger-lines span {
    background: #1B2A4A;
}

/* Force solid nav on mobile always */
@media (max-width: 1023px) {
    #mainNav {
        background: rgba(255, 251, 245, 0.97) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important;
    }

    #mainNav .nav-brand-text {
        color: #0F1F36 !important;
    }

    #mainNav .hamburger-lines span {
        background: #1B2A4A !important;
    }
}

/* ---- Hero ---- */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 12s ease;
    transform: scale(1.15);
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-dot {
    cursor: pointer;
}

.hero-dot.active {
    background: #C8956C !important;
    border-color: #C8956C !important;
    transform: scale(1.3);
}

/* ---- Gradient Texts ---- */
.text-gradient {
    background: linear-gradient(135deg, #C41E3A, #C8956C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #C8956C, #F5D0A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-royal {
    background: linear-gradient(135deg, #7C3AED, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #10B981, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Section Label ---- */
.section-label::before,
.section-label::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1.5px;
    vertical-align: middle;
}

.section-label::before {
    margin-right: 14px;
    background: linear-gradient(90deg, transparent, currentColor);
}

.section-label::after {
    margin-left: 14px;
    background: linear-gradient(90deg, currentColor, transparent);
}

/* ---- Inner Page Heroes ---- */
.inner-hero {
    padding: 160px 0 70px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0A1628 0%, #1B2A4A 35%, #C41E3A 100%);
}

.inner-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(200,149,108,0.06)" stroke-width="0.3"/><circle cx="50" cy="50" r="25" fill="none" stroke="rgba(200,149,108,0.04)" stroke-width="0.3"/></svg>') repeat;
    background-size: 200px;
}

.inner-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #FFFBF5, transparent);
}

.inner-hero .inner-hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.inner-hero .shape-1 {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 149, 108, 0.1), transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.inner-hero .shape-2 {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.1), transparent 70%);
    animation: float 6s ease-in-out 2s infinite;
}

.inner-hero .shape-3 {
    position: absolute;
    top: 30%;
    left: 30%;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(200, 149, 108, 0.08);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

/* ---- Card Effects ---- */
.card-3d {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
}

.card-3d:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Image Reveal ---- */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #FFFBF5;
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.revealed::after {
    transform: scaleX(0);
    transform-origin: right;
}

/* ---- Marquee ---- */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: inline-flex;
    animation: marquee 60s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---- Crazy Backgrounds & Motion Graphics ---- */
.mesh-gradient-crazy {
    position: relative;
    background: #FFFBF5;
    overflow: hidden;
}

.mesh-gradient-crazy::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(196, 30, 58, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 20%, rgba(200, 149, 108, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
    animation: rotateMesh 20s linear infinite;
    z-index: 0;
}

@keyframes rotateMesh {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.glass-card-darker {
    background: rgba(15, 31, 54, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ---- Animations ---- */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-soft {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

.animate-pulse {
    animation: pulse-soft 2s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin 20s linear infinite;
}

/* ---- Dot Pattern ---- */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(200, 149, 108, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ---- Magnetic Button ---- */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- GSAP Reveal States ---- */
.gsap-reveal {
    opacity: 0;
    transform: translateY(60px);
}

.gsap-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.gsap-reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.gsap-reveal-scale {
    opacity: 0;
    transform: scale(0.85);
}

/* Fallback: if JS fails, show content after 4s */
@keyframes gsapFallback {
    to {
        opacity: 1;
        transform: none;
    }
}

body.gsap-fallback .gsap-reveal,
body.gsap-fallback .gsap-reveal-left,
body.gsap-fallback .gsap-reveal-right,
body.gsap-fallback .gsap-reveal-scale {
    animation: gsapFallback 0.5s ease forwards;
}

/* ---- Section Colored Backgrounds ---- */
.section-gradient-1 {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF0DB 50%, #FFFBF5 100%);
}

.section-gradient-2 {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 50%, #FFF1F2 100%);
}

.section-gradient-3 {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 30%, #FFF9F0 100%);
}

.section-gradient-4 {
    background: linear-gradient(135deg, #0A1628 0%, #1B2A4A 40%, #1E3A5F 70%, #2D4A7A 100%);
}

.section-gradient-5 {
    background: linear-gradient(135deg, #FEF3C7 0%, #FFF0DB 50%, #FFFBF5 100%);
}

.section-gradient-6 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 70%, #1a1a2e 100%);
}

/* ---- Team ---- */
.team-img-wrapper {
    position: relative;
}

.team-img-wrapper::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(200, 149, 108, 0.3);
    animation: spin 20s linear infinite;
}

/* ---- WhatsApp ---- */
.wa-pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ---- Preloader ---- */
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Counter ---- */
.counter-number {
    font-variant-numeric: tabular-nums;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .inner-hero {
        padding: 110px 0 50px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .inner-hero h1 {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .section-label::before,
    .section-label::after {
        width: 16px;
    }

    #whatsappFloat {
        bottom: 12px;
        left: 12px;
    }

    #scrollTopBtn {
        bottom: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .team-img-wrapper {
        width: 10rem !important;
        height: 10rem !important;
    }
}

@media (max-width: 480px) {
    .inner-hero {
        padding: 100px 0 40px;
    }

    .hero-section {
        min-height: 580px !important;
    }

    .hero-section h1 {
        font-size: 1.9rem;
    }

    .inner-hero h1 {
        font-size: 1.5rem;
    }
}

/* ---- Feature Icon ---- */
.feature-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-icon:hover {
    transform: scale(1.15) rotate(-5deg);
}

/* ---- Testimonial Card ---- */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
    font-size: 80px;
    color: rgba(196, 30, 58, 0.08);
    line-height: 1;
}

/* ---- Brand Cards ---- */
.brand-color-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-color-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* ---- Timeline ---- */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #C41E3A, #C8956C, #7C3AED);
    transform: translateX(-50%);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
}

/* ---- Custom Scrollbar (Dropdown) ---- */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C41E3A, #C8956C);
    border-radius: 10px;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #C41E3A #f1f5f9;
}

/* ---- Brand Marquee (Logo Rows) ---- */
.brand-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.brand-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    flex-wrap: nowrap;
}

.brand-marquee-ltr {
    -webkit-animation: brandMarqueeLTR 40s linear infinite;
    animation: brandMarqueeLTR 40s linear infinite;
}

.brand-marquee-rtl {
    -webkit-animation: brandMarqueeRTL 40s linear infinite;
    animation: brandMarqueeRTL 40s linear infinite;
}

.brand-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes brandMarqueeLTR {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@-webkit-keyframes brandMarqueeLTR {
    from {
        -webkit-transform: translateX(0);
    }

    to {
        -webkit-transform: translateX(-50%);
    }
}

@keyframes brandMarqueeRTL {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@-webkit-keyframes brandMarqueeRTL {
    from {
        -webkit-transform: translateX(-50%);
    }

    to {
        -webkit-transform: translateX(0);
    }
}

.brand-logo-item:hover .brand-marquee-track {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
}

/* ---- Music Player ---- */
@keyframes music-bar-1 { 0%, 100% { height: 4px; } 50% { height: 12px; } }
@keyframes music-bar-2 { 0%, 100% { height: 12px; } 50% { height: 6px; } }
@keyframes music-bar-3 { 0%, 100% { height: 8px; } 50% { height: 12px; } }

.animate-music-bar-1 { animation: music-bar-1 0.8s ease-in-out infinite; }
.animate-music-bar-2 { animation: music-bar-2 0.8s ease-in-out 0.2s infinite; }
.animate-music-bar-3 { animation: music-bar-3 0.8s ease-in-out 0.4s infinite; }

#audioPlayer:not(.playing) .animate-music-bar-1,
#audioPlayer:not(.playing) .animate-music-bar-2,
#audioPlayer:not(.playing) .animate-music-bar-3 {
    height: 2px !important;
    animation: none !important;
}

/* ---- Prevent Horizontal Overflow ---- */
html,
body {
    overflow-x: hidden;
}