/* ==========================================
   AL MABROOK ELECTRICAL WEBSITE STYLESHEET
   Aesthetics: White background, Kuwait Flag Colors (Red & Green), Modern Typography
========================================== */

/* ------------------------------------------
   1. Root Variables & Reset
------------------------------------------ */
:root {
    --primary-red: #CE1126; /* Kuwait Flag Red */
    --primary-red-hover: #A50E1E;
    --primary-red-light: rgba(206, 17, 38, 0.08);
    --primary-green: #007A3D; /* Kuwait Flag Green */
    --primary-green-hover: #006230;
    --primary-green-light: rgba(0, 122, 61, 0.08);
    --secondary-dark: #0A1128;
    --secondary-dark-soft: #121A36;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --gray-text: #64748B;
    --gray-light: #E2E8F0;
    --success-green: var(--primary-green);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --header-height: 80px;
    --header-height-shrink: 70px;
    --border-radius: 12px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-red: 0 8px 24px rgba(206, 17, 38, 0.2);
    --shadow-green: 0 8px 24px rgba(0, 122, 61, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--secondary-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ------------------------------------------
   2. Typography & Globals
------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary-dark);
}

p {
    color: var(--gray-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-width-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.max-width-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.red-dot {
    color: var(--primary-red);
}

.link-hover:hover {
    color: var(--primary-red);
}

/* ------------------------------------------
   3. Buttons
------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.35);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background-color: #20BA56;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-white {
    background-color: var(--white);
    color: #25D366;
    border: 2px solid #25D366;
}

.btn-whatsapp-white:hover {
    background-color: #25D366;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-red);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

.btn-text {
    padding: 0;
    color: var(--primary-red);
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-text:hover {
    color: var(--primary-red-hover);
}

.btn-text i {
    transition: transform var(--transition-fast);
}

.btn-text:hover i {
    transform: translateX(4px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ------------------------------------------
   4. Layout Grids
------------------------------------------ */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4-col {
    grid-template-columns: repeat(4, 1fr);
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

/* Section Header styling */
.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
    background-color: var(--primary-red-light);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-dark);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
}

/* ------------------------------------------
   5. Header / Navigation
------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
}

/* Shrink header when scroll down */
.header.shrink {
    height: var(--header-height-shrink);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition-normal);
}

/* Shrink logo image when header shrinks on scroll */
.header.shrink .logo-img {
    height: 44px;
}

.footer-logo .logo-img {
    height: 60px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    color: var(--secondary-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-mobile-btn {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-dark);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ------------------------------------------
   6. Hero Section
------------------------------------------ */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 140px 0 100px 0;
    overflow: hidden;
}

.hero-content {
    max-width: 750px;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-green-light);
    color: var(--primary-green);
    border: 1px solid rgba(0, 122, 61, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 1.2s ease;
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    animation: fadeInUp 1.4s ease;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-badge i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

.trust-badge span {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Wave Separator */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 70px;
}

.hero-wave .shape-fill {
    fill: var(--white);
}

/* ------------------------------------------
   7. About Us Section
------------------------------------------ */
.about-img-wrapper {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
}

.about-img-main {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    height: 480px;
    width: 100%;
}

.about-experience-card {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--secondary-dark);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 180px;
    border-left: 5px solid var(--primary-green);
}

.exp-years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 5px;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 40px;
}

.about-feature-item {
    display: flex;
    gap: 16px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary-green-light);
    color: var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.about-feature-item p {
    font-size: 0.88rem;
}

.about-bottom-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--gray-light);
    padding-top: 24px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-dark);
}

.info-badge i {
    color: var(--success-green);
}

/* ------------------------------------------
   8. Our Services Section
------------------------------------------ */
.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 0, 0.1);
}

.service-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-icon-badge {
    position: absolute;
    bottom: -20px;
    right: 24px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-green);
    z-index: 2;
    border: 3px solid var(--white);
    transition: transform var(--transition-normal);
}

.service-card:hover .service-icon-badge {
    transform: translateY(-4px) rotate(15deg);
}

.service-card-body {
    padding: 36px 24px 28px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card-body p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-btn {
    align-self: flex-start;
}

/* ------------------------------------------
   9. Why Choose Us Section
------------------------------------------ */
.why-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
    transition: all var(--transition-normal);
}

.why-card:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.why-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green-light);
    color: var(--primary-green);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.why-card:hover .why-icon-box {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ------------------------------------------
   10. Reviews Section (Google Reviews Marquee)
------------------------------------------ */
.write-review-wrapper {
    margin-top: 24px;
}

.btn-write-review {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--secondary-dark);
    border: 1.5px solid var(--gray-light);
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.btn-write-review:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-red);
}

.google-btn-icon {
    width: 20px;
    height: 20px;
}

/* Marquee Container with linear gradient edge fading */
.reviews-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0 40px 0;
    mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}

.reviews-marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
}

.reviews-marquee-track:hover {
    animation-play-state: paused; /* Pause scrolling on hover for readability */
}

/* Google-style rounded cards */
.review-card-new {
    background-color: var(--white);
    padding: 35px 30px;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1.5px solid #F1F5F9;
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.review-card-new:hover {
    transform: scale(1.02);
    border-color: rgba(255, 107, 0, 0.2);
}

.review-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-stars-new {
    color: #FFB800;
    font-size: 0.95rem;
    display: flex;
    gap: 2px;
}

.google-logo-new img {
    width: 20px;
    height: 20px;
    display: block;
}

.review-text-new {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
    text-align: left;
    font-weight: 400;
}

.review-footer-new {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar-new {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* High-end gradients for user avatars */
.avatar-red { background: linear-gradient(135deg, #CE1126, #EF4444); }
.avatar-blue { background: linear-gradient(135deg, #0A1128, #3b82f6); }
.avatar-green { background: linear-gradient(135deg, #22C55E, #10B981); }
.avatar-purple { background: linear-gradient(135deg, #7C3AED, #A855F7); }
.avatar-teal { background: linear-gradient(135deg, #14B8A6, #06B6D4); }
.avatar-red { background: linear-gradient(135deg, #EF4444, #F97316); }

.user-meta-new {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-meta-new h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 2px;
}

.user-location-new {
    font-size: 0.8rem;
    color: var(--gray-text);
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ------------------------------------------
   11. FAQ Section
------------------------------------------ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item.active {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-sm);
}

.faq-btn {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-dark);
    cursor: pointer;
    gap: 20px;
}

.faq-btn span {
    transition: color var(--transition-fast);
}

.faq-item:hover .faq-btn span {
    color: var(--primary-red);
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--secondary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background-color: var(--primary-red);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
}

.faq-content p {
    padding: 0 24px 24px 24px;
    font-size: 0.95rem;
    color: var(--gray-text);
}

/* ------------------------------------------
   12. Call To Action Section (CTA)
------------------------------------------ */
.cta-banner-section {
    background-color: var(--primary-red);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-banner-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ------------------------------------------
   13. Contact Section
------------------------------------------ */
.contact-info-panel {
    padding-right: 40px;
}

.contact-details-list {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
}

.detail-icon {
    width: 54px;
    height: 54px;
    background-color: var(--primary-red-light);
    color: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-detail-item h5 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-detail-item p {
    font-size: 1rem;
    color: var(--gray-text);
}

.contact-social-icons {
    display: flex;
    gap: 16px;
}

.contact-social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-dark);
    font-size: 1.1rem;
}

.contact-social-icons a:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-form-wrapper h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.form-instruction {
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-dark);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
    font-size: 1.05rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border-radius: var(--border-radius);
    border: 1.5px solid var(--gray-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--secondary-dark);
    transition: all var(--transition-fast);
    outline: none;
    background-color: var(--white);
}

.contact-form textarea {
    padding-left: 16px;
    resize: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

/* Custom select styling override */
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.form-feedback {
    display: none;
    padding: 14px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
}

.form-feedback.success {
    display: block;
    background-color: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-feedback.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ------------------------------------------
   14. Footer Section
------------------------------------------ */
.footer {
    background-color: var(--secondary-dark);
    color: var(--white);
    padding: 80px 0 30px 0;
    border-top: 5px solid var(--primary-red);
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.footer-col-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.trust-badge-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    width: max-content;
}

.trust-badge-footer i {
    color: var(--primary-red);
}

.footer h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--primary-red);
    font-size: 1rem;
    margin-top: 4px;
}

.footer-contact li a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.developer-text {
    color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------
   15. Floating WhatsApp Button
------------------------------------------ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all var(--transition-normal);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Floating Call Button (Bottom Left) */
.floating-call {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all var(--transition-normal);
}

.floating-call:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.4);
    color: var(--white);
}

.call-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-red);
    border-radius: 50%;
    z-index: -1;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ------------------------------------------
   16. Keyframe Animations
------------------------------------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ------------------------------------------
   17. Responsive Media Queries
------------------------------------------ */

/* Tablet & Smaller Screens */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-img-main {
        height: 380px;
    }
}

/* Mobile Screens (Landscape & Portrait) */
@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-2-col,
    .grid-3-col,
    .grid-4-col {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Menu Toggle logic */
    .mobile-nav-toggle {
        display: flex;
    }
    
    .header-cta-btn {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 24px;
        transition: left var(--transition-normal);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        overflow-y: auto;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .nav-mobile-btn {
        display: block;
        width: 80%;
        margin-top: 20px;
    }
    
    .nav-mobile-btn .btn {
        width: 100%;
    }
    
    /* Mobile burger active animation */
    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* About Us specific adjustments */
    .about-img-container {
        order: 2;
    }
    
    .about-content {
        order: 1;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-img-wrapper {
        padding-right: 0;
        padding-bottom: 0;
        margin-top: 30px;
    }
    
    .about-experience-card {
        padding: 20px;
        max-width: 140px;
    }
    
    .exp-years {
        font-size: 2.2rem;
    }
    
    /* Contact Page */
    .contact-info-panel {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    /* Hero Adjustments */
    .hero-section {
        padding-top: 120px;
        text-align: center;
        min-height: auto;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-ctas {
        justify-content: center;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .hero-trust-badges {
        justify-content: center;
        gap: 16px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ------------------------------------------
   18. Language Switcher & RTL Styling
------------------------------------------ */
.lang-switch-btn {
    background-color: var(--primary-red-light);
    color: var(--primary-red);
    border: 1.5px solid rgba(255, 107, 0, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    z-index: 1001;
}

.lang-switch-btn:hover {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: var(--shadow-red);
    transform: translateY(-1px);
}

/* Arabic RTL support styles */
body.lang-ar {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', var(--font-body);
}

body.lang-ar h1, 
body.lang-ar h2, 
body.lang-ar h3, 
body.lang-ar h4, 
body.lang-ar h5, 
body.lang-ar h6 {
    font-family: 'Tajawal', var(--font-heading);
}

/* RTL layout overrides */
body.lang-ar .nav-menu {
    flex-direction: row-reverse;
}

body.lang-ar .trust-badge i {
    margin-left: 0;
    margin-right: 0;
}

body.lang-ar .about-experience-card {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 5px solid var(--primary-red);
}

body.lang-ar .service-icon-badge {
    right: auto;
    left: 24px;
}

body.lang-ar .btn-text i {
    transform: rotate(180deg);
}

body.lang-ar .btn-text:hover i {
    transform: rotate(180deg) translateX(4px);
}

body.lang-ar .faq-icon {
    margin-left: 0;
    margin-right: 20px;
}

body.lang-ar .contact-form input,
body.lang-ar .contact-form select {
    padding: 14px 44px 14px 16px;
}

body.lang-ar .contact-form textarea {
    padding: 14px 16px;
}

body.lang-ar .input-icon {
    left: auto;
    right: 16px;
}

body.lang-ar .footer-contact li i {
    margin-top: 5px;
}

body.lang-ar .floating-call {
    left: auto;
    right: 30px;
}

body.lang-ar .floating-whatsapp {
    right: auto;
    left: 30px;
}

body.lang-ar .contact-social-icons,
body.lang-ar .footer-social-icons {
    justify-content: flex-start;
}

/* Footer Social Icons styling */
.footer-social-icons a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social-icons a:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

@media (max-width: 768px) {
    /* Mobile adjustments for lang switcher */
    .lang-switch-btn {
        margin: 0 auto;
        padding: 6px 14px;
    }
    
    body.lang-ar .nav-menu {
        flex-direction: column;
        left: auto;
        right: -100%;
        transition: right var(--transition-normal);
    }
    
    body.lang-ar .nav-menu.open {
        right: 0;
        left: auto;
    }
}
