/* 
    Pearl Property Developers - Nirai Layout
    Premium Mobile-First Styling
    Colors: Pearl White (#FFFFFF), Royal Gold (#D4AF37), Dark Navy Blue (#03045E), Soft Grey (#F8F9FA)
*/

:root {
    --pearl-white: #FFFFFF;
    --royal-gold: #D4AF37;
    --gold-hover: #B8962E;
    --navy-blue: #03045E;
    --navy-light: #0077B6;
    --soft-grey: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #111;
    /* Dark background for desktop backdrop */
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

/* Mobile Wrapper for Desktop View */
#mobile-wrapper {
    width: 100%;
    max-width: 480px;
    /* Standard mobile width */
    background-color: var(--soft-grey);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    #mobile-wrapper {
        max-width: 100%;
        box-shadow: none;
    }
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.dark {
    background-color: var(--navy-blue);
    color: var(--pearl-white);
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--royal-gold);
}

/* Glassmorphism Utility */
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    text-align: center;
}

.brand-name {
    color: var(--pearl-white);
    font-size: 2.5rem;
    letter-spacing: 15px;
    margin-bottom: 20px;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--royal-gold);
    animation: loading 2s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    border: none;
    text-decoration: none;
}

.fab:active {
    transform: scale(0.9);
}

.fab.call {
    background: var(--navy-blue);
}

.fab.whatsapp {
    background: #25D366;
}

.fab.callback {
    background: var(--royal-gold);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: url('../images/hero_bg.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: var(--pearl-white);
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 4, 94, 0.7), rgba(3, 4, 94, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    font-size: 1.2rem;
    letter-spacing: 8px;
    border: 1px solid var(--pearl-white);
    padding: 5px 15px;
    display: inline-block;
}

.premium-title {
    font-size: 4rem;
    letter-spacing: 12px;
    margin: 20px 0;
    line-height: 1;
}

.hero-content .company-sub {
    margin-bottom: 50px;
}

.layout-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--royal-gold);
    margin-bottom: 25px;
}

.subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.marketing-partner {
    margin-bottom: 60px;
}

.marketing-partner span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partner-name {
    font-weight: 700;
    color: var(--royal-gold);
    font-size: 1rem !important;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--royal-gold);
    color: var(--navy-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Sections Styling */
.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--royal-gold);
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.intro-image img {
    width: 100%;
    border-radius: 15px;
    display: block;
}

.intro-text {
    margin-top: 25px;
}

.tagline-box {
    margin-top: 20px;
    padding: 15px;
    border-left: 3px solid var(--royal-gold);
    background: rgba(212, 175, 55, 0.05);
}

.tagline {
    font-style: italic;
    font-weight: 600;
    color: var(--navy-blue);
}

/* Video Section */
.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    margin-top: 30px;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--royal-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

/* Location Advantages */
.advantages-grid {
    margin-top: 40px;
    display: grid;
    gap: 20px;
}

.adv-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.adv-item i {
    font-size: 1.8rem;
    color: var(--royal-gold);
    min-width: 40px;
}

.adv-item h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.adv-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.map-container {
    position: relative;
    border-radius: 15px;
    margin-bottom: 30px;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--navy-blue);
    color: white;
}

.btn-gold {
    background: var(--royal-gold);
    color: var(--navy-blue);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Gallery Slider */
.gallery-slider {
    padding-bottom: 40px;
}

.gallery-slider .swiper-slide {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.gallery-slider img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-weight: 600;
}

/* Amenities Line Art Grid */
.amenities-grid-lineart {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.amenity-item-la {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.amenity-item-la:active {
    transform: scale(0.95);
    background: rgba(212, 175, 55, 0.1);
}

.amenity-item-la:hover {
    transform: translateY(-5px);
    border-color: var(--royal-gold);
    background: rgba(212, 175, 55, 0.05);
}

.la-icon {
    font-size: 2.2rem;
    color: var(--royal-gold);
    margin-bottom: 12px;
    transition: transform 0.3s;
    animation: icon-pulse 3s infinite ease-in-out;
}

.amenity-item-la:nth-child(even) .la-icon {
    animation-delay: 1.5s;
}

.amenity-item-la:nth-child(3n) .la-icon {
    animation-delay: 1s;
}

@keyframes icon-pulse {
    0% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.15) translateY(-5px);
        filter: drop-shadow(0 5px 10px rgba(212, 175, 55, 0.4));
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.amenity-item-la p {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy-blue);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* For dark sections if any */
.dark .amenity-item-la p {
    color: var(--pearl-white);
}

.dark .amenity-item-la {
    background: rgba(255, 255, 255, 0.05);
}

/* Pricing Section */
.pricing-card {
    padding: 40px 25px;
    text-align: center;
    position: relative;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--royal-gold);
    color: var(--navy-blue);
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.price-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.price-value {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.price-value span {
    display: block;
    font-size: 2rem;
    color: var(--royal-gold);
    font-weight: 800;
}

.benefits {
    list-style: none;
    text-align: left;
    margin-bottom: 35px;
}

.benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits li i {
    color: var(--royal-gold);
}

.inventory-status {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--royal-gold);
}

/* Testimonials */
.testimonial-card {
    padding: 25px;
    margin: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.stars {
    color: var(--royal-gold);
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background: var(--navy-blue);
    color: white;
    padding: 60px 0 100px;
    text-align: center;
}

.footer-logo {
    letter-spacing: 10px;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.company-sub {
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: var(--royal-gold);
    margin-bottom: 20px;
}

.marketing-info {
    margin: 40px 0;
}

.marketing-info h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.contact-link {
    color: var(--pearl-white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-outline {
    border: 1px solid var(--pearl-white);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.copyright {
    margin-top: 50px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 94, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--pearl-white);
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    position: relative;
    color: var(--text-dark);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

/* Animations Triggered by Classes */
.animate-ready [data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

.animate-ready .aos-animate {
    opacity: 1;
}

/* Custom Swiper Pagination Styling */
.swiper-pagination-bullet-active {
    background: var(--royal-gold) !important;
}

/* Performance optimizations for mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Invitation Overlay Styles */
.invite-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy-blue);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.invite-container {
    width: 100%;
    max-width: 480px;
    text-align: center;
    color: white;
}

.logo-box {
    margin-bottom: 30px;
}

.brand {
    font-size: 1.5rem;
    letter-spacing: 10px;
    border: 1px solid var(--royal-gold);
    padding: 10px 20px;
}

.invite-title {
    font-size: 1.8rem;
    color: var(--royal-gold);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.invite-video-frame {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.invite-video-frame video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 20px;
}

.video-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--navy-blue);
    cursor: pointer;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    transition: 0.3s;
}

.invite-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.pulse-gold {
    animation: pulse-gold-animation 2s infinite;
}

@keyframes pulse-gold-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

#mobile-wrapper.active {
    display: block !important;
    opacity: 1 !important;
    transition: opacity 0.5s ease-in;
}

.invite-overlay.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}