/* ========================================
   إعدادات عامة
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C2BD9;
    --primary-light: #8B5CF6;
    --primary-dark: #4C1D95;
    --primary-gradient: linear-gradient(135deg, #6C2BD9, #8B5CF6);
    --primary-gradient-dark: linear-gradient(135deg, #4C1D95, #6C2BD9);
    --secondary: #00D4FF;
    --accent: #FF2E63;
    --gold: #FFD700;
    --gold-gradient: linear-gradient(135deg, #FFD700, #FFA500);
    --purple-light: #A78BFA;
    --purple-bg: #F3F0FF;
    --white: #ffffff;
    --gray-light: #f8f6ff;
    --gray: #e5e0f0;
    --gray-dark: #2D1B4E;
    --text-muted: #7C6B9E;
    --shadow: 0 10px 40px rgba(108, 43, 217, 0.15);
    --shadow-hover: 0 20px 60px rgba(108, 43, 217, 0.25);
    --shadow-glow: 0 0 40px rgba(108, 43, 217, 0.3);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--gray-light);
    color: var(--gray-dark);
    direction: rtl;
    line-height: 1.8;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* ===== الهيدر ===== */
.header {
    background: var(--primary-gradient-dark);
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(108, 43, 217, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.logo span {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo small {
    font-size: 11px;
    opacity: 0.7;
    display: block;
    font-weight: 300;
    color: var(--purple-light);
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--gold); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-btn:hover {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    transform: translateY(-2px) scale(1.1);
}

.social-btn.whatsapp:hover {
    background: #25d366;
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #4C1D95, #6C2BD9, #8B5CF6);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08), transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 5s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 7s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.hero h1 {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 15px;
}

.hero h1 .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 25px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.pulse {
    animation: pulseBtn 2s ease-in-out infinite;
}

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 4px 40px rgba(255, 215, 0, 0.6); }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--gold-gradient);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 30px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 13px;
    opacity: 0.7;
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px rgba(108, 43, 217, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== Universities ===== */
.universities {
    padding: 80px 0;
    background: var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.section-header h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
}

.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.university-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(108, 43, 217, 0.05);
}

.university-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.uni-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.uni-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.university-card:hover .uni-image img {
    transform: scale(1.05);
}

.uni-type {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
}

.uni-type.private { background: var(--accent); }
.uni-type.public { background: var(--secondary); }

.uni-content {
    padding: 24px;
}

.uni-content h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 5px;
}

.uni-location {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.uni-location i { color: var(--secondary); }

.uni-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.uni-majors-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.major-tag {
    background: var(--purple-bg);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(108, 43, 217, 0.05);
}

.major-tag.more {
    background: var(--primary);
    color: var(--white);
}

.uni-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary-small {
    padding: 8px 20px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary-small:hover {
    transform: translateX(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #25d366;
    color: var(--white);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-small:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

/* ===== Majors List ===== */
.majors-list {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px dashed var(--gray);
}

.majors-list h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 12px;
}

.majors-grid-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.major-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--purple-bg);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.major-item:hover {
    background: var(--primary);
    color: var(--white);
}

.major-item .major-icon {
    font-size: 20px;
}

.major-item .major-info {
    display: flex;
    flex-direction: column;
}

.major-item .major-info strong {
    font-size: 14px;
}

.major-item .major-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.major-item:hover .major-info span {
    color: rgba(255,255,255,0.7);
}

.btn-consult {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #25d366;
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.btn-consult:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.4);
}

/* ===== Services ===== */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--purple-bg);
    padding: 30px 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.service-icon { font-size: 44px; margin-bottom: 12px; display: block; }
.service-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14px; }

/* ===== Testimonials ===== */
.testimonials {
    padding: 80px 0;
    background: var(--gray-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-stars { font-size: 20px; color: var(--gold); margin-bottom: 12px; }
.testimonial-card p { font-size: 15px; color: var(--gray-dark); margin-bottom: 15px; line-height: 1.7; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.testimonial-author h4 { font-size: 16px; color: var(--primary); }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }

/* ===== Contact ===== */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: var(--purple-bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow);
}

.contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item h4 { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.contact-item a { font-size: 16px; color: var(--primary); font-weight: 500; transition: var(--transition); }
.contact-item a:hover { color: var(--secondary); }

.contact-form {
    background: var(--purple-bg);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form h3 { font-size: 22px; color: var(--primary); margin-bottom: 5px; }
.contact-form p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.contact-form .form-group { margin-bottom: 16px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(108, 43, 217, 0.1);
}

.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-about img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    margin-bottom: 15px;
}

.footer-about h3 {
    font-size: 22px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.footer-about p { opacity: 0.6; font-size: 15px; line-height: 1.8; margin-bottom: 20px; }

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    transition: var(--transition);
    font-size: 18px;
}

.social-links a:hover {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-links h4 { font-size: 18px; font-weight: 700; margin-bottom: 15px; color: var(--gold); }
.footer-links a { display: block; padding: 5px 0; opacity: 0.6; transition: var(--transition); font-size: 14px; }
.footer-links a:hover { opacity: 1; padding-right: 10px; color: var(--gold); }
.footer-links a i { margin-left: 8px; width: 20px; }

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
    opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 25px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image img { max-width: 350px; }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .majors-grid-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }
    .nav.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 16px; }
    .hero-stats { gap: 15px; }
    .stat-number { font-size: 22px; }
    .universities-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
}

@media (max-width: 480px) {
    .logo span { font-size: 17px; }
    .logo small { font-size: 10px; }
    .hero h1 { font-size: 26px; }
    .contact-form { padding: 20px; }
}