/* ============================================================
   SCHOOLHUB ERP - PROFESSIONAL LANDING PAGE STYLES
   ============================================================ */

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

/* Root Colors & Variables */
:root {
    /* Primary Blue from Logo */
    --primary: #0c519c;
    --primary-light: #1565c0;
    --primary-dark: #0a3d7a;
    
    /* Accent Colors from Logo Gradient */
    --secondary: #dd4e00;
    --accent: #feb801;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    
    /* Gradient stops for modern look */
    --gradient-blue: #0c519c;
    --gradient-purple: #7b2cbf;
    --gradient-orange: #dd4e00;
    --gradient-gold: #feb801;
    
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --surface: #F3F4F6;
    --border: #E5E7EB;
    
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-blue) 0%, var(--gradient-purple) 50%, var(--gradient-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: #c94200;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(12, 81, 156, 0.98) 0%, rgba(123, 44, 191, 0.98) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 2rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: white;
}

.nav-link.btn-primary {
    color: white;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(221, 78, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

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

/* Hero Image Section */
.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    z-index: -1;
}

.floating-card {
    position: absolute;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 20px;
    left: 0;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 150px;
    right: 0;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.card-icon {
    font-size: 1.5rem;
}

.card-text {
    font-weight: 600;
    font-size: 0.95rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        display: none;
    }
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features {
    background: linear-gradient(180deg, #f8f9ff 0%, #fff5f0 100%);
    position: relative;
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: #0c519c;
    background: linear-gradient(135deg, rgba(12, 81, 156, 0.05) 0%, rgba(254, 184, 1, 0.05) 100%);
}

.feature-icon {
    font-size: 3rem;
    display: inline-block;
}

.feature-card h3 {
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.95rem;
}

/* ============================================================
   MODULES SECTION
   ============================================================ */

.modules {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.modules-group {
    margin-bottom: 60px;
}

.group-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modules-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.module-card {
    background: linear-gradient(135deg, #ffffff 0%, #faf9f8 100%);
    padding: 28px;
    border-radius: 12px;
    border: 2px solid rgba(12, 81, 156, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0c519c 0%, #dd4e00 100%);
    opacity: 0;
    transition: var(--transition);
}

.module-card:hover {
    border-color: #0c519c;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(12, 81, 156, 0.2);
}

.module-card:hover::before {
    opacity: 0.05;
}

.module-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0c519c 0%, #7b2cbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.module-card h4 {
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.module-card p {
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ============================================================
   AI LEARNING SECTION
   ============================================================ */

.ai-learning {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-learning::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ai-text h2 {
    color: white;
    margin-bottom: 24px;
}

.ai-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.ai-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.ai-features li {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-avatar {
    font-size: 4rem;
    text-align: center;
}

.ai-dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-dialog p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ai-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   BENEFITS SECTION
   ============================================================ */

.benefits {
    background-color: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-item {
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.benefit-item h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* ============================================================
   PRICING SECTION
   ============================================================ */

.pricing {
    background: linear-gradient(180deg, #fff5f0 0%, #ffffff 100%);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.toggle-btn {
    padding: 12px 24px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-gray);
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: white;
    border: 2px solid rgba(12, 81, 156, 0.15);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: #0c519c;
    box-shadow: 0 15px 40px rgba(12, 81, 156, 0.15);
}

.pricing-card.featured {
    border-color: #0c519c;
    background: linear-gradient(135deg, rgba(12, 81, 156, 0.05) 0%, rgba(254, 184, 1, 0.05) 100%);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pricing-header h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
}

.plan-description {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.currency {
    font-size: 1.5rem;
    color: var(--primary);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

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

.students {
    font-size: 0.95rem;
    color: var(--text-gray);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    flex-grow: 1;
}

.features-list li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq {
    background: linear-gradient(180deg, #f8f9ff 0%, #fff5f0 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.faq-item {
    background: white;
    border: 2px solid rgba(12, 81, 156, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: #0c519c;
    box-shadow: 0 10px 25px rgba(12, 81, 156, 0.1);
}

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

.faq-item:hover .faq-question {
    background-color: rgba(12, 81, 156, 0.03);
    color: #0c519c;
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
    color: #0c519c;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(12, 81, 156, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta {
    background: linear-gradient(135deg, #0c519c 0%, #7b2cbf 50%, #dd4e00 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: linear-gradient(135deg, #0c2d52 0%, #0c519c 50%, #1a1a2e 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: #feb801;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: linear-gradient(135deg, #0c519c 0%, #7b2cbf 100%);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .navbar-menu {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid,
    .modules-row,
    .benefits-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.module-card,
.benefit-item,
.pricing-card,
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: white; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
