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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Integrated Theme Selector - Part of Navigation */
.theme-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.theme-indicator:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.theme-indicator.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 10001;
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--glass-bg, rgba(255, 255, 255, 0.1));
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.theme-option {
    aspect-ratio: 1;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.theme-option:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.theme-option.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.theme-option::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.theme-option:hover::after {
    width: 80%;
    height: 80%;
}

.theme-option.active::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.theme-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Theme Colors */
.theme-option:nth-child(1) { background: linear-gradient(135deg, #667eea, #764ba2); }
.theme-option:nth-child(2) { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); }
.theme-option:nth-child(3) { background: linear-gradient(135deg, #ffffff, #f8f9fa); border: 1px solid #e9ecef; }
.theme-option:nth-child(4) { background: linear-gradient(135deg, #0f0f23, #ff006e); }
.theme-option:nth-child(5) { background: linear-gradient(135deg, #2d5016, #a8e6cf); }
.theme-option:nth-child(6) { background: linear-gradient(135deg, #ff9a56, #ffad56); }

/* ===== THEME 1: DEFAULT GRADIENT (Current) ===== */
.theme-gradient {
    --primary: #007AFF;
    --secondary: #5856D6;
    --background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --surface: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.1);
}

.theme-gradient .theme-indicator {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ===== THEME 2: DARK MODE ===== */
.theme-dark {
    --primary: #0a84ff;
    --secondary: #bf5af2;
    --background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    --surface: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

.theme-dark .theme-indicator {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.theme-dark body {
    background: var(--background);
    color: var(--text-primary);
}

.theme-dark .main-content {
    background: #1c1c1e;
}

.theme-dark .features,
.theme-dark .pricing {
    background: #1c1c1e;
}

.theme-dark .subjects {
    background: #2c2c2e;
}

.theme-dark .feature-card,
.theme-dark .subject-card,
.theme-dark .pricing-card:not(.featured) {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.theme-dark .section-title {
    color: var(--text-primary);
}

.theme-dark .section-subtitle,
.theme-dark .feature-card p,
.theme-dark .subject-card p {
    color: var(--text-secondary);
}

.theme-dark .theme-dropdown {
    background: rgba(28, 28, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-dark .theme-dropdown::before {
    border-bottom-color: rgba(28, 28, 30, 0.9);
}

/* ===== THEME 3: MINIMALIST ===== */
.theme-minimal {
    --primary: #000000;
    --secondary: #6c757d;
    --background: #ffffff;
    --text-primary: #000000;
    --text-secondary: #6c757d;
    --surface: #f8f9fa;
    --glass-bg: rgba(248, 249, 250, 0.8);
}

.theme-minimal .theme-indicator {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-color: rgba(0, 0, 0, 0.2);
}

.theme-minimal body {
    background: var(--background);
    color: var(--text-primary);
}

.theme-minimal .hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.theme-minimal .hero h1 {
    background: linear-gradient(135deg, #000000 0%, #343a40 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-minimal .hero-subtitle {
    color: var(--text-secondary);
}

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

.theme-minimal .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.theme-minimal .nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid #e9ecef;
}

.theme-minimal .nav-links a {
    color: var(--text-primary);
}

.theme-minimal .logo {
    background: linear-gradient(135deg, #000000, #343a40);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-minimal .login-btn {
    background: var(--text-primary);
    color: white;
}

.theme-minimal .stat-card {
    background: white;
    border: 1px solid #e9ecef;
    backdrop-filter: none;
}

.theme-minimal .stat-number {
    color: var(--text-primary);
}

.theme-minimal .feature-icon {
    background: var(--text-primary);
}

.theme-minimal .theme-dropdown {
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-minimal .theme-dropdown::before {
    border-bottom-color: rgba(248, 249, 250, 0.95);
}

.theme-minimal .theme-label {
    color: rgba(0, 0, 0, 0.6);
}

/* ===== THEME 4: NEON CYBER ===== */
.theme-neon {
    --primary: #ff006e;
    --secondary: #8338ec;
    --background: linear-gradient(135deg, #0f0f23 0%, #1a0b3d 100%);
    --text-primary: #ffffff;
    --text-secondary: #a8a8ff;
    --surface: rgba(255, 0, 110, 0.1);
    --glass-bg: rgba(131, 56, 236, 0.1);
}

.theme-neon .theme-indicator {
    background: linear-gradient(135deg, #0f0f23, #ff006e);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.4);
}

.theme-neon body {
    background: var(--background);
    color: var(--text-primary);
}

.theme-neon .hero h1 {
    background: linear-gradient(135deg, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(255, 0, 110, 0.5);
}

.theme-neon .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.4);
}

.theme-neon .nav {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(255, 0, 110, 0.3);
    box-shadow: 0 8px 32px rgba(255, 0, 110, 0.2);
}

.theme-neon .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

.theme-neon .stat-card {
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.2);
}

.theme-neon .feature-card:hover {
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.3);
}

.theme-neon .main-content {
    background: #1a0b3d;
}

.theme-neon .features,
.theme-neon .pricing {
    background: #1a0b3d;
}

.theme-neon .subjects {
    background: #0f0f23;
}

.theme-neon .feature-card,
.theme-neon .subject-card,
.theme-neon .pricing-card:not(.featured) {
    background: rgba(255, 0, 110, 0.05);
    border: 1px solid rgba(255, 0, 110, 0.2);
}

.theme-neon .theme-dropdown {
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid rgba(255, 0, 110, 0.3);
    box-shadow: 0 16px 60px rgba(255, 0, 110, 0.2);
}

.theme-neon .theme-dropdown::before {
    border-bottom-color: rgba(15, 15, 35, 0.9);
}

.theme-neon .theme-label {
    color: #a8a8ff;
}

/* ===== THEME 5: NATURE/ECO ===== */
.theme-nature {
    --primary: #2d5016;
    --secondary: #4a7c59;
    --background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    --text-primary: #1b4332;
    --text-secondary: #40916c;
    --surface: rgba(45, 80, 22, 0.1);
    --glass-bg: rgba(168, 230, 207, 0.3);
}

.theme-nature .theme-indicator {
    background: linear-gradient(135deg, #2d5016, #a8e6cf);
}

.theme-nature body {
    background: var(--background);
    color: var(--text-primary);
}

.theme-nature .hero h1 {
    background: linear-gradient(135deg, #1b4332 0%, #2d5016 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-nature .hero-subtitle {
    color: var(--text-secondary);
}

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

.theme-nature .nav {
    background: rgba(168, 230, 207, 0.6);
    border: 1px solid rgba(45, 80, 22, 0.2);
}

.theme-nature .nav-links a {
    color: var(--text-primary);
}

.theme-nature .logo {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-nature .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.theme-nature .main-content {
    background: #f7fff7;
}

.theme-nature .subjects {
    background: #e8f5e8;
}

.theme-nature .theme-dropdown {
    background: rgba(168, 230, 207, 0.9);
    border: 1px solid rgba(45, 80, 22, 0.2);
}

.theme-nature .theme-dropdown::before {
    border-bottom-color: rgba(168, 230, 207, 0.9);
}

.theme-nature .theme-label {
    color: rgba(27, 67, 50, 0.8);
}

/* ===== THEME 6: WARM SUNSET ===== */
.theme-warm {
    --primary: #ff6b35;
    --secondary: #f7931e;
    --background: linear-gradient(135deg, #ff9a56 0%, #ffad56 100%);
    --text-primary: #2c1810;
    --text-secondary: #8b4513;
    --surface: rgba(255, 107, 53, 0.2);
    --glass-bg: rgba(255, 173, 86, 0.3);
}

.theme-warm .theme-indicator {
    background: linear-gradient(135deg, #ff9a56, #ffad56);
}

.theme-warm body {
    background: var(--background);
    color: var(--text-primary);
}

.theme-warm .hero h1 {
    background: linear-gradient(135deg, #2c1810 0%, #8b4513 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-warm .hero-subtitle {
    color: var(--text-secondary);
}

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

.theme-warm .nav {
    background: rgba(255, 173, 86, 0.6);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.theme-warm .nav-links a {
    color: var(--text-primary);
}

.theme-warm .logo {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-warm .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.theme-warm .main-content {
    background: #fff8f0;
}

.theme-warm .subjects {
    background: #ffeaa7;
}

.theme-warm .theme-dropdown {
    background: rgba(255, 173, 86, 0.9);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.theme-warm .theme-dropdown::before {
    border-bottom-color: rgba(255, 173, 86, 0.9);
}

.theme-warm .theme-label {
    color: rgba(44, 24, 16, 0.8);
}

/* Common Styles */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.float-element {
    position: absolute;
    background: var(--surface);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.float-element:nth-child(1) { width: 80px; height: 80px; top: 20%; left: 10%; animation-delay: 0s; }
.float-element:nth-child(2) { width: 120px; height: 120px; top: 60%; left: 80%; animation-delay: 5s; }
.float-element:nth-child(3) { width: 60px; height: 60px; top: 80%; left: 20%; animation-delay: 10s; }
.float-element:nth-child(4) { width: 100px; height: 100px; top: 30%; left: 70%; animation-delay: 15s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.7; }
}

.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    z-index: 1000;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 0 24px;
    position: relative;
}

.hero-container {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.4;
}

.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-primary, .btn-secondary {
    padding: 18px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 80px;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.main-content {
    background: white;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    position: relative;
    z-index: 3;
}

.features {
    padding: 120px 24px 80px;
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: white;
    border-radius: 28px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Services Section */
.services {
    padding: 120px 24px 80px;
}

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

.services .section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.services .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: white;
    border-radius: 28px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Android Emoji", "EmojiOne Color", "EmojiSymbols", "Symbola", "Twemoji Mozilla", "Segoe UI Symbol", sans-serif;
    line-height: 1;
    text-rendering: optimizeLegibility;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgba(0, 0, 0, 0.9);
}

.service-card p {
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    font-size: 1rem;
}

.subjects {
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Background Image Container */
.subjects-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.subjects-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Set the actual background image directly */
    background-image: url('../images/back-image.png');
}

.subjects-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.subjects-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: white;
}

.subjects-container .section-title,
.subjects-container .section-subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.subject-card {
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    color: white;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.subject-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.subject-card:hover::before {
    opacity: 1;
}

.subject-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    position: relative;
    z-index: 1;
}

.subject-card p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.topic-count {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.topic-count:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.pricing {
    padding: 120px 24px;
}

.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.pricing-card {
    background: white;
    border-radius: 32px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid rgba(0, 0, 0, 0.06);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: scale(1.05);
    border: none;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.pricing-card .period {
    opacity: 0.7;
    margin-bottom: 32px;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    position: relative;
    padding-left: 32px;
    font-weight: 500;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34C759;
    font-weight: bold;
    font-size: 16px;
}

.pricing-btn {
    width: 100%;
    padding: 16px 32px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.pricing-btn.secondary {
    background: #f5f5f7;
    color: var(--text-primary);
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 120px 24px 60px;
    }
    
    .cta-container {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .nav-container {
        gap: 20px;
    }

    .theme-dropdown {
        right: -20px;
        min-width: 160px;
    }

    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-container {
        gap: 16px;
    }

    .theme-dropdown {
        right: -40px;
        min-width: 140px;
        padding: 8px;
    }

    .theme-grid {
        gap: 6px;
    }

    .theme-option {
        border-radius: 8px;
    }
}

/* Footer Styles */
.footer {
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 80px;
    padding: 60px 0 20px;
}

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

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

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-theme-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.mini-theme-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Theme-specific footer styles */
.theme-dark .footer {
    background: rgba(0, 0, 0, 0.3);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.theme-minimal .footer {
    background: #f8f9fa;
    border-top-color: rgba(0, 0, 0, 0.1);
}

.theme-neon .footer {
    background: rgba(15, 15, 35, 0.8);
    border-top-color: rgba(255, 0, 110, 0.3);
}

.theme-nature .footer {
    background: rgba(45, 80, 22, 0.1);
    border-top-color: rgba(168, 230, 207, 0.3);
}

.theme-warm .footer {
    background: rgba(255, 154, 86, 0.1);
    border-top-color: rgba(255, 173, 86, 0.3);
}

@media (max-width: 768px) {
    /* Use portrait background only on index page and only on mobile */
    body.index-page .subjects-bg-image {
        background-image: url('../images/back-image-portrait.png');
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    /* Subjects section responsive design */
    .subjects {
        padding: 60px 16px;
        min-height: auto;
    }

    .subjects-bg-image {
        background-attachment: scroll;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .subject-card {
        padding: 24px;
    }

    .subjects-container .section-title {
        font-size: 2rem;
    }

    .subjects-container .section-subtitle {
        font-size: 1rem;
    }
}

/* Anti-copying protection for test content */
.test-container,
.test-page,
.mocktest-content {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Allow selection for interactive elements */
.test-container button,
.test-container input,
.test-container select,
.test-container textarea,
.test-page button,
.test-page input,
.test-page select,
.test-page textarea,
.mocktest-content button,
.mocktest-content input,
.mocktest-content select,
.mocktest-content textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Allow selection for navigation elements */
.test-container .breadcrumbs,
.test-container .back-link,
.test-page .breadcrumbs,
.test-page .back-link,
.mocktest-content .breadcrumbs,
.mocktest-content .back-link {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Prevent text selection on questions and options */
.question-text,
.option-btn,
.question-card,
.test-question {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    cursor: default;
}

/* Allow selection for form inputs and buttons */
.question-text input,
.question-text textarea,
.option-btn input,
.option-btn textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text;
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.logout-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}