/* ========================================
   LANDING PAGE STYLES - SkillSprout Theme
   ======================================== */

/* CSS Variables */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --accent: #fbbf24;
    --accent-light: #fcd34d;
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--foreground);
    background: var(--background);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--accent);
    color: var(--foreground);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--muted);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav, .header-buttons {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: var(--hero-gradient);
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fdfdfe 0%, #bdc8e7 100%);
    /* color: white; */
    position: relative;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 32px;
    font-family: 'Fredoka', sans-serif;
}

.stat span {
    opacity: 0.8;
    font-size: 14px;
}

.hero-img-wrapper {
    position: relative;
}

.hero-img-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--foreground);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
}

.floating-card div strong {
    display: block;
    font-size: 14px;
}

.floating-card div span {
    font-size: 12px;
    color: var(--muted-foreground);
}

.card-top {
    top: 20px;
    right: -30px;
}

.card-bottom {
    bottom: 40px;
    left: -30px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

@media (max-width: 968px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image {
        order: -1;
    }
    .floating-card {
        display: none;
    }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--foreground);
}

.section-desc {
    color: var(--muted-foreground);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   COURSES SECTION
   ======================================== */
.shortcode-placeholder {
    margin-bottom: 40px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--foreground);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.course-content {
    padding: 20px;
}

.course-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted-foreground);
}

.course-meta i {
    margin-right: 4px;
}

.course-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.course-content p {
    color: var(--muted-foreground);
    font-size: 14px;
    margin-bottom: 16px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
}

.course-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}

@media (max-width: 968px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   QUIZ CATEGORY SECTION
   ======================================== */
.quiz-section {
    background: var(--muted);
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quiz-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.quiz-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.quiz-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.quiz-card p {
    font-size: 13px;
    color: var(--muted-foreground);
    margin-bottom: 16px;
}

/* Quiz card color variations */
.quiz-thptqg .quiz-icon { background: #fee2e2; color: #dc2626; }
.quiz-thptqg:hover { border-color: #dc2626; }

.quiz-ielts .quiz-icon { background: #dbeafe; color: #2563eb; }
.quiz-ielts:hover { border-color: #2563eb; }

.quiz-sat .quiz-icon { background: #f3e8ff; color: #9333ea; }
.quiz-sat:hover { border-color: #9333ea; }

.quiz-topik .quiz-icon { background: #fef3c7; color: #d97706; }
.quiz-topik:hover { border-color: #d97706; }

.quiz-hsk .quiz-icon { background: #dcfce7; color: #16a34a; }
.quiz-hsk:hover { border-color: #16a34a; }

.quiz-hsa .quiz-icon { background: #fce7f3; color: #db2777; }
.quiz-hsa:hover { border-color: #db2777; }

.quiz-toeic .quiz-icon { background: #cffafe; color: #0891b2; }
.quiz-toeic:hover { border-color: #0891b2; }

.quiz-jlpt .quiz-icon { background: #fed7aa; color: #ea580c; }
.quiz-jlpt:hover { border-color: #ea580c; }

@media (max-width: 968px) {
    .quiz-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .quiz-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CODING BANNER
   ======================================== */
.coding-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 80px 0;
    color: white;
    overflow: hidden;
}

.coding-banner-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.coding-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.coding-content h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.gradient-text-yellow {
    background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coding-content p {
    opacity: 0.8;
    margin-bottom: 24px;
    font-size: 16px;
}

.coding-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.coding-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.coding-feature i {
    color: var(--accent);
}

.code-window {
    background: #1a1a2e;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: #16162a;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-content {
    padding: 24px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-keyword { color: #c792ea; }
.code-function { color: #82aaff; }
.code-string { color: #c3e88d; }

@media (max-width: 968px) {
    .coding-banner-inner {
        grid-template-columns: 1fr;
    }
    .coding-content h2 {
        font-size: 32px;
    }
    .coding-visual {
        order: -1;
    }
}

/* ========================================
   BATCHES SECTION
   ======================================== */
.batches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.batch-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.batch-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.batch-header {
    margin-bottom: 20px;
}

.batch-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--foreground);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.batch-badge-new {
    background: #dcfce7;
    color: #16a34a;
}

.batch-header h3 {
    font-size: 20px;
}

.batch-details {
    margin-bottom: 20px;
}

.batch-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted-foreground);
}

.batch-detail:last-child {
    border-bottom: none;
}

.batch-detail i {
    color: var(--primary);
    width: 20px;
}

@media (max-width: 968px) {
    .batches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .batches-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   LIVE CLASSES SECTION
   ======================================== */
.live-section {
    background: var(--muted);
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.live-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.live-dot {
    font-size: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-badge-upcoming {
    background: var(--muted);
    color: var(--muted-foreground);
}

.live-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.live-card p {
    color: var(--muted-foreground);
    font-size: 14px;
    margin-bottom: 16px;
}

.live-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.live-meta img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.live-meta span {
    font-weight: 500;
    font-size: 14px;
}

@media (max-width: 640px) {
    .live-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-badge {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info p {
    color: var(--muted-foreground);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-wrapper {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--foreground);
    color: white;
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.copyright {
    opacity: 0.7;
    font-size: 14px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links span {
    opacity: 0.7;
    font-size: 14px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: white;
    opacity: 0.7;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
