/* 
   MY.GROUP Air Conditioning & Refrigeration
   Premium CSS Design System
   Color Palette: Black, Dark Charcoal, Bronze/Gold
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0a0a0c;
    --bg-dark-rgb: 10, 10, 12;
    --bg-card: #141418;
    --bg-card-rgb: 20, 20, 24;
    --bg-light: #1f1f24;
    --primary-gold: #c59b6c;
    --primary-gold-rgb: 197, 155, 108;
    --primary-gold-hover: #d3ae83;
    --text-white: #f5f5f7;
    --text-muted: #a1a1aa;
    --text-dark: #1e1e24;
    
    /* Fonts */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Spacing */
    --section-padding: 8rem 2rem;
    --section-padding-mobile: 5rem 1.5rem;
}

/* Base resets & multilingual direction */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    font-size: 62.5%; /* 10px base */
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.lang-ar {
    font-family: var(--font-ar);
}

body.lang-en {
    font-family: var(--font-en);
}

/* Multilingual Toggle visibility rules */
body.lang-ar [lang="en"] {
    display: none !important;
}

body.lang-en [lang="ar"] {
    display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Utility buttons & text */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 1rem;
}

body.lang-ar .btn {
    font-family: var(--font-ar);
}
body.lang-en .btn {
    font-family: var(--font-en);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), #a57c4f);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(197, 155, 108, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 155, 108, 0.4);
    background: linear-gradient(135deg, var(--primary-gold-hover), var(--primary-gold));
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.text-gold {
    color: var(--primary-gold);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.8rem;
    }
}

/* Header & Glassmorphic Navigation */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-scrolled {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(197, 155, 108, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(197, 155, 108, 0.08);
    border: 1.2px solid rgba(197, 155, 108, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    transition: var(--transition-smooth);
}

.nav-social-link:hover {
    background: var(--primary-gold);
    color: var(--bg-dark);
    border-color: var(--primary-gold);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(197, 155, 108, 0.35);
}

.nav-social-link:hover svg polygon {
    fill: var(--primary-gold);
}
.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.header-scrolled .logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    list-style: none;
}

.nav-item a {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-white);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: var(--transition-fast);
}

.nav-item a:hover {
    color: var(--primary-gold);
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-item.active a {
    color: var(--primary-gold);
}

/* Nav Actions (Phone & Lang switcher) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switch-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-white);
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-switch-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: rgba(197, 155, 108, 0.1);
}

.phone-action {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    background: rgba(197, 155, 108, 0.1);
    border: 1px solid rgba(197, 155, 108, 0.2);
}

.phone-action:hover {
    background: var(--primary-gold);
    color: var(--bg-dark);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .nav-container {
        padding: 1.2rem 1.5rem;
    }

    .logo-link {
        order: 1;
    }

    .nav-actions {
        order: 2;
        margin-inline-end: 0;
        gap: 1.2rem;
    }

    .nav-social {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hamburger {
        display: flex;
        order: 3;
        margin-inline-start: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--bg-dark);
        border-left: 1px solid rgba(197, 155, 108, 0.15);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3.5rem;
        z-index: 1050;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }
    
    /* When English LTR, mobile menu should slide from left instead of right */
    body.lang-en .nav-links {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid rgba(197, 155, 108, 0.15);
        box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    body.lang-en .nav-links.active {
        left: 0;
    }
}

/* Expandable social links styles */
.nav-social-toggle {
    display: none !important;
}

.icon-close {
    display: none;
}

.nav-social-dropdown {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

@media (max-width: 992px) {
    .nav-social-toggle {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(197, 155, 108, 0.08);
        border: 1.2px solid rgba(197, 155, 108, 0.25);
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--primary-gold);
        cursor: pointer;
        transition: var(--transition-smooth);
        outline: none;
    }

    .nav-social-toggle:hover,
    .nav-social.expanded .nav-social-toggle {
        background: var(--primary-gold);
        color: var(--bg-dark);
        border-color: var(--primary-gold);
        box-shadow: 0 5px 15px rgba(197, 155, 108, 0.35);
    }

    .nav-social-toggle svg {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-social.expanded .nav-social-toggle svg.icon-close {
        transform: rotate(90deg);
    }

    /* Icon Toggle active states */
    .nav-social.expanded .icon-share {
        display: none !important;
    }
    .nav-social.expanded .icon-close {
        display: block !important;
    }

    /* Sleek vertical dropdown dock container */
    .nav-social-dropdown {
        position: absolute;
        top: 48px; /* Below the toggle button */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding: 1.2rem 0.8rem;
        background: rgba(20, 20, 24, 0.92); /* Frosted dark background */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1.2px solid rgba(197, 155, 108, 0.25);
        border-radius: 30px; /* Elegant pill dock shape */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(197, 155, 108, 0.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px) scale(0.85);
        transform-origin: top center;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        width: 48px; /* Fits the 38px circular icons */
    }

    /* Expand animation */
    .nav-social.expanded .nav-social-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    /* Micro transitions for nested links */
    .nav-social-dropdown .nav-social-link {
        transition: var(--transition-smooth);
    }
}

/* Mobile social menu container styling inside slide-out links panel */
.mobile-social-menu {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-social-menu {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2.5rem;
        width: 100%;
    }
    
    .mobile-social-menu .nav-social-link {
        position: relative !important;
        top: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        transition: var(--transition-smooth);
    }
}

@media (max-width: 576px) {
    .phone-action span {
        display: none;
    }
    .phone-action {
        padding: 0.8rem;
    }
}

/* Hamburger Active States */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 30%, rgba(197, 155, 108, 0.08) 0%, transparent 60%);
    overflow: hidden;
    padding-top: 80px;
}
.hero-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
    align-items: center;
}

.hero-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(197, 155, 108, 0.08);
    border: 1.2px solid rgba(197, 155, 108, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    transition: var(--transition-smooth);
}

.hero-social a:hover {
    background: var(--primary-gold);
    color: var(--bg-dark);
    border-color: var(--primary-gold);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(197, 155, 108, 0.35);
}

.hero-social a:hover svg polygon {
    fill: var(--primary-gold);
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 12, 0.95) 40%, rgba(10, 10, 12, 0.6) 100%);
}

body.lang-en .hero-background::after {
    background: linear-gradient(to left, rgba(10, 10, 12, 0.95) 40%, rgba(10, 10, 12, 0.6) 100%);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.6rem;
    background: rgba(197, 155, 108, 0.1);
    border: 1px solid rgba(197, 155, 108, 0.2);
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 2.5rem;
}

.hero-title {
    font-size: 5.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 2.5rem;
}

.hero-title span {
    background: linear-gradient(to right, #ffffff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.6rem;
    }
    .hero-description {
        font-size: 1.6rem;
    }
}


/* Statistics Section */
.stats-section {
    background-color: var(--bg-card);
    padding: 5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(197, 155, 108, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fix border directions for RTL vs LTR */
body.lang-ar .stat-item:last-child {
    border-left: none;
}
body.lang-ar .stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
body.lang-en .stat-item {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}
body.lang-en .stat-item:first-child {
    border-left: none;
}

.stat-number {
    font-size: 4.8rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    display: block;
}

.stat-label {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item {
        border: none !important;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
    }
}

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


/* Why Choose Us Section */
.why-section {
    padding: var(--section-padding);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.why-card {
text-align: center;
    background-color: var(--bg-card);
    padding: 4rem 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border-color: rgba(197, 155, 108, 0.2);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-icon {
    color: var(--primary-gold);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(197,155,108,0.1);
    border-radius: 16px;
    border: 1px solid rgba(197,155,108,0.2);
}

.why-card-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.why-card-desc {
text-align: right;
 text-decoration: none;
    font-size: 1.4rem;
    color: var(--text-muted);
}

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

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


/* Services Overview */
.services-section {
    background-color: rgba(20, 20, 24, 0.5);
    padding: var(--section-padding);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 155, 108, 0.2);
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
}

.service-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.service-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(20,20,24,1) 0%, rgba(20,20,24,0) 100%);
}

.service-content {
    padding: 3rem;
}

.service-card-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-card-desc {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    min-height: 60px;
}

.service-link {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.service-link:hover {
    color: var(--text-white);
}

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

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


/* Founder Section */
.founder-section {
    padding: var(--section-padding);
}

.founder-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 6rem;
    align-items: center;
}

.founder-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(197, 155, 108, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.founder-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.founder-info {
    position: relative;
    width: 100%;
    padding: 2.2rem 2rem;
    background: var(--bg-card);
    border-top: 2px solid rgba(197, 155, 108, 0.2);
    text-align: center;
    transition: var(--transition-smooth);
}

.founder-img-wrapper:hover .founder-info {
    border-top-color: var(--primary-gold);
}

.founder-info h4 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.founder-info p {
    font-size: 1.4rem;
    color: var(--primary-gold);
    font-weight: 600;
}

.founder-quote {
    font-size: 1.8rem;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 3rem;
    position: relative;
    padding-inline-start: 2rem;
    border-inline-start: 4px solid var(--primary-gold);
}

.founder-text {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.founder-signature {
    margin-top: 4rem;
}

.founder-signature-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.founder-signature-title {
    font-size: 1.4rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .founder-img-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
}


/* Projects Gallery & Slider */
.gallery-section {
    background-color: var(--bg-dark);
    padding: var(--section-padding);
    position: relative;
}

.projects-slider-outer {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.projects-slider-container {
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
    direction: ltr !important; /* Force LTR for layout calculations */
}

.projects-slider-track {
    display: flex;
    gap: 3rem;
    transition: none; /* Handled via requestAnimationFrame ticks */
    will-change: transform;
}

.projects-slider-track.animating {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.projects-slider-card {
    flex: 0 0 calc((100% - 6rem) / 3);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 380px;
    border: none;
    cursor: pointer;
    background-color: #0a0a0c; /* Matches section background precisely */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none; /* Seamless blend */
    direction: rtl; /* Default Arabic content direction */
}

body.lang-en .projects-slider-card {
    direction: ltr; /* English content direction */
}

/* Thin luxury golden line at the top */
.projects-slider-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
}

.projects-slider-card:hover::after {
    transform: scaleX(1);
}

.projects-slider-card:hover {
    transform: translateY(-5px);
}

.projects-slider-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: brightness(0.6); /* Slightly darker for supreme overlay contrast */
}

.projects-slider-card:hover .projects-slider-card-img {
    transform: scale(1.06);
    filter: brightness(0.75);
}

.projects-slider-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Luxury bottom fade completely blending into the background #0a0a0c */
    background: linear-gradient(to top, #0a0a0c 0%, rgba(10, 10, 12, 0.95) 15%, rgba(10, 10, 12, 0.35) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    transition: background 0.6s ease;
}

.slider-card-tag {
    font-size: 1.2rem;
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    display: inline-block;
    transform: translateY(5px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-slider-card:hover .slider-card-tag {
    transform: translateY(0);
}

.slider-card-title {
    font-size: 1.9rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.35;
    transform: translateY(8px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.projects-slider-card:hover .slider-card-title {
    transform: translateY(0);
    color: var(--primary-gold);
}

.slider-card-location {
    font-size: 1.3rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.projects-slider-card:hover .slider-card-location {
    opacity: 0.85;
    transform: translateY(0);
}

.slider-card-location::before {
    content: '📍';
    font-size: 1.2rem;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(197, 155, 108, 0.25);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.slider-arrow:hover {
    background: rgba(197, 155, 108, 0.15);
    color: #ffffff;
    border-color: var(--primary-gold);
    box-shadow: 0 0 25px rgba(197, 155, 108, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow-left {
    left: -30px;
}

.slider-arrow-right {
    right: -30px;
}

@media (max-width: 1250px) {
    .slider-arrow-left {
        left: 10px;
    }
    .slider-arrow-right {
        right: 10px;
    }
    .projects-slider-outer {
        padding: 0;
    }
}

@media (max-width: 992px) {
    .projects-slider-card {
        flex: 0 0 calc((100% - 3rem) / 2);
        height: 350px;
    }
    .slider-arrow {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .projects-slider-card {
        flex: 0 0 100%;
        height: 340px;
    }
}


/* Partners Section */
.partners-section {
    padding: 6rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    align-items: center;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-card {
    background: transparent;
    border: none;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.partner-logo-wrapper {
    background: rgba(20, 20, 24, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(197, 155, 108, 0.25);
    border-radius: 12px;
    padding: 2.2rem 3rem;
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.partner-card:hover .partner-logo-wrapper {
    background: rgba(20, 20, 24, 0.9);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(197, 155, 108, 0.35);
    transform: translateY(-8px);
}

.partner-logo-img {
    max-height: 100px;
    max-width: 90%;
    object-fit: contain;
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(10deg) brightness(0.95);
    opacity: 0.95;
    transition: var(--transition-smooth);
}

.partner-card:hover .partner-logo-img {
    filter: brightness(0) invert(1) sepia(1) saturate(7) hue-rotate(10deg) brightness(1.15) drop-shadow(0 0 15px rgba(197, 155, 108, 0.65));
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.5rem;
    transition: var(--transition-fast);
    letter-spacing: 0.02em;
}

.partner-card:hover .partner-logo-name {
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(197, 155, 108, 0.3);
}

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

@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 320px;
    }
}


/* Testimonials Section */
.testimonials-section {
    padding: var(--section-padding);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.testimonial-card {
    background-color: var(--bg-card);
    padding: 4rem 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.02);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: rgba(197, 155, 108, 0.2);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: var(--primary-gold);
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-style: italic;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.client-info h5 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.client-info p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

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

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


/* Contact CTA Section */
.contact-cta {
    position: relative;
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #141418 0%, #0a0a0c 100%);
    border-top: 1px solid rgba(197, 155, 108, 0.2);
    text-align: center;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 155, 108, 0.05) 0%, transparent 60%);
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

.cta-desc {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}


/* About Page Specific Styles */
.about-hero {
    padding-top: 150px;
    padding-bottom: 6rem;
    background: linear-gradient(to bottom, #141418, var(--bg-dark));
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr;
    gap: 6rem;
    padding: var(--section-padding);
}

.about-intro-content h3 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
}

.about-intro-content p {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.vision-mission-card {
    background-color: var(--bg-card);
    padding: 4rem;
    border-radius: 8px;
    border: 1px solid rgba(197, 155, 108, 0.1);
}

.vision-mission-card h4 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--primary-gold);
}

.vision-mission-card p {
    font-size: 1.6rem;
    color: var(--text-muted);
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.value-card {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.02);
}

.value-card h4 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.value-card p {
    font-size: 1.4rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
    .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .core-values-grid {
        grid-template-columns: 1fr;
    }
}


/* Services Page Specific Styles */
.services-hero {
    padding-top: 150px;
    padding-bottom: 6rem;
    background: linear-gradient(to bottom, #141418, var(--bg-dark));
}

.service-detail-section {
    padding: var(--section-padding);
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 10rem;
}

.service-detail-item:nth-child(even) {
    grid-template-columns: 1.8fr 1.2fr;
}

/* Force specific column ordering in mobile */
@media (max-width: 992px) {
    .service-detail-item,
    .service-detail-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.service-detail-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    aspect-ratio: 16/10;
}

.service-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.service-detail-item:nth-child(odd) .service-detail-img-wrapper {
    order: 2;
}

.service-detail-item:nth-child(odd) .service-detail-content {
    order: 1;
}

.service-detail-item:nth-child(even) .service-detail-img-wrapper {
    order: 1;
}

.service-detail-item:nth-child(even) .service-detail-content {
    order: 2;
}
.service-detail-content h3 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--primary-gold);
}

.service-detail-content p {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.service-features-list {
    list-style: none;
    margin-bottom: 3rem;
}

.service-features-list li {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-features-list li::before {
    content: '✓';
    color: var(--primary-gold);
    font-weight: bold;
}


/* Contact Page Specific Styles */
.contact-hero {
    padding-top: 150px;
    padding-bottom: 6rem;
    background: linear-gradient(to bottom, #141418, var(--bg-dark));
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 6rem;
    padding: var(--section-padding);
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.contact-info-card {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.contact-info-icon {
    font-size: 2.4rem;
    color: var(--primary-gold);
    background: rgba(197, 155, 108, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-info-details h4 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.contact-info-details p {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.map-wrapper {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(197, 155, 108, 0.2);
    height: 250px;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg); /* Dark theme map style */
}

/* Contact Form */
.contact-form-panel {
    background-color: var(--bg-card);
    padding: 5rem 4rem;
    border-radius: 8px;
    border: 1px solid rgba(197, 155, 108, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.contact-form-panel h3 {
    font-size: 2.6rem;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 1.5rem;
    color: var(--text-white);
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

body.lang-ar .form-control {
    font-family: var(--font-ar);
}
body.lang-en .form-control {
    font-family: var(--font-en);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(197, 155, 108, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-submit-btn {
    width: 100%;
}

.form-alert {
    padding: 1.5rem;
    border-radius: 5px;
    font-size: 1.4rem;
    margin-top: 2rem;
    display: none;
}

.form-alert-success {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}


/* Footer styling */
.footer {
    background-color: #050507;
    padding: 6rem 2rem 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-about-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
    display: block;
}

.footer-about-text {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.footer-column h4 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-gold);
}

body.lang-ar .footer-column h4::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-inline-start: 5px;
}

.footer-contact-item {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copyright {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.footer-developer {
    font-size: 1.3rem;
    color: var(--text-muted);
}

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

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    inset-inline-end: 40px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 20px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #20ba5a;
    box-shadow: 2px 5px 25px rgba(37, 211, 102, 0.6);
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

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

    .service-detail-item:nth-child(odd) .service-detail-img-wrapper,
    .service-detail-item:nth-child(even) .service-detail-img-wrapper {
        order: 1;
    }

    .service-detail-item:nth-child(odd) .service-detail-content,
    .service-detail-item:nth-child(even) .service-detail-content {
        order: 2;
    }
    .whatsapp-float {
        bottom: 20px;
        inset-inline-end: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}
.nav-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}




/* Intersection Observer Reveal Styles */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
