/* File: css/style.css */

/* =========================================
   1. CSS Variables & Theme Configuration
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #2563eb;          /* Blue */
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;        /* Purple */
    --secondary-dark: #6d28d9;
    --accent: #0ea5e9;           /* Sky Blue */
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-soft-white: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-dark: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    /* Utility Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    /* Typography & Layout */
    --font-primary: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --max-width: 1200px;
}

/* =========================================
   2. Reset & Base Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 80px 0;
}

/* =========================================
   3. Typography & Utility Classes
========================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-soft-white { background-color: var(--bg-soft-white); }
.bg-gradient-blue { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.bg-gradient-purple { background: linear-gradient(135deg, var(--secondary), var(--primary)); }

.text-white { color: var(--text-light); }
.text-white-70 { color: rgba(255, 255, 255, 0.7); }
.text-blue { color: var(--primary); }
.text-purple { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-green { color: var(--success); }
.text-red { color: var(--danger); }

.bg-blue-light { background-color: rgba(37, 99, 235, 0.1); }
.bg-purple-light { background-color: rgba(124, 58, 237, 0.1); }
.bg-accent-light { background-color: rgba(14, 165, 233, 0.1); }

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.max-w-800 { max-width: 800px; margin: 0 auto; }

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   4. Buttons
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    gap: 8px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: var(--text-muted);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--bg-soft-white);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: transparent;
    color: var(--primary);
    padding: 0;
    font-weight: 600;
}

.btn-link:hover {
    gap: 12px; /* Slight arrow push effect */
}

/* =========================================
   5. Hero Section
========================================= */
.hero-section {
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-search-wrapper {
    margin-bottom: 30px;
    background: var(--bg-white);
    border-radius: var(--radius-pill);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.hero-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-search {
    padding-left: 20px;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px;
    font-family: inherit;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
}

/* Hero Visuals & Glassmorphism */
.hero-visuals {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s infinite alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    right: 10%;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: 10%;
    left: 10%;
    animation-delay: -4s;
}

.stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 40px;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================
   6. Features Section
========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-normal);
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-text {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.feature-link {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-link:hover {
    gap: 12px;
}

/* =========================================
   7. Study Resources (Pills)
========================================= */
.resource-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.resource-pill {
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 15px 25px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.resource-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.resource-pill:hover i {
    color: white;
}

.resource-pill i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* =========================================
   8. Live Paper Highlight
========================================= */
.live-paper-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.btn-group {
    display: flex;
    gap: 15px;
}

.glass-panel {
    background: var(--bg-glass-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.panel-header {
    background: rgba(0,0,0,0.2);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.panel-title {
    margin-left: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.panel-body {
    padding: 30px;
}

.meta {
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.mcq-preview {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
}

/* =========================================
   9. Premium Services Pricing
========================================= */
.pricing-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 30px;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.popular-card {
    transform: scale(1.05);
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.popular-card .pricing-header {
    margin: -40px -30px 30px;
    padding: 50px 30px 30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.plan-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.popular-card .currency,
.popular-card .period {
    color: rgba(255,255,255,0.8);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 5px;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.custom-price-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    padding: 15px 0;
}

.plan-features {
    flex-grow: 1;
    margin-bottom: 30px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* =========================================
   10. Why Choose Us (Dual Layout)
========================================= */
.dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-summary {
    padding-right: 30px;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.about-text {
    color: var(--text-muted);
    line-height: 1.8;
}

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

.benefit-box {
    background: var(--bg-soft-white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-normal);
}

.benefit-box:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.benefit-box i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.benefit-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.benefit-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   11. FAQ Section
========================================= */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

/* Note: Active state for JS implementation */
.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--text-muted);
    display: none; /* JS will toggle this */
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* =========================================
   12. Animations & Effects
========================================= */
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 30px) rotate(10deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Initial hidden state for scroll reveal (JS to handle classes) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   13. Responsive Design
========================================= */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-container, .live-paper-container, .dual-layout {
        gap: 40px;
    }
    .popular-card {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-container, .live-paper-container, .dual-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-description {
        margin: 0 auto 30px;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-visuals {
        min-height: 400px;
    }
    
    .stats-grid {
        padding-top: 20px;
    }
    
    .live-paper-highlight {
        text-align: center;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .about-summary {
        padding-right: 0;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    
    .hero-cta-group, .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn { width: 100%; }
    
    .hero-search-form {
        flex-direction: column;
    }
    
    .search-btn { width: 100%; }
    
    .stats-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
}