/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:wght@400;600;700&display=swap');

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    cursor: none;
    /* Hide default cursor */
}

a,
button,
.btn-icon,
.card,
.service-item,
.team-item,
[data-magnetic] {
    cursor: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    /* Slightly lighter for elegance */
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: var(--letter-spacing-wide);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1600px;
    /* More expansive for luxury feel */
    margin: 0 auto;
    padding: 0 60px;
}

.container.narrow {
    max-width: 800px;
}

/* Tags & Badges */
.tag-outline {
    border: 1px solid rgba(212, 181, 111, 0.4);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    display: inline-block;
}

.tag-filled {
    background: rgba(212, 181, 111, 0.1);
    border: 1px solid rgba(212, 181, 111, 0.2);
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.tag-filled:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    /* Adjust based on logo proportions */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-v-wide);
    position: relative;
    opacity: 0.7;
    font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Arabic Header Font Size Adjustment */
[lang="ar"] .nav-links a,
[dir="rtl"] .nav-links a {
    font-size: 16px;
    font-weight: 500;
}

/* Controls (Theme/Lang) */
.controls {
    display: flex;
    gap: 15px;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.1);
    /* Initial state for parallax/animation */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding-inline-start: 10%;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
}

.kicker {
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: var(--letter-spacing-v-wide);
    font-weight: 500;
    text-transform: uppercase;
}

.kicker-lg {
    font-size: 1.1rem;
}

/* Subpage Hero Standard */
.hero-subpage {
    height: 50vh !important;
}

.hero-subpage .hero-content {
    padding-top: 60px;
    /* Small space above the text */
}

/* Premium CTA Card */
.cta-card {
    background: linear-gradient(135deg, rgba(212, 181, 111, 0.08) 0%, rgba(5, 5, 5, 0.4) 100%);
    border: 1px solid var(--glass-border);
    padding: 100px 60px;
    text-align: center;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 181, 111, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.cta-card-content {
    position: relative;
    z-index: 1;
}

.btn-gold-premium {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--bg-dark);
    padding: 18px 45px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    box-shadow: 0 10px 20px rgba(212, 181, 111, 0.2);
}

.btn-gold-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 181, 111, 0.4);
    letter-spacing: 3px;
    color: black;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--accent);
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.7;
}

/* Cards (Services/Insights) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    /* Hairline */
    padding: 60px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 181, 111, 0.4);
    box-shadow: var(--card-shadow-hover);
}

.card.founder-card {
    display: flex;
    flex-direction: row;
    /* Enforce side-by-side on desktop */
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-img-wrap {
    flex: 0 0 350px;
    height: 450px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.founder-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.founder-card:hover .founder-img-wrap img {
    transform: scale(1.05);
}

.founder-info {
    flex: 1;
}

@media (max-width: 768px) {
    .card.founder-card {
        flex-direction: column;
        text-align: center;
    }

    .founder-img-wrap {
        flex: 1;
        width: 100%;
        height: 300px;
    }
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 80px;
    align-items: stretch;
}

.team-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 60px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.team-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--card-shadow-hover);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 25px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text);
}

.team-item .role {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-item .bio {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertical alignment */
    flex-wrap: nowrap;
    /* Keep horizontal on desktop */
    gap: 60px;
    margin-bottom: 60px;
}

.footer {
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.footer .cta-card {
    flex: 1;
    max-width: 800px;
    margin: 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(212, 181, 111, 0.08) 0%, transparent 100%);
    text-align: center;
    /* Explicit centering */
}

.footer .cta-card .cta-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center all items inside */
    text-align: center;
}

.footer .cta-card h4 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.footer .cta-card p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-inline: auto;
}

.footer-col {
    flex: 0 0 auto;
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer .cta-card {
        width: 100%;
        max-width: 100%;
    }
}

.footer-col h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Services Grid (9 Cards) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    /* Ensure equal height items */
}

.service-item {
    background: var(--surface);
    border: 0.5px solid var(--border);
    /* Hairline */
    padding: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fill container */
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    position: relative;
}

.service-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--card-shadow-hover);
    background: rgba(255, 255, 255, 0.05);
}

.service-img-wrap {
    height: 250px;
    overflow: hidden;
}

/* Card Overlays */
.card-image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 70%);
    z-index: 1;
}

.card-image-overlay img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-image-overlay:hover img {
    transform: scale(1.1);
}

/* RTL Support for Hero Flex */
[dir="rtl"] .hero-flex {
    text-align: right;
}

[dir="rtl"] .hero-text-side {
    text-align: right;
}

[dir="rtl"] .hero-btns,
[dir="rtl"] .hero-domains {
    justify-content: flex-start;
}



.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    /* Rounded corners for image */
}

.service-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.service-content h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-content p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-accent-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-top: auto;
    box-shadow: 0 0 10px var(--gold);
}

/* Shine Sweep Effect for all Premium Cards */
.card-premium::after,
.service-item::after,
.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    z-index: 1;
}

.card-premium:hover::after,
.service-item:hover::after,
.card:hover::after {
    left: 150%;
}

/* Card Premium Specific - Golden Top Glow */
.card-premium {
    border-top: 1px solid var(--gold) !important;
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Hero Data Section Enhancements */
.hero-data-section {
    padding: 60px 0;
}

.hero-data-card {
    position: relative;
    overflow: hidden;
    padding: 80px 45% 80px 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(5, 5, 5, 0.6) 100%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow:
        0 0 20px rgba(212, 181, 111, 0.2),
        0 0 50px rgba(212, 181, 111, 0.1),
        0 0 100px rgba(212, 181, 111, 0.05);
    /* Multi-layered Neon Glow */
}

.hero-data-content {
    max-width: 100%;
}

.hero-data-quote {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--text-light);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.hero-data-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.8;
    max-width: 580px;
}

.hero-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.hero-data-pill {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(212, 181, 111, 0.05);
    transition: all 0.3s ease;
}

.hero-data-pill:hover {
    border-color: var(--gold);
    background: rgba(212, 181, 111, 0.1);
    transform: translateY(-2px);
}

.hero-data-image-wrap {
    position: absolute;
    bottom: -5%;
    /* Subtly lifted from -10% */
    right: -3%;
    width: 46%;
    /* Subtly enlarged */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    z-index: 2;
}

.hero-data-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-data-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.hero-data-stat-item .stat-value {
    font-size: 2rem;
    font-weight: 500;
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.hero-data-stat-item .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

@media (max-width: 1200px) {
    .hero-data-card {
        padding-right: 60px;
        padding-bottom: 400px;
    }

    .hero-data-image-wrap {
        width: 80%;
        bottom: 40px;
        right: 10%;
    }
}

@media (max-width: 768px) {
    .hero-data-quote {
        font-size: 2rem;
    }

    .hero-data-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-data-card {
        padding: 40px 20px 350px 20px;
    }

    .hero-data-image-wrap {
        width: 90%;
        right: 5%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Implement hamburger later or simpler layout */
    }

    .container {
        padding: 0 20px;
    }
}

/* Redesigned Preview Sections Refined */
.preview-section {
    padding: 60px 0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.preview-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-preview-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(5, 5, 5, 0.4) 100%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
    border-radius: 12px;
}

.about-preview-card:hover {
    border-color: rgba(212, 181, 111, 0.4);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(5, 5, 5, 0.5) 100%);
}

.about-preview-card h3 {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.about-preview-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.75;
}

/* Values Numbered List */
.values-list {
    margin-top: 20px;
}

.value-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.value-number {
    flex: 0 0 40px;
    height: 40px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gold);
    font-weight: 500;
}

.value-text {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Domains Pills */
.domains-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.domain-pill {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.domain-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Service Preview Cards */
.service-preview-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-preview-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.service-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-preview-card:hover img {
    transform: scale(1.1);
}

.service-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    z-index: 1;
}

.service-preview-overlay h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.service-preview-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 90%;
}

@media (max-width: 1200px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .preview-header h2 {
        font-size: 2.5rem;
    }
}

/* Refined Services Home Section */
#services-home {
    padding: 60px 0;
}

.services-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.services-home-card {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    transition: all 0.5s ease;
    text-decoration: none;
}

.services-home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.services-home-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 181, 111, 0.5);
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    padding-right: 20px;
    padding-left: 20px;
}

.sec-head h2 {
    font-size: 2.2rem;
    margin-bottom: 0;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.services-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.services-home-card {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    transition: all 0.5s ease;
    text-decoration: none;
    color: inherit;
}

.services-home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.services-home-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 181, 111, 0.5);
}

.services-home-content {
    position: relative;
    z-index: 2;
}

.services-home-content h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.services-home-content p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .services-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sec-head h2 {
        font-size: 2.5rem;
    }
}

/* =========================================
   MOBILE MENU STYLES
   ========================================= */

/* Toggle Button (Hamburger) */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
    /* Above overlay */
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* Animate Hamburger to X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: var(--gold);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: var(--gold);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Dimmed background for rest of screen */
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    position: absolute;
    top: 0;
    right: 0;
    /* Slide from right */
    width: 40%;
    /* Requested 40% width */
    min-width: 250px;
    /* Ensure it's usable on very small screens */
    height: 100%;

    /* Glossy Gold Transparent Background */
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(20, 20, 20, 0.9) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;

    transform: translateX(100%);
    /* Start off-screen */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RTL Support for Slide Direction */
[dir="rtl"] .mobile-nav-links {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active .mobile-nav-links {
    transform: translateX(0);
}

.mobile-nav-links a {
    font-size: 1.4rem;
    /* Slightly smaller for the narrower column */
    font-family: var(--font-heading);
    color: var(--gold);
    /* Gold text for contrast */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.mobile-nav-links a:hover {
    color: var(--white);
    transform: translateX(-5px);
}

[dir="rtl"] .mobile-nav-links a:hover {
    transform: translateX(5px);
}

/* =========================================
   ADDITIONAL RESPONSIVE RULES
   ========================================= */

@media (max-width: 900px) {

    .card-grid,
    .reviews-wrap,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .row-2,
    .bottom-row {
        grid-template-columns: 1fr !important;
        /* Force stack forms */
    }

    .hero-data-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
        /* Show on mobile */
    }

    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .reviews-wrap {
        margin-top: 30px;
        gap: 30px;
    }

    .card {
        padding: 25px;
        /* Reduce padding on cards */
    }
}