/* ── Font Face Declarations ── */
@font-face {
    font-family: 'Faculty Glyphic';
    src: url('../fonts/faculty-glyphic-regular.woff2') format('woff2'),
         url('../fonts/faculty-glyphic-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* Arabic Title: 29LT Azahar Text */
@font-face {
    font-family: 'Azahar Text';
    src: url('../fonts/AzaharText.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* Arabic Paragraph: 29LT Zarid Sans */
@font-face { font-family: 'Zarid Sans'; src: url('../fonts/ZaridSans-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zarid Sans'; src: url('../fonts/ZaridSans-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zarid Sans'; src: url('../fonts/ZaridSans-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zarid Sans'; src: url('../fonts/ZaridSans-SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zarid Sans'; src: url('../fonts/ZaridSans-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --primary-color: #330A18;
    /* Crimson */
    --secondary-color: #C19558;
    /* Golden Oak */
    --evergreen: #072107;
    --sand-cream: #E5D0B7;
    --text-color: #444444;
    --heading-color: #111111;
    --bg-color: #ffffff;
    --gray-bg: #f9f9f9;
    --header-bg: #ffffff;
    --footer-bg: #111111;
    --footer-text: #cccccc;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-ar: 'Zarid Sans', 'IBM Plex Sans Arabic', sans-serif;
    --font-ar-title: 'Azahar Text', 'IBM Plex Sans Arabic', serif;
    --font-en: 'Manrope', sans-serif;
    --font-en-title: 'Faculty Glyphic', serif;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Clickable cursor ── */
.team-card, .project-ticket, .service-card, .gallery-item,
button, .contact-btn, .lang-btn, .whatsapp-float,
.social-icons a, .footer-links a, .hero-btn, .services-btn,
.project-btn, .property-btn, .whatsapp-btn, .call-btn,
.filter-btn, .load-more-btn, a.team-card-link { cursor: pointer; }

/* ── Accessibility ── */
:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-ar);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* Language-specific font stacks */
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .section-title,
html[lang="ar"] .page-header h1 {
    font-family: var(--font-ar-title);
}

/* Form elements must inherit the page font instead of the browser default */
input, select, textarea, button {
    font-family: inherit;
}

html[lang="en"] body { font-family: var(--font-en); }
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6,
html[lang="en"] .section-title,
html[lang="en"] .page-header h1 {
    font-family: var(--font-en-title);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: transparent;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--header-bg);
    padding: 0.8rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav ul li a {
    font-weight: 500;
    font-size: 1.05rem;
    color: #fff;
    position: relative;
}

header.scrolled nav ul li a {
    color: var(--heading-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
}

header.scrolled nav ul li a:after {
    background-color: var(--primary-color);
}

nav ul li a:hover:after,
nav ul li.active a:after {
    width: 100%;
}

nav ul li a:hover {
    color: #fff;
    opacity: 0.8;
}

header.scrolled nav ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

header.scrolled .phone-link {
    color: var(--primary-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-right: 1.5rem;
}

.lang-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

header.scrolled .lang-btn {
    color: var(--primary-color);
    border-color: rgba(51, 10, 24, 0.2);
}

.lang-btn:hover {
    background: #fff;
    color: var(--primary-color);
}

header.scrolled .lang-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

[lang="en"] {
    direction: ltr;
    text-align: left;
}

[lang="en"] .about-title:after,
[lang="en"] .footer-title:after {
    left: 0;
    right: auto;
}

[lang="en"] .video-info {
    text-align: left;
}

[lang="en"] .insta-links i {
    margin-left: 0;
    margin-right: 8px;
}

[lang="en"] .contact-item p {
    text-align: left;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
    background: var(--evergreen);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(7, 33, 7, 0.6) 0%,
        rgba(51, 10, 24, 0.4) 50%,
        rgba(7, 33, 7, 0.7) 100%
    );
    z-index: 1;
}

/* Removing fixed img as background is handled by .hero */
.hero img.bg-fallback {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-logo img {
    width: min(640px, 85vw);
    height: auto;
}

.hero-title {
    font-size: 32px;
    /* Original size */
    font-weight: 500;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    font-family: var(--font-ar);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0 35px;
    line-height: 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    transition: var(--transition);
}

.hero-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: #fff;
}

/* About Section */
.about {
    padding: 160px 5%;
    /* Increased padding */
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10rem;
    /* Increased gap */
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 4px;
    /* Matching the original slightly more rigid feel */
}

.about-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.about-text {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 2;
    text-align: justify;
    opacity: 0.85;
}

/* CEO Speech Section */
.ceo-speech {
    padding: 8rem 5%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a1524 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ceo-speech::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(193, 149, 88, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ceo-speech-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ceo-speech-eyebrow {
    display: inline-block;
    font-size: 1.15rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.ceo-speech-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.8rem;
    color: #fff;
}

.ceo-speech-desc {
    font-size: 1.2rem;
    line-height: 1.9;
    opacity: 0.9;
    max-width: 560px;
}

.ceo-speech-video {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    background: #000;
    cursor: pointer;
}

.ceo-speech-video video {
    width: 100%;
    height: auto;
    display: block;
}

.ceo-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, opacity 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.ceo-play-btn::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(193, 149, 88, 0.5);
    animation: ceoPulse 2s ease-out infinite;
}

@keyframes ceoPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.ceo-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #d4a668;
}

.ceo-speech-video.playing .ceo-play-btn {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .ceo-speech {
        padding: 5rem 5%;
    }
    .ceo-speech-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .ceo-speech-title {
        font-size: 2.3rem;
    }
    .ceo-speech-eyebrow {
        font-size: 1rem;
    }
    .ceo-speech-desc {
        font-size: 1.1rem;
    }
    .ceo-play-btn {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }
}

/* Partners Section */
.partners {
    padding: 6rem 0 5rem;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.partners .section-title,
.partners .section-subtitle {
    white-space: normal;
}

.partners .section-subtitle {
    margin-bottom: 3rem;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scroll 60s linear infinite;
}

.partners-group {
    display: flex;
    align-items: center;
    gap: 8rem;
    /* Consistent gap */
    padding-left: 8rem;
    /* Padding at the end of the group to match the gap */
}

.partners-group img {
    height: 120px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
    object-fit: contain;
}

.partners-group img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.services-cta {
    text-align: center;
    margin-top: 4rem;
    white-space: normal;
}

.services-btn {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.services-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(51, 10, 24, 0.1);
}

/* Testimonials Section */
.testimonials {
    padding: 160px 5%;
    background-color: #fff;
    text-align: center;
    overflow: hidden;
}

.testimonials .section-title {
    margin-bottom: 80px;
    font-size: 2.2rem;
    font-weight: 700;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    padding-bottom: 177.78%;
    /* 9:16 vertical ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.video-info {
    padding: 20px 0;
    text-align: right;
}

.video-info h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.video-info p {
    font-size: 0.95rem;
    color: #666;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* Services */
.services {
    padding: 160px 5%;
    background-color: var(--gray-bg);
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--heading-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: #777;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Services Auto Slider ─────────────────────────────────────────── */
.services-slider {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.services-track {
    display: flex;
    width: max-content;
    gap: 2.5rem;
    padding: 1rem 1.25rem;
    animation: servicesScroll 45s linear infinite;
}

.services-slider:hover .services-track {
    animation-play-state: paused;
}

.services-track .service-card {
    flex: 0 0 auto;
    width: 440px;
    /* override the reveal entrance used by the grid layout */
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

.services-track .service-card .service-media img {
    transform: scale(1);
}

.services-track .service-card:hover .service-media img {
    transform: scale(1.08);
}

@keyframes servicesScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 1.25rem)); }
}

@media (max-width: 768px) {
    .services-track .service-card {
        width: 300px;
    }
    .services-track {
        gap: 1.5rem;
    }
    @keyframes servicesScroll {
        from { transform: translateX(0); }
        to   { transform: translateX(calc(-50% - 0.75rem)); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-track {
        animation: none;
    }
}

.service-card {
    background: white;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.5s ease,
                border-bottom-color 0.4s ease,
                opacity 0.9s ease;
    border-bottom: 3px solid transparent;
    overflow: hidden;
}

.service-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-media img {
    transform: scale(1.08);
}

.service-body {
    padding: 2.5rem 2rem 3rem;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--secondary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

/* CTA Video */
.cta-video {
    padding: 8rem 5%;
    background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7)), url('../images/sldier2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.cta-video-player {
    position: relative;
    max-width: 960px;
    margin: 3rem auto 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    background: #000;
    cursor: pointer;
}

.cta-video-player video {
    width: 100%;
    height: auto;
    display: block;
}

.cta-video-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

.cta-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, opacity 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cta-play-btn::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid rgba(193, 149, 88, 0.5);
    animation: ctaPulse 2s ease-out infinite;
}

@keyframes ctaPulse {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.45); opacity: 0; }
}

.cta-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #d4a668;
}

.cta-video-player.playing .cta-play-btn {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .cta-play-btn {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }
}

.cta-video h2 {
    font-size: 2.2rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.4;
}

.video-btn {
    width: 90px;
    height: 90px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 3rem;
    position: relative;
    transition: var(--transition);
}

.video-btn:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.video-btn:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.5fr 1.8fr;
    gap: 4rem;
    margin-bottom: 80px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    font-size: 1.05rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
    padding-right: 5px;
}

.insta-links i {
    margin-left: 8px;
    color: var(--secondary-color);
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 40px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .social-icons {
    display: flex;
    gap: 2.5rem;
}

.footer-bottom .social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-bottom .social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom p {
    font-size: 0.95rem;
    opacity: 0.6;
}

/* =========================================================================
   Mobile Menu Toggle Button
   ========================================================================= */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: #fff;
    padding: 0.4rem 0.6rem;
    z-index: 1100;
    transition: var(--transition);
    line-height: 1;
}

header.scrolled .menu-toggle {
    color: var(--primary-color);
}

/* Mobile nav overlay */
#mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

#mobile-overlay.active {
    display: block;
}

/* =========================================================================
   Tablet  (max-width: 1100px)
   ========================================================================= */
@media (max-width: 1100px) {
    header {
        padding: 1.2rem 4%;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav ul li a {
        font-size: 0.95rem;
    }

    .about {
        gap: 5rem;
        padding: 100px 5%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .project-content {
        padding: 40px;
    }

    .project-title {
        font-size: 1.8rem;
    }
}

/* =========================================================================
   Tablet  (max-width: 992px)
   ========================================================================= */
@media (max-width: 992px) {

    /* ---------- Header: show hamburger, hide desktop nav ---------- */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .header-actions {
        display: none;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100%;
        background: var(--primary-color);
        z-index: 999;
        padding: 90px 2rem 2rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    header nav.open {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        gap: 0;
    }

    header nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    header nav ul li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.15rem;
        color: #fff;
    }

    header nav ul li a:after {
        display: none;
    }

    header.scrolled nav ul li a {
        color: #fff;
    }

    /* ---------- Hero ---------- */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-logo img {
        width: min(500px, 80vw);
    }

    /* ---------- About ---------- */
    .about {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 80px 5%;
    }

    /* ---------- Partners ---------- */
    .partners {
        padding: 3rem 0;
    }

    .partners-group {
        gap: 4rem;
        padding-left: 4rem;
    }

    .partners-group img {
        height: 90px;
    }

    /* ---------- Services ---------- */
    .services {
        padding: 80px 5%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ---------- Testimonials ---------- */
    .testimonials {
        padding: 80px 5%;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ---------- CTA Video ---------- */
    .cta-video {
        padding: 8rem 5%;
    }

    .cta-video h2 {
        font-size: 1.6rem;
    }

    /* ---------- Footer ---------- */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* ---------- Projects ---------- */
    .project-ticket,
    .project-ticket:nth-child(even) {
        flex-direction: column;
    }

    .project-image {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .project-content {
        padding: 35px 25px;
    }

    .project-btn {
        width: 100%;
        text-align: center;
    }

    /* ---------- Property single ---------- */
    .property-layout {
        grid-template-columns: 1fr;
    }

    .property-main-image {
        height: 400px;
    }

    .property-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agent-contact-box {
        position: static;
    }

    /* ---------- Page header ---------- */
    .page-header {
        height: 280px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* ---------- Team ---------- */
    .team-section {
        padding: 60px 5%;
    }
}

/* =========================================================================
   Mobile  (max-width: 768px)
   ========================================================================= */
@media (max-width: 768px) {

    /* ---------- Hero ---------- */
    .hero {
        height: 100svh;
    }

    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 0;
    }

    .hero-logo img {
        width: min(360px, 85vw);
    }

    .hero-logo {
        margin-bottom: 25px;
    }

    /* ---------- About ---------- */
    .about {
        padding: 60px 5%;
        gap: 2.5rem;
    }

    .about-title {
        font-size: 1.8rem;
    }

    /* ---------- Section titles ---------- */
    .section-title {
        font-size: 1.9rem;
    }

    /* ---------- Services ---------- */
    .services {
        padding: 60px 5%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    /* ---------- Testimonials ---------- */
    .testimonials {
        padding: 60px 5%;
    }

    .testimonials .section-title {
        margin-bottom: 40px;
        font-size: 1.8rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* ---------- CTA Video ---------- */
    .cta-video {
        padding: 6rem 5%;
    }

    .cta-video h2 {
        font-size: 1.35rem;
    }

    /* ---------- Footer ---------- */
    footer {
        padding: 60px 5% 30px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 40px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom .social-icons {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ---------- Projects ---------- */
    .projects-container {
        padding: 50px 5%;
    }

    .project-image {
        min-height: 240px;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-desc {
        font-size: 1rem;
    }

    .projects-hero h1 {
        font-size: 2rem;
    }

    /* ---------- Properties ---------- */
    .properties-listing {
        padding: 40px 5% 60px;
    }

    .properties-grid-container {
        grid-template-columns: 1fr;
    }

    /* ---------- Property single ---------- */
    .property-main-image {
        height: 280px;
        border-radius: 0;
    }

    .property-thumbnails {
        flex-wrap: wrap;
        gap: 8px;
    }

    .property-thumbnails img {
        width: 80px;
        height: 55px;
    }

    .property-title-main {
        font-size: 1.5rem;
    }

    .property-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 15px;
    }

    .property-single-slider {
        margin-bottom: 20px;
    }

    .property-layout {
        padding: 0 5% 50px;
    }

    /* ---------- Page header ---------- */
    .page-header {
        height: 240px;
    }

    .page-header h1 {
        font-size: 1.7rem;
    }

    /* ---------- Team ---------- */
    .team-section {
        padding: 50px 5%;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .team-card {
        padding: 35px 20px;
    }

    .team-image-wrapper {
        width: 120px;
        height: 120px;
    }
}

/* =========================================================================
   Small Mobile  (max-width: 480px)
   ========================================================================= */
@media (max-width: 480px) {

    /* ---------- Header ---------- */
    header {
        padding: 1rem 4%;
    }

    .logo img {
        height: 46px;
    }

    /* ---------- Hero ---------- */
    .hero-title {
        font-size: 1.3rem;
        line-height: 1.7;
    }

    .hero-btn {
        padding: 0 24px;
        line-height: 44px;
        font-size: 0.95rem;
    }

    /* ---------- About ---------- */
    .about {
        padding: 50px 5%;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .about-text {
        font-size: 0.95rem;
    }

    /* ---------- Partners ---------- */
    .partners-group img {
        height: 70px;
    }

    .partners-group {
        gap: 3rem;
        padding-left: 3rem;
    }

    /* ---------- Services ---------- */
    .section-title {
        font-size: 1.6rem;
    }

    .service-card {
        padding: 2.5rem 1.5rem;
    }

    /* ---------- Testimonials ---------- */
    .testimonials .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    /* ---------- CTA Video ---------- */
    .cta-video {
        padding: 4rem 5%;
        background-attachment: scroll;
    }

    .cta-video h2 {
        font-size: 1.15rem;
    }

    .video-btn {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }

    /* ---------- Footer ---------- */
    .footer-title {
        font-size: 1.1rem;
    }

    /* ---------- Properties filter ---------- */
    .properties-filter-form {
        flex-direction: column;
    }

    .filter-group,
    .filter-submit,
    .btn-search {
        width: 100%;
    }

    /* ---------- Amenities ---------- */
    .amenities-list {
        grid-template-columns: 1fr;
    }

    /* ---------- Team ---------- */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* ---------- Project page hero ---------- */
    .projects-hero {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .projects-hero h1 {
        font-size: 1.6rem;
    }
}

/* Team Page Styles */
.page-header {
    height: 400px;
    background: linear-gradient(rgba(51, 10, 24, 0.8), rgba(51, 10, 24, 0.8)), url('../images/sldier2.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
}

.team-section {
    padding: 100px 5%;
    background-color: var(--gray-bg);
}

.branch-heading {
    max-width: var(--max-width);
    margin: 60px auto 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.branch-heading:first-child {
    margin-top: 0;
}

.branch-heading h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.team-card {
    background: #fff;
    padding: 50px 30px;
    text-align: center;
    border-radius: 0;
    /* Matching the rigid design of original site cards */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary-color);
}

a.team-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card .view-bio {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .view-bio {
    opacity: 1;
}

.team-image-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    border: 5px solid var(--gray-bg);
    transition: var(--transition);
}

.team-card:hover .team-image-wrapper {
    border-color: var(--secondary-color);
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.team-info .position {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.team-info .phone {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    direction: ltr;
    display: block;
    text-align: center;
    opacity: 0.8;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .page-header {
        height: 300px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .team-grid {
        gap: 30px;
    }
}

/* Projects Page */
.projects-hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(51, 10, 24, 0.8), rgba(51, 10, 24, 0.8)), url('../images/sldier2.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.projects-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.projects-container {
    padding: 80px 5%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.project-ticket {
    display: flex;
    background: #fff;
    margin-bottom: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    opacity: 0;
    transform: translateX(-80px) scale(0.96);
    filter: blur(6px);
    transition: opacity 0.9s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.9s cubic-bezier(0.165, 0.84, 0.44, 1),
                filter 0.9s ease,
                box-shadow 0.5s ease,
                border-color 0.4s ease;
}

.project-ticket:nth-child(even) {
    transform: translateX(80px) scale(0.96);
}

.project-ticket.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

/* Image zoom-in on reveal */
.project-ticket .project-image img {
    transform: scale(1.15);
    transition: transform 1.1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-ticket.visible .project-image img {
    transform: scale(1);
}

.project-ticket.visible:hover .project-image img {
    transform: scale(1.08);
}

.project-ticket:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

.project-ticket:nth-child(even) {
    flex-direction: row-reverse;
}

.project-image {
    flex: 0 0 45%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-ticket:hover .project-image img {
    transform: scale(1.08);
}

.project-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    text-align: right;
}

html[lang="en"] .project-content {
    text-align: left;
}

html[lang="en"] .project-title:after {
    right: auto;
    left: 0;
}

.project-logo-wrapper {
    margin-bottom: 30px;
}

.project-logo {
    max-width: 180px;
    max-height: 100px;
    height: auto;
    object-fit: contain;
}

.project-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.project-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.project-desc {
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.9;
    margin-bottom: 35px;
    opacity: 0.9;
}

.project-btn {
    align-self: flex-start;
    padding: 14px 40px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: 0;
    transition: var(--transition);
    font-size: 1.1rem;
}

.project-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateX(-5px);
}

@media (max-width: 1100px) {
    .project-content {
        padding: 40px;
    }

    .project-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {

    .project-ticket,
    .project-ticket:nth-child(even) {
        flex-direction: column;
    }

    .project-image {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .project-content {
        padding: 40px 30px;
    }

    .project-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================================
   Properties Listing Page
   ========================================================================= */

.properties-filter-section {
    padding: 40px 5%;
    background-color: var(--gray-bg);
}

.filter-container {
    max-width: var(--max-width);
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.properties-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.filter-group label i {
    color: var(--primary-color);
    margin-left: 5px;
}

.filter-select,
.filter-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(220, 195, 151, 0.5);
}

.filter-submit {
    flex: 0 0 auto;
}

.btn-search {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover {
    background-color: var(--secondary-color);
}

.properties-listing {
    padding: 60px 5% 100px;
}

.properties-grid-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    white-space: nowrap;
    width: auto;
    display: inline-block;
    line-height: 1.2;
}

html[lang="en"] .property-badge {
    right: auto;
    left: 15px;
}

.property-badge.sell {
    background-color: #28a745;
}

.property-badge.rent {
    background-color: #007bff;
}

.property-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
}

.property-content {
    padding: 25px;
}

.property-title {
    font-size: 1.55rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.property-title a {
    color: var(--heading-color);
}

.property-title a:hover {
    color: var(--primary-color);
}

.property-location {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    row-gap: 8px;
    align-items: center;
}

.property-location span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.property-location i {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.property-features span {
    font-size: 1.05rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.property-features span i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.property-features span i {
    color: var(--primary-color);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-btn {
    padding: 8px 18px;
    background-color: var(--gray-bg);
    color: var(--heading-color);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.property-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.whatsapp-btn-small {
    color: #25D366;
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.whatsapp-btn-small i {
    font-size: 1.3rem;
}

.whatsapp-btn-small:hover {
    color: #128C7E;
    transform: scale(1.05);
}

/* =========================================================================
   Property Single Page
   ========================================================================= */

.property-single-slider {
    margin-bottom: 40px;
}

.property-main-image {
    position: relative;
    height: 600px;
    overflow: hidden;
    max-width: var(--max-width);
    margin: 0 auto;
    border-radius: 12px;
}

.property-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.1rem;
    padding: 8px 20px;
}

.property-thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.property-thumbnails img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.property-thumbnails img:hover,
.property-thumbnails img.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 0 5% 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.property-title-main {
    font-size: 2.2rem;
    color: var(--heading-color);
    font-weight: 700;
}

.property-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.property-price-main {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
}

.property-location-main {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.property-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--gray-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.overview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.overview-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.overview-item span {
    font-weight: 600;
    color: var(--text-color);
}

.box-section {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    margin-bottom: 40px;
}

.box-section h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

.property-description p {
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.amenities-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #444;
}

.amenities-list i {
    color: var(--secondary-color);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
}

.agent-contact-box {
    position: sticky;
    top: 120px;
    text-align: center;
}

.agent-logo {
    max-width: 180px;
    width: auto;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
}

.agent-contact-box p {
    color: #777;
    margin-bottom: 25px;
}

.agent-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.full-width {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
}

.whatsapp-btn {
    background-color: #25d366;
    color: #fff;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: #fff;
}

.call-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.call-btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.mail-btn {
    background-color: var(--gray-bg);
    color: var(--heading-color);
    border: 1px solid #ddd;
}

.mail-btn:hover {
    background-color: #eee;
}

@media (max-width: 992px) {
    .property-layout {
        grid-template-columns: 1fr;
    }

    .property-main-image {
        height: 400px;
    }

    .property-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .properties-filter-form {
        flex-direction: column;
    }

    .filter-group,
    .filter-submit,
    .btn-search {
        width: 100%;
    }

    .amenities-list {
        grid-template-columns: 1fr;
    }

    .property-main-image {
        height: 300px;
    }
}

/* =========================================================================
   Contact Page Styles
   ========================================================================= */

.contact-section {
    padding: 100px 5%;
    background-color: var(--gray-bg);
}

.contact-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.contact-info-wrapper {
    padding: 50px;
}

.contact-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 40px;
    opacity: 0.8;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-info-card i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    color: var(--heading-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

.contact-info-card a:hover {
    color: var(--primary-color);
}

.contact-map-wrapper {
    width: 100%;
    min-height: 400px;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-map-wrapper {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 5%;
    }

    .contact-info-wrapper {
        padding: 30px;
    }

    .contact-title {
        font-size: 1.4rem;
    }

    .contact-map-wrapper {
        min-height: 280px;
    }

    .contact-info-card i {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

/* =========================================================================
   Animations & Scroll Reveal
   ========================================================================= */

/* Fade-in-up for scroll reveals */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero entrance animations */
.hero-content .hero-logo {
    animation: fadeInDown 1s ease-out 0.2s both;
}

.hero-content .hero-title {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content .hero-slogan {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-content .hero-btn {
    animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Service cards staggered entrance — swipe in from right */
.service-card {
    opacity: 0;
    transform: translateX(80px) scale(0.94);
    filter: blur(6px);
    transition: opacity 0.9s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.9s cubic-bezier(0.165, 0.84, 0.44, 1),
                filter 0.9s ease,
                border-bottom-color 0.4s ease,
                box-shadow 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

/* Image reveal: gently zoom out when card becomes visible */
.service-card .service-media img {
    transform: scale(1.15);
}

.service-card.visible .service-media img {
    transform: scale(1);
}

.service-card.visible:hover .service-media img {
    transform: scale(1.08);
}

/* Testimonial local video cards */
.testimonial-item .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

/* Partners label */
.partners-label {
    text-align: center;
    padding-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-color);
}

/* Smooth hover transitions on all interactive elements */
.service-card:hover .service-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.service-icon {
    transition: transform 0.3s ease;
}

/* Hero slogan styling */
.hero-slogan {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-family: var(--font-en);
}

/* =========================================================================
   Team Member Bio Page
   ========================================================================= */

.member-bio-section {
    padding: 60px 5% 100px;
    max-width: 900px;
    margin: 0 auto;
}

.member-bio-header {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.member-bio-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--sand-cream);
    flex-shrink: 0;
}

.member-bio-intro h1 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.member-bio-intro .position {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.member-bio-intro .phone {
    font-size: 1.05rem;
    color: var(--text-color);
    direction: ltr;
    display: inline-block;
}

.member-bio-intro .phone i {
    color: var(--secondary-color);
    margin-left: 8px;
}

.member-bio-content {
    line-height: 2;
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: justify;
}

.member-bio-content p {
    margin-bottom: 1.5rem;
}

.member-bio-cta {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.member-bio-cta a {
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0;
    transition: var(--transition);
}

.member-bio-cta .whatsapp-bio-btn {
    background-color: #25d366;
    color: #fff;
}

.member-bio-cta .whatsapp-bio-btn:hover {
    background-color: #128c7e;
    color: #fff;
}

.member-bio-cta .call-bio-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.member-bio-cta .call-bio-btn:hover {
    background-color: var(--secondary-color);
}

.back-to-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.back-to-team:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .member-bio-header {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .member-bio-photo {
        width: 160px;
        height: 160px;
    }

    .member-bio-intro h1 {
        font-size: 1.6rem;
    }

    .member-bio-cta {
        justify-content: center;
    }
}

/* =========================================================================
   Glassmorphism Service Cards
   ========================================================================= */
@supports (backdrop-filter: blur(12px)) {
    .service-card {
        background: rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* =========================================================================
   Enhanced Reveal Variants
   ========================================================================= */
.reveal-title {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================================
   Scroll-to-Top Button
   ========================================================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(51, 10, 24, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 149, 88, 0.4);
}

[dir="rtl"] .scroll-top-btn {
    right: auto;
    left: 25px;
}

/* =========================================================================
   Parallax Page Headers
   ========================================================================= */
.page-header {
    background-attachment: fixed;
}

.cta-video {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .page-header,
    .cta-video {
        background-attachment: scroll;
    }
}

/* =========================================================================
   Enhanced Footer Social Icons
   ========================================================================= */
.footer-bottom .social-icons a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(193, 149, 88, 0.3);
}