/* ═══════════════════════════════════════════════════
   PRAGATI SKILL ACADEMY — Premium CSS Design System
   Professional, clean aesthetic
   ═══════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    --primary: #6D28D9;
    --primary-dark: #4C1D95;
    --primary-light: #8B5CF6;
    --accent: #E86A1A;
    --accent-light: #F59E0B;
    --blue: #3B82F6;
    --blue-dark: #1E40AF;
    --cyan: #0891B2;
    --red: #DC2626;
    --green: #059669;
    --bg-dark: #0B0F1A;
    --bg-section: #101827;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.06);
    --glass: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.08);
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --gradient-primary: linear-gradient(135deg, #6D28D9 0%, #3B82F6 100%);
    --gradient-accent: linear-gradient(135deg, #E86A1A 0%, #DC2626 100%);
    --gradient-hero: linear-gradient(135deg, #6D28D9 0%, #3B82F6 50%, #6D28D9 100%);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(109,40,217,0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text); }

/* ─── Skip to content (Accessibility) ─── */
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--primary); color: #fff; padding: 12px 24px; border-radius: var(--radius-sm); z-index: 10000; font-weight: 600; }
.skip-link:focus { top: 16px; }

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

/* ─── Subtle Background ─── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 80%, rgba(109,40,217,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ═══════════════════ HEADER ═══════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10,10,26,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
.header.scrolled { background: rgba(10,10,26,0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 48px; width: auto; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: #fff; }
.logo-text span { color: var(--primary-light); }
.logo-sub { font-size: 0.65rem; color: var(--text-muted); display: block; letter-spacing: 2px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--glass); }
.nav .btn-cta {
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
}
.nav .btn-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(123,47,247,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(255,106,0,0.08) 0%, transparent 50%),
                rgba(10,10,26,0.85);
    z-index: 0;
}
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}
.hero-badge::before { content: '🎓'; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 .gradient-text {
    background: var(--gradient-hero);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 56px;
    animation: fadeInUp 0.6s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat .number { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat .label { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }

/* ═══════════════════ BUTTONS ═══════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(123,47,247,0.3); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255,106,0,0.3); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--glass-border); }
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); background: rgba(123,47,247,0.08); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #20BA5A; transform: translateY(-2px); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ═══════════════════ SECTIONS ═══════════════════ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }
.section-header .gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ═══════════════════ CARDS ═══════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}
.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(123,47,247,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }
.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(123,47,247,0.12);
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.card-meta { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.card-meta span {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--glass);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-light); font-weight: 600; font-size: 0.9rem; margin-top: 16px; }
.card-link:hover { gap: 10px; color: var(--accent); }

/* ═══════════════════ GRIDS ═══════════════════ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ═══════════════════ COURSE TABLE ═══════════════════ */
.course-detail-table { width: 100%; border-collapse: collapse; margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.course-detail-table th, .course-detail-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.course-detail-table th { background: rgba(123,47,247,0.1); color: var(--primary-light); font-weight: 600; width: 180px; }
.course-detail-table td { color: var(--text-muted); }

/* ═══════════════════ TESTIMONIALS ═══════════════════ */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
}
.testimonial-stars { color: #FBBF24; font-size: 1rem; margin-bottom: 12px; }
.testimonial-text { color: var(--text-muted); font-size: 0.95rem; font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { font-weight: 600; color: var(--text); }
.testimonial-course { font-size: 0.8rem; color: var(--text-dim); }

/* ═══════════════════ FAQ ═══════════════════ */
.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-card);
}
.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--primary-light); transition: var(--transition); }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.3s ease; color: var(--text-muted); line-height: 1.7; }
.faq-item.active .faq-answer { padding: 0 24px 18px; max-height: 500px; }

/* ═══════════════════ BREADCRUMB ═══════════════════ */
.breadcrumb { padding: 100px 0 20px; }
.breadcrumb-list { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--text-dim); flex-wrap: wrap; }
.breadcrumb-list a { color: var(--text-muted); }
.breadcrumb-list a:hover { color: var(--primary-light); }
.breadcrumb-list .sep { color: var(--text-dim); }

/* ═══════════════════ FLOATING CTA ═══════════════════ */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.floating-btn:hover { transform: scale(1.1); color: #fff; }
.floating-btn.whatsapp { background: #25D366; animation: pulse 2s infinite; }
.floating-btn.call { background: var(--primary); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,0.4)} 70%{box-shadow:0 0 0 20px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
    background: var(--bg-section);
    border-top: 1px solid var(--glass-border);
    padding: 64px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer h4 { font-size: 1rem; margin-bottom: 20px; color: var(--text); }
.footer-about p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 4px 0; }
.footer-links a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-contact p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 24px; text-align: center; color: var(--text-dim); font-size: 0.85rem; }

/* ═══════════════════ LOCATION GRID ═══════════════════ */
.location-tag {
    display: inline-flex;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.location-tag:hover { background: rgba(123,47,247,0.1); border-color: var(--primary-light); color: var(--primary-light); }

/* ═══════════════════ CONTENT PAGE ═══════════════════ */
.page-content { padding: 20px 0 60px; }
.page-content h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 24px; }
.content-body h2 { font-size: 1.4rem; color: var(--text); margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--glass-border); }
.content-body h3 { font-size: 1.15rem; color: var(--text); margin: 24px 0 12px; }
.content-body p { color: var(--text-muted); margin-bottom: 16px; }
.content-body ul { padding-left: 20px; margin-bottom: 16px; }
.content-body ul li { color: var(--text-muted); padding: 4px 0; list-style: disc; }
.content-body ul li strong { color: var(--text); }
.content-body strong { color: var(--text); }
.content-sidebar { position: sticky; top: 96px; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; color: #fff; }
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 16px; color: #fff; }
.sidebar-card a { display: block; padding: 8px 0; color: #cbd5e1; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.sidebar-card a:hover { color: var(--primary-light); background: rgba(255,255,255,0.02); }

.content-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }

/* ═══════════════════ PAGE HERO (inner pages) ═══════════════════ */
.page-hero {
    padding: 120px 0 40px;
    background: linear-gradient(180deg, rgba(123,47,247,0.08) 0%, transparent 100%);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* ═══════════════════ ANIMATIONS ═══════════════════ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .content-layout { grid-template-columns: 1fr; }
    .content-sidebar { position: static; }
}
@media (max-width: 768px) {
    .nav { display: none; position: fixed; top: 72px; left: 0; width: 100%; background: rgba(11,15,26,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 24px; gap: 4px; border-bottom: 1px solid var(--glass-border); max-height: calc(100vh - 72px); overflow-y: auto; }
    .nav.open { display: flex; }
    .nav a { width: 100%; padding: 14px 16px; font-size: 1rem; }
    .nav .btn-cta { text-align: center; justify-content: center; margin-top: 8px; }
    .mobile-toggle { display: block; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .hero-stats .hero-stat { flex: 1 1 40%; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero { padding: 110px 0 50px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 50px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .floating-cta { bottom: 16px; right: 16px; }
    .floating-btn { width: 50px; height: 50px; }
    .card { padding: 24px; }
    .container { padding: 0 16px; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .logo img { height: 40px; }
    .logo-text { font-size: 1.1rem; }
    .page-hero { padding: 100px 0 30px; }
    .breadcrumb { padding: 80px 0 16px; }
}
@media (max-width: 480px) {
    .hero-stats { gap: 16px; }
    .hero-stat .number { font-size: 1.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .container { padding: 0 12px; }
    .header-inner { padding: 0 12px; height: 64px; }
    .nav { top: 64px; }
    .hero { padding: 96px 0 40px; }
}

/* ═══════════════════ INTERNAL LINKS SECTION ═══════════════════ */
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-link {
    padding: 8px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.related-link:hover { background: rgba(123,47,247,0.1); border-color: var(--primary-light); color: var(--primary-light); }

/* ═══════════════════ CONTACT FORM ═══════════════════ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(123,47,247,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background-color: var(--bg-dark); color: var(--text); }
select option { background-color: var(--bg-dark); color: var(--text); }

.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6EE7B7; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #FCA5A5; }
