/* ==========================================
   BASE STYLES - NimbusLearn LMS
   ========================================== */

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

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

:root {
    /* Colors - NimbusLearn brand */
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --primary-rgb: 16, 185, 129;
    --accent: #0d9488;
    --accent-rgb: 13, 148, 136;
    
    /* Backgrounds — light mint */
    --bg-dark: #eef3f1;
    --bg-dark-card: #ffffff;
    --bg-dark-hover: #e4ede9;
    --bg-lighter: #f5f9f7;
    
    /* Text — dark on light */
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --text-muted: #a1a1aa;
    
    /* Borders — light */
    --border-color: #e4e4e7;
    --border-light: rgba(16, 185, 129, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #10B981 0%, #0d9488 100%);
    --gradient-dark: linear-gradient(180deg, #eef3f1 0%, #e4ede9 100%);
    --gradient-subtle: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.05) 100%);
    
    /* Shadows — softer for light theme */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

#header-container {
    position: relative;
    width: 100%;
    z-index: 1000;
    flex-shrink: 0;
}

main {
    flex: 1;
    width: 100%;
}

#footer-container {
    width: 100%;
    margin-top: auto;
    position: relative;
    display: block;
    flex-shrink: 0;
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

::selection {
    background: rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}

/* ==========================================
   PRELOADER
   ========================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-container { text-align: center; }

.loader-logo {
    width: 60px;
    height: 60px;
    animation: breathe 2s ease-in-out infinite;
}

.loader-text {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(238, 243, 241, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(238, 243, 241, 0.95);
    border-bottom: 1px solid var(--border-color);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.logo-wrapper:hover { transform: translateX(3px); }

.logo-svg {
    width: 38px;
    height: 38px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-glow:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* ==========================================
   SECTION LAYOUT
   ========================================== */

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

.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
    background: rgba(16, 185, 129, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   PAGE HERO (Sub-pages)
   ========================================== */

.page-hero {
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    background: var(--bg-dark);
}

.page-hero .hero-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================
   BACKGROUND EFFECTS
   ========================================== */

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.circuit-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    background-size: 100% 100%;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta {
    background: var(--bg-dark-card);
    margin-bottom: 0;
}

.cta-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
    font-weight: 800;
}

.cta-content > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    position: relative;
    width: 100%;
    background: #dfe9e5;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 100px;
    overflow: visible;
    display: block;
}

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: auto;
    overflow: visible;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    overflow: visible;
    width: 100%;
}

.footer-brand { max-width: 320px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo span .brand-highlight {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-column { min-width: 0; }

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li { margin-bottom: 8px; }

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
    font-size: 14px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    color: var(--text-muted);
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.fade-in { animation: fadeIn 0.8s ease forwards; }
.fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #eef3f1;
        flex-direction: column;
        padding: 40px 20px;
        transition: left 0.3s ease;
    }

    .nav-menu.active { left: 0; }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-actions button { width: 100%; }
    .nav-toggle { display: flex; }
    .section { padding: 60px 0; }
    .section-title { font-size: 32px; }

    .cta-wrapper { padding: 60px 30px; }
    .cta-buttons { flex-direction: column; }
    .cta-content h2 { font-size: 28px; }

    .page-hero {
        padding: 110px 0 50px;
    }

    .section-subtitle {
        font-size: 16px;
    }
    
    .page-subtitle {
        font-size: 15px;
    }

    .footer { padding: 40px 0 20px; margin-top: 60px; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-badges { justify-content: center; }
}

@media (max-width: 480px) {
    .section-title { font-size: 28px; }
    .cta-content h2 { font-size: 24px; }
    .page-title { font-size: 32px; }

    .page-hero {
        padding: 100px 0 40px;
    }

    .cta-wrapper {
        padding: 50px 20px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .video-play-btn {
        width: 56px;
        height: 56px;
    }
}

/* ===== DEMO VIDEO PLACEHOLDER ===== */
.demo-video { background: var(--bg-dark); }

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 148, 136, 0.08) 100%);
    border: 2px dashed rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.video-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
}

.video-play-btn svg {
    margin-left: 3px;
}

.video-coming-soon {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== SCREENSHOT PLACEHOLDERS ===== */
.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(13, 148, 136, 0.06) 100%);
    border: 2px dashed rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.screenshot-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-placeholder span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
