/* ======== متغيرات التصميم ======== */
:root {
    --primary-dark: #1a1a1a;
    --primary-orange: #d60000;
    --orange: #d60000;
    --accent-dark-orange: #d1230cff;
    --text-gray: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-family: 'Tajawal', sans-serif;
    --border-radius: 12px;
    --soft-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ======== إعدادات عامة ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* منع التمرير الأفقي */
    width: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

.page-wrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======== تنسيق الهيدر العائم ======== */
.main-header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
    max-width: 1400px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    padding: 0 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

/* شكل الهيدر عند التمرير لأسفل */
.main-header.nav-scrolled {
    background-color: var(--primary-dark);
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo a {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-orange);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-dark);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.main-header.nav-scrolled .nav-links a {
    color: var(--white);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-info {
    display: none;
}

.cta-button {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.cta-button:hover {
    background-color: var(--accent-dark-orange);
    transform: translateY(-2px);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* ======== قائمة الهامبرجر للموبايل ======== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 3px 0;
    transition: 0.3s;
}

.main-header.nav-scrolled .hamburger-menu span {
    background-color: var(--white);
}

.hamburger-menu.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary-dark);
    padding-top: 100px;
    transition: right 0.4s ease;
    z-index: 1001;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0 20px;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav ul li a:hover {
    color: var(--primary-orange);
    padding-right: 10px;
}

/* ======== تنسيق قسم الهيرو ======== */
.hero-wrapper {
    position: relative;
    height: 100vh;
    margin-bottom: 250px;
}

.hero-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://takweenweb.com/web-design-trends.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.6);
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--white);
    text-align: right;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
}

/* ======== زر الاستشارة في الهيرو للموبايل ======== */
.mobile-consultation {
    display: none;
    margin-top: 30px;
}

.mobile-consultation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(214, 0, 0, 0.4);
}

.mobile-consultation-btn:hover {
    background-color: var(--accent-dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214, 0, 0, 0.6);
}

/* ======== تنسيق البوكسات العائمة ======== */
.cta-boxes-container {
    position: absolute;
    bottom: -180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 25px;
    z-index: 10;
    width: 90%;
    max-width: 1000px;
}

.cta-box {
    flex: 1;
    background-color: var(--white);
    padding: 40px 25px;
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
    text-align: center;
    transition: var(--transition);
}
.cta-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.cta-box .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(238, 143, 17, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-orange);
}

.cta-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--text-gray);
    line-height: 1.6;
}

.consultation-box-link {
    text-decoration: none;
}

.consultation-box {
    position: absolute;
    top: 40%;
    left: 5%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--primary-dark);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
    z-index: 10;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    color: var(--primary-orange);
    font-size: 1.5rem;
}

.consultation-content p {
    color: var(--white);
}

.consultation-title {
    font-size: 1rem;
    font-weight: 500;
}

.consultation-phone {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 5px;
}

/* ======== تصميم متجاوب للموبايل ======== */
@media (max-width: 992px) {
    .main-header {
        padding: 0 20px;
    }
    .nav-links {
        gap: 0.8rem;
        font-size: 0.85rem;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    /* إظهار قائمة الهامبرجر */
    .hamburger-menu {
        display: flex;
    }
    .mobile-nav {
        display: block;
    }
    .nav-links {
        display: none;
    }
    .header-actions {
        display: none;
    }

    /* تبسيط وضعية الهيدر لمنع المشاكل */
    .main-header {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        transform: none;
        padding: 0 15px;
        height: 70px;
    }
    .logo a {
        font-size: 1.5rem;
    }
    .nav-container {
        height: 70px;
    }

    /* === التعديل الرئيسي لتصغير الهيرو === */
    .hero-wrapper {
        position: relative;
        height: 80vh; /* تصغير الارتفاع */
        margin-bottom: 100px;
    }
    .hero-section {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://takweenweb.com/web-design-trends.webp');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
    .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        text-align: center;
        width: 90%;
        padding: 0;
        z-index: 2;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content h2 {
        font-size: 1.6rem;
        margin-top: 10px;
    }
    /* === نهاية التعديل === */

    .mobile-consultation {
        display: block;
        margin-top: 20px;
    }
    .cta-boxes-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        width: calc(100% - 40px);
        margin: 20px auto;
        gap: 15px;
    }
    .cta-box {
        padding: 30px 20px;
    }
    .consultation-box-link {
        display: none;
    }
    
    body {
        padding-bottom: 70px; 
    }
}

/* ======== CSS قسم الخدمات ======== */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    position: relative;
}
.services .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.services .section-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.services .section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.service-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}
.service-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 15px;
}
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}
.service-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    flex-grow: 1;
}
.service-features li {
    margin-bottom: 10px;
    padding-right: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition);
}
.service-features li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--orange);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}
.service-card:hover .service-features li {
    color: rgba(255, 255, 255, 1);
}
.service-image-container {
    width: 100%;
    height: 200px;
    margin: 0 auto 25px auto;
    perspective: 1000px;
}
.service-image-flip {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
.service-card:hover .service-image-flip {
    transform: rotateY(180deg);
}
.service-image-front,
.service-image-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.service-image-front img,
.service-image-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-image-back {
    transform: rotateY(180deg);
}
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .service-card {
        padding: 25px 20px;
    }
    .service-image-container {
        height: 180px;
    }
}
@media (max-width: 576px) {
    .service-card {
        padding: 20px 15px;
    }
    .service-image-container {
        height: 160px;
    }
    .service-card h3 {
        font-size: 1.2rem;
    }
    .service-features li {
        font-size: 0.9rem;
    }
}

/* ======== CSS قسم CTA ======== */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-dark);
    text-align: center;
    color: var(--white);
}
.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}
.cta-section .cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    background-color: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(238, 143, 17, 0.4);
}
.cta-section .cta-button:hover {
    background-color: var(--accent-dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(238, 143, 17, 0.6);
}
@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 2rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
}

/* ======== CSS قسم "كيف نعمل" ======== */
.how-we-work-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}
.how-we-work-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.how-we-work-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.how-we-work-section .section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.process-box {
    position: relative;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}
.process-box:nth-child(odd) {
    background: rgba(26, 26, 26, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 26, 26, 0.1);
    color: var(--primary-dark);
}
.process-box:nth-child(even) {
    background-color: var(--primary-orange);
    color: var(--white);
}
.process-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--soft-shadow);
}
.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.process-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 10px;
}
.process-box p {
    font-size: 1rem;
    line-height: 1.7;
}
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .process-box {
        padding: 30px 20px;
    }
}

/* ======== CSS قسم "عملاءنا" ======== */
.clients-worldwide {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}
.clients-worldwide .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.clients-worldwide .section-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.clients-worldwide .section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.clients-worldwide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybiIvPjwvcmVjdD48L3N2Zz4=');
    opacity: 0.05;
    z-index: 0;
}
.clients-worldwide .container {
    position: relative;
    z-index: 1;
}
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.country-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}
.country-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.country-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.flag-icon {
    width: 80px;
    height: 60px;
    margin-bottom: 20px;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}
.country-card:hover .flag-icon {
    transform: scale(1.1);
}
.country-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}
.country-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}
.special-country {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(238, 143, 17, 0.1), rgba(255, 255, 255, 0.05));
}
@media (max-width: 768px) {
    .special-country {
        grid-column: span 1;
    }
}

/* ======== CSS قسم "أعمالنا" ======== */
.portfolio {
    padding: 100px 0;
    background-color: var(--bg-light);
}
.portfolio .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.portfolio .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.portfolio .section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: var(--transition);
    background: var(--white);
}
.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.5));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 20px;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.portfolio-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ======== CSS قسم "وداعا" المميز ======== */
.goodbye-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.goodbye-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(238, 143, 17, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.goodbye-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 26, 26, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.goodbye-box {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(238, 143, 17, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.goodbye-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(238, 143, 17, 0.2);
}

.goodbye-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2c2c2c 100%);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.goodbye-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(238, 143, 17, 0.2);
    border: 1px solid rgba(238, 143, 17, 0.3);
    border-radius: 20px;
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.goodbye-header h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.goodbye-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.goodbye-content {
    padding: 50px 40px;
}

.goodbye-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.goodbye-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.goodbye-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-orange);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.goodbye-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(238, 143, 17, 0.2);
}

.goodbye-item:hover::before {
    transform: scaleY(1);
}

.item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(238, 143, 17, 0.1) 0%, rgba(238, 143, 17, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.item-text {
    flex: 1;
}

.item-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.item-text p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

.cancel-mark {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ff4b3b 0%, #ff6b6b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 75, 59, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(255, 75, 59, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(255, 75, 59, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(255, 75, 59, 0.3); }
}

.goodbye-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.conclusion-tag, .solution-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.conclusion-tag {
    background: linear-gradient(135deg, #ff4b3b 0%, #ff6b6b 100%);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255, 75, 59, 0.3);
}

.solution-tag {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-dark-orange) 100%);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(238, 143, 17, 0.3);
}

.conclusion-tag:hover, .solution-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .goodbye-section {
        padding: 80px 0;
    }
    
    .goodbye-header {
        padding: 30px 20px;
    }
    
    .goodbye-header h2 {
        font-size: 2rem;
    }
    
    .goodbye-content {
        padding: 30px 20px;
    }
    
    .goodbye-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .goodbye-item {
        padding: 15px;
    }
    
    .goodbye-footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .conclusion-tag, .solution-tag {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .goodbye-header h2 {
        font-size: 1.8rem;
    }
    
    .item-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .cancel-mark {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* ======== CSS قسم "الأسئلة الشائعة" ======== */
.faq {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: var(--white);
}
.faq .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.faq .section-header h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.faq .section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.active {
    background: rgba(255, 255, 255, 0.12);
}
.faq-question {
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}
.faq-icon {
    transition: transform 0.3s ease;
}
.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 30px;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 20px 30px;
}
.faq-answer p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 768px) {
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 0 20px 15px 20px;
    }
}

/* ======== CSS قسم "الدعوة النهائية" ======== */
.final-cta {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}
.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.final-cta p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}
.final-cta .cta-button {
    font-size: 1.2rem;
    padding: 15px 40px;
}
@media (max-width: 768px) {
    .final-cta h2 {
        font-size: 2rem;
    }
    .final-cta p {
        font-size: 1rem;
    }
}

/* ======== CSS "التذييل" ======== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px 0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-orange);
}
.footer-column p, .footer-column ul {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column ul li a:hover {
    color: var(--primary-orange);
}
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}
.social-links a:hover {
    background-color: var(--primary-orange);
    transform: translateY(-3px);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-family);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.contact-form button:hover {
    background-color: var(--accent-dark-orange);
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ======== شريط التطبيق الثابت في الأسفل للموبايل ======== */
.mobile-app-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.mobile-app-nav .app-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.7rem;
    transition: var(--transition);
    padding: 5px;
    flex: 1;
    min-width: 0;
}

.app-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.app-nav-item.active,
.app-nav-item:hover {
    color: var(--primary-orange);
}

.app-nav-item.consultation {
    color: var(--white);
    background-color: var(--primary-orange);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-top: -20px;
    box-shadow: 0 4px 10px rgba(214, 0, 0, 0.4);
    flex: none;
}

.app-nav-item.consultation i {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.app-nav-item.consultation span {
    display: none;
}

.app-nav-item.contact {
    color: #25d366;
}

.app-nav-item.contact:hover {
    color: #128C7E;
}

@media (max-width: 768px) {
    .footer {
        display: none;
    }
    .mobile-app-nav {
        display: block;
    }
}

/* ======== CSS زر الواتساب العائم ======== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}