* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a2332;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --light-gray: #ecf0f1;
    --silver: #bdc3c7;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --gradient: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(26, 35, 50, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-sub {
    font-size: 12px;
    color: var(--text-light);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient);
    overflow: hidden;
    margin-top: 90px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 60px 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
    position: relative;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--silver);
}

.hero-description {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: var(--light-gray);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.6);
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--silver);
    bottom: 20%;
    left: 15%;
    animation: float 8s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Main Section */
.services-main {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
}

.service-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Additional Services Section */
.services-additional {
    background: var(--light-gray);
}

.services-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.services-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
}

.services-slider::-webkit-scrollbar {
    display: none;
}

.service-slide {
    min-width: 280px;
    background: var(--white);
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-slide:hover {
    transform: scale(1.05);
}

.service-slide .service-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.service-slide h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-slide p {
    color: var(--text-light);
    font-size: 15px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    right: -25px;
}

.slider-btn.next {
    left: -25px;
}

/* Detailed Services Section */
.services-detailed {
    background: var(--white);
}

.detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.detailed-card {
    background: var(--gradient);
    padding: 40px 30px;
    border-radius: 20px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.detailed-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: var(--transition);
}

.detailed-card:hover::before {
    top: -60%;
    right: -60%;
}

.detailed-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 15px;
    opacity: 0.8;
}

.detailed-card h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.detailed-card p {
    line-height: 1.8;
    opacity: 0.9;
}

/* Branches Section - Updated */
.branches {
    background: var(--light-gray);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.branch-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
    overflow: visible; /* تغيير من hidden إلى visible */
}

.branch-card.main-branch {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, var(--white) 100%);
}

.branch-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.branch-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.branch-icon {
    font-size: 70px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.branch-card:hover .branch-icon {
    transform: scale(1.15) rotate(5deg);
}

.branch-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.branch-card p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 20px;
}

.branch-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--light-gray);
}

.branch-details span {
    display: inline-block;
    color: var(--text-light);
    font-size: 15px;
    padding: 8px 15px;
    background: var(--light-gray);
    border-radius: 10px;
}

/* Contact Section - Fixed Icon Issue */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden; /* الاحتفاظ بـ hidden هنا */
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: right 0.4s ease;
    z-index: 0;
}

.info-card:hover::before {
    right: 0;
}

.info-card:hover {
    color: var(--white);
    transform: translateX(-5px);
}

/* تحديد z-index للمحتوى */
.info-card > * {
    position: relative;
    z-index: 1;
}

.info-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block; /* تغيير من block */
    transition: var(--transition);
    transform-origin: center;
}

.info-card:hover .info-icon {
    transform: scale(1.2) rotate(10deg);
    /* إزالة أي translateY أو translateX */
}

.info-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: var(--transition);
}

.info-card:hover h4 {
    color: var(--white);
}

.info-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    word-break: break-word;
}

.info-card:hover a {
    color: var(--white);
}

.info-card p {
    color: var(--text-light);
    margin: 0;
    transition: var(--transition);
}

.info-card:hover p {
    color: var(--white);
}

/* Contact Form */
.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--silver);
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--gradient);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--silver);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    color: var(--silver);
}

.footer-section ul li a {
    color: var(--silver);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--silver);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 90px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 0;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .detailed-grid {
        grid-template-columns: 1fr;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .slider-btn.prev {
        right: -10px;
    }

    .slider-btn.next {
        left: -10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .logo-main {
        font-size: 20px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .service-slide {
        min-width: 240px;
    }
}    

/* ====================================
   Beautiful Notification System
   ==================================== */

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-overlay.active {
    opacity: 1;
}

.notification-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-card.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.notification-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

.notification-success .notification-icon-wrapper {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.notification-error .notification-icon-wrapper {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.notification-icon {
    width: 30px;
    height: 30px;
    color: var(--white);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.notification-message {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.notification-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--light-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.notification-close:hover {
    background: var(--silver);
    transform: rotate(90deg);
}

.notification-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-dark);
}

/* Success Animation */
.notification-success .notification-icon-wrapper {
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Error Animation */
.notification-error .notification-icon-wrapper {
    animation: errorShake 0.6s ease-out;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Loading State for Button */
.btn-primary:disabled {
    cursor: not-allowed;
    position: relative;
}

.btn-primary:disabled::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 20px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: btnLoading 1s linear infinite;
}

@keyframes btnLoading {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .notification-card {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .notification-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .notification-icon {
        width: 25px;
        height: 25px;
    }
    
    .notification-title {
        font-size: 20px;
    }
    
    .notification-message {
        font-size: 14px;
    }
}

/* Dark Mode Support */
.dark-mode .notification-card {
    background: #2a2a2a;
    color: var(--white);
}

.dark-mode .notification-title {
    color: var(--white);
}

.dark-mode .notification-close {
    background: #3a3a3a;
}

.dark-mode .notification-close svg {
    color: var(--white);
}