:root {
    --primary-color: #2b2d42;
    /* Dark Grey for text/contrast */
    --secondary-color: #8d99ae;
    /* Light Grey */
    --accent-color: #D32F2F;
    /* Fynex Red */
    --text-dark: #212529;
    --text-light: #f8f9fa;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    /* White base */
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Playfair Display', serif;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #b71c1c;
    /* Darker Red */
    border-color: #b71c1c;
    transform: translateY(-2px);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Navbar */
/* Navbar */
.navbar {
    transition: all 0.4s ease;
    padding: 10px 0;
    background-color: #1a1a1a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.nav-link {
    font-weight: 600;
    color: #ffffff !important;
    margin-right: 15px;
    position: relative;
    text-transform: uppercase;
    font-size: 0.95rem;
    /* Reduced from 1.15rem */
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .navbar-brand {
        max-width: 75%;
    }

    .brand-title {
        font-size: 1.2rem !important;
    }

    .brand-tagline {
        font-size: 0.5rem !important;
        letter-spacing: 2px !important;
    }

    .navbar-brand img {
        height: 40px !important;
    }
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    height: 90vh;
    padding-top: 100px;
    /* Added padding to prevent navbar overlap */
    background: url('https://images.unsplash.com/photo-1621293954908-1ccdf5fd8f39?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.4));
}

.z-index-2 {
    z-index: 2;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    animation-delay: 0.2s;
}

.delay-200 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects */
.nav-pills .nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 8px 25px;
    border: 1px solid var(--secondary-color);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: #f0f0f0;
}

/* Villa Dropdown Button — unified single button */
.villa-filter-dropdown {
    position: relative;
}

.villa-main-btn {
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 8px 25px;
    border: 1px solid var(--secondary-color);
    border-radius: 50px !important;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    margin: 0 5px;
}

.villa-main-btn:hover {
    background-color: #f0f0f0;
}

.villa-main-btn.active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

/* Force nav-pills active to red, not Bootstrap blue */
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

/* Villa Location Dropdown Menu */
#villaLocationMenu {
    min-width: 180px;
}

#villaLocationMenu .dropdown-item {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    padding: 8px 20px;
    transition: all 0.2s ease;
}

#villaLocationMenu .dropdown-item:hover {
    background-color: #f8f0f0;
    color: var(--accent-color);
}

#villaLocationMenu .dropdown-item.active {
    background-color: var(--accent-color) !important;
    color: white !important;
}

/* Project Filters Responsive */
@media (max-width: 576px) {
    .nav-pills .nav-link {
        padding: 6px 15px;
        margin: 5px 2px;
        font-size: 0.85rem;
    }

    #project-tabs {
        margin-bottom: 2rem !important;
    }
}

/* Carousel Styles - Circular Buttons Only */
.carousel-control-prev,
.carousel-control-next {
    opacity: 1;
}

/* Hide default Bootstrap carousel icons completely */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Style the circular button containers */
.carousel-control-prev span:not(.visually-hidden),
.carousel-control-next span:not(.visually-hidden) {
    transition: all 0.3s ease;
}

.carousel-control-prev:hover span:not(.visually-hidden),
.carousel-control-next:hover span:not(.visually-hidden) {
    background-color: var(--accent-color) !important;
    color: white !important;
    transform: scale(1.05);
}

/* Mobile Carousel Adjustments */
@media (max-width: 991.98px) {

    .carousel-control-prev,
    .carousel-control-next {
        z-index: 10;
    }
}



.project-card {
    transition: transform 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.6);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Villa Card Styles */
.villa-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 15px !important;
}

.villa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.villa-card .card-img-top {
    transition: transform 0.6s ease;
}

.villa-card:hover .card-img-top {
    transform: scale(1.05);
}

.villa-specs span {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.villa-status-badge {
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contact Socials */
.social-icon {
    width: 45px;
    height: 45px;
    background: white;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none !important;
    padding: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon i {
    color: #ffffff !important;
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.whatsapp {
    background-color: #25D366;
}


/* Contact Item Card - Row Type */
.contact-item-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
}

.contact-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--accent-color) !important;
}

.contact-item-card h6 {
    color: #333;
}

.social-btn {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    transition: all 0.3s;
    display: inline-block;
    border-radius: 50%;
    color: white;
}

/* Footer Links */
.hover-white:hover {
    color: white !important;
    padding-left: 5px;
    transition: padding 0.3s;
}

.hover-accent:hover {
    color: var(--accent-color) !important;
}

/* Form Styles */
.form-control:focus {
    box-shadow: none;
    border: 1px solid var(--accent-color);
}

/* Build Packages */
.package-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Unique Colorful Designs */
.card-superior {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #343a40;
}

.header-superior {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: #fff;
}

.card-prime {
    background: linear-gradient(135deg, #fffaf5 0%, #fff 100%);
    border: 1px solid #cd7f32;
}

.header-prime {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
    color: #fff;
}

.card-classic {
    background: linear-gradient(135deg, #f0f8ff 0%, #fff 100%);
    border: 1px solid #4682B4;
}

.header-classic {
    background: linear-gradient(135deg, #4682B4 0%, #191970 100%);
    color: #fff;
}

/* Typography Distinction */
.package-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    letter-spacing: 1px;
}

.price-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
}

.gst-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.accordion-button:not(.collapsed) {
    color: var(--accent-color);
    background-color: transparent;
    box-shadow: none;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    /* Changed font */
    letter-spacing: 0.5px;
}

.accordion-button {
    font-family: 'Playfair Display', serif;
    /* Changed font */
    font-weight: 600;
    color: #444;
    /* Slightly darker for better readability */
    font-size: 1.05rem;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button::after {
    background-size: 1rem;
}

.accordion-body ul li {
    font-size: 0.9rem;
}

/* Floating Social Icons */
.floating-social-icons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 12px;
}

.floating-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-btn i {
    color: #ffffff !important;
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.floating-btn.facebook {
    background-color: #3b5998;
}

.floating-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.floating-btn.whatsapp {
    background-color: #25d366;
}

/* LEGACY BRAND DESIGN (OLD VERSION) - COMMENTED OUT
.brand-title {
    font-family: 'Russo One', sans-serif;
    font-weight: 900;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.brand-title .text-accent {
    background: linear-gradient(to bottom, #ff3333, #dc143c);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 3px rgba(255, 50, 50, 0.5));
}

.brand-title .text-white {
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.3));
}

.brand-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #ccc;
    margin-top: 8px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.brand-tagline::before,
.brand-tagline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--accent-color);
    opacity: 0.7;
}

.brand-tagline::before { left: 0; }
.brand-tagline::after { right: 0; }
*/

/* Rebranding Styles - Ultra-Premium Architectural Aesthetic */
.brand-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.6rem;
    /* Reduced from 2.2rem */
    line-height: 1;
    letter-spacing: 2px;
    /* Reduced from 3px */
    position: relative;
    display: flex;
    align-items: center;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2),
        4px 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.brand-title:hover {
    transform: scale(1.02);
}

.brand-title i {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(211, 47, 47, 0.4));
    margin-right: 12px !important;
}

.brand-title .text-accent {
    color: #FF5252;
    /* Fallback */
    background: linear-gradient(135deg, #FF5252 0%, #B71C1C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-title .text-white {
    color: #FFFFFF;
    /* Fallback */
    background: linear-gradient(135deg, #FFFFFF 0%, #D1D1D1 50%, #FFFFFF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    /* Reduced from 0.7rem */
    letter-spacing: 4px;
    /* Reduced from 6px */
    text-transform: uppercase;
    color: #e0e0e0;
    margin-top: 5px;
    font-weight: 500;
    display: block;
    width: 100%;
    text-align: left;
    /* Changed from center */
    opacity: 0.9;
}

/* Footer specific overides if needed */
footer .brand-title {
    color: #fff;
    margin-bottom: 0px !important;
}

footer .brand-tagline {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem;
}

/* Modal Carousel Overrides */
#modalCarousel .carousel-control-prev,
#modalCarousel .carousel-control-next {
    z-index: 15;
}

/* Hide default Bootstrap icons in modal */
#modalCarousel .carousel-control-prev-icon,
#modalCarousel .carousel-control-next-icon {
    display: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
}

/* Style the circular button containers in modal */
#modalCarousel .carousel-control-prev span:not(.visually-hidden),
#modalCarousel .carousel-control-next span:not(.visually-hidden) {
    transition: all 0.3s ease;
}

#modalCarousel .carousel-control-prev:hover span:not(.visually-hidden),
#modalCarousel .carousel-control-next:hover span:not(.visually-hidden) {
    background-color: var(--accent-color) !important;
    color: white !important;
    transform: scale(1.05);
}

/* Isolated Card Slider (Custom, non-Bootstrap) */
.card-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
    width: 100%;
}

.card-slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    visibility: hidden;
    z-index: 1;
}

.card-slider-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.card-slider .slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.card-slider .slider-control-prev,
.card-slider .slider-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: var(--accent-color);
    font-size: 0.7rem;
}

.card-slider .slider-control-prev:hover,
.card-slider .slider-control-next:hover {
    background-color: var(--accent-color);
    color: white;
}

.card-slider .slider-control-prev {
    left: 8px;
}

.card-slider .slider-control-next {
    right: 8px;
}

.card-slider .slider-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-slider .slider-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

.project-overlay {
    pointer-events: none;
    /* Allow clicks to pass to carousel controls */
}

.project-overlay .btn {
    pointer-events: auto;
    /* Re-enable click for the Plus button */
}

.project-item.has-slider .project-overlay {
    display: none !important;
}

#modalCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--accent-color);
}

.card-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--accent-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}