/* MKZ Tech Solutions Main Stylesheet */

:root {
    /* Brand Colors - MKZ Tech Solutions */
    --primary-blue: #1b3865;
    --accent-teal: #42BB93;
    --electric-blue: #5ac7da;
    --accent-gold: #42BB93;
    --deep-blue: #1b3865;
    --dark-slate: #243046;
    --light-bg: #f9fafb;
    --gradient-start: #1b3865;
    --gradient-end: #42BB93;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--dark-slate);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e2e8f0 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header Styles */
.header {
    padding: 0.75rem 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(249, 250, 251, 0.98) 100%);
    /* backdrop-filter removed to prevent fixed positioning containment trap */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1), inset 0 -2px 0 var(--accent-gold);
    position: relative;
    /* Changed from fixed */
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--accent-gold);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0 !important;
    flex-shrink: 0;
    direction: ltr;
}

.language-toggle a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(66, 187, 147, 0.35);
    border-radius: 999px;
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    direction: ltr;
}

.language-toggle a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-teal), var(--electric-blue));
    border-color: transparent;
}

.language-toggle-icon {
    width: 1.05rem;
    height: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1;
}

.language-toggle-icon::before {
    content: '🌐︎';
}

.language-toggle-icon svg {
    display: none;
}

.language-toggle-icon svg circle,
.language-toggle-icon svg path {
    display: none;
}

.homepage > .header > .header-container > .language-toggle {
    display: none;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 250px;
}

@media (max-width: 768px) {
    .logo img {
        height: 45px;
        width: auto;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
        width: auto;
        max-width: 120px;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2147483647;
    position: relative;
    pointer-events: auto;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}


.nav-item {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    transition: all 0.3s ease;
    position: relative;
    height: auto;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover {
    color: var(--accent-teal);
}

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

.nav-item.active {
    color: var(--accent-teal);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    line-height: 1.2;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--electric-blue) 100%);
    color: white;
    border: none;
    margin-top: -2px;
    /* Visual nudge for baseline alignment */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(0, 212, 170, 0.4);
    opacity: 1 !important;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-gold) 100%);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-consultation-glow {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 16px rgba(90, 199, 218, 0.65);
    animation: consultationGlowPulse 2.2s ease-in-out infinite;
}

.btn-consultation-glow:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 22px rgba(90, 199, 218, 0.8);
}

@keyframes consultationGlowPulse {
    0%,
    100% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 14px rgba(90, 199, 218, 0.55);
    }

    50% {
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.35), 0 0 22px rgba(90, 199, 218, 0.82);
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
.section {
    padding: 4.5rem 0 3.5rem;
}

.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    text-align: center;
    padding: 10rem 0 8rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
    mask-image: linear-gradient(to right, transparent, black 40%);
    z-index: 1;
}

.hero-main .hero-bg-visual {
    background-image: url('../assets/img/hero_server_final.png');
}

.hero-secondary .hero-bg-visual {
    background-image: url('../assets/img/hero_enterprise_bg.png');
    opacity: 0.3;
    /* Adjusted for this clearer image */
}

@media (max-width: 768px) {
    .hero-bg-visual {
        display: none;
    }

    .hero-bubbles {
        display: none;
    }
}


.hero .container {
    position: relative;
    z-index: 5;
}



.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.metric-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(27, 54, 101, 0.08);
    border-top: 3px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.35rem;
}

.metric-label {
    color: var(--dark-slate);
    font-weight: 500;
    opacity: 0.8;
}

/* Hero background bubbles */
.hero-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-bubbles span {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
    animation: rise 15s infinite ease-in;
}

.hero-bubbles span:nth-child(1) {
    left: 10%;
    width: 80px;
    height: 80px;
    animation-duration: 20s;
    animation-delay: -2s;
}

.hero-bubbles span:nth-child(2) {
    left: 20%;
    width: 20px;
    height: 20px;
    animation-duration: 10s;
    animation-delay: -4s;
}

.hero-bubbles span:nth-child(3) {
    left: 25%;
    width: 50px;
    height: 50px;
    animation-duration: 15s;
    animation-delay: -6s;
}

.hero-bubbles span:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-duration: 18s;
    animation-delay: -8s;
}

.hero-bubbles span:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-duration: 12s;
    animation-delay: -10s;
}

.hero-bubbles span:nth-child(6) {
    left: 75%;
    width: 90px;
    height: 90px;
    animation-duration: 25s;
    animation-delay: -12s;
}

.hero-bubbles span:nth-child(7) {
    left: 35%;
    width: 30px;
    height: 30px;
    animation-duration: 14s;
    animation-delay: -14s;
}

.hero-bubbles span:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-duration: 13s;
    animation-delay: -16s;
}

.hero-bubbles span:nth-child(9) {
    left: 85%;
    width: 50px;
    height: 50px;
    animation-duration: 22s;
    animation-delay: -5s;
}

.hero-bubbles span:nth-child(10) {
    left: 90%;
    width: 70px;
    height: 70px;
    animation-duration: 30s;
    animation-delay: -15s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        opacity: 1;
        transform: translateX(20px);
    }

    100% {
        bottom: 100%;
        transform: translateX(-20px);
        opacity: 0;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: none;
    -webkit-text-fill-color: var(--primary-blue);
    color: var(--primary-blue);
    text-shadow: 2px 2px 0px #ffffff,
        0px 0px 15px rgba(255, 255, 255, 0.8);
    animation: fadeInUp 1s ease-out;
    opacity: 1;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    animation: fadeInUp 1.2s ease-out;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

@media (min-width: 992px) {
    /* The previous media queries for .hero p are now redundant due to the new centering styles */
}

@media (max-width: 991px) {
    /* The previous media queries for .hero p are now redundant due to the new centering styles */
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeInUp 1.4s ease-out;
}

@media (max-width: 600px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.hero-btns .btn {
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: none;
    /* Already handled by parent container */
    margin: 0;
}

@media (max-width: 600px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.hero-image {
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 1.6s ease-out;
}

.hero-image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 153, 153, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    backdrop-filter: blur(10px);
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    mix-blend-mode: normal;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 992px) {
    /* No specific hero layout adjustments needed after removing grid */
}

.section-title {
    font-family: var(--font-primary);
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--electric-blue));
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-primary);
    color: var(--dark-slate);
    font-size: 1rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 1rem 0;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure all service cards have the same width */
.service-card {
    flex: 1 1 450px;
    max-width: 500px;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--electric-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-card h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
}

.service-card li:before {
    content: "▸";
    color: var(--accent-teal);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

[dir='rtl'] .service-card li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir='rtl'] .service-card li:before {
    left: auto;
    right: 0;
    content: "◂";
}

.industries-section {
    margin-top: 3rem;
}

.industries-title {
    color: var(--deep-blue);
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}

.industries-subtitle {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 1.5rem;
    color: var(--dark-slate);
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.industry-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(66, 187, 147, 0.35);
    color: var(--deep-blue);
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(27, 56, 101, 0.08);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    padding: 2rem;

    border-left: 4px solid var(--accent-teal);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 170, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.about-highlight:hover::before {
    transform: translateX(100%);
}

.about-highlight:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.why-mkz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.why-mkz-card {
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--accent-teal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.6rem;
    transition: all 0.3s ease;
}

.why-mkz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.why-mkz-card h3 {
    color: var(--deep-blue);
    margin-bottom: 0.65rem;
    font-size: 1.1rem;
}

[dir='rtl'] .about-highlight,
[dir='rtl'] .why-mkz-card {
    border-left: 0;
    border-right: 4px solid var(--accent-teal);
}

.why-mkz-card p {
    margin: 0;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.team-member h3 {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.team-member p {
    color: var(--slate-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.team-timeline {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    background: rgba(0, 212, 170, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

/* FAQ Section */
.faq-section {
    max-width: 980px;
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    background: white;
    border: 1px solid rgba(66, 187, 147, 0.28);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    box-shadow: 0 3px 12px rgba(27, 56, 101, 0.08);
}

.faq-item summary {
    cursor: pointer;
    color: var(--deep-blue);
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '+';
    color: var(--accent-teal);
    font-weight: 700;
    margin-right: 0.6rem;
}

.faq-item[open] summary::before {
    content: '-';
}

.faq-item p {
    margin: 0.8rem 0 0;
}

[dir='rtl'] .faq-item summary::before {
    margin-right: 0;
    margin-left: 0.6rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-grid .form-group {
    margin-bottom: 0;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.1);
}

.form-status {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid #28a745;
}

.form-status.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-submit {
    position: relative;
    min-width: 180px;
}

.btn-loader {
    display: none;
}

.btn-submit.loading .btn-text {
    visibility: hidden;
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Ensure Turnstile container is visible and takes space */
.cf-turnstile {
    min-height: 65px;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    overflow: hidden;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-slate) 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    /* Reduced from 4rem 0 2rem */
    margin-top: 2rem;
    /* Reduced from 4rem */
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--electric-blue));
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="20" r="0.8" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="1.2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="90" r="0.9" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    /* Reduced from 2.5rem */
    margin-bottom: 2rem;
    /* Reduced from 3rem */
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

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

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

.footer-section {
    text-align: left;
}

.footer-section h4 {
    color: var(--accent-teal);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    transform: none;
    width: 40px;
    height: 2px;
    background: var(--accent-teal);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0;
    justify-content: flex-start;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-teal);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
}

[dir='rtl'] .footer-social {
    direction: ltr;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(180deg, rgba(27, 54, 101, 0.06) 0%, rgba(84, 97, 171, 0.04) 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 54, 101, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-card .quote {
    font-size: 1rem;
    color: var(--dark-slate);
    line-height: 1.6;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-blue);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Social Media Icon Classes */
.icon-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-facebook:hover,
.icon-twitter:hover,
.icon-linkedin:hover,
.icon-instagram:hover {
    transform: translateY(-3px) scale(1.05);
}

/* GA Click Tracking */
.ga-click {
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .hero-bubbles,
    .hero-bg-visual,
    .whatsapp-tooltip {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        z-index: 2147483647;
    }

    .hamburger {
        display: flex;
        position: fixed;
        top: 25px;
        right: 2rem;
        z-index: 2147483647;
    }

    [dir="rtl"] .hamburger {
        right: auto;
        left: 2rem;
    }

    .nav-menu {
        display: none;
    }

    .language-toggle {
        margin-right: 3.7rem !important;
        margin-left: 3.7rem !important;
    }

    [dir="rtl"] .language-toggle {
        margin-right: 3.7rem !important;
        margin-left: 3.7rem !important;
    }

    .nav-menu.mobile {
        display: none !important;
        position: fixed;
        top: 75px;
        right: 2rem;
        width: auto;
        min-width: 200px;
        height: auto;
        max-height: 80vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        gap: 0.5rem;
        z-index: 2147483640;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 27, 101, 0.05);
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
        pointer-events: none;
    }

    .nav-menu.mobile.active {
        display: flex !important;
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .nav-menu.mobile .nav-item {
        width: auto;
        padding: 0.6rem 1.2rem;
        font-size: 1.1rem;
        text-align: center;
        border-radius: 8px;
    }

    .nav-menu.mobile .btn {
        width: auto;
        margin: 0.5rem 2.5rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        border-radius: 8px;
    }

    .nav-menu.mobile .nav-item:hover {
        background-color: rgba(0, 212, 170, 0.08);
        color: var(--accent-teal);
    }

    /* RTL specific - anchored to left */
    [dir="rtl"] .nav-menu.mobile {
        right: auto;
        left: 2rem;
        transform: translateY(-10px) scale(0.95);
    }

    [dir="rtl"] .nav-menu.mobile.active {
        transform: translateY(0) scale(1);
    }

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

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

    .hero p {
        font-size: 1.1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .team-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

    .about-highlight {
        margin-bottom: 0 !important;
        /* Override existing margin */
    }
}

/* About Section Text Enhancements */
.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--dark-slate);
    font-size: 1rem;
}

.about-text strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.about-text ul {
    padding-inline-start: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.about-text li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--slate-gray);
    font-size: 1rem;
}

.about-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}


.about-closing {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Sector Expertise Grid */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.sector-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: white;
    border-color: var(--accent-teal);
}

.sector-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.sector-card h4 {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.sector-card p {
    font-size: 0.9rem;
    color: var(--slate-gray);
    line-height: 1.5;
    margin-bottom: 0;
}


/* UX Enhancements */

/* 1. Hero Gradient Text */
.gradient-text {
    background: linear-gradient(150deg, var(--deep-blue) 100%, var(--primary-blue) 17%, var(--deep-blue) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    /* Fix for some browsers */
}

/* 2. Staggered Animations */
.stagger-delay-1 {
    transition-delay: 100ms;
}

.stagger-delay-2 {
    transition-delay: 200ms;
}

.stagger-delay-3 {
    transition-delay: 300ms;
}

.stagger-delay-4 {
    transition-delay: 400ms;
}

.stagger-delay-5 {
    transition-delay: 500ms;
}

/* 3. Back to Top Button */
.back-to-top {
    position: fixed;
    /* Bottom position is now handled at bottom of file relative to WA button */
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    transform: translateY(100px);
    /* Hidden by default */
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: white;
    color: var(--accent-teal);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(66, 187, 147, 0.4);
    border: 2px solid var(--accent-teal);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Footer Refinements */
.footer-section h4 {
    margin-bottom: 2rem;
    /* Increased from 1.5rem */
}

.footer-section ul li {
    margin-bottom: 1rem;
    /* Increased from 0.75rem */
}

.footer-section a {
    font-size: 1rem;
    /* Slightly larger text */
    padding: 2px 0;
    /* Add touch target size */
}

.footer-bottom {
    margin-top: 3rem;
    /* Extra spacing above copyright */
    padding-bottom: 2rem;
}

/* RTL Support */
[dir='rtl'] .nav-menu.mobile {
    transform: translateX(-100%);
}

[dir='rtl'] .back-to-top {
    right: auto;
    left: 30px;
}


[dir='rtl'] .nav-menu.mobile.active {
    transform: translateX(0);
}

/* Rule removed: .footer-social { justify-content: center; } was forcing center align incorrectly */

/* RTL Footer Alignment */
[dir='rtl'] .footer-section {
    text-align: right;
}

[dir='rtl'] .footer-section h4::after {
    left: auto;
    right: 0;
}

[dir='rtl'] .footer-social {
    justify-content: flex-end;
}

[dir='rtl'] .footer-branding {
    margin-left: auto;
    margin-right: 0;
}

/* Keep Arabic footer columns right-aligned on mobile. */
@media (max-width: 768px) {
    [dir='rtl'] .footer-section {
        text-align: right;
    }

    [dir='rtl'] .footer-section h4::after {
        right: auto;
        left: auto;
        right: 0;
        transform: none;
    }

    [dir='rtl'] .footer-social {
        justify-content: flex-end;
    }
}

/* Further reduce footer bottom spacing logic */
.footer-bottom {
    margin-top: 1.5rem;
    /* Reduced from 3rem */
    padding-top: 1.5rem;
    /* Reduced from 2rem */
    padding-bottom: 1rem;
}


/* AGGRESSIVE Footer Spacing Reduction Override */
.footer-bottom {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    /* Equal to padding-top for vertical centering */
}

/* Ensure footer container doesn't add extra bottom spacing that throws off visually centering */
.footer {
    padding: 2rem 0 0 !important;
    /* Remove bottom padding from main footer container */
    margin-top: 0 !important;
}

/* Restore lost overrides for internal footer content */
.footer-content {
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.footer-section h4 {
    margin-bottom: 1rem !important;
}

.footer-section p,
.footer-section li,
.footer-section ul li {
    margin-bottom: 0.5rem !important;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-slate);
    font-size: 1rem;
}

.footer .contact-list li,
.footer .contact-list li a {
    color: rgba(255, 255, 255, 0.85);
}

.contact-list li a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: var(--accent-teal);
}

.contact-list li span {
    font-size: 1.1rem;
    min-width: 20px;
    display: inline-block;
    text-align: center;
}

/* Footer Logo & Social Hover Effects */
.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    gap: 1.5rem;
    margin-top: 1rem;
}


@media (max-width: 768px) {
    .footer-branding {
        align-items: center;
    }
}

.footer-logo {
    display: inline-block;
}

.footer-logo {
    display: block;
    position: relative;
    height: 100px;
    width: 113px;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.footer-logo img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.footer-logo .logo-hover {
    opacity: 0;
}

.footer-logo:hover {
    transform: translateY(-3px) scale(1.05);
}

.footer-logo:hover .logo-default {
    opacity: 0;
}

.footer-logo:hover .logo-hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .footer-branding {
        align-items: flex-start;
    }

    .footer-logo {
        height: 70px;
        width: 80px;
        margin: 0 0 1.5rem;
    }
}

.icon-social {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

.icon-social:hover {
    transform: translateY(-3px) scale(1.2);
    color: var(--accent-teal);
    /* Exact match with var(--accent-teal) */
}

/* RTL Hero Adjustments */
[dir='rtl'] .hero-text {
    text-align: right;
}

[dir='rtl'] .hero-buttons {
    flex-direction: row;
    /* Ensure buttons stay in row */
}

@media (max-width: 992px) {
    [dir='rtl'] .hero-text {
        text-align: center;
    }
}

/* Ensure .hero container has overflow hidden to prevent scrollbars from bubbles */
.hero {
    overflow: hidden;
}


/* Ensure hero content sits above bubbles */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--dark-slate);
    opacity: 0.8;
    font-size: 0.95rem;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--primary-blue);
}

[dir="rtl"] .close-modal {
    right: auto;
    left: 1.5rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse-green 2s infinite;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    animation: none;
    /* Stop pulsing on hover */
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Move Back-to-Top when visible to avoid overlap */
.back-to-top {
    right: 30px;
    bottom: 110px;
    /* Sits above WhatsApp button */
}

/* RTL Support for WA Button */
[dir="rtl"] .whatsapp-btn {
    right: auto;
    left: 30px;
}

[dir="rtl"] .back-to-top {
    left: 30px;
}

/* WhatsApp Tooltip (Callout) */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: white;
    color: var(--primary-blue);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* RTL Support for Tooltip */
[dir="rtl"] .whatsapp-tooltip {
    right: auto;
    left: 75px;
    transform: translateY(-50%) translateX(-10px);
}

[dir="rtl"] .whatsapp-tooltip::after {
    right: auto;
    left: -6px;
    transform: translateY(-50%) rotate(180deg);
}

[dir="rtl"] .whatsapp-btn:hover .whatsapp-tooltip {
    transform: translateY(-50%) translateX(0);
}

.cookie-consent-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 5000;
    background: rgba(27, 56, 101, 0.96);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
}

.cookie-consent-content p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-consent-actions a {
    color: #ffffff;
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-btn {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-btn-accept {
    background: var(--accent-teal);
    color: #ffffff;
}

.cookie-btn-decline {
    background: #ffffff;
    color: var(--primary-blue);
}

.cookie-settings-link {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 2px 0;
    cursor: pointer;
    text-decoration: none;
}

.cookie-settings-link:hover {
    color: var(--accent-teal);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}