/* Malitha Training Solutions - Static Site CSS */
/* Works on any HTML/CSS/JS only hosting */

:root {
    --bg: #0a0a1a;
    --bg-light: #112240;
    --bg-lighter: #1a1a3e;
    --accent: #00d4aa;
    --accent-light: #64ffda;
    --text: #e0e0e0;
    --text-muted: #8892b0;
    --border: #233554;
    --danger: #ff6b6b;
    --warning: #ffd93d;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg) 100%);
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.logo-accent { color: var(--text); font-weight: 400; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.cta-nav {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
}

.cta-nav:hover { background: var(--accent-light); }

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at center, var(--bg-lighter) 0%, var(--bg) 70%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-badges { margin-bottom: 30px; }

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--border);
    color: var(--accent-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 4px;
}

/* Buttons */
.cta-primary, .cta-secondary, .cta-small {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-primary {
    background: var(--accent);
    color: var(--bg);
}

.cta-primary:hover { background: var(--accent-light); transform: translateY(-2px); }

.cta-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.cta-secondary:hover { background: var(--accent); color: var(--bg); }

.cta-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.cta-small.outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.cta-small.outline:hover { background: var(--accent); color: var(--bg); }

.center-cta { text-align: center; margin-top: 40px; }

/* Stats */
.stats { padding: 40px 0; background: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2rem;
    color: var(--accent);
}

.stat span { font-size: 0.9rem; color: var(--text-muted); }

/* Sections */
section { padding: 60px 0; }

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #ccd6f6;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

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

.card {
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card:hover { transform: translateY(-5px); border-color: var(--accent); }

.card-header { padding: 24px 24px 0; }

.card-header h3 { color: var(--accent); margin: 10px 0 8px; font-size: 1.3rem; }

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

.card-body { padding: 16px 24px; flex: 1; }

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-light);
    margin: 10px 0;
}

.meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }

.module-list {
    list-style: none;
    margin-top: 12px;
}

.module-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.module-list li:last-child { border-bottom: none; }

.card-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Feature cards */
.feature-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
}

.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }

.feature-card h3 { color: var(--accent); margin-bottom: 10px; }

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

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-section h2 { margin-bottom: 12px; }

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

/* Footer */
footer {
    padding: 50px 0 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

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

.footer-grid h4 { color: var(--accent); margin-bottom: 12px; }

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

.footer-grid a { color: var(--text-muted); text-decoration: none; }

.footer-grid a:hover { color: var(--accent); }

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Forms */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-status {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.form-status.success { background: rgba(0, 212, 170, 0.1); color: var(--accent); border: 1px solid var(--accent); display: block; }
.form-status.error { background: rgba(255, 107, 107, 0.1); color: var(--danger); border: 1px solid var(--danger); display: block; }

/* About page */
.about-hero { padding: 60px 0; text-align: center; }

.about-hero h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline {
    border-left: 2px solid var(--accent);
    margin-left: 20px;
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-item h3 { color: var(--accent); margin-bottom: 6px; }

.timeline-item p { color: var(--text-muted); }

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 { color: var(--accent); margin-bottom: 16px; }

.contact-info p { color: var(--text-muted); margin-bottom: 12px; }

.contact-info a { color: var(--accent); text-decoration: none; }

/* Course detail */
.course-detail { padding: 40px 0; }

.course-header { margin-bottom: 30px; }

.course-header h1 {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.course-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.course-meta span {
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.course-section { margin-bottom: 30px; }

.course-section h2 {
    text-align: left;
    font-size: 1.3rem;
    color: var(--accent-light);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.course-section ul { margin-left: 20px; color: var(--text-muted); }

.course-section li { margin-bottom: 8px; }

.course-sidebar {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 10px;
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}

.course-sidebar .price { font-size: 2rem; margin-bottom: 16px; }

.course-sidebar .cta-primary { width: 100%; text-align: center; margin-bottom: 10px; }

/* Loading / Error */
.loading { text-align: center; color: var(--text-muted); padding: 40px; }
.error { text-align: center; color: var(--danger); padding: 40px; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--accent);
    }
    .nav-links.show { display: flex; }
    .nav-toggle { display: flex; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .course-meta { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .grid { grid-template-columns: 1fr; }
}
