/* ==========================================
   Google Fonts Import - IBM Plex Sans Arabic
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ==========================================
   Global Styles & Variables
   ========================================== */

:root {
    --primary-color: #7c3aed;
    --secondary-color: #3b82f6;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* ==========================================
   Navbar Styles
   ========================================== */

.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    transition: var(--transition);
}

.navbar .logo {
    height: 50px;
    transition: var(--transition);
}

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

.navbar-nav .nav-link {
    color: #fff !important;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ==========================================
   Wave Animation Header
   ========================================== */

.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #5b21b6 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100vw;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 1;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
    z-index: 1;
    overflow: hidden;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 120px 0 150px;
    width: 100%;
    max-width: 100%;
}

.hero-content .container {
    max-width: 100%;
}

.hero-content .row {
    margin-left: 0;
    margin-right: 0;
}

.hero-image img {
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05) rotate(1deg);
}

/* Stats Counter */
.stat-box {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: #fff;
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================
   Section Titles
   ========================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
}

.section-title.text-white {
    color: #fff !important;
}

/* ==========================================
   About Section
   ========================================== */

.about-image {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.experience-badge h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.experience-badge p {
    font-size: 0.9rem;
    margin: 0;
}

.feature-box {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-right: 4px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    transform: translateX(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-box i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-box h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0.5rem 0;
}

/* ==========================================
   Service Cards
   ========================================== */

.service-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(59, 130, 246, 0.05));
    border-top-color: #fbbf24;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h5 {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

.service-card p,
.service-card ul {
    position: relative;
    z-index: 1;
}

/* ==========================================
   Why Choose Us Cards
   ========================================== */

.why-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    transform: rotateY(180deg);
}

/* ==========================================
   Process Cards
   ========================================== */

.process-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
}

.process-number {
    position: absolute;
    top: -20px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.process-icon {
    width: 70px;
    height: 70px;
    margin: 1.5rem auto 1rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
}

/* ==========================================
   Branch Cards
   ========================================== */

.branch-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    border-top: 4px solid transparent;
}

.branch-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.branch-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.branch-icon.china {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.branch-icon.dubai {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.branch-icon.sudan {
    background: linear-gradient(135deg, #10b981, #059669);
}

.branch-icon.chad {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.branch-icon.rwanda {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.branch-card:hover .branch-icon {
    transform: scale(1.15) rotate(10deg);
}

.branch-card.coming-soon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(59, 130, 246, 0.05));
    border-style: dashed;
}

.branch-card.coming-soon .branch-icon {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.bg-purple {
    background-color: #7c3aed !important;
}

/* ==========================================
   Testimonial Cards
   ========================================== */

.testimonial-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    border-right: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
}

.stars i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #5b21b6 100%);
    position: relative;
}

.contact-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.contact-link {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: block;
}

.contact-link:hover {
    color: #c4b5fd;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: #1a1a2e;
    color: #9ca3af;
    padding: 3rem 0 1rem;
}

.footer-logo {
    height: 50px;
}

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact li {
    margin-bottom: 0.8rem;
    color: #9ca3af;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-5px);
}

/* ==========================================
   WhatsApp Button
   ========================================== */

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #20BA5A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ==========================================
   Scroll to Top Button
   ========================================== */

.scroll-top {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.4);
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.6);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding: 100px 0 150px;
    }
    
    .wave-container {
        height: 100px;
    }
    
    .waves {
        height: 100px;
        min-height: 80px;
    }
    
    .hero-content .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .stat-box {
        padding: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-box h3 {
        font-size: 1.8rem;
    }
    
    .stat-box p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 80px 0 0;
    }
    
    .hero-content {
        padding: 40px 0 120px;
        text-align: center;
    }
    
    .wave-container {
        height: 80px;
    }
    
    .waves {
        height: 80px;
        min-height: 60px;
    }
    
    .hero-content .display-3 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .hero-content .fs-5 {
        font-size: 1rem !important;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .stat-box h3 {
        font-size: 1.5rem;
    }
    
    .experience-badge {
        padding: 1rem;
        bottom: 10px;
        right: 10px;
    }
    
    .experience-badge h3 {
        font-size: 1.5rem;
    }
    
    .experience-badge p {
        font-size: 0.8rem;
    }
    
    .service-card,
    .why-card,
    .process-card,
    .branch-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }
    
    .service-icon,
    .why-icon,
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: -15px;
    }
    
    .branch-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .whatsapp-btn,
    .scroll-top {
        left: 15px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
    }
    
    .scroll-top {
        bottom: 80px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .waves {
        height: 80px;
    }
    
    .footer-logo {
        height: 40px;
    }
}

@media (max-width: 576px) {
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100% !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .logo {
        height: 40px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        text-align: right;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 70px 0 0;
    }
    
    .hero-content {
        padding: 30px 0 100px;
    }
    
    .hero-content .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .hero-content .row {
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-content .col-lg-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .wave-container {
        height: 60px;
    }
    
    .hero-content .display-3 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-content .fs-5 {
        font-size: 0.9rem !important;
    }
    
    .hero-content .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
    
    .stat-box {
        padding: 0.6rem;
    }
    
    .stat-box h3 {
        font-size: 1.3rem;
    }
    
    .stat-box p {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .feature-box,
    .service-card,
    .why-card,
    .process-card,
    .branch-card,
    .testimonial-card,
    .contact-card {
        padding: 1.5rem;
    }
    
    .service-card h5,
    .why-card h5,
    .process-card h5,
    .branch-card h5,
    .testimonial-card h6 {
        font-size: 1.1rem;
    }
    
    .service-card p,
    .why-card p,
    .process-card p,
    .branch-card p {
        font-size: 0.9rem;
    }
    
    .service-card ul {
        font-size: 0.85rem;
    }
    
    .experience-badge {
        padding: 0.8rem;
        bottom: 5px;
        right: 5px;
    }
    
    .experience-badge h3 {
        font-size: 1.3rem;
    }
    
    .experience-badge p {
        font-size: 0.7rem;
    }
    
    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 15px;
        left: 15px;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 70px;
        left: 15px;
    }
    
    .waves {
        height: 60px;
        min-height: 50px;
    }
    
    .hero-image {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .min-vh-100 {
        min-height: auto !important;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer h6 {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .hero-section {
        padding: 60px 0 0;
    }
    
    .hero-content {
        padding: 20px 0 80px;
    }
    
    .hero-content .display-3 {
        font-size: 1.5rem;
    }
    
    .hero-content .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }
    
    .stat-box {
        padding: 0.5rem;
    }
    
    .stat-box h3 {
        font-size: 1.2rem;
    }
    
    .stat-box p {
        font-size: 0.65rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .service-icon,
    .why-icon,
    .branch-icon,
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .wave-container {
        height: 50px;
    }
    
    .waves {
        height: 50px;
        min-height: 40px;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .hero-content .display-3 {
        font-size: 1.3rem;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
    }
    
    .hero-content .fs-5 {
        font-size: 0.85rem !important;
    }
    
    .stat-box {
        padding: 0.4rem;
    }
    
    .stat-box h3 {
        font-size: 1.1rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
