@import 'variables.css';

body {
    font-family: var(--font-main);
    background-color: var(--bg-soft);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-accent);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
}

section {
    padding: var(--section-spacing);
}

/* Luxury Grid & Layout */
.luxury-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.col-span-12 {
    grid-column: span 12;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-3 {
    grid-column: span 3;
}

@media (max-width: 991px) {
    .col-span-12 {
        grid-column: span 12;
    }

    .col-span-6 {
        grid-column: span 12;
    }

    .col-span-4 {
        grid-column: span 12;
    }

    /* Full width on mobile/tablet */
    .col-span-3 {
        grid-column: span 6;
    }
}

.container-premium {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Premium Buttons */
.btn-premium {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 36px !important;
    background-color: var(--secondary-color);
    color: var(--text-light) !important;
    border: none !important;
    border-radius: var(--border-radius-pill) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 0.85rem !important;
    transition: var(--transition-base) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    text-decoration: none !important;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition-base);
    z-index: -1;
}

.btn-premium:hover::before {
    width: 100%;
}

.btn-premium:hover {
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-premium);
}

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

.bg-midnight {
    background-color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-gold {
    background-color: var(--primary-color) !important;
}

.text-midnight {
    color: var(--secondary-color) !important;
}

.bg-opacity-80 {
    --bs-bg-opacity: 0.8;
}

/* Improved Luxury Navbar */
.navbar {
    height: 100px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(26, 42, 58, 0.98);
    /* midnight with hint of opacity */
    backdrop-filter: blur(15px);
    height: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

.navbar-brand-text {
    font-family: var(--font-accent);
    letter-spacing: 2px;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--text-light) !important;
    /* Ensure visibility on dark backgrounds */
}

.nav-link {
    font-family: var(--font-main);
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 15px;
    position: relative;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 30px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Mobile Toggler */
.navbar-toggler {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Ensure social media icons in footer are visible */
footer .fab {
    color: var(--text-light) !important;
}

/* More robust Font Awesome icon rendering for footer */
footer .fab {
    /* Ensure basic display properties are not overridden */
    font-size: 1.5rem !important;
    /* Slightly larger to ensure visibility, adjust as needed */
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    color: var(--text-light) !important;
    /* Explicitly set color with !important */
}

/* Specific content rules for each icon (keep these specific and important) */
footer .fab.fa-facebook-f::before {
    content: "\f09a" !important;
}

footer .fab.fa-instagram::before {
    content: "\f16d" !important;
}

footer .fab.fa-whatsapp::before {
    content: "\f232" !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
}

.hero-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.hero-slider-item.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    color: var(--text-light);
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

/* Page Banner (Unified for all sub-pages) */
.page-banner {
    position: relative;
    padding-top: 180px;
    /* Space for fixed navbar */
    padding-bottom: 120px;
    margin-top: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.473));
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-banner-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 80px 0;
        min-height: 300px;
    }

    .page-banner-title {
        font-size: 2.5rem;
    }
}

.transition-hover {
    transition: var(--transition-smooth);
}


/* Luxury Card Component */
.luxury-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.luxury-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

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

.luxury-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius-sm);
}

.luxury-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.luxury-card-title {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.luxury-card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
}

.luxury-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.luxury-card-content .btn-premium {
    margin-top: auto;
    align-self: flex-start;
}


/* Home Page About Section V2 */
.home-about-v2 {
    overflow: hidden;
}

.about-image-premium .reveal-holder img {
    max-height: 450px;
    width: 100%;
    object-fit: cover;
}

.about-content-v2 .section-subtitle-v2 {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
}

.about-content-v2 .section-subtitle-v2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-content-v2 .section-title-v2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-content-v2 .about-text-v2 {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.features-list-v2 .feature-item-v2 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.features-list-v2 .feature-icon-v2 {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    background: rgba(3, 166, 168, 0.1);
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.features-list-v2 .feature-text-v2 h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.features-list-v2 .feature-text-v2 p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image-container-v2 .parallelogram {
    --p: 40px;
    /* control the shape */
    height: 450px;
    width: 100%;
    clip-path: polygon(var(--p) 0, 100% 0, calc(100% - var(--p)) 100%, 0 100%);
    overflow: hidden;
}

.about-image-container-v2 .parallelogram img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-container-v2 .parallelogram:hover img {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .about-image-container-v2 {
        margin-top: 40px;
    }

    .about-content-v2 .section-title-v2 {
        font-size: 2.2rem;
    }

    .about-image-container-v2 .parallelogram {
        height: 350px;
        --p: 30px;
    }
}


/* Why Choose Us Section */
.why-choose-us-section .row {
    align-items: center;
}

.why-choose-us-content {
    padding-right: 30px;
}

.why-choose-us-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    /* Space between cards */
}

.why-choose-us-card:last-child {
    margin-bottom: 0;
}

.why-choose-us-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.why-choose-us-card .icon-wrapper {
    width: 50px;
    height: 50px;
    min-width: 50px;
    /* Prevent shrinking */
    background-color: rgba(var(--primary-color-rgb), 0.1);
    /* Use primary color with transparency */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.why-choose-us-card .icon-wrapper img {
    width: 24px;
    /* Adjust SVG icon size */
    height: 24px;
    /* Adjust SVG icon size */
    stroke: var(--primary-color);
    /* Ensure SVG stroke color matches theme */
}

.why-choose-us-card .card-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.why-choose-us-card .card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}


/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Luxury Utility Classes */
.py-big {
    padding: 120px 0;
}

.pt-big {
    padding-top: 120px;
}

.pb-big {
    padding-bottom: 120px;
}

.mb-big {
    margin-bottom: 80px;
}

.luxury-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-dark);
}

.luxury-image-wrapper img {
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.brightness-0 {
    filter: brightness(0);
}

.invert {
    filter: invert(100%);
}

.brightness-0.invert {
    filter: brightness(0) invert(100%);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scale-hover {
    transition: transform 0.5s ease;
}

.scale-hover:hover {
    transform: scale(1.03);
}

.shadow-big {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Base Styles Refinement */
.font-body {
    font-family: var(--font-main);
}

.h-100 {
    height: 100%;
}

.z-1 {
    z-index: 1;
}

.opacity-5 {
    opacity: 0.05;
}

.bg-opacity-5 {
    --bs-bg-opacity: 0.05;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .py-big {
        padding: 80px 0;
    }

    .pt-big {
        padding-top: 80px;
    }

    .pb-big {
        padding-bottom: 80px;
    }

    .mb-big {
        margin-bottom: 50px;
    }

    .page-banner-title {
        font-size: 2.8rem;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .why-choose-us-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .why-choose-us-card {
        flex-direction: column;
        text-align: center;
    }

    .why-choose-us-card .icon-wrapper {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .why-choose-us-section .row.align-items-center>div:first-child {
        margin-bottom: 30px;
    }
}

/* --- Phase 5: Advanced Animations & Micro-interactions --- */

/* 1. Magnetic Button Effect (Subtle Lift) */
.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(2, 128, 144, 0.3);
    /* Using primary color */
}

/* 2. Image Zoom Micro-interaction */
.hover-zoom-img {
    overflow: hidden;
}

.hover-zoom-img img {
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.2, 1);
}

.hover-zoom-img:hover img {
    transform: scale(1.08);
    /* Slow, subtle zoom */
}

/* 3. Reveal Mask Class (for JS) */
.reveal-holder {
    position: relative;
    overflow: hidden;
}

.reveal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 2;
}

/* 4. Text Reveal Class (for JS) */
.text-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* 5. Parallax Helper */
.parallax-bg {
    background-attachment: fixed;
    /* Simple CSS parallax fallback */
    /* JS will override this for smoother effect */
}



.light-theme .bg-midnight {
    background-color: var(--bg-soft) !important;
}

.light-theme .text-white {
    color: var(--text-main) !important;
}

.light-theme .text-white-50 {
    color: var(--text-muted) !important;
}

/* Ensure navbar remains consistent across themes */
.light-theme .navbar .text-white,
.light-theme .navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.light-theme .navbar .nav-link:hover,
.light-theme .navbar .nav-link.active {
    color: var(--primary-color) !important;
}

.light-theme .navbar .navbar-brand-text {
    color: var(--text-light) !important;
}