@import "tailwindcss"; :root { --background: #0a0a1a; --foreground: #e8e8f0; --accent: #6366f1; --accent-light: #818cf8; --card-bg: rgba(15, 15, 35, 0.8); --card-border: rgba(99, 102, 241, 0.2); --glow: rgba(99, 102, 241, 0.15); } @theme inline { --color-background: var(--background); --color-foreground: var(--foreground); --color-accent: var(--accent); --color-accent-light: var(--accent-light); --font-sans: var(--font-geist-sans); --font-mono: var(--font-geist-mono); } /* Gradient text utilities (bg-linear-to-r not generating CSS in this setup) */ .gradient-text-hero { background-image: linear-gradient(to right, #ffffff, #c7d2fe, #d8b4fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .gradient-text-brand { background-image: linear-gradient(to right, #ffffff, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .gradient-bar-illumination { background-image: linear-gradient(to right, #818cf8, #fde047); } .gradient-radial-glow { background-image: radial-gradient(circle, rgba(254, 240, 138, 0.1), rgba(99, 102, 241, 0.05), transparent); } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { background: var(--background); color: var(--foreground); font-family: var(--font-sans, system-ui, -apple-system, sans-serif); min-height: 100vh; overflow-x: hidden; } /* Dynamic Moon Background */ .moon-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; } .moon-bg::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%), radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(30, 27, 75, 0.3) 0%, transparent 70%); animation: nebula 60s ease-in-out infinite alternate; } .moon-bg .stars { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8), transparent), radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,0.6), transparent), radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.7), transparent), radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.9), transparent), radial-gradient(1px 1px at 15% 70%, rgba(255,255,255,0.4), transparent), radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.6), transparent), radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.7), transparent), radial-gradient(2px 2px at 25% 55%, rgba(255,255,255,0.3), transparent), radial-gradient(1px 1px at 5% 45%, rgba(255,255,255,0.6), transparent), radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.4), transparent), radial-gradient(1px 1px at 45% 35%, rgba(255,255,255,0.5), transparent), radial-gradient(2px 2px at 95% 5%, rgba(255,255,255,0.3), transparent), radial-gradient(1px 1px at 55% 65%, rgba(255,255,255,0.7), transparent); animation: twinkle 8s ease-in-out infinite alternate; } @keyframes nebula { 0% { transform: rotate(0deg) scale(1); } 100% { transform: rotate(3deg) scale(1.02); } } @keyframes twinkle { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.8; } } /* Glass card effect */ .glass-card { background: var(--card-bg); backdrop-filter: blur(20px); border: 1px solid var(--card-border); border-radius: 1rem; transition: all 0.3s ease; } .glass-card:hover { border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 0 30px var(--glow); } /* Section styling */ .section-container { max-width: 1280px; margin: 0 auto; padding: 4rem 1.5rem; } @media (min-width: 768px) { .section-container { padding: 6rem 2rem; } } .section-title { font-size: 2rem; font-weight: 700; background: linear-gradient(135deg, #e8e8f0, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; } @media (min-width: 768px) { .section-title { font-size: 2.5rem; } } .section-subtitle { color: rgba(232, 232, 240, 0.6); font-size: 1rem; max-width: 600px; line-height: 1.6; } /* Glow button */ .glow-btn { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; border: none; padding: 0.75rem 2rem; border-radius: 9999px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); } .glow-btn:hover { box-shadow: 0 0 40px rgba(99, 102, 241, 0.5); transform: translateY(-2px); } /* Countdown */ .countdown-box { display: flex; flex-direction: column; align-items: center; min-width: 60px; padding: 0.75rem; background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 0.75rem; } @media (min-width: 640px) { .countdown-box { min-width: 70px; padding: 1rem; } } .countdown-number { font-size: 1.5rem; font-weight: 700; color: #818cf8; font-variant-numeric: tabular-nums; } @media (min-width: 640px) { .countdown-number { font-size: 2rem; } } .countdown-label { font-size: 0.75rem; color: rgba(232, 232, 240, 0.5); text-transform: uppercase; letter-spacing: 0.05em; } /* Nav */ .nav-link { color: rgba(232, 232, 240, 0.7); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.5rem 1rem; border-radius: 9999px; transition: all 0.2s ease; } .nav-link:hover, .nav-link.active { color: #818cf8; background: rgba(99, 102, 241, 0.1); } /* Scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #0a0a1a; } ::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.5); } /* Phase badges */ .phase-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 500; } .phase-badge.full_moon { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); } .phase-badge.new_moon { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); } .phase-badge.first_quarter { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); } .phase-badge.last_quarter { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); } /* Quiz */ .quiz-option { padding: 1rem 1.5rem; border: 1px solid var(--card-border); border-radius: 0.75rem; cursor: pointer; transition: all 0.2s ease; background: var(--card-bg); } .quiz-option:hover { border-color: rgba(99, 102, 241, 0.5); background: rgba(99, 102, 241, 0.1); } .quiz-option.correct { border-color: #22c55e; background: rgba(34, 197, 94, 0.15); } .quiz-option.wrong { border-color: #ef4444; background: rgba(239, 68, 68, 0.15); } /* Mobile nav */ .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: rgba(10, 10, 26, 0.95); backdrop-filter: blur(20px); border-top: 1px solid var(--card-border); padding: 0.5rem; display: flex; justify-content: space-around; } @media (min-width: 768px) { .mobile-nav { display: none; } } /* Give body extra padding on mobile for bottom nav */ main { padding-bottom: 4rem; } @media (min-width: 768px) { main { padding-bottom: 0; } } /* RTL support */ [dir="rtl"] { text-align: right; } /* Performance: reduce paint on heavy sections */ .section-container { contain: content; } /* Reduce motion for accessibility */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } } /* Focus-visible for keyboard navigation */ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* Print styles */ @media print { .moon-bg, .stars, header, footer, nav, .mobile-nav { display: none !important; } body { background: white !important; color: black !important; } section { break-inside: avoid; page-break-inside: avoid; } }