@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --gold-primary: #D4AF37;
    --gold-light: #F4E5C3;
    --gold-dark: #B8941E;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-gray: #666666;
    --navy-dark: #0a1f44;
    --navy-medium: #1b3a70;
}

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

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #0040ca , #000000 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   Skip to Content (Accessibility)
   ============================================ */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--gold-dark);
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #0a1628;
    border-radius: 18px !important;
}

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

}

/* Logo Styling */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.3em;
    transition: all 0.3s ease;
}

.nav-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    transition: transform 0.3s ease;
}

.nav-logo a:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1em;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.nav-links a.login-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--white);
    font-weight: 700;
    padding: 12px 25px;
}

.nav-links a.login-btn:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
}

.nav-links a.logout-btn {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: var(--white);
}

.nav-links a.logout-btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545) !important;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    padding: 5px 9px;
    border-radius: 50%;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.6);
    display: none;
}

.notification-badge.active {
    display: block;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 71, 87, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 5px 20px rgba(255, 71, 87, 0.8);
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
}

    /* أيقونات التواصل الثابتة */
    .social-fixed {
        position: fixed;
        bottom: 100px;
        left: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        z-index: 1000;
    }

    .social-fixed a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        color: white;
        font-size: 26px;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        transition: all 0.3s ease;
        position: relative;
    }

    .social-fixed a::before {
        content: attr(title);
        position: absolute;
        right: 70px;
        background: rgba(12, 35, 74, 0.95);
        color: white;
        padding: 8px 15px;
        border-radius: 8px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        font-size: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .social-fixed a:hover::before {
        opacity: 1;
    }

    .social-fixed a:hover {
        transform: scale(1.15);
        box-shadow: 0 6px 15px rgba(0,0,0,0.6);
    }

    .whatsapp {
        background: linear-gradient(135deg, #25D366, #128C7E);
    }

    .facebook {
        background: linear-gradient(135deg, #3b5998, #2d4373);
    }

    .instagram {
        background: linear-gradient(135deg, #E1306C, #C13584);
    }

    .tiktok {
        background: linear-gradient(135deg, #000000, #EE1D52);
    }

    .twitter {
        background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    }


/* ============================================
   Footer
   ============================================ */
footer {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    color: var(--white);
    padding: 60px 30px 30px;
    margin-top: 80px;
    border-top: 3px solid var(--gold-primary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--gold-primary);
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-section p,
.footer-section li {
    line-height: 2;
    opacity: 0.9;
    margin-bottom: 12px;
}

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

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: var(--gold-primary);
    padding-right: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-radius: 50%;
    color: var(--gold-primary);
    font-size: 1.4em;
    transition: all 0.3s;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 968px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
        margin-top: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

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

@media (max-width: 480px) {
    .nav-logo a {
        font-size: 1.1em;
    }

    .nav-logo img {
        width: 50px;
        height: 50px;
    }

    .hero-section {
        padding: 50px 20px;
    }

    .hero-content h1 {
        font-size: 1.7em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .social-fixed {
        left: 10px;
        bottom: 80px;
    }

    .social-fixed a {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}