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

:root {
    /* Brand Colors - Inspired by mostafa.jpg */
    --primary: #0b666a;
    --primary-light: #35a29f;
    --primary-dark: #071952;
    --accent: #97feed;
    --text: #0f172a;
    --text-muted: #64748b;
    --bg: #ffffff;
    --surface: #f8fafc;
    --border: rgba(15, 23, 42, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Layout */
    --container-width: 1400px;
    --section-spacing: 120px;
    --header-height: 125px;
    --radius-full: 9999px;
    --radius-xl: 48px;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    
    /* Shadows */
    --shadow-premium: 0 20px 50px -12px rgba(11, 102, 106, 0.15);
    --shadow-floating: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg: #020617;
    --surface: #0f172a;
    --border: rgba(255, 255, 255, 0.1);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.8);
}

[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .hub-card, 
[data-theme="dark"] .course-card, 
[data-theme="dark"] .student-card, 
[data-theme="dark"] .feature-card, 
[data-theme="dark"] .comp-box, 
[data-theme="dark"] .faq-item, 
[data-theme="dark"] .pricing-card, 
[data-theme="dark"] .assess-card, 
[data-theme="dark"] .blog-card,
[data-theme="dark"] .material-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .hub-content p,
[data-theme="dark"] .course-body p,
[data-theme="dark"] .section-desc,
[data-theme="dark"] .footer-desc {
    color: var(--text-muted);
}

[data-theme="dark"] .faq-trigger { color: white; }
[data-theme="dark"] .faq-content { color: var(--text-muted); }

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    z-index: 9999;
}

/* Blueprint Grid Background */
.grid-bg {
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* --- Premium Components --- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-premium);
}

.btn-primary:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
    box-shadow: 0 25px 50px -12px rgba(11, 102, 106, 0.25);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.btn-small {
    padding: 12px 24px;
    font-size: 14px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(11, 102, 106, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 32px;
}

.section-desc {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.section-header-flex .section-desc {
    max-width: 400px;
    margin: 0;
}

.section-header-flex .section-title {
    margin-bottom: 0;
}

/* --- Header --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    height: 105px;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

nav ul a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
}

.mobile-toggle:hover {
    transform: scale(1.1);
}

/* --- Mobile Menu Overlay --- */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 2000;
    padding: 30px 40px;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text);
    cursor: pointer;
}

.mobile-nav-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-links a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
}

.mobile-auth {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 40px;
}

/* --- Hero Section --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(11, 102, 106, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(151, 254, 237, 0.05), transparent);
    padding-top: 140px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 88px);
    margin-bottom: 32px;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--accent);
    z-index: -1;
    opacity: 0.5;
}

.hero p {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    gap: 60px;
}

.stat-card .val {
    display: block;
    font-size: 40px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .lbl {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
}

.hero-image-stack {
    position: relative;
    z-index: 1;
}

.main-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-floating);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-floating);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.card-1 { top: 10%; right: -30px; }
.card-2 { bottom: 10%; left: -30px; animation-delay: -3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Features (The Secret) --- */

.features {
    background: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 60px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-floating);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(11, 102, 106, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 32px;
}

.feature-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 18px;
    color: var(--text-muted);
}

/* --- Results (Hall of 800s) --- */

.results {
    overflow: hidden;
}

.results-scroll {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    padding-bottom: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.results-scroll::-webkit-scrollbar {
    height: 8px;
}

.results-scroll::-webkit-scrollbar-track {
    background: rgba(11, 102, 106, 0.05);
    border-radius: 100px;
}

.results-scroll::-webkit-scrollbar-thumb {
    background: rgba(11, 102, 106, 0.25);
    border-radius: 100px;
    transition: background 0.3s ease;
}

.results-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.student-card {
    min-width: 350px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.4s;
    scroll-snap-align: start;
}

.student-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.student-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 24px;
    object-fit: cover;
    border: 4px solid var(--accent);
}

.student-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.score-badge {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 32px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    margin-top: 20px;
}

/* --- Comparison Section --- */

.comparison {
    background: var(--primary-dark);
    color: white;
}

.comparison .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 64px;
}

.comp-box {
    padding: 60px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-box.premium {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);
    position: relative;
    overflow: hidden;
}

.comp-box.premium::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 8px 40px;
    font-size: 12px;
    font-weight: 900;
    transform: rotate(45deg);
}

.comp-box h3 {
    font-size: 32px;
    margin-bottom: 40px;
}

.comp-list {
    list-style: none;
}

.comp-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    margin-bottom: 24px;
}

.comp-list i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.check i { background: var(--accent); color: var(--primary-dark); }
.cross i { background: rgba(255, 255, 255, 0.1); color: white; opacity: 0.5; }

/* --- Hub Grid --- */

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

.hub-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.4s;
}

.hub-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-floating);
}

.hub-thumb {
    height: 240px;
    background: var(--primary-dark);
    display: block;
    position: relative;
    overflow: hidden;
}

.hub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hub-content {
    padding: 32px;
}

.hub-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.hub-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* --- FAQ --- */

.faq-stack { 
    max-width: 800px; 
    margin: 0 auto; 
}

.faq-item { 
    background: white; 
    border-radius: var(--radius-md); 
    margin-bottom: 16px; 
    border: 1px solid var(--border); 
    overflow: hidden; 
}

.faq-trigger { 
    padding: 24px 32px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 18px; 
}

.faq-trigger i { 
    transition: 0.3s; 
}

.faq-content { 
    padding: 0 32px; 
    max-height: 0; 
    overflow: hidden; 
    transition: 0.4s ease; 
    color: var(--text-muted); 
}

.faq-item.active .faq-content { 
    padding-bottom: 24px; 
    max-height: 200px; 
}

.faq-item.active .faq-trigger i { 
    transform: rotate(180deg); 
    color: var(--primary); 
}

/* --- Course Catalog --- */

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

.course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.4s;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-floating);
}

.course-thumb {
    height: 240px;
    position: relative;
    background: var(--primary-dark);
    overflow: hidden;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 11px;
    z-index: 2;
}

.course-body {
    padding: 32px;
}

.course-body h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.course-body p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.price {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

/* --- Footer --- */

footer {
    background: #020617;
    color: white;
    padding: 100px 0 40px;
}

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

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 24px;
    display: block;
    color: white;
    text-decoration: none;
}

.footer-desc {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 32px;
}

.footer-links h4 {
    margin-bottom: 32px;
    font-size: 20px;
}

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

.footer-links ul li {
    margin-bottom: 16px;
}

.footer-links ul a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul a:hover {
    color: white;
}

.copyright {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Responsive */

@media (max-width: 1300px) {
    .hero-grid, .comparison-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .feature-card {
        padding: 40px;
    }
    
    .hero {
        text-align: center;
        padding-top: 180px;
    }
    
    .hero p, .hero-actions, .hero-stats {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1000px) {
    .desktop-nav, .desktop-only { display: none; }
    .mobile-toggle { display: block; }
    .admin-sidebar { display: none; }
    .admin-content { padding: 40px 20px !important; }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 18px; }
    .hero-stats { flex-direction: column; gap: 30px; }
    .section-spacing { --section-spacing: 80px; }
    .section-title { font-size: 32px; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .logo img {
        height: 32px;
        width: auto;
    }
    
    .mobile-menu {
        padding: 20px 24px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hub-grid, .courses-grid, .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .results-scroll {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
    }

    .student-card {
        min-width: 100%;
    }

    .comp-box {
        padding: 30px;
    }

    .comp-list li {
        font-size: 16px;
    }

    .cta div {
        padding: 40px 24px !important;
    }

    .cta h2 {
        font-size: 32px !important;
    }

    .floating-card {
        display: none;
    }

    .section-header-flex .section-desc {
        max-width: 100%;
    }

    .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .responsive-grid > div {
        padding: 40px 24px !important;
    }

    /* Page Specific Mobile Fixes */
    .results-grid { grid-template-columns: 1fr !important; }
    .courses-grid { grid-template-columns: 1fr !important; }
    .hub-grid { grid-template-columns: 1fr !important; }
    
    .insta-grid { 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 4px !important; 
    }
    
    .option-grid {
        grid-template-columns: 1fr !important;
    }

    .calc-step h2 { font-size: 24px !important; }
    .res-box { padding: 40px 20px !important; }
    .res-val { font-size: 42px !important; }

    /* LMS Fixes */
    .dashboard .dash-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .course-progress-card { flex-direction: column; gap: 20px; padding: 24px !important; }
    .course-progress-thumb { width: 100% !important; height: 120px !important; }
    
    .course-header-meta { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* Landscape Mobile Fixes */
@media (max-height: 500px) {
    header { height: 60px !important; }
    .hero { padding-top: 100px; }
}


