/* C:\laragon\www\SAQULTATEC\assets\css\style.css */

:root {
    /* Eye-friendly Soft Dark Palette (Vercel/Apple inspired UI) */
    --bg-dark: #0f172a; /* Soft Slate-900 */
    --bg-surface: #1e293b; /* Slate-800 */
    --royal-blue: #3b82f6; /* Blue-500 */
    --deep-purple: #8b5cf6; /* Violet-500 */
    --gold: #f59e0b; /* Warm Amber-500 */
    --gold-glow: rgba(245, 158, 11, 0.15);
    --text-primary: #f1f5f9; /* Off-white Slate-100 to prevent retina burn */
    --text-secondary: #94a3b8; /* Slate-400 */
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --primary: var(--accent-primary);
    --secondary: #d97706;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Particle effect */
.bg-mesh {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(29, 78, 216, 0.15), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(109, 40, 217, 0.15), transparent 40%);
    opacity: 0.8;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.4); /* More transparent for true glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle glowing border */
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(10, 15, 28, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.nav-logo {
    position: relative;
    height: 150px; 
    width: auto; 
    object-fit: contain; 
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.7)) drop-shadow(0 0 2px rgba(255,255,255,1));
    transition: all 0.3s ease;
    margin-bottom: -80px; /* Pop out effect */
    margin-top: 10px;
    z-index: 1001;
}




.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 4%;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    /* No fixed height or width constraints, allow natural size */
}



.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--accent-primary);
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.hero-img-wrapper {
    position: relative;
}
.hero-img-wrapper::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px; bottom: -20px; left: -20px;
    background: linear-gradient(135deg, var(--royal-blue), var(--deep-purple));
    border-radius: 24px;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.3;
}

/* Sponsorship Badge */
.sponsor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(29, 78, 216, 0.15);
    border: 1px solid rgba(29, 78, 216, 0.3);
    border-radius: 30px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #93c5fd;
}

/* Sections */
.section-padding {
    padding: 100px 0;
    scroll-margin-top: 180px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Cards (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s, background 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(217, 119, 6, 0.3);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

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

/* Enhanced Premium Features Section */
#about .glass-card {
    text-align: center;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#about .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(217, 119, 6, 0.02));
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#about .icon-box svg {
    width: 38px;
    height: 38px;
    stroke-width: 1.5;
}

#about .glass-card:hover .icon-box {
    transform: translateY(-10px) scale(1.1);
    background: var(--accent-primary);
    color: #111827;
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.4);
}

#about .glass-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

#about .glass-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #94a3b8;
}

#about .glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

#about .glass-card:hover::before {
    opacity: 1;
}

/* Programs Swiper */
.swiper-container {
    width: 100%;
    padding-bottom: 50px;
}

.program-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border-color: rgba(217, 119, 6, 0.5); /* Gold glow */
}

.card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-card:hover .card-img-wrap img {
    transform: scale(1.1) rotate(1deg);
}

.card-img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(17,24,39,1) 100%);
    z-index: 1;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.course-hours {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.program-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.6;
    height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.program-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.program-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    height: 70px;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructor-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}

.instructor-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

.course-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-primary);
    white-space: nowrap;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-q {
    padding: 20px 25px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-q:hover {
    background: rgba(255,255,255,0.05);
}

.faq-a {
    padding: 0 25px 20px;
    color: var(--text-muted);
    display: none;
    line-height: 1.7;
}

.faq-item.active .faq-a { display: block; }
.faq-item.active .faq-q { color: var(--accent-primary); }
.faq-icon { transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* Premium Footer */
.premium-footer {
    position: relative;
    background: var(--bg-base); /* Deep premium dark blue */
    padding: 80px 0 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.02);
    text-align: right;
    direction: rtl;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
    box-shadow: 0 0 15px var(--accent-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.brand-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
    max-width: 90%;
}

.social-wrapper {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
    border-color: var(--accent-primary);
}

.footer-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-links a svg {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    color: var(--accent-primary);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.quick-links a:hover {
    color: var(--accent-primary);
    transform: translateX(-5px);
}

.quick-links a:hover svg {
    opacity: 1;
    transform: translateX(0);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.c-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(217, 119, 6, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .c-icon {
    background: var(--accent-primary);
    color: #000;
    transform: scale(1.05);
}

.c-icon svg {
    width: 18px;
    height: 18px;
}

.c-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.c-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.c-value {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.copyright-icon {
    color: var(--accent-primary);
}

.powered-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(217, 119, 6, 0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    cursor: pointer;
}

.powered-badge:hover {
    background: rgba(217, 119, 6, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(217, 119, 6, 0.2);
    transform: translateY(-3px);
}

.p-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p-brand {
    font-weight: 900;
    color: var(--accent-primary);
    letter-spacing: 1.5px;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
}

.p-eco {
    font-size: 0.8rem;
    color: #fff;
    opacity: 0.8;
}

/* ================= RESPONSIVE OVERHAUL ================= */
/* Mobile Menu Toggle */
.mobile-menu-btn { display: none; position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 992px) {
    .nav-container { padding: 0 15px; }
    .hero-grid { gap: 30px; }
    .hero-content h1 { font-size: 2.8rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    .nav-menu { z-index: 1000; position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        font-size: 1.2rem;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 40px;
        gap: 15px;
    }
    
    .nav-actions .btn { width: 100%; margin: 0 !important; text-align: center; }

    .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 60px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { justify-content: center; flex-direction: column; gap: 15px; }
    .hero-buttons .btn { width: 100%; }
    
    .grid-3 { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-social { justify-content: center; }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .btn { padding: 12px 20px; font-size: 0.95rem; }
}


@media (max-width: 768px) {
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 10px 15px;
    }
    .logo {
        grid-column: 2; /* Centered visually */
        display: flex;
        justify-content: center;
        align-items: flex-start;
        position: static;
        margin: 0;
    }
    .mobile-menu-btn {
        grid-column: 3; /* Pushed to the left edge in RTL */
        justify-self: end;
    }
    .nav-logo {
        height: 75px;
    }
}




/* Optimized Logo Scaling on Scroll */
@media (max-width: 768px) { 
    .nav-logo { height: 120px; margin-bottom: -50px; margin-top: 5px; }
}
