/* ====================== */
/* LIGHT MODE COLOR PALETTE */
/* ====================== */
:root {
    /* Light Mode Colors */
    --main: #e8e5da;
    /* Changed from #e8e5da to pure white */
    --primary: #e8e5da;
    /* Changed from #363636 to light gray */
    --secondary: #ba942e;
    /* Same gold accent color */
    --text: #212529;
    /* Changed from #e8e5da to dark text */
    --button: var(--secondary);
    /* Gold accent for buttons */

    /* Light Mode Gradients */
    --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-card-light: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    --gradient-gold: linear-gradient(135deg, #ba942e 0%, #a88425 100%);
    /* Same */

    /* Light Mode Shadows & Borders */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --border-light: #e0e0e0;
    --border-gold: rgba(186, 148, 46, 0.3);

    /* Transition */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Update existing gradient references to use light mode versions */
:root {
    --gradient-dark: var(--gradient-light);
    /* Update gradient-dark to use light version */
    --gradient-card: var(--gradient-card-light);
    /* Update gradient-card to use light version */
    --shadow-dark: var(--shadow-medium);
    /* Update shadow-dark to use medium light shadow */
    --border-dark: var(--border-light);
    /* Update border-dark to use light border */
    --scound: var(--secondary);
    /* Ensure scound uses secondary */
}

@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Bebas+Neue&display=swap');

/* ====================== */
/* BASE STYLES */
/* ====================== */
body {
    background-color: var(--main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.container-fluid {
    margin-right: 60px;
}

h2,
h3,
h4,
h5,
h6 {
    font-size: 40px;
    margin: 20px;
    color: var(--text);
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
}

p {
    font-family: "Almarai", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 21px;
    margin: 20px;
    color: var(--text);
}

a {
    font-family: "Almarai", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
}

span {
    font-family: "Almarai", sans-serif;
    /* font-weight: 800; */
    font-style: normal;
    color: var(--scound);
}

/* ====================== */
/* HERO SECTION */
/* ====================== */
.hero {
    height: 98vh !important;
    background-position: center center;
    background-size: cover !important;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    justify-content: center;
    margin-top: -120px;
}

.hero-content {
    text-align: center;
    color: #D4AF37;
    width: 100%;
    text-align: center;
    justify-content: center;
    height: 200px;
    display: none;

}

.hero_heading_container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 39vw;
    background: linear-gradient(180deg, #1e1e1e3e 0% -13%, #030303eb 100%);
    max-height: 200px;
    border-radius: 22px;
}

#hero_heading {
    color: #D4AF37 !important;
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    justify-items: center;
    margin-top: 9px;
    font-family: "Bebas Neue", sans-serif;
    font-style: normal;
    padding: 20px;
}

/* ====================== */
/* SECTION STYLES */
/* ====================== */
.section {
    margin-top: 100px;
    color: var(--primary);
}

.style-btn-1 {
    background-color: var(--button);
    color: var(--text);
    font-size: large;
    font-weight: 700;
}

.style-btn-1:hover {
    background-color: var(--text);
    color: var(--main) !important;
}

.style-btn-2 {
    background-color: var(--scound);
    color: var(--text);
    font-size: large;
    font-weight: 400;
}

.style-btn-2:hover {
    background-color: var(--text);
    color: var(--main);
}

/* ====================== */
/* SLIDER CONTROLS */
/* ====================== */
.slider-navigation {
    text-align: center;
    margin-top: 1rem;
    background-color: var(--main);
}

.slider-navigation button {
    background-color: var(--main);
    border-radius: 4px;
    padding: 0.1rem 0.6rem;
    padding-bottom: 0.4rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--scound);
    border: 2px solid var(--border-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-navigation button:hover {
    background: rgba(186, 148, 46, 0.2);
    border-color: var(--border-gold);
}

/* ====================== */
/* MAP SECTION */
/* ====================== */
#map-section {
    height: 70vh;
}

/* ====================== */
/* CONTACT FORM */
/* ====================== */
#email,
#message {
    width: 85%;
}

.form-group label {
    color: var(--text);
    margin-bottom: 15px;
}

.form-group input {
    background-color: var(--primary);
    border: 2px solid var(--border-dark);
    color: var(--text);
}

.form-group input:focus {
    background-color: var(--primary);
    border: 2px solid var(--scound);
    box-shadow: 0 0 0 0.2rem rgba(186, 148, 46, 0.25);
    color: var(--text);
}

.form-style-btn {
    background-color: var(--scound);
    color: var(--text);
    font-size: large;
    font-weight: 400;
    margin-left: 15px;
    width: 150px;
    border: none;
    transition: var(--transition-smooth);
}

input,
select {
    height: 50px !important;
    padding: 12px !important;
}

textarea {
    height: 200px !important;
}

.form-style-btn:hover {
    background-color: var(--text);
    color: var(--main);
    transform: translateY(-2px);
}

/* ====================== */
/* RESPONSIVE DESIGN */
/* ====================== */

/* Large desktops (1440px and up) */
@media (max-width: 1440px) {
    .hero {
        height: 120vh !important;
    }

    .hero-content {
        margin-top: 250px;
        font-size: 10px;
    }

    .search-bar-container {
        margin-top: 450px;
        height: 100px;
        display: flex;
        align-items: center;
    }

    .carousel-controls {
        margin-right: -800px;
    }

    .search-bar {
        width: 100%;
    }

    #why-Section-img {
        height: 500px;
        width: 550px;
    }

    .form-control {
        height: 300px;
    }
}

/* Standard desktops (1200px to 1199px) */
@media (max-width: 1199.98px) {
    .hero-content {
        margin-top: 200px;
    }

    .search-bar-container {
        margin-top: 200px;
    }

    #hero_heading {
        font-size: 3.5rem;
    }

    .carousel-controls {
        margin-right: -650px;
    }

    #why-Section-img {
        height: 500px;
        width: 500px;
    }

    #Properties-content h2 {
        font-size: 22px;
    }

    #Properties-content p {
        font-size: 18px;
    }

    .Properties-btn {
        width: 88%;
        margin-left: 10px;
    }
}

/* Tablets (992px to 1199px) */
@media (max-width: 991.98px) {
    .hero {
        height: 100vh !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-content {
        margin-top: 150px;
    }

    .search-bar-container {
        margin-top: 150px;
        padding: 15px 0;
    }

    #hero_heading {
        font-size: 3rem;
    }

    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 32px;
    }

    p {
        font-size: 18px;
    }

    .property-item {
        min-width: calc(50% - 10px);
    }

    .carousel-controls {
        margin-right: -500px;
    }

    #why-Section {
        height: auto;
        flex-direction: column;
    }

    #why-Section-img {
        width: 75vw;
        height: 90vh;
        margin-left: 3px;
    }

    #Properties-content {
        width: 40vw;
        margin: 20px;
        margin-left: 13%;
    }

    .Properties-btn {
        width: 565px;
        margin-left: -5px;
    }

    #map-section {
        height: 50vh;
    }
}

/* Small tablets and large phones (768px to 991px) */
@media (max-width: 767.98px) {
    .hero {

        height: 66vh !important;
        margin-top: -82px !important;
    }

    .hero-content {
        margin-top: 120px;
    }

    .search-bar-container {
        margin-top: 120px;
        padding: 10px 0;
    }

    #hero_heading {
        font-size: 2.5rem;
    }

    .hero_heading_container {
        height: 80px;
    }

    .search-bar .form-control,
    .search-bar .btn {
        height: 40px;
    }

    .container-fluid {
        margin-right: 30px;
    }

    .property-item {
        min-width: 100%;
    }

    .carousel-controls {
        margin-right: -300px;
    }

    #image-carousel {
        height: 300px;
        margin-top: 40px;
    }

    #image-carousel div.previous img,
    #image-carousel div.next img {
        height: 200px;
        width: 280px;
    }

    #image-carousel div.previous-second-left img,
    #image-carousel div.next-second-right img {
        height: 150px;
        width: 220px;
    }

    .carousel-controls button {
        font-size: 40px;
    }

    #email,
    #message {
        width: 100%;
    }

    .form-style-btn {
        width: 100%;
        margin-left: 0;
    }
}

/* Small phones (up to 575px) */
@media (max-width: 575.98px) {
    .hero {
        height: 60vh;
        margin-top: -178px;
        width: 100%;
    }

    .hero-content {
        margin-top: 00px;
    }

    .search-bar-container {
        margin-top: 250px;
        padding: 5px;
        border-radius: 15px;
        height: 300px;
        width: 90%;
        justify-content: center;
    }

    #hero_heading {
        font-size: 4rem;
    }

    .hero_heading_container {
        height: 200px;
        width: 100%;

    }

    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 24px;
        margin: 15px;
    }

    p {
        font-size: 16px;
        margin: 15px;
    }

    .section {
        margin-top: 180px;

    }

    .img-property {
        height: 200px;
        width: 100%;
    }

    #why-Section-img {
        margin-left: 5px;
        width: 90vw;
        height: 65vh;
        clip-path: none;
        border-radius: 10px;
        clip-path: polygon(83% 0%,
                17% 0%,
                0% 25%,
                0% 40%,
                46% 100%,
                56% 100%,
                100% 40%,
                100% 25%,
                83% 0%);
    }

    .Properties-btn {
        width: 90%;
        margin-right: 30px;
    }

    #map-section {
        height: 40vh;
    }

    .form-group input {
        height: 45px;
    }

    .form-group input:focus {
        height: 45px;
    }

    .contact-icon {
        margin-top: -40px;
    }
}

/* Very small phones (up to 375px) */
@media (max-width: 376px) {
    .hero {
        height: 80vh !important;
        margin-top: -90px !important;
    }

    .hero-content {
        margin-top: 80px;
    }

    .search-bar-container {
        margin-top: 80px;
    }

    #hero_heading {
        font-size: 2.6rem;
        margin-top: 13px;
    }

    .carousel-controls {
        margin-right: -150px;
    }

    #why-Section-img {
        width: 80vw;
        height: 60vh;
    }

    #Properties-content {
        width: 100%;
    }

    #Properties-content h2 {
        font-weight: 600;
    }

    #Properties-content p {
        font-weight: 300;
        font-size: 17px;
    }
}

/* ====================== */
/* CAROUSEL STYLES - UPDATED FOR LIGHT MODE */
/* ====================== */
/* .carousel-container {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px var(--shadow-dark);
    border: 1px solid var(--border-dark);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    z-index: 1;
}

.logo-carousel-item {
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.logo-container {
    height: 200px;
    background: var(--gradient-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-dark);
    border: 1px solid var(--border-dark);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(186, 148, 46, 0.05) 0%, rgba(186, 148, 46, 0.02) 100%);
    z-index: 1;
}

.logo-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(186, 148, 46, 0.15);
    border-color: var(--border-gold);
}

.logo-img {
    max-width: 100%;
    max-height: 100px;
    filter: brightness(0.9);
    opacity: 0.85;
    transition: var(--transition-smooth);
    z-index: 2;
    position: relative;
}

.logo-container:hover .logo-img {
    opacity: 1;
    filter: brightness(1.1);
    transform: scale(1.08);
}

.company-name {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text);
    font-size: 1.1rem;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.logo-carousel-item:hover .company-name {
    color: var(--scound);
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: var(--gradient-light);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 10px 30px var(--shadow-medium);
    border: 1px solid var(--border-dark);
    opacity: 0.8;
    transition: var(--transition-smooth);
    z-index: 10;
}

.carousel-control-prev {
    left: -30px;
}

.carousel-control-next {
    right: -30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--gradient-gold);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--border-gold);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 24px;
    filter: brightness(0) invert(0.3);
    transition: var(--transition-smooth);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

.carousel-indicators {
    position: relative;
    margin-top: 2.5rem;
    margin-bottom: 0;
    gap: 8px;
}

.carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(33, 37, 41, 0.2);
    border: 1px solid rgba(33, 37, 41, 0.1);
    margin: 0 4px;
    transition: var(--transition-smooth);
}

.carousel-indicators button.active {
    background: var(--gradient-gold);
    transform: scale(1.3);
    border-color: var(--border-gold);
}

.auto-play-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.auto-play-indicator .indicator-dot {
    width: 10px;
    height: 10px;
    background: var(--gradient-gold);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
} */

/* ====================== */
/* GALLERY STYLES - UPDATED FOR LIGHT MODE */
/* ====================== */
.gallery-container {
    margin-top: 3rem;
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px var(--shadow-dark);
    border: 1px solid var(--border-dark);
    overflow: hidden;
    position: relative;
}

.gallery-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px var(--shadow-medium);
    border: 1px solid var(--border-dark);
    background: var(--gradient-light);
    transition: var(--transition-smooth);
    height: 300px;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(186, 148, 46, 0.15);
    border-color: var(--border-gold);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: center center;
    transition: var(--transition-smooth);
    filter: brightness(0.95);
}

.gallery-item:hover .gallery-image {
    filter: brightness(1);
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(28, 28, 28, 0.95), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--main);
    margin-bottom: 0.5rem;
}

.gallery-description {
    font-size: 0.95rem;
    color: var(--main);
    line-height: 1.5;
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-gold);
    color: var(--main);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(186, 148, 46, 0.3);
}

/* Gallery Lightbox Modal */
.gallery-modal .modal-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
}

.gallery-modal .modal-header {
    border-bottom: 1px solid var(--border-dark);
    padding: 1.5rem;
}

.gallery-modal .modal-title {
    color: var(--text);
    font-weight: 700;
}

.gallery-modal .btn-close {
    filter: brightness(0) invert(0.3);
}

.gallery-modal .modal-body {
    padding: 0;
}

.gallery-modal .modal-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: var(--main);
}

.gallery-modal .modal-footer {
    border-top: 1px solid var(--border-dark);
    padding: 1.5rem;
    color: #6c757d;
}

/* ====================== */
/* VIDEO SECTION - UPDATED FOR LIGHT MODE */
/* ====================== */
.section-title {
    text-align: center;
    margin: 4rem 0 2rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    display: inline-block;
    padding: 0 0.5rem;
    /* background: var(--main); */
    position: relative;
    z-index: 2;
}

/* .section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-dark);
    z-index: 1;
} */

.section-title .gold-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-gold);
    z-index: 1;
}

/* Video Section Styles */
.video-section {
    margin: 3rem 0;
    padding: 4rem 0;
}

.video-container {
    background: var(--gradient-card);
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: 0 25px 60px var(--shadow-dark);
    border: 1px solid var(--border-dark);
    overflow: hidden;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    z-index: 1;
}

/* Centered Layout */
.video-content.centered-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.video-text.centered,
.video-player-side.centered {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* Text Content */
.video-text.centered {
    padding: 0 1rem;
}

.video-badge {
    color: var(--scound);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.video-badge i {
    font-size: 1.2rem;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
}

.video-description {
    color: var(--text);
    opacity: 0.85;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 0;
    font-family: "Almarai", sans-serif;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Video Player */
.video-player-side.centered {
    position: relative;
}

.video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow-medium);
    background: #000;
    transition: var(--transition-smooth);
    max-width: 1080px;
    margin: 0 auto;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(186, 148, 46, 0.25);
}

/* Custom Video Player */
.custom-video {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
    background: #000;
    aspect-ratio: 16/9;
}

.custom-video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.custom-video::-webkit-media-controls-play-button {
    background-color: var(--scound);
    border-radius: 50%;
}

/* Decorative Elements */
.video-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .video-container {
        padding: 3.5rem 2.5rem;
    }
}

@media (max-width: 992px) {
    .video-content.centered-layout {
        gap: 2.5rem;
    }

    .video-title {
        font-size: 2.2rem;
    }

    .video-container {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .video-section {
        padding: 2.5rem 0;
        margin: 2rem 0;
    }

    .video-container {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .video-title {
        font-size: 2rem;
    }

    .video-description {
        font-size: 1.1rem;
    }

    .video-text.centered,
    .video-player-side.centered {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .video-container {
        padding: 2rem 1.25rem;
    }

    .video-title {
        font-size: 1.8rem;
    }

    .video-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .video-badge {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .video-content.centered-layout {
        gap: 2rem;
    }
}

@media (max-width: 400px) {
    .video-container {
        padding: 1.75rem 1rem;
    }

    .video-title {
        font-size: 1.6rem;
    }

    .video-description {
        font-size: 0.95rem;
    }
}

/* ====================== */
/* Logos SECTION - UPDATED FOR LIGHT MODE */
/* ====================== */

.container-logos {
    --s: 100px;
    /* size of the logo */
    --d: 15s;
    /* animation duration*/
    --n: 4;
    /* number of visible logos */
    display: flex;
    overflow: hidden;
    mask:
        linear-gradient(90deg, #0000, #000 10% 90%, #0000);
    max-width: 1080px;
}

.logos {
    width: var(--s);
    offset: shape(from calc(var(--s)/-2) 50%, hline by calc(sibling-count()*max(100%/var(--n), var(--s) + 0px)));
    animation: x var(--d) linear infinite calc(-1*sibling-index()*var(--d)/sibling-count());
    max-height: 90px;
}

@keyframes x {
    to {
        offset-distance: 100%
    }
}

.container-logos:hover .logos {
    animation-play-state: paused
}

/* extra styles */
.container-logos {
    /* border: 1px solid; */
    padding-block: 5px;
    margin: 20px auto;
}

:nth-child(2 of .container) img {
    animation-direction: reverse;
}



@media (max-width: 768px) {
    .container-logos {
        --n: 2;
    }
}

/* ====================== */
/* PANAR SECTION - UPDATED FOR LIGHT MODE */
/* ====================== */
.section-panar {
    background: var(--gradient-card);
    /* border-radius: 20px; */
    /* padding: 2.5rem; */
    box-shadow: 0 20px 50px var(--shadow-dark);
    border: 1px solid var(--border-dark);
    overflow: hidden;
    position: relative;
}


.panar-fw {
    width: 100% !important;
    height: 500px;
    object-fit: cover;
    object-position: 50% 18%;
}

/* ====================== */
/* ANIMATIONS */
/* ====================== */
.carousel-item {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.carousel-item.active .logo-carousel-item {
    animation: fadeInUp 0.7s ease forwards;
}

.carousel-item.active .logo-carousel-item:nth-child(2) {
    animation-delay: 0.1s;
}

.carousel-item.active .logo-carousel-item:nth-child(3) {
    animation-delay: 0.2s;
}

.gallery-item {
    animation: fadeInUp 0.7s ease forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* ====================== */
/* RESPONSIVE ADJUSTMENTS FOR GALLERY, CAROUSEL & VIDEO */
/* ====================== */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {

    .carousel-container,
    .gallery-container,
    .video-container {
        padding: 2rem;
    }

    .logo-container {
        height: 180px;
        padding: 1.5rem;
    }

    .logo-img {
        max-height: 90px;
    }

    .video-title {
        font-size: 1.6rem;
    }

    .video-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }

    .stat-item {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-container,
    .gallery-container,
    .video-container {
        padding: 1rem;
    }

    .panar-fw {
        width: 100% !important;
        height: 300px;
    }

    .logo-container,
    .gallery-item {
        height: 160px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item {
        height: 250px;
    }

    .logo-img {
        max-height: 80px;
    }

    .video-title {
        font-size: 1.4rem;
    }

    .video-description {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .video-controls {
        justify-content: center;
    }

    .video-btn {
        flex: 1;
        min-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .logo-container {
        height: 140px;
    }

    .gallery-item {
        height: 220px;
    }

    .company-name,
    .gallery-title {
        font-size: 1rem;
    }

    .gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .video-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .video-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .video-btn {
        min-width: 100%;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .panar-fw {
        width: 100% !important;
        height: 300px;
    }
}

/* ====================== */
/* GALLERY SLIDER RESPONSIVE - UPDATED FOR LIGHT MODE */
/* ====================== */
@media (max-width: 1199.98px) {
    #gallery-slider {
        height: 260px;
        margin: 1rem 0;
        margin-top: 30px;
        overflow: hidden;
    }

    .left-primary,
    .right-primary {
        width: 350px;
        height: 220px;
    }

    .center-active {
        width: 400px;
        height: 280px;
    }
}

@media (max-width: 991.98px) {
    #gallery-slider {
        height: 180px;
        margin-top: 70px;
    }

    .left-secondary,
    .right-secondary {
        display: none;
    }

    .left-primary,
    .right-primary {
        width: 300px;
        height: 200px;
    }

    .center-active {
        width: 350px;
        height: 250px;
    }

    .slider-navigation {
        margin-top: 5rem;
        background: var(--main);
    }
}

@media (max-width: 769px) {
    #gallery-slider {
        height: 300px;
        margin-top: 20px;
    }

    .left-primary,
    .right-primary {
        display: none;
    }

    .center-active {
        width: 100%;
        height: 100%;
    }

    .slider-navigation {
        margin-top: 1rem;
        background: var(--main);
    }
}

@media (max-width: 575.98px) {
    #gallery-slider {
        height: 140px;
        margin-top: 40px;
    }

    .center-active {
        height: 200px;
    }

    .slider-navigation {
        margin-top: 3rem;
        background: var(--main);
    }

    .slider-navigation button {
        font-size: 1.3rem;
        padding: 0.1rem 0.5rem;
    }
}

@media (max-width: 375px) {
    #gallery-slider {
        height: 120px;
        margin: 5px;
    }

    .center-active {
        height: 180px;
    }
}

/* ====================== */
/* CUSTOM THEME TOGGLE FOR LIGHT/DARK MODE */
/* ====================== */
.theme-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle {
    background: var(--gradient-card);
    border: 2px solid var(--border-dark);
    border-radius: 50px;
    width: 60px;
    height: 30px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.theme-toggle:hover {
    border-color: var(--border-gold);
    box-shadow: 0 6px 20px rgba(186, 148, 46, 0.15);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--gradient-gold);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.theme-toggle.active::after {
    left: calc(100% - 27px);
}

.theme-toggle .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--scound);
}

.theme-toggle .sun {
    left: 8px;
}

.theme-toggle .moon {
    right: 8px;
}


/* ====================== */
/* FAQ SECTION STYLES */
/* ====================== */

.faq-section {
    padding: 80px 0;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    color: var(--text);
    opacity: 0.8;
    font-size: 1.2rem;
    margin-top: 0px;
    font-family: "Almarai", sans-serif;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Content */
.faq-content {
    max-width: 1000px;
    margin: 60px auto 0;
    background: var(--main);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px var(--shadow-light);
    border: 1px solid var(--border-dark);
    position: relative;
}

.faq-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    z-index: 1;
}

/* FAQ Accordions */
.faq-accordions {
    margin-bottom: 40px;
}

/* FAQ Items */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-gold);
    box-shadow: 0 10px 30px rgba(186, 148, 46, 0.1);
}

.faq-item.active {
    border-color: var(--border-gold);
    box-shadow: 0 15px 40px rgba(186, 148, 46, 0.15);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(248, 249, 250, 0.8);
}

.faq-item.active .faq-question {
    background: rgba(186, 148, 46, 0.1);
}

.question-number {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.8rem;
    color: var(--scound);
    min-width: 50px;
    font-weight: 700;
}

.faq-question h3 {
    flex: 1;
    margin: 0 20px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    font-family: "Almarai", sans-serif;
}

.toggle-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    border-radius: 50%;
    color: var(--scound);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    border: 2px solid var(--border-dark);
}

.faq-question:hover .toggle-icon {
    background: rgba(186, 148, 46, 0.1);
    border-color: var(--border-gold);
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    background: var(--gradient-gold);
    color: var(--main);
    border-color: var(--border-gold);
}

/* FAQ Answers */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 30px 30px;
}

.faq-answer-content p {
    margin: 0 0 15px 0;
    color: var(--text);
    opacity: 0.9;
    line-height: 1.7;
    font-size: 1.1rem;
    font-family: "Almarai", sans-serif;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.faq-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text);
    font-family: "Almarai", sans-serif;
    font-size: 1rem;
}

.faq-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--scound);
    font-weight: bold;
}


/* FAQ CTA */
.faq-cta {
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(186, 148, 46, 0.1) 0%, rgba(186, 148, 46, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    text-align: center;
}

.cta-content h3 {
    color: var(--text);
    font-size: 2rem;
    margin-bottom: 15px;
    font-family: "Bebas Neue", sans-serif;
}

.cta-content p {
    color: var(--text);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    font-family: "Almarai", sans-serif;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 35px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    font-family: "Almarai", sans-serif;
}

.cta-btn.primary {
    background: var(--gradient-gold);
    color: var(--main);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(186, 148, 46, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-btn.secondary {
    background: var(--primary);
    color: var(--text);
    border-color: var(--border-dark);
}

.cta-btn.secondary:hover {
    background: var(--gradient-light);
    border-color: var(--border-gold);
    transform: translateY(-3px);
    color: var(--scound);
}

/* Responsive Design */
@media (max-width: 992px) {
    .faq-content {
        padding: 30px;
        margin-top: 40px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .stat-box {
        min-width: 120px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-content {
        padding: 20px;
        border-radius: 16px;
    }

    .faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .question-number {
        order: 1;
        min-width: 40px;
        font-size: 1.5rem;
    }

    .faq-question h3 {
        order: 3;
        flex: 0 0 100%;
        margin: 10px 0 0 0;
        font-size: 1.1rem;
    }

    .toggle-icon {
        order: 2;
    }

    .faq-cta {
        padding: 30px 20px;
    }

    .cta-content h3 {
        font-size: 1.6rem;
    }

    .faq-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .faq-section {
        padding: 40px 0;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .faq-search {
        margin: 30px 15px;
    }

    .search-input {
        padding: 15px 20px 15px 45px;
        font-size: 1rem;
    }

    .faq-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .stat-box {
        width: 100%;
        max-width: 250px;
    }

    .cta-buttons {
        gap: 15px;
    }

    .cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* ====================== */
/* TEAM SECTION STYLES */
/* ====================== */
.team-section {
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    max-width: 1280px;
}

/* Team Stats */
.team-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto 60px;
    max-width: 1000px;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: 25px 20px;
    min-width: 180px;
    background: var(--main);
    border-radius: 16px;
    border: 1px solid var(--border-dark);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
    box-shadow: 0 20px 40px rgba(186, 148, 46, 0.15);
}

.stat-card .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    font-family: "Bebas Neue", sans-serif;
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--text);
    opacity: 0.7;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: "Almarai", sans-serif;
    font-weight: 600;
}

/* Team Grid (Original Grid Layout - keep for reference/fallback) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

/* ====================== */
/* TEAM CAROUSEL STYLES */
/* ====================== */
.team-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 40px;
}

.team-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 10px 0 30px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.team-carousel::-webkit-scrollbar {
    display: none;
}

/* Carousel specific team member card */
.team-member.carousel-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: calc(25% - 22.5px);
    /* 4 cards visible on desktop */
    min-width: 280px;
    /* Minimum width for smaller screens */
}

/* Team Member (General styles for both grid and carousel) */
.team-member {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px var(--shadow-light);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--border-gold);
    box-shadow: 0 25px 50px rgba(186, 148, 46, 0.15);
}

/* Member Image */
.member-image {
    position: relative;
    height: 285px;
    width: 100%;
    overflow: hidden;
    padding: 20px;
    border-radius: 50%;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 18%;
    transition: transform 0.8s ease;
    border-radius: 50%;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(21, 22, 22, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 30px;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-gold);
    color: var(--main);
    transform: translateY(-3px);
}

/* Member Badge */
.member-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    font-family: "Almarai", sans-serif;
}

.member-badge.leadership {
    background: var(--gradient-gold);
    color: var(--main);
    box-shadow: 0 5px 15px rgba(186, 148, 46, 0.3);
}

.member-badge.design {
    background: rgba(67, 97, 238, 0.9);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.member-badge.development {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.member-badge.marketing {
    background: rgba(255, 193, 7, 0.9);
    color: var(--main);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* Member Info - CENTERED TEXT */
.member-info {
    padding: 25px 20px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    font-family: "Bebas Neue", sans-serif;
    width: 100%;
    text-align: center;
}

.member-role {
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 0;
    font-family: "Almarai", sans-serif;
    width: 100%;
    text-align: center;
}

.member-expertise {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 0;
    font-family: "Almarai", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 100%;
    text-align: center;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--main);
    border: 1px solid var(--border-dark);
    color: var(--text);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.carousel-nav:hover {
    background: var(--gradient-gold);
    color: var(--main);
    border-color: var(--border-gold);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(186, 148, 46, 0.25);
}

.carousel-nav-prev {
    left: 0;
}

.carousel-nav-next {
    right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-dark);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.carousel-indicator.active {
    background: var(--gradient-gold);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: var(--scound);
    transform: scale(1.1);
}

/* Team CTA */
.team-cta {
    margin-top: 60px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(186, 148, 46, 0.1) 0%, rgba(186, 148, 46, 0.05) 100%);
    border-radius: 24px;
    border: 1px solid var(--border-gold);
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.team-cta .cta-content h3 {
    color: var(--text);
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: "Bebas Neue", sans-serif;
}

.team-cta .cta-content p {
    color: var(--text);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    font-family: "Almarai", sans-serif;
}

.team-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.team-cta .cta-btn {
    padding: 15px 35px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    font-family: "Almarai", sans-serif;
}

.team-cta .cta-btn.primary {
    background: var(--gradient-gold);
    color: var(--main);
}

.team-cta .cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(186, 148, 46, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.team-cta .cta-btn.secondary {
    background: var(--primary);
    color: var(--text);
    border-color: var(--border-dark);
}

.team-cta .cta-btn.secondary:hover {
    background: var(--gradient-light);
    border-color: var(--border-gold);
    transform: translateY(-3px);
    color: var(--scound);
}

/* ====================== */
/* RESPONSIVE DESIGN */
/* ====================== */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }

    .stat-card {
        min-width: 160px;
        padding: 20px 15px;
    }

    .stat-card .stat-number {
        font-size: 2.5rem;
    }

    /* Carousel responsive */
    .team-member.carousel-slide {
        width: calc(33.333% - 20px);
        /* 3 cards visible */
    }
}

@media (max-width: 992px) {
    .team-section {
        padding: 60px 0;
    }

    .team-stats {
        gap: 20px;
        margin: 40px auto 50px;
    }

    .stat-card {
        min-width: 140px;
        padding: 20px;
    }

    .team-cta {
        padding: 40px 30px;
        margin-top: 40px;
    }

    .team-cta .cta-content h3 {
        font-size: 1.8rem;
    }

    /* Carousel responsive */
    .team-carousel-container {
        padding: 0 30px;
    }

    .team-member.carousel-slide {
        width: calc(50% - 15px);
        /* 2 cards visible */
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .team-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .stat-card {
        width: 100%;
        max-width: 300px;
    }

    .team-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .team-cta .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .member-image {
        height: 350px;
    }

    /* Carousel responsive */
    .team-carousel-container {
        padding: 0 20px;
    }

    .team-member.carousel-slide {
        width: calc(50% - 15px);
        /* 1 card visible on mobile */
        min-width: 300px;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .team-section {
        padding: 40px 0;
    }

    .team-cta {
        padding: 30px 20px;
    }

    .team-cta .cta-content h3 {
        font-size: 1.6rem;
    }

    .team-cta .cta-content p {
        font-size: 1rem;
    }

    .member-info {
        padding: 25px 20px;
    }

    .member-name {
        font-size: 1.6rem;
    }

    .member-role {
        font-size: 1.2rem;
    }

    .member-expertise {
        font-size: 0.9rem;
    }

    .member-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    /* Carousel responsive */
    .team-carousel-container {
        padding: 0 10px;
    }

    .team-member.carousel-slide {
        min-width: 280px;
    }
}

/* ====================== */
/* ANIMATIONS */
/* ====================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.team-member {
    animation: fadeInUp 0.7s ease forwards;
    opacity: 0;
}

.team-member:nth-child(1) {
    animation-delay: 0.1s;
}

.team-member:nth-child(2) {
    animation-delay: 0.2s;
}

.team-member:nth-child(3) {
    animation-delay: 0.3s;
}

.team-member:nth-child(4) {
    animation-delay: 0.4s;
}

.team-member:nth-child(5) {
    animation-delay: 0.5s;
}

.team-member:nth-child(6) {
    animation-delay: 0.6s;
}

.team-member:nth-child(7) {
    animation-delay: 0.7s;
}

.team-member:nth-child(8) {
    animation-delay: 0.8s;
}

.stat-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Carousel item animations */
.team-member.carousel-slide {
    animation: fadeInUp 0.7s ease forwards;
    opacity: 0;
}

.team-member.carousel-slide:nth-child(1) {
    animation-delay: 0.1s;
}

.team-member.carousel-slide:nth-child(2) {
    animation-delay: 0.2s;
}

.team-member.carousel-slide:nth-child(3) {
    animation-delay: 0.3s;
}

.team-member.carousel-slide:nth-child(4) {
    animation-delay: 0.4s;
}

.team-member.carousel-slide:nth-child(5) {
    animation-delay: 0.5s;
}

.team-member.carousel-slide:nth-child(6) {
    animation-delay: 0.6s;
}


/* Dubai Premier Property Marketplace Styles */
.property-marketplace-section {
    padding: 80px 0;
    background: #fff;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.property-marketplace-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.marketplace-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #d4af37, #f7ef8a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.value-propositions {
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--main);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.value-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.value-icon svg {
    fill: #d4af37;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.value-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
    font-family: 'Almarai', sans-serif;
}

.value-description {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-family: 'Almarai', sans-serif;
}

.btn-marketplace {
    background: linear-gradient(90deg, #d4af37, #b8942e);
    color: #0a0a0a;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Almarai', sans-serif;
}

.btn-marketplace:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    color: #0a0a0a;
}

.btn-marketplace svg {
    transition: transform 0.3s ease;
}

.btn-marketplace:hover svg {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .marketplace-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    .value-card {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .property-marketplace-section {
        padding: 60px 0;
    }

    .marketplace-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .value-card {
        margin-bottom: 30px;
    }

    .value-title {
        font-size: 1.3rem;
    }

    .value-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .property-marketplace-section {
        padding: 50px 0;
    }

    .marketplace-title {
        font-size: 1.8rem;
    }

    .value-card {
        padding: 25px 20px;
    }
}