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

:root {
    --primary-blue: #ffffff; /* تم إزالة السماوي واستبداله بالأبيض */
    --blue-hover: #ffffff;
    --bg-dark: #0a1128; /* العودة للكحلي الغامق */
    --glass-bg: rgba(255, 255, 255, 0.005);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-light: #ffffff; /* العودة للنص الأبيض */
    --text-muted: #94a3b8;
    --glow-blue: 0 10px 30px rgba(255, 255, 255, 0.05);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

/* Pulsing Watermark Fixed Logo */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    background-image: url('6.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
    animation: pulseLogo 6s ease-in-out infinite;
    filter: brightness(10) contrast(1.2); /* استعادة الفلتر الأبيض للعلامة المائية */
}

/* Background Image behind Watermark */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('15627853.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1; /* تقليل الشفافية قليلاً لأنها أصبحت تغطي الشاشة بالكامل */
    z-index: -2;
    filter: contrast(0.7); /* تباين 70% كما هو مطلوب */
}

@keyframes pulseLogo {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.03; }
    50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.08; }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll Reveal */
.glass-card, .section-header, .hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.glass-card.active, .section-header.active, .hero-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glass Effect */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 40px 30px;
    transition: var(--transition);
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--glow-blue);
    transform: translateY(-5px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.85); /* العودة لخلفية الهيدر الداكنة */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(10) contrast(1.2); /* استعادة الفلتر الأبيض للشعار */
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--blue-hover);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.btn-direct-contact, .btn-system-login {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-direct-contact:hover, .btn-system-login:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: transparent;
    padding: 120px 20px 60px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    max-width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.3;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Section Settings */
.section {
    padding: 80px 0;
}

.section-tag {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

/* About Section */
.about-full-text {
    max-width: 900px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: justify;
}

/* Practice Grid */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.practice-card {
    text-align: center;
}

.practice-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.practice-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.practice-icon {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.8;
}

.item-num {
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 900;
    opacity: 0.3;
    margin-bottom: 15px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.team-card {
    text-align: center;
}

.team-card h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.role {
    color: var(--text-muted);
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

.education p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.education i {
    color: var(--text-light);
    opacity: 0.6;
}

.simple-card {
    text-align: center;
    justify-content: center;
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.partner-item {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.partner-logo-img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(300%);
}

/* Branches */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.branch-card {
    text-align: center;
}

.branch-icon {
    font-size: 2.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.8;
}

.branch-detail {
    margin-top: 15px;
    color: var(--text-muted);
}

.coming-soon {
    margin-top: 15px;
    color: var(--text-light);
    font-weight: 700;
    opacity: 0.8;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    background: rgba(10, 17, 40, 0.5); /* العودة للفوتر الداكن */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-logo {
    max-height: 40px;
    filter: brightness(10) contrast(1.2); /* استعادة الفلتر الأبيض */
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--text-light);
}

/* Responsive */
/* Tiny Responsive Header */
@media(max-width: 992px) {
    header {
        padding: 2px 0;
    }
    .nav-container {
        display: grid;
        grid-template-areas: 
            "logo actions"
            "links links";
        grid-template-columns: 1fr auto;
        gap: 4px;
        padding: 4px 10px;
        align-items: center;
    }
    .logo {
        grid-area: logo;
        gap: 5px;
    }
    .brand-logo {
        max-height: 25px;
    }
    .brand-name {
        font-size: 0.75rem;
    }
    .nav-actions {
        grid-area: actions;
        gap: 5px;
    }
    .btn-direct-contact, .btn-system-login {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    .nav-links {
        grid-area: links;
        padding: 2px 0;
        gap: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links a {
        font-size: 0.7rem;
    }
}

@media(max-width: 480px) {
    .brand-logo {
        max-height: 35px;
    }
    .brand-name {
        font-size: 0.85rem;
    }
    .nav-links a {
        font-size: 0.75rem;
    }
}
