﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    background: #111;
    color: #000;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    width: 100%;
    height: 75vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeSlide 26s infinite;
}

@keyframes fadeSlide {
    0% {
        background-image: url('/images/packagesimage/turtle.jpg');
        opacity: 0.8;
    }

    33% {
        background-image: url('/images/packagesimage/ella ninearch2.jpg');
        opacity: 0.8;
    }

    66% {
        background-image: url('/images/packagesimage/mirisss.jpg');
        opacity: 0.8;
    }

    100% {
        background-image: url('/images/packagesimage/elep.jpg');
        opacity: 0.8;
    }
}

.title-box {
    background: rgba(255,255,255,0.7);
    padding: 40px 80px;
    font-size: 70px;
    font-weight: bold;
    border-radius: 4px;
    backdrop-filter: blur(3px);
    position: absolute;
    opacity: -15;
}

.subtitle {
    position: absolute;
    top: 58%;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 4px;
    opacity: 0;
}

/* ---- PREMIUM ANIMATIONS ---- */

.title1.show, .subtitle1.show {
    opacity: 1 !important;
    animation: premiumFadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.title2.show, .subtitle2.show {
    opacity: 1 !important;
    animation: premiumZoomElegance 1.3s ease-out forwards;
}

.title3.show, .subtitle3.show {
    opacity: 1 !important;
    animation: deepCinemaMotion 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}


/* Smooth Luxury Fade Up */
@keyframes premiumFadeUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(6px);
    }

    60% {
        opacity: 1;
        transform: translateY(-8px);
        filter: blur(0px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Premium Zoom + Fade + Slight Curve feel */
@keyframes premiumZoomElegance {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
        filter: blur(8px);
    }

    70% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        filter: blur(0px);
    }
}

/* Cinematic 3D Depth Movement */
@keyframes deepCinemaMotion {
    0% {
        opacity: 0;
        transform: translateY(60px) rotateX(25deg);
        filter: blur(10px);
    }

    50% {
        opacity: 1;
        transform: translateY(-10px) rotateX(0deg);
    }

    100% {
        transform: translateY(0);
    }
}


/* HEADER (LEFT SMALL NAV BAR) */
.header {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 28px;
    border-radius: 40px;
    color: white;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 15px;
    color: white;
}

.menu-icon {
    width: 22px;
    height: 2px;
    background: white;
    position: relative;
}

    .menu-icon::before,
    .menu-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 22px;
        height: 2px;
        background: white;
    }

    .menu-icon::before {
        top: -6px;
    }

    .menu-icon::after {
        top: 6px;
    }

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* SERVICE CARDS */
.service-bar {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    z-index: 10;
}

.service-card {
    width: 260px;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: flex;
    align-items: flex-end;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .service-card:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 10px 24px rgba(0,0,0,0.6);
    }

.service-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
    transition: transform 0.5s ease;
}

.service-card:hover .service-bg {
    transform: scale(1.1);
}

.service-text {
    position: relative;
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 15px;
    z-index: 2;
}

.service-link {
    text-decoration: none;
}

/* =======================================================
   PERFECT MOBILE SCREEN FIT — NO SCROLL, NO CROP
   ======================================================= */
@media (max-width: 640px) {

    /* Full screen setup */
    html, body {
        margin: 0;
        padding: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden !important;
        background: #000;
        touch-action: none;
    }

    /* Wrapper that controls scaling */
    #mobile-fitted-wrapper {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        position: relative;
        background: #000;
    }

    /* Your original desktop layout */
    .mobile-layout {
        width: 120%; /* original design width */
        height: 100%; /* original design height */
        transform-origin: top left;
        position: relative;
    }

    /* Automatically scale everything to fit the screen */
    #mobile-fitted-wrapper .mobile-layout {
        transform: scale( min( calc(100vw / 640), /* scale to screen width */
        calc(100vh / 1000) /* scale to screen height */
        ) );
    }

    /* ==============================
   MOBILE VIEW (≤640px)
   ============================== */
    @media (max-width: 640px) {
        .mobile-layout {
            width: 100%; /* original design width */
            height: 100%; /* original design height */
            transform-origin: top left;
            position: relative;
        }
        .hero-section {
            width: 101vw;
            height: 90vh;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
        }

        .navbar, header, .header {
            top: 20px; /* closer to top */
            left: 5px; /* closer to left edge */
            font-size: 0.5rem !important; /* use !important to override */
            padding: 6px 8px; /* optional padding adjustment */
            z-index: 1000;
        }
        .main-nav a {
            color: white;
            text-decoration: none;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 1px;
        }
        .logo {
           
            font-weight: 700;
            font-size: 12px;
            color: white;
        }

        .title-box {
            top: 70%;
            left: 20%;
            transform: translateX(-50%);
            padding: 10px 20px;
            font-size: 1.2rem;
            text-align: center;
            border-radius: 8px;
        }

        .subtitle {
            top: 74%;
            left: 35%;
            transform: translateX(-50%);
            font-size: 0.8rem;
            width: 50%;
            text-align: center;
        }

        .service-bar {
            bottom: 30px;
            width: 100%;
            justify-content: space-around;
            gap: 10px;
            padding: 0 10px;
        }

        .service-card {
            width: 100px;
            height: 80px;
            border-radius: 10px;
            bottom: 25px;
        }
        .service-text {
            position: relative;
            color: white;
            font-size: 11px;
            font-weight: 700;
          
        }
    }

    /* ==============================
   TABLET VIEW (641px – 1024px)
   ============================== */
    @media (min-width: 641px) and (max-width: 1024px) {

        .hero-section {
            width: 100%;
            height: 90vh;
        }

        .navbar, header, .header {
            top: 15px;
            left: 15px;
            font-size: 0.7rem;
        }

        .title-box {
            top: 30%;
            left: 50%;
            transform: translateX(-50%);
            padding: 12px 25px;
            font-size: 1.4rem;
        }

        .subtitle {
            top: 45%;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.9rem;
            width: 70%;
        }

        .service-bar {
            bottom: 25px;
            gap: 15px;
        }

        .service-card {
            width: 120px;
            height: 90px;
            font-size: 0.9rem;
        }
    }

}
