/* ============================================
   إنماء الإبداع - ملف الأنماط الرئيسي
   ============================================ */

/* ========== Variables ========== */
:root {
    --primary-color: #2D109E;
    --secondary-color: #EE6107;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --gradient-primary: linear-gradient(135deg, #2D109E 0%, #4a1fd1 100%);
    --gradient-secondary: linear-gradient(135deg, #EE6107 0%, #ff8534 100%);
    --gradient-hero: linear-gradient(135deg, rgba(45, 16, 158, 0.95) 0%, rgba(238, 97, 7, 0.85) 100%);
    --font-ar: 'El Messiri', 'Tajawal', sans-serif;
    --font-en: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    line-height: 1.8;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ========== Loading Animation ========== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-circle:nth-child(2) {
    border-top-color: var(--white);
    animation-delay: -0.75s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* ========== Navigation ========== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(45, 16, 158, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

nav.scrolled .nav-menu a {
    color: var(--dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

nav.scrolled .nav-link:hover,
nav.scrolled .nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    right: auto;
    left: 0;
}

.nav-cta {
    background: var(--gradient-secondary);
    color: var(--white) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 97, 7, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 97, 7, 0.4);
}

.nav-lang {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 16, 158, 0.3);
}

.nav-lang:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 16, 158, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* ========== Hero Slider ========== */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 2rem 60px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 800px;
    animation: fadeInUp 1s ease 0.2s both;
}

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

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 2;
    pointer-events: none;
}

.slider-btn {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.slider-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

.slider-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.indicator {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.indicator.active {
    background: var(--white);
    width: 80px;
}

/* ========== Buttons ========== */
.btn {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

/* ========== Sections ========== */
section {
    padding: 100px 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(45, 16, 158, 0.1) 0%, rgba(238, 97, 7, 0.1) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(45, 16, 158, 0.2);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.8;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== About Section ========== */
.about {
    background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.about-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(45, 16, 158, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(45, 16, 158, 0.15);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.about-card p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}

/* ========== Services Section ========== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(45, 16, 158, 0.15);
}

.service-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, rgba(45, 16, 158, 0.1) 0%, rgba(238, 97, 7, 0.1) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    font-size: 5rem;
    color: var(--primary-color);
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(45, 16, 158, 0.3));
}

.service-content {
    padding: 2.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li i {
    color: var(--secondary-color);
}

/* ========== Clients Section ========== */
.clients {
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

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

.client-logo {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(45, 16, 158, 0.05);
    opacity: 0;
    transform: scale(0.9);
}

.client-logo.visible {
    opacity: 1;
    transform: scale(1);
}

.client-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(45, 16, 158, 0.1);
}

.client-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* ========== Values Section ========== */
.values {
    background: var(--gradient-primary);
    color: var(--white);
}

.values .section-label {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.values .section-header h2 {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: var(--white);
}

.values .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.value-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* ========== FAQ Section ========== */
.faq {
    background: var(--light);
}

.faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: start;
}

.faq-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 600px;
    position: sticky;
    top: 120px;
}

.faq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 16, 158, 0.8) 0%, rgba(238, 97, 7, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-image-overlay i {
    font-size: 6rem;
    color: var(--white);
    opacity: 0.8;
}

.faq-container {
    max-width: 100%;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(45, 16, 158, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    padding: 2rem 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: rgba(45, 16, 158, 0.05);
}

.faq-question span:first-child {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2.5rem 2rem;
}

.faq-answer p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}

/* ========== Contact Section ========== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info-wrapper {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.contact-info-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-info-card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(45, 16, 158, 0.08);
}

.contact-info-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
}

.contact-info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(45, 16, 158, 0.1);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info-content p {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.8;
}

.contact-info-content a {
    color: var(--dark);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-content a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(45, 16, 158, 0.3);
}

.contact-form-wrapper {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.contact-form-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-form {
    background: var(--light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(45, 16, 158, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 16, 158, 0.1);
}

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

.form-submit {
    background: var(--gradient-primary);
    color: var(--white);
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(45, 16, 158, 0.3);
}

.map-container {
    margin-top: 4rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(45, 16, 158, 0.1);
}

/* ========== Footer ========== */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-credit {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

.footer-credit a {
    background: linear-gradient(to left, rgb(39, 70, 133), rgb(61, 179, 197));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-credit a:hover {
    opacity: 0.8;
}

/* ========== Scroll to Top ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(238, 97, 7, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(238, 97, 7, 0.4);
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-wrapper {
        grid-template-columns: 1fr;
    }
    
    .faq-image {
        height: 400px;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .services-grid,
    .about-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .slider-controls {
        padding: 0 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    section {
        padding: 60px 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about-card,
    .service-card,
    .value-card {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* ========== Utility Classes ========== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* ========== WhatsApp Floating Button ========== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float.visible {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 35px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* ========== Hero Full Screen & Navbar Overlap ========== */
.hero {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ========== Typewriter Effect ========== */
.typewriter {
    overflow: hidden;
    border-left: 3px solid var(--secondary-color);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
    max-width: 100%;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--secondary-color);
    }
}

/* ========== Service Images with Background ========== */
.service-image {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.service-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 16, 158, 0.85) 0%, rgba(238, 97, 7, 0.75) 100%);
    transition: all 0.4s ease;
}

.service-card:hover .service-image-overlay {
    background: linear-gradient(135deg, rgba(45, 16, 158, 0.75) 0%, rgba(238, 97, 7, 0.65) 100%);
}

.service-icon {
    font-size: 5rem;
    color: var(--white);
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    position: relative;
}

/* ========== Map Container Size Adjustment ========== */
.map-container {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(45, 16, 158, 0.1);
    max-height: 350px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.map-container iframe {
    width: 100%;
    max-height: 350px;
}

/* ========== Mobile Responsive Updates ========== */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .typewriter {
        font-size: 1.8rem;
        white-space: normal;
        animation: none;
        border-left: none;
    }
    
    .map-container {
        max-height: 300px;
    }
    
    .map-container iframe {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 70px;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
    }
}

/* ========== Navbar Transparent on Hero ========== */
.mobile-toggle span {
    background: var(--white);
}

nav.scrolled .mobile-toggle span {
    background: var(--primary-color);
}

/* Logo filter for visibility on transparent navbar */
.logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

nav.scrolled .logo img {
    filter: none;
}

/* ========== Hero Content Centered ========== */
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 2rem 60px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 800px;
    animation: fadeInUp 1s ease 0.2s both;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    margin-left: auto;
    margin-right: auto;
}


/* ========== Section Backgrounds with Icons - Enhanced Colors ========== */
.about {
    background: linear-gradient(180deg, rgba(245, 240, 255, 0.85) 0%, rgba(255, 245, 235, 0.7) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '\f19c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -100px;
    right: -150px;
    font-size: 600px;
    color: rgba(45, 16, 158, 0.18);
    z-index: 0;
    transform: rotate(-15deg);
}

.about .container {
    position: relative;
    z-index: 1;
}

.services {
    background: linear-gradient(135deg, rgba(255, 235, 200, 0.9) 0%, rgba(248, 249, 250, 1) 50%, rgba(235, 225, 255, 0.85) 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '\f0b1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -150px;
    left: -150px;
    font-size: 700px;
    color: rgba(45, 16, 158, 0.2);
    z-index: 0;
    transform: rotate(20deg);
}

.services::after {
    content: '\f0a1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -150px;
    right: -150px;
    font-size: 650px;
    color: rgba(238, 97, 7, 0.18);
    z-index: 0;
    transform: rotate(-25deg);
}

.services .container {
    position: relative;
    z-index: 1;
}

.clients {
    background: linear-gradient(180deg, rgba(235, 225, 255, 0.9) 0%, rgba(248, 249, 250, 1) 50%, rgba(255, 235, 200, 0.85) 100%);
    position: relative;
    overflow: hidden;
}

.clients::before {
    content: '\f2b5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translateY(-50%) rotate(-20deg);
    font-size: 750px;
    color: rgba(45, 16, 158, 0.2);
    z-index: 0;
}

.clients .container {
    position: relative;
    z-index: 1;
}

.faq {
    background: linear-gradient(135deg, rgba(255, 235, 200, 1) 0%, rgba(248, 249, 250, 1) 50%, rgba(235, 225, 255, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '\f059';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -100px;
    left: -150px;
    font-size: 800px;
    color: rgba(238, 97, 7, 0.22);
    z-index: 0;
    transform: rotate(-10deg);
    animation: float 20s ease-in-out infinite;
}

.faq .container {
    position: relative;
    z-index: 1;
}

.contact {
    background: linear-gradient(180deg, rgba(235, 225, 255, 0.85) 0%, rgba(248, 249, 250, 1) 50%, rgba(255, 235, 200, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '\f095';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -100px;
    right: -150px;
    font-size: 700px;
    color: rgba(45, 16, 158, 0.19);
    z-index: 0;
    transform: rotate(-20deg);
    animation: float 22s ease-in-out infinite;
}

.contact .container {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(-10deg);
    }
    50% {
        transform: translate(50px, 50px) rotate(-5deg);
    }
}


/* ========== Mobile Navigation Links Color ========== */
@media (max-width: 768px) {
    .nav-menu a {
        color: var(--dark);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
    }
    
    .nav-cta {
        color: var(--white) !important;
    }
    
    .nav-lang {
        color: var(--white) !important;
    }
}

/* ========== Mobile Hero Title Size ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
}

/* ========== Clients Grid Mobile - 2 Columns ========== */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .client-logo {
        padding: 1.5rem;
    }
    
    .client-logo img {
        max-height: 60px;
    }
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.projects .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.projects .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  margin: 0 10px;
  line-height: 1;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.projects .portfolio-filters li:hover,
.projects .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.projects .portfolio-filters li:first-child {
  margin-left: 0;
}

.projects .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .projects .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.projects .portfolio-content {
  position: relative;
  overflow: hidden;
}

.projects .portfolio-content img {
  transition: 0.3s;
}

.projects .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.projects .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
}

.projects .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.projects .portfolio-content .portfolio-info .preview-link,
.projects .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 40px);
  font-size: 26px;
  top: calc(50% - 14px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.projects .portfolio-content .portfolio-info .preview-link:hover,
.projects .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.projects .portfolio-content .portfolio-info .details-link {
  left: 50%;
  font-size: 34px;
  line-height: 0;
}

.projects .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.projects .portfolio-content:hover img {
  transform: scale(1.1);
}



/*projects-cta*/

.projects-cta {
  padding: clamp(60px, 8vw, 120px) 16px;
  background: #ffffff;
  direction: rtl;
  text-align: center;
      font-family: var(--font-ar);
}

.projects-cta .container {
  max-width: 900px;
  margin: auto;
}

/* العنوان */
.section-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: #2a3076;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-title .line {
  width: 35px;
  height: 3px;
  background-color: #e53935;
  border-radius: 3px;
}

/* العنوان الفرعي */
.section-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  color: #2a3076;
  margin-bottom: 12px;
}

/* الوصف */
.section-desc {
  font-size: clamp(14px, 2.5vw, 18px);
  color: #6c7a89;
  line-height: 1.9;
  margin-bottom: 35px;
  padding: 0 5px;
}



/* شاشات صغيرة جدًا */
@media (max-width: 480px) {
  .section-title .line {
    width: 25px;
  }

  .nav-cta {
    width: 100%;
    max-width: 260px;
  }
}

/* شاشات كبيرة جدًا */
@media (min-width: 1400px) {
  .projects-cta .container {
    max-width: 1100px;
  }
}
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
/* .scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--default-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
} */

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
/* section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 92px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 76px;
  }
} */

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
/* .section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
}

.section-title h2:before,
.section-title h2:after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
}

.section-title h2:before {
  margin: 0 15px 10px 0;
}

.section-title h2:after {
  margin: 0 0 10px 15px;
}

.section-title p {
  margin-bottom: 0;
} */

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: white;
  background-color: var(--background-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 60px 0;
  text-align: center;
  position: relative;
}

.page-title:before {
  content: "";
  background-color: color-mix(in srgb, var(--background-color), transparent 40%);
  position: absolute;
  inset: 0;
}

.page-title h1 {
  font-size: 56px;
  font-weight: 500;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;

}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
  
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* Filters */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  list-style: none;
  margin-bottom: 40px;
}

.portfolio-filters li {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #5f6f7f;
  position: relative;
  transition: 0.3s;
}

.portfolio-filters li::after {
  content: "";
  width: 0;
  height: 2px;
  background: #e53935;
  position: absolute;
  bottom: -6px;
  right: 0;
  transition: 0.3s;
}

.portfolio-filters li.active,
.portfolio-filters li:hover {
  color: #e53935;
}

.portfolio-filters li.active::after,
.portfolio-filters li:hover::after {
  width: 100%;
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.portfolio-item {
  overflow: hidden;
  border-radius: 12px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .portfolio-filters {
    gap: 15px;
  }

  .portfolio-filters li {
    font-size: 14px;
  }
}


/**8888888888888888888888888888888888888888888888888888888888/


/* ========== Scroll to Top ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(238, 97, 7, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(238, 97, 7, 0.4);
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-wrapper {
        grid-template-columns: 1fr;
    }
    
    .faq-image {
        height: 400px;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .services-grid,
    .about-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .slider-controls {
        padding: 0 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    section {
        padding: 60px 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about-card,
    .service-card,
    .value-card {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* ========== Utility Classes ========== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* ========== WhatsApp Floating Button ========== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float.visible {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 35px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* ========== Hero Full Screen & Navbar Overlap ========== */
.hero {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ========== Typewriter Effect ========== */
.typewriter {
    overflow: hidden;
    border-left: 3px solid var(--secondary-color);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
    max-width: 100%;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--secondary-color);
    }
}

/* ========== Service Images with Background ========== */
.service-image {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.service-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 16, 158, 0.85) 0%, rgba(238, 97, 7, 0.75) 100%);
    transition: all 0.4s ease;
}

.service-card:hover .service-image-overlay {
    background: linear-gradient(135deg, rgba(45, 16, 158, 0.75) 0%, rgba(238, 97, 7, 0.65) 100%);
}

.service-icon {
    font-size: 5rem;
    color: var(--white);
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    position: relative;
}

/* ========== Map Container Size Adjustment ========== */
.map-container {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(45, 16, 158, 0.1);
    max-height: 350px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.map-container iframe {
    width: 100%;
    max-height: 350px;
}

/* ========== Mobile Responsive Updates ========== */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .typewriter {
        font-size: 1.8rem;
        white-space: normal;
        animation: none;
        border-left: none;
    }
    
    .map-container {
        max-height: 300px;
    }
    
    .map-container iframe {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 70px;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
    }
}

/* ========== Navbar Transparent on Hero ========== */
.mobile-toggle span {
    background: var(--white);
}

nav.scrolled .mobile-toggle span {
    background: var(--primary-color);
}

/* Logo filter for visibility on transparent navbar */
.logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

nav.scrolled .logo img {
    filter: none;
}

/* ========== Hero Content Centered ========== */
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 2rem 60px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 800px;
    animation: fadeInUp 1s ease 0.2s both;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    margin-left: auto;
    margin-right: auto;
}


/* ========== Section Backgrounds with Icons - Enhanced Colors ========== */
.about {
    background: linear-gradient(180deg, rgba(245, 240, 255, 0.85) 0%, rgba(255, 245, 235, 0.7) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '\f19c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -100px;
    right: -150px;
    font-size: 600px;
    color: rgba(45, 16, 158, 0.18);
    z-index: 0;
    transform: rotate(-15deg);
}

.about .container {
    position: relative;
    z-index: 1;
}

.services {
    background: linear-gradient(135deg, rgba(255, 235, 200, 0.9) 0%, rgba(248, 249, 250, 1) 50%, rgba(235, 225, 255, 0.85) 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '\f0b1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -150px;
    left: -150px;
    font-size: 700px;
    color: rgba(45, 16, 158, 0.2);
    z-index: 0;
    transform: rotate(20deg);
}

.services::after {
    content: '\f0a1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -150px;
    right: -150px;
    font-size: 650px;
    color: rgba(238, 97, 7, 0.18);
    z-index: 0;
    transform: rotate(-25deg);
}

.services .container {
    position: relative;
    z-index: 1;
}

.clients {
    background: linear-gradient(180deg, rgba(235, 225, 255, 0.9) 0%, rgba(248, 249, 250, 1) 50%, rgba(255, 235, 200, 0.85) 100%);
    position: relative;
    overflow: hidden;
}

.clients::before {
    content: '\f2b5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translateY(-50%) rotate(-20deg);
    font-size: 750px;
    color: rgba(45, 16, 158, 0.2);
    z-index: 0;
}

.clients .container {
    position: relative;
    z-index: 1;
}

.faq {
    background: linear-gradient(135deg, rgba(255, 235, 200, 1) 0%, rgba(248, 249, 250, 1) 50%, rgba(235, 225, 255, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '\f059';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -100px;
    left: -150px;
    font-size: 800px;
    color: rgba(238, 97, 7, 0.22);
    z-index: 0;
    transform: rotate(-10deg);
    animation: float 20s ease-in-out infinite;
}

.faq .container {
    position: relative;
    z-index: 1;
}

.contact {
    background: linear-gradient(180deg, rgba(235, 225, 255, 0.85) 0%, rgba(248, 249, 250, 1) 50%, rgba(255, 235, 200, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '\f095';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -100px;
    right: -150px;
    font-size: 700px;
    color: rgba(45, 16, 158, 0.19);
    z-index: 0;
    transform: rotate(-20deg);
    animation: float 22s ease-in-out infinite;
}

.contact .container {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(-10deg);
    }
    50% {
        transform: translate(50px, 50px) rotate(-5deg);
    }
}


/* ========== Mobile Navigation Links Color ========== */
@media (max-width: 768px) {
    .nav-menu a {
        color: var(--dark);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
    }
    
    .nav-cta {
        color: var(--white) !important;
    }
    
    .nav-lang {
        color: var(--white) !important;
    }
}

/* ========== Mobile Hero Title Size ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
}

/* ========== Clients Grid Mobile - 2 Columns ========== */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .client-logo {
        padding: 1.5rem;
    }
    
    .client-logo img {
        max-height: 60px;
    }
}