/* ============================================================
   SkillAI Academy — AI Digital Marketing Training | Stylesheet
   ============================================================ */
:root {
    --bg: #0b0f1a;
    --bg-2: #0f1526;
    --card: #151d31;
    --card-2: #1a2440;
    --border: #26314f;
    --primary: #7c3aed;
    --primary-2: #06b6d4;
    --accent: #f59e0b;
    --text: #e8ecf5;
    --muted: #94a3c0;
    --success: #22c55e;
    --error: #ef4444;
    --radius: 14px;
    --shadow: 0 10px 40px rgba(0, 0, 0, .45);
    --grad: linear-gradient(135deg, #7c3aed, #06b6d4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.narrow { width: min(760px, 92%); }
.center { text-align: center; margin-top: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: .65rem 1.4rem; border-radius: 10px;
    font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid transparent;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(124, 58, 237, .35); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(124, 58, 237, .5); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary-2); }
.btn-light { background: #fff; color: #1a1033; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; background: var(--card-2); border: 1px solid var(--border); }
.btn-sm:hover { border-color: var(--primary-2); }
.btn-block { display: block; width: 100%; text-align: center; margin-bottom: .7rem; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11, 15, 26, .85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.logo { font-family: 'Space Grotesk'; font-size: 1.35rem; font-weight: 700; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo em { font-style: normal; font-size: .85rem; color: var(--muted); margin-left: .4rem; font-weight: 500; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-menu a { font-size: .95rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu .btn-nav { color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------- Flash messages ---------- */
.flash {
    width: min(1180px, 92%); margin: 1rem auto 0; padding: .9rem 1.2rem;
    border-radius: 10px; font-size: .95rem; border: 1px solid;
}
.flash ul { padding-left: 1.2rem; list-style: disc; }
.flash-success { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .4); color: #86efac; }
.flash-error { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); color: #fca5a5; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4rem; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(600px 300px at 15% 20%, rgba(124, 58, 237, .18), transparent 60%),
        radial-gradient(500px 280px at 85% 70%, rgba(6, 182, 212, .14), transparent 60%);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; }
.badge {
    display: inline-block; background: rgba(245, 158, 11, .12); color: var(--accent);
    border: 1px solid rgba(245, 158, 11, .35); padding: .35rem .9rem; border-radius: 100px;
    font-size: .82rem; font-weight: 600; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 540px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.stat strong { display: block; font-family: 'Space Grotesk'; font-size: 1.7rem; }
.stat span { color: var(--muted); font-size: .85rem; }

.hero-visual { position: relative; height: 420px; }
.orb {
    position: absolute; inset: 12% 8%; border-radius: 50%;
    background: conic-gradient(from 180deg, #7c3aed, #06b6d4, #f59e0b, #7c3aed);
    filter: blur(60px); opacity: .45; animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
    position: absolute; background: rgba(21, 29, 49, .9); border: 1px solid var(--border);
    border-radius: 12px; padding: .8rem 1.1rem; font-size: .9rem; font-weight: 600;
    box-shadow: var(--shadow); animation: float 5s ease-in-out infinite;
}
.fc1 { top: 8%; left: 5%; animation-delay: 0s; }
.fc2 { top: 30%; right: 0; animation-delay: 1.2s; }
.fc3 { bottom: 22%; left: 0; animation-delay: 2s; }
.fc4 { bottom: 5%; right: 12%; animation-delay: .6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--border); padding: 1.6rem 0; background: var(--bg-2); }
.trust-strip p { text-align: center; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.brands { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.brands span { font-family: 'Space Grotesk'; font-weight: 600; font-size: 1.15rem; color: #475569; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.kicker { color: var(--primary-2); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .5rem 0 .6rem; }
.section-head p { color: var(--muted); }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }
.course-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow); }
.course-top { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { font-size: .72rem; font-weight: 700; padding: .28rem .7rem; border-radius: 100px; text-transform: uppercase; letter-spacing: .04em; }
.chip-cat { background: rgba(124, 58, 237, .15); color: #c4b5fd; border: 1px solid rgba(124, 58, 237, .4); }
.chip-level { background: rgba(6, 182, 212, .12); color: #67e8f9; border: 1px solid rgba(6, 182, 212, .35); }
.chip-pending { background: rgba(245, 158, 11, .12); color: var(--accent); border: 1px solid rgba(245, 158, 11, .4); }
.course-card h3 { font-size: 1.2rem; }
.course-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.course-meta { display: flex; gap: 1.2rem; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
.course-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 1rem; }
.price { font-family: 'Space Grotesk'; font-size: 1.35rem; font-weight: 700; color: var(--primary-2); }
.empty-note { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 2rem 0; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.filter-chip {
    padding: .5rem 1.2rem; border-radius: 100px; border: 1px solid var(--border);
    font-size: .88rem; font-weight: 600; color: var(--muted); transition: all .2s;
}
.filter-chip:hover { border-color: var(--primary-2); color: var(--text); }
.filter-chip.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Page hero ---------- */
.page-hero { padding: 4rem 0 3rem; text-align: center; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .8rem 0 .6rem; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.hero-meta { justify-content: center; margin-top: 1.2rem; font-size: .95rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; transition: transform .25s, border-color .25s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary-2); }
.f-icon { font-size: 1.9rem; margin-bottom: .9rem; }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; position: relative; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 50%; background: var(--grad); font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}
.step p { color: var(--muted); font-size: .92rem; margin-top: .4rem; }

/* ---------- Trainers ---------- */
.trainer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.6rem; }
.trainer-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; text-align: center; }
.avatar {
    width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.4rem; color: #fff;
}
.av1 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.av2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.av3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av4 { background: linear-gradient(135deg, #22c55e, #06b6d4); }
.trainer-card .role { color: var(--primary-2); font-size: .85rem; font-weight: 600; }
.trainer-card p { color: var(--muted); font-size: .88rem; margin-top: .6rem; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.testi-card { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.8rem; }
.testi-card p { font-size: 1rem; }
.testi-card footer { margin-top: 1rem; color: var(--primary-2); font-weight: 600; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: .9rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; list-style: none; position: relative; }
.faq summary::after { content: '+'; position: absolute; right: 1.2rem; color: var(--primary-2); font-size: 1.2rem; }
.faq[open] summary::after { content: '−'; }
.faq p { padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: .93rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
    padding: 4.5rem 0; text-align: center;
    background: var(--grad); position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .8rem; }
.cta-banner p { opacity: .9; margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-col h4 { margin-bottom: 1rem; font-size: 1rem; }
.footer-col p, .footer-col li a { color: var(--muted); font-size: .92rem; }
.footer-col li { margin-bottom: .55rem; }
.footer-col li a:hover { color: var(--primary-2); }
.footer-logo { display: inline-block; margin-bottom: .9rem; }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: .9rem;
    color: var(--muted); transition: all .2s;
}
.socials a:hover { border-color: var(--primary); color: var(--text); transform: translateY(-3px); }
.footer-news-text { margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: .6rem; }
.newsletter-form input {
    flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 10px;
    padding: .65rem 1rem; color: var(--text); font-size: .92rem; outline: none;
}
.newsletter-form input:focus { border-color: var(--primary-2); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.2rem 0; text-align: center; color: var(--muted); font-size: .85rem; }
.footer-bottom a { color: var(--primary-2); }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: .75rem 1rem; color: var(--text); font-size: .95rem; font-family: inherit; outline: none;
    transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--primary-2); }
.form-row select option { background: var(--card); }
.form-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 1rem; }
.form-note a { color: var(--primary-2); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
.contact-info { display: grid; gap: 1.4rem; }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.info-card h3 { margin: .5rem 0 .3rem; }
.info-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Course detail ---------- */
.course-detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.course-body h2 { margin: 1.8rem 0 .9rem; font-size: 1.4rem; }
.course-body h2:first-child { margin-top: 0; }
.course-body p { color: var(--muted); }
.curriculum-list { padding-left: 1.3rem; list-style: none; counter-reset: mod; }
.curriculum-list li {
    counter-increment: mod; position: relative; padding: .9rem 0 .9rem 3rem;
    border-bottom: 1px solid var(--border); color: var(--text); font-size: .95rem;
}
.curriculum-list li::before {
    content: counter(mod); position: absolute; left: 0; top: .7rem;
    width: 30px; height: 30px; border-radius: 8px; background: rgba(124, 58, 237, .15);
    border: 1px solid rgba(124, 58, 237, .4); color: #c4b5fd;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}
.check-list li { padding: .45rem 0 .45rem 1.8rem; position: relative; color: var(--muted); }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; position: sticky; top: 100px; }
.price-big { font-family: 'Space Grotesk'; font-size: 2.4rem; font-weight: 700; display: block; }
.price-note { color: var(--muted); font-size: .85rem; display: block; margin: .3rem 0 1.2rem; }
.mini-meta { margin-top: 1.2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.mini-meta li { padding: .35rem 0; font-size: .9rem; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.about-grid h2 { margin: 1.2rem 0 .6rem; }
.about-grid h2:first-child { margin-top: 0; }
.about-grid p { color: var(--muted); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.stat-card strong { display: block; font-family: 'Space Grotesk'; font-size: 1.8rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { color: var(--muted); font-size: .88rem; }

.timeline { border-left: 2px solid var(--border); margin-left: .6rem; }
.tl-item { position: relative; padding: 0 0 1.8rem 2rem; }
.tl-item::before {
    content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--grad);
}
.tl-year { font-family: 'Space Grotesk'; font-weight: 700; color: var(--primary-2); }
.tl-item p { color: var(--muted); font-size: .95rem; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-login { max-width: 400px; margin: 8vh auto; }
.admin-login h1 { font-size: 1.5rem; margin-bottom: 1.4rem; }
.admin-wrap { width: min(1200px, 94%); margin: 0 auto; padding: 2rem 0 4rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.admin-head h1 { font-size: 1.4rem; }
.admin-head span { color: var(--muted); font-size: .9rem; margin-right: 1rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.admin-wrap h2 { margin: 2rem 0 1rem; font-size: 1.2rem; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 720px; }
.admin-table th { text-align: left; padding: .9rem 1rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.admin-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid, .about-grid, .contact-grid, .course-detail-grid { grid-template-columns: 1fr; }
    .hero-visual { height: 320px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .price-card { position: static; }
}
@media (max-width: 640px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
        background: var(--bg-2); border-bottom: 1px solid var(--border);
        padding: 1.2rem 4%; gap: 1rem; display: none;
    }
    .nav-menu.open { display: flex; }
    .hero-stats { gap: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .section { padding: 3rem 0; }
}
