:root {
    --primary-color: #1e88e5;
    --secondary-color: #42a5f5;
    --accent-color: #90caf9;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --footer-bg: #0d47a1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--white);
}

.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.ml-4 { margin-left: 2rem; }
.mr-4 { margin-right: 2rem; }
.mx-4 { margin-left: 4rem; margin-right: 2rem; }
.my-4 { margin-top: 2rem; margin-bottom: 2rem; }
.mh-4 { margin-top: 10rem; margin-bottom: 2rem; }

/* Adjust values as needed for consistency with your site's rhythm */


/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo img {
    max-height: 60px;
    height: auto;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo i {
    transition: var(--transition);
    color: var(--accent-color);
}

.logo:hover i {
    transform: rotate(10deg) scale(1.1);
    color: var(--secondary-color);
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    transition: var(--transition);
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}



/* Mobile Menu Button */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem; /* Improves tap target size */
    transition: opacity 0.3s ease;
}
.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Improvements */
@media (max-width: 992px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        padding: 5rem 1rem 2rem;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        overflow-y: auto; /* Enables scroll if menu exceeds viewport */
    }
    .nav-menu.active {
        right: 0;
    }
    .mobile-menu {
        display: flex;
    }
}


@media (max-width: 576px) {
    .logo {
        font-size: 1.4rem;
    }

    .logo img {
        max-height: 40px;
    }

    .nav-container {
        padding: 0.5rem 0.75rem;
    }
}



/* Hero Slider Styles */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero__slide {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* Video/Image Layer */
.hero-media {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay Layer */
.hero__slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

/* Slider Content */
.slider-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.4s;
}

.slider-content h1 {
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.slider-content .subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-bottom: 1.8rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.4);
    color: #e0f7fa;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 12px 24px; /* reduced default padding */
    font-size: 0.95rem; /* slightly smaller base font */
    font-weight: 600;
    color: #fff;
    background: linear-gradient(45deg, #2196f3, #64b5f6);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.5s;
}

.cta-button:hover::after {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,180,216,0.4);
    background: linear-gradient(45deg, #1e88e5, #42a5f5);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,180,216,0.4);
}

/* Larger size for tablets and desktop */
@media (min-width: 768px) {
    .cta-button {
        padding: 14px 36px;
        font-size: 1rem;
    }
}


/* Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero__slide { height: 80vh; }
    .slider-content h1 { font-size: 2.5rem; }
    .slider-content .subtitle { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .hero__slide { height: 70vh; }
    .slider-content h1 { font-size: 2rem; }
    .slider-content .subtitle { font-size: 1rem; }
}

@media (max-width: 576px) {
    .hero__slide { height: 60vh; }
    .slider-content h1 { font-size: 1.6rem; }
    .slider-content .subtitle { font-size: 0.95rem; }
}



 /* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none; /* allow clicks below */
}

.floating-element {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
    pointer-events: none; /* allow clicks below */
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}


        /* Enhanced Splide Slider with Zoom Animation */
        .splide {
            margin: 4rem auto;
            max-width: 1400px;
        }

        .splide__slide {
            height: 500px;
            position: relative;
            overflow: hidden;
            border-radius: var(--border-radius);
            transition: transform 0.5s ease;
        }

        .splide__slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .splide__slide:hover img {
            transform: scale(1.1);
        }

        .splide__slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.4);
        }

        .slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 2rem;
            color: white;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            transform: translateY(30px);
            opacity: 0;
            transition: all 0.5s ease;
        }

        .splide__slide.is-active .slide-content {
            transform: translateY(0);
            opacity: 1;
        }

        .splide__slide h3 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .splide__slide p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        .splide__pagination {
            bottom: 20px;
        }

        .splide__pagination__page {
            width: 12px;
            height: 12px;
            background: rgba(255,255,255,0.5);
            transition: var(--transition);
        }

        .splide__pagination__page.is-active {
            background: var(--white);
            transform: scale(1.2);
        }

        /* Sections */
        .section {
            padding: 5rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: var(--primary-color);
            position: relative;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s ease;
        }

        .section-title.in-view {
            opacity: 1;
            transform: translateY(0);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
            border-radius: 2px;
        }

        /* About Section */
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        .about-text {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #555;
            opacity: 0;
            transform: translateX(-20px);
            transition: all 0.6s ease;
        }

        .about-text.in-view {
            opacity: 1;
            transform: translateX(0);
        }

        .about-image {
            position: relative;
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            margin: 0;
            padding: 0;
            overflow: hidden;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            opacity: 0;
            transform: translateX(20px);
            transition: all 0.6s ease 0.2s;
        }

        .about-image.in-view {
            opacity: 1;
            transform: translateX(0);
    }

.about-image picture,
.about-image-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: inherit;
    margin: 0;
    padding: 0;
}

.about-image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 3rem;
    text-align: center;
    line-height: 1.2;
}

@media only screen and (max-width: 767px) {
    .about-image {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .about-image-img {
        width: 100%;
        height: auto;
    }

    .about-image-content {
        font-size: 2rem;
        padding: 0 10px;
    }
}




        /* Villas Section */
        .villas-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .villa-card {
            background: var(--white);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .villa-card.in-view {
            opacity: 1;
            transform: translateY(0);
        }

        .villa-card:nth-child(1) { transition-delay: 0.1s; }
        .villa-card:nth-child(2) { transition-delay: 0.2s; }
        .villa-card:nth-child(3) { transition-delay: 0.3s; }

        .villa-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }

        .villa-image {
            height: 250px;
            background: linear-gradient(45deg, #e3f2fd, #bbdefb);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--primary-color);
            position: relative;
            overflow: hidden;
        }

        .villa-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .villa-card:hover .villa-image img {
            transform: scale(1.1);
        }

        .villa-info {
            padding: 1.5rem;
        }

        .villa-info h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }

        .villa-info p {
            color: #666;
            margin-bottom: 1rem;
        }

        .villa-price {
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        .villa-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--accent-color);
            color: var(--white);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        }

        /* Projects Section */
        .projects-tabs {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 3rem;
            flex-wrap: wrap;
        }

        .tab-button {
            padding: 12px 30px;
            background: transparent;
            border: 2px solid var(--accent-color);
            color: var(--accent-color);
            border-radius: 25px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
        }

        .tab-button.active {
            background: var(--accent-color);
            color: var(--white);
        }

        .tab-button:hover:not(.active) {
            background: rgba(144, 202, 249, 0.1);
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .tab-content.active {
            display: block;
        }

        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: var(--white);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .project-card.in-view {
            opacity: 1;
            transform: translateY(0);
        }

        .project-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        }

        .project-image {
            height: 200px;
            background: linear-gradient(45deg, #e3f2fd, #bbdefb);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--primary-color);
            position: relative;
            overflow: hidden;
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .project-card:hover .project-image img {
            transform: scale(1.1);
        }

        .project-info {
            padding: 1.5rem;
        }

        .project-info h4 {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }

        .project-info p {
            color: #666;
            font-size: 0.9rem;
        }
        
        /* Project Details Section */
.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.project-detail-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.project-detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
}

.project-gallery {
    flex: 1 1 45%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-gallery img {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
    cursor: pointer;
}

.project-gallery img:hover {
    transform: scale(1.03);
}

.project-info-box {
    flex: 1 1 45%;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
}

.project-info-box p {
    margin-bottom: 1rem;
}

.project-info-box span {
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .project-detail-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    .project-gallery,
    .project-info-box {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


        /* Services Section */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .service-card {
            text-align: center;
            padding: 2rem;
            background: var(--white);
            border-radius: var(--border-radius);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .service-card.in-view {
            opacity: 1;
            transform: translateY(0);
        }

        .service-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }

        .service-icon {
            font-size: 3rem;
            color: var(--accent-color);
            margin-bottom: 1rem;
            transition: var(--transition);
        }

        .service-card:hover .service-icon {
            transform: rotate(10deg) scale(1.2);
        }

        .service-card h4 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }

        .service-card p {
            color: #666;
            line-height: 1.6;
        }

        /* Payment Plans Section */
        .payment-plans {
            margin: 4rem 0;
        }

        .plan-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .plan-tab {
            padding: 12px 25px;
            background: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            border-radius: 25px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
        }

        .plan-tab.active {
            background: var(--accent-color);
            color: var(--white);
        }
        .plan-tab:hover {
            background: var(--accent-color);
            color: var(--primary-color);
        }

        .plan-tab:hover:not(.active) {
            background: rgba(144, 202, 249, 0.1);
        }

        .plan-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .plan-content.active {
            display: block;
        }

        .plan-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
            box-shadow: var(--shadow);
            border-radius: var(--border-radius);
            overflow: hidden;
        }

        .plan-table th, .plan-table td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .plan-table th {
            background-color: var(--primary-color);
            color: white;
            font-weight: 500;
        }

        .plan-table tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        .plan-table tr:hover {
            background-color: #f1f1f1;
        }

        .download-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            margin-top: 1rem;
        }

        .download-btn:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
        }
		.no-plans-message, .error-message {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
}

.no-plans-message p, .error-message p {
    margin-bottom: 20px;
    color: #555;
}

.no-installments {
    text-align: center;
    padding: 20px;
    color: #777;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .plan-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .plan-tab {
        width: 90%;
        max-width: 320px;
        margin: 0;
    }

    .plan-table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .plan-table {
        min-width: 500px;
    }

    .plan-table th, .plan-table td {
        padding: 10px;
        font-size: 14px;
    }

    .download-btn {
        width: 90%;
        max-width: 320px;
        justify-content: center;
    }
}

        /* Gallery Section with PhotoSwipe */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1rem;
        }

        .gallery-item {
            height: 250px;
            border-radius: var(--border-radius);
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: var(--transition);
            opacity: 0;
            transform: scale(0.9);
            transition: all 0.6s ease;
        }

        .gallery-item.in-view {
            opacity: 1;
            transform: scale(1);
        }

        .gallery-item:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-caption {
            position: absolute;
            bottom: 10px;
            left: 10px;
            background: rgba(0,0,0,0.7);
            color: var(--white);
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.9rem;
            z-index: 2;
        }

        /* 3D Model Viewer */
        .model-viewer-container {
            height: 500px;
            width: 100%;
            border-radius: var(--border-radius);
            overflow: hidden;
            margin: 2rem 0;
            box-shadow: var(--shadow);
            position: relative;
        }

        model-viewer {
            width: 100%;
            height: 100%;
            background: #f5f5f5;
        }

        .model-controls {
            position: absolute;
            bottom: 20px;
            left: 20px;
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .model-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0,0,0,0.7);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: none;
            transition: var(--transition);
        }

        .model-btn:hover {
            background: var(--accent-color);
            transform: scale(1.1);
        }
        /* Centered Header Styles */
.section-header.center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header.center .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header.center .section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-header.center .section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Team Member Details Page Styles */

.team-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
}
.team-carousel::-webkit-scrollbar {
    display: none;
}

.team-member {
    flex: 0 0 280px;
    max-width: 280px;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-initials {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-social {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

.member-info {
    padding: 1rem;
    text-align: center;
}

.member-info h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin: 0.5rem 0 0.2rem;
}

.member-info .position {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.member-info .department {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.view-profile {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}

.view-profile:hover {
    color: var(--accent-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-container .btn {
    padding: 10px 20px;
    font-size: 16px;
}

.load-button {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(45deg, #2196f3, #64b5f6);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.load-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.5s;
}

.load-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.load-button:hover::after {
    left: 0;
}


@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}


/* Controls */
.section-controls {
    text-align: right;
    margin-bottom: 1rem;
}

.section-controls button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    margin-left: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.section-controls button:hover {
    background: var(--accent-color);
}


.team-member-detail {
    margin-top: 6rem; /* pushes content below the fixed/sticky menu */
    padding: 4rem 1.5rem; /* adds padding on all sides */
    background-color: var(--white);
}

.team-member-detail .container {
    max-width: 1200px;
    margin: 0 auto; /* centers the content */
    padding-left: 1rem;
    padding-right: 1rem;
}


.member-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.member-image-container {
    flex: 0 0 350px;
    position: relative;
}

.member-photo {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.member-initials-large {
    width: 350px;
    height: 350px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    border-radius: var(--border-radius);
}

.member-social {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link.linkedin { background: #0077B5; }
.social-link.twitter { background: #1DA1F2; }
.social-link.email { background: var(--primary-color); }

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.member-info {
    flex: 1;
}

.member-name {
    color: var(--dark-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.member-position {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.member-department {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-color);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.member-contact {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 25px;
    text-align: center;
}

.contact-item a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.member-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.member-bio {
    line-height: 1.8;
    font-size: 1.1rem;
}

.member-bio h3, 
.member-expertise h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.member-bio h3:after,
.member-expertise h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.expertise-list {
    list-style: none;
    padding: 0;
}

.expertise-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.expertise-list li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .member-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .member-social {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .member-department {
        margin-left: auto;
        margin-right: auto;
    }
    
    .member-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .member-image-container {
        flex: 0 0 100%;
        max-width: 300px;
    }
    
    .member-initials-large {
        width: 300px;
        height: 300px;
    }
    
    .member-name {
        font-size: 2rem;
    }
    
    .member-position {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .team-member-detail {
        padding: 3rem 0;
    }
    
    .member-initials-large {
        width: 250px;
        height: 250px;
        font-size: 3rem;
    }
    
    .member-name {
        font-size: 1.8rem;
    }
    
    .contact-item {
        font-size: 1rem;
    }
}
        /* Contact Section */
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
        }

        .contact-form {
            background: var(--white);
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            opacity: 0;
            transform: translateX(-20px);
            transition: all 0.6s ease;
        }

        .contact-form.in-view {
            opacity: 1;
            transform: translateX(0);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: var(--transition);
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(144, 202, 249, 0.2);
        }

        .submit-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
            color: var(--white);
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
        }

        .submit-btn i {
            margin-right: 10px;
        }
        
        

        .contact-info {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: var(--white);
            padding: 2rem;
            border-radius: var(--border-radius);
            opacity: 0;
            transform: translateX(20px);
            transition: all 0.6s ease;
        }

        .contact-info.in-view {
            opacity: 1;
            transform: translateX(0);
        }

        .contact-info h3 {
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
            position: relative;
            padding-bottom: 10px;
        }

        .contact-info h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--white);
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

        .contact-item i {
            font-size: 1.2rem;
            margin-right: 1rem;
            width: 20px;
            color: var(--white);
            transition: var(--transition);
        }

        .contact-item:hover i {
            transform: scale(1.2);
        }

        .contact-item div {
            flex: 1;
        }

        .contact-item strong {
            display: block;
            margin-bottom: 0.3rem;
        }

        /* Enhanced Footer */
        .footer {
            background: var(--footer-bg);
            color: var(--white);
            padding: 4rem 2rem 2rem;
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2073&q=80') center/cover;
            opacity: 0.1;
            z-index: 1;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            position: relative;
            z-index: 2;
        }

        .footer-column h4 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--accent-color);
        }

        .footer-column p {
            margin-bottom: 1rem;
            opacity: 0.9;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }

        .footer-links a {
            color: var(--white);
            text-decoration: none;
            transition: var(--transition);
            opacity: 0.9;
            display: inline-block;
        }

        .footer-links a:hover {
            opacity: 1;
            transform: translateX(5px);
            color: var(--accent-color);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 3rem;
            margin-top: 3rem;
            border-top: 1px solid rgba(255,255,255,0.1);
            position: relative;
            z-index: 2;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .social-links a {
            color: var(--white);
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .social-links a:hover {
            background: var(--accent-color);
            transform: translateY(-5px);
        }

        .newsletter-form {
            margin-top: 1.5rem;
        }

        .newsletter-input {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            margin-bottom: 10px;
        }

        .newsletter-btn {
            width: 100%;
            padding: 12px;
            background: var(--accent-color);
            color: var(--white);
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: var(--transition);
        }

        .newsletter-btn:hover {
            background: var(--secondary-color);
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--accent-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: var(--primary-color);
            transform: translateY(-5px);
        }

        /* Booking Section */
		/* Toast notification styles */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    background: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.success {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

.toast.error {
    background: #e74c3c;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Form message styles */
.form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}
        .booking-form {
            max-width: 600px;
            margin: 0 auto;
            background: var(--white);
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .booking-form.in-view {
            opacity: 1;
            transform: translateY(0);
        }

        .booking-steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 2rem;
            position: relative;
        }

        .booking-steps::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 2px;
            background: #e0e0e0;
            z-index: 1;
        }

        .step {
            text-align: center;
            flex: 1;
            position: relative;
            z-index: 2;
        }

        .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.5rem;
            font-weight: bold;
            color: #666;
            transition: var(--transition);
            position: relative;
        }

        .step.active .step-number {
            background: var(--accent-color);
            color: var(--white);
            transform: scale(1.1);
        }

        .step-title {
            font-size: 0.9rem;
            color: #666;
            transition: var(--transition);
        }

        .step.active .step-title {
            color: var(--accent-color);
            font-weight: bold;
        }

        /* Location Section */
        .location-map {
            height: 500px;
            background: linear-gradient(45deg, #e3f2fd, #bbdefb);
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .location-map.in-view {
            opacity: 1;
            transform: translateY(0);
        }

        #map {
            width: 100%;
            height: 100%;
        }

        .location-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .location-card {
            background: var(--white);
            padding: 1.5rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            text-align: center;
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .location-card.in-view {
            opacity: 1;
            transform: translateY(0);
        }

        .location-card:nth-child(1) { transition-delay: 0.1s; }
        .location-card:nth-child(2) { transition-delay: 0.2s; }
        .location-card:nth-child(3) { transition-delay: 0.3s; }

        .location-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }

        .location-card h4 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .location-card h4 i {
            color: var(--accent-color);
        }

        .location-card p {
            color: #666;
            line-height: 1.6;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        /* Utility Classes */
        .hidden {
            display: none;
        }

        .text-center {
            text-align: center;
        }

        .mb-2 {
            margin-bottom: 1rem;
        }

        .mb-3 {
            margin-bottom: 1.5rem;
        }

        .bg-light {
            background: var(--light-color);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .hero h1 {
                font-size: 3rem;
            }
            
            .about-content {
                grid-template-columns: 1fr;
            }
            
            .about-image {
                height: 300px;
                order: -1;
            }
            
            .contact-container {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .nav-menu {
                position: fixed;
                top: 0;
                right: -100%;
                width: 80%;
                max-width: 300px;
                height: 100vh;
                background: var(--white);
                flex-direction: column;
                justify-content: center;
                gap: 2rem;
                transition: var(--transition);
                box-shadow: -5px 0 20px rgba(0,0,0,0.1);
                z-index: 1000;
            }

            .nav-menu.active {
                right: 0;
            }

            .mobile-menu {
                display: flex;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .section {
                padding: 3rem 1rem;
            }

            .splide__slide {
                height: 300px;
            }

            .splide__slide h3 {
                font-size: 1.8rem;
            }

            .splide__slide p {
                font-size: 1rem;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .booking-steps {
                flex-direction: column;
                gap: 1rem;
            }
            
            .booking-steps::before {
                display: none;
            }
            
            .step {
                display: flex;
                align-items: center;
                gap: 10px;
                text-align: left;
            }
            
            .step-number {
                margin: 0;
            }
        }