/* =============================================================================
   PAMPHLET APP LANDING PAGE - MODERN CSS
   ============================================================================= */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* CSS Custom Properties for Theming */
:root {
    /* Light Theme Colors */
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --accent-primary: #3B82F6;
    --accent-secondary: #8B5CF6;
    --accent-success: #10B981;
    --accent-error: #EF4444;
    --accent-warning: #F59E0B;
    --border-color: #E2E8F0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #3B82F6, #8B5CF6);
    --gradient-bg: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --accent-primary: #60A5FA;
    --accent-secondary: #A78BFA;
    --accent-success: #34D399;
    --accent-error: #F87171;
    --accent-warning: #FBBF24;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #60A5FA, #A78BFA);
    --gradient-bg: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #0F172A;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

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

/* =============================================================================
   NAVIGATION
   ============================================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    padding: 0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 50px;
    height: 28px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-hover);
    border-color: var(--accent-primary);
}

.theme-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px var(--shadow-color);
}

/* Toggle background slider */
.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dark mode slider position */
[data-theme="dark"] .theme-toggle::before {
    transform: translateX(22px);
    background: linear-gradient(135deg, #1E293B, #334155);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.theme-icon {
    width: 16px;
    height: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    z-index: 2;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    left: 6px;
    color: #F59E0B;
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
    right: 6px;
    color: #E5E7EB;
}

/* Dark mode theme toggle states */
[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #FBBF24;
}

/* Enhanced hover effects */
.theme-toggle:hover .theme-icon {
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle:hover .sun-icon {
    transform: rotate(180deg) scale(0.9);
}

[data-theme="dark"] .theme-toggle:hover .moon-icon {
    transform: rotate(0deg) scale(1.1);
}

/* Focus states for accessibility */
.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .theme-toggle:focus {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

/* Toggling animation state */
.theme-toggle.toggling {
    transform: scale(0.95);
}

.theme-toggle.toggling::before {
    transform: scale(1.1);
}

/* Pulse animation for theme change */
@keyframes themePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.theme-toggle.toggling {
    animation: themePulse 0.4s ease-in-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .theme-toggle {
        width: 45px;
        height: 26px;
    }
    
    .theme-toggle::before {
        width: 18px;
        height: 18px;
    }
    
    [data-theme="dark"] .theme-toggle::before {
        transform: translateX(19px);
    }
    
    .theme-icon {
        width: 14px;
        height: 14px;
    }
    
    .sun-icon {
        left: 5px;
    }
    
    .moon-icon {
        right: 5px;
    }
}

/* Ensure moon icon visibility in dark mode */
[data-theme="dark"] .moon-icon {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 3;
}

/* Additional dark mode enhancements */
[data-theme="dark"] .hero::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

[data-theme="dark"] .hero::after {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
    color: var(--text-tertiary);
}

[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Dark mode scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

.hero {
    padding: 120px 0 80px;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E2E8F0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-hover);
    border-color: var(--accent-primary);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* New hero image container styles */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.hero-app-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-app-image:hover {
    transform: scale(1.05);
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #0F172A;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -80px;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    left: -80px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    right: -80px;
    animation-delay: 2s;
}

.card-icon {
    font-size: 18px;
}

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

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

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

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

.features {
    padding: 100px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow-hover);
    border-color: var(--accent-primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* =============================================================================
   SUBJECTS SECTION
   ============================================================================= */

.subjects {
    padding: 100px 0;
    background: var(--gradient-bg);
    transition: background 0.3s ease;
}

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

.subject-card {
    background: var(--bg-secondary);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow-hover);
}

.subject-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    position: relative;
}

.subject-icon.biology {
    background: linear-gradient(135deg, #10B981, #059669);
}

.subject-icon.chemistry {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.subject-icon.computer {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.subject-icon.ict {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.subject-icon.maths {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.subject-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.subject-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.subject-papers {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.paper-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =============================================================================
   DOWNLOAD SECTION
   ============================================================================= */

.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    transition: background 0.3s ease;
}

[data-theme="dark"] .download {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
}

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

.download-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}

.download-description {
    font-size: 1.125rem;
    color: #94A3B8;
    margin-bottom: 40px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.download-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.download-btn {
    display: inline-block;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-4px);
}

.store-badge {
    height: 60px;
    width: 180px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    object-fit: contain;
    object-position: center;
}

.store-badge:hover {
    transform: scale(1.05);
}

.download-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.download-note,
.download-size {
    color: #94A3B8;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.download-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* =============================================================================
   ABOUT SECTION
   ============================================================================= */

.about {
    padding: 100px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.about-feature-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

/* =============================================================================
   CONTACT SECTION
   ============================================================================= */

.contact {
    padding: 100px 0;
    background: var(--gradient-bg);
    transition: background 0.3s ease;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

/* =============================================================================
   FORM STYLES
   ============================================================================= */

.form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    justify-content: center;
}

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

.footer {
    background: #0F172A;
    color: white;
    padding: 60px 0 20px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .footer {
    background: #1E293B;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.footer-description {
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 32px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-link {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #94A3B8;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.3s ease;
}

[data-theme="dark"] .social-link {
    background: #475569;
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* =============================================================================
   BACK TO TOP BUTTON
   ============================================================================= */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Dark mode back to top button */
[data-theme="dark"] .back-to-top {
    background: var(--gradient-primary);
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
    box-shadow: 0 8px 30px rgba(96, 165, 250, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

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

@media (max-width: 1024px) {
    /* changed .hero-container to .hero */
    .hero { 
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }

    /* Added .hero-buttons and .hero-stats */

    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: start;
        padding: 40px 20px;
        transition: left 0.3s ease, background-color 0.3s ease;
        box-shadow: 0 4px 20px var(--shadow-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Added .hero-container */

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .card-1,
    .card-2,
    .card-3 {
        display: none;
    }
    
    .hero-app-image {
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .hero-app-image {
        max-width: 250px;
    }
    
    .feature-card,
    .subject-card {
        padding: 24px 20px;
    }
    
    .form {
        padding: 24px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .store-badge {
        height: 50px;
    }
}

/* =============================================================================
   ANIMATIONS AND INTERACTIONS
   ============================================================================= */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .download-buttons,
    .footer {
        display: none;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .section-title {
        color: #000;
    }
}
