/* Professional Theme for Al Oadil Multi-Service */
:root {
    --primary: #0a192f;
    --primary-light: #112240;
    --accent: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.3);
    --bg-dark: #020c1b;
    --bg-light: #f5f2ed;
    --text-light: #e6f1ff;
    --text-muted: #8892b0;
    --white: #ffffff;
    --whatsapp: #25D366;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --glass: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(0, 210, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
}

body.ltr {
    direction: ltr;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
header {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    opacity: 0.9;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
}

.lang-switch-btn {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
    transition: var(--transition);
}

.lang-switch-btn:hover {
    opacity: 0.9;
}

/* Hero Section - Robust Structural Flow */
.hero {
    position: relative;
    padding: 6rem 0 4rem 0;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 100% 0%, rgba(0, 210, 255, 0.15) 0%, transparent 50%),
        linear-gradient(rgba(2, 12, 27, 0.92), rgba(2, 12, 27, 0.92)), 
        url('img/aloadil.png');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

body.rtl .hero-content { margin-left: auto; text-align: right; }
body.ltr .hero-content { margin-right: auto; text-align: left; }

.hero-highlights {
    font-size: 1.1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--accent);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin: 1.5rem 0;
    font-weight: 800;
}

.hero h1 span.accent {
    color: var(--accent);
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 650px;
}

/* Service Circle Icons */
.hero-service-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

body.rtl .hero-service-icons { justify-content: flex-start; }
body.ltr .hero-service-icons { justify-content: flex-start; }

.service-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 80px;
}

.circle-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 215, 0, 0.2);
    background: rgba(10, 25, 47, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-circle:hover .circle-icon {
    border-color: var(--accent);
    background: var(--primary-light);
    transform: translateY(-5px);
}

.service-circle span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Glassmorphism Elements (Process Panel) */
.hero-process-panel {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.process-item:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

body.ltr .process-item:not(:last-child) {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.process-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.process-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.process-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.7;
}

/* Coverage Strip - Flowed Below Panel */
.coverage-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1rem 2rem;
    border-radius: 1rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.coverage-strip svg {
    color: var(--primary);
}

/* Mobile & Responsive Overhaul */
@media (max-width: 992px) {
    header {
        position: static;
    }

    nav {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero {
        padding: 3rem 0;
        text-align: center !important;
    }

    body.rtl .hero-content, body.ltr .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-service-icons {
        justify-content: center !important;
    }

    .hero-process-panel {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .process-item {
        border: none !important;
        padding: 1rem 0;
    }

    .coverage-strip {
        white-space: normal;
        border-radius: 1rem;
    }
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 3.5rem;
    background: linear-gradient(135deg, var(--whatsapp) 0%, #128C7E 100%);
    color: var(--white);
    border-radius: 9999px;
    font-weight: 800;
    font-size: 1.2rem;
    border: none;
    box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.6);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: btnPulse 3s infinite ease-in-out;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(37, 211, 102, 0.8);
    background: linear-gradient(135deg, #2ae771 0%, #128C7E 100%);
}

.cta-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes btnPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Services - Premium Grid */
.services {
    padding: 10rem 0;
    background: radial-gradient(circle at 10% 10%, rgba(30, 58, 138, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(0, 210, 255, 0.03) 0%, transparent 40%);
}

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

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.services-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
}

.service-card .img-wrapper {
    width: 100%;
    aspect-ratio: 750 / 500;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps it full width/height of the container while maintaining aspect ratio */
    transition: var(--transition);
}

.service-card .card-body {
    padding: 3rem 2rem;
    background: var(--white);
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Team - Professional Portraits */
.team {
    padding: 10rem 0;
    background: var(--primary);
    color: var(--text-light);
}

.team .section-title h2 {
    color: var(--white);
}

.team-card {
    background: var(--primary-light);
    padding: 4rem 2rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center; /* Centers all text and inline content */
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    background: #1a2a4a;
}

.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Perfect circle */
    margin: 0 auto 2.5rem auto; /* Centers the image */
    border: 4px solid var(--accent);
    box-shadow: 0 15px 30px -10px var(--accent-glow);
    object-fit: cover; /* Ensures image isn't distorted in circle */
}

.team-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.team-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Coverage */
.coverage {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

/* FAQ */
.faq {
    padding: 5rem 0;
}

.accordion-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 1.5rem;
}

/* Portfolio Page Specifics */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 750 / 500;
    object-fit: cover;
}

.portfolio-info {
    padding: 1.5rem;
}

.filter-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 9999px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    animation: fadeInUp 0.8s ease-out both;
}

/* Contact */
.contact {
    padding: 5rem 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

footer {
    background: var(--bg-dark);
    color: #8892b0;
    padding: 6rem 0 3rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo h3 {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

body.ltr .footer-links a:hover {
    padding-right: 0;
    padding-left: 5px;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.2);
    animation: none;
}

body.rtl .whatsapp-float {
    right: auto;
    left: 30px;
}
