/* ========================================
   CBSE AI TUTOR - MAIN STYLESHEET
======================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: #16161f;
    --bg-elevated: #1e1e28;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --accent-primary: #f59e0b;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #8b5cf6;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #eab308;
    --accent-info: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-tertiary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #ef4444 100%);
    --gradient-mesh: radial-gradient(ellipse at 20% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
                     radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
                     radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --shadow-sm: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
    --shadow-md: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 2.5rem rgba(245, 158, 11, 0.2);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 624.9375rem;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --nav-height: 5rem;
}

[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    --shadow-md: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 2.5rem rgba(245, 158, 11, 0.15);
    --gradient-mesh: radial-gradient(ellipse at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
                     radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
                     radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 1rem; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 0.625rem; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: var(--radius-full); border: 0.125rem solid var(--bg-secondary); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::selection { background: var(--accent-primary); color: var(--bg-primary); }
:focus-visible { outline: 0.125rem solid var(--accent-primary); outline-offset: 0.125rem; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { color: var(--text-secondary); line-height: 1.7; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }

.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 50rem; }
.container-lg { max-width: 90rem; }
.section { padding: 6.25rem 0; position: relative; }
.section-sm { padding: 3.75rem 0; }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-secondary { background: var(--gradient-secondary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.bg-mesh { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient-mesh); pointer-events: none; z-index: 0; }
.bg-grid { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(var(--border-subtle) 0.0625rem, transparent 0.0625rem), linear-gradient(90deg, var(--border-subtle) 0.0625rem, transparent 0.0625rem); background-size: 3.75rem 3.75rem; pointer-events: none; z-index: 0; opacity: 0.5; }
.bg-noise { position: fixed; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.02; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); }
.floating-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.floating-shape { position: absolute; border-radius: 50%; filter: blur(5rem); animation: floatShape 20s ease-in-out infinite; }
.floating-shape:nth-child(1) { width: 37.5rem; height: 37.5rem; background: rgba(245, 158, 11, 0.08); top: -12.5rem; right: -12.5rem; }
.floating-shape:nth-child(2) { width: 31.25rem; height: 31.25rem; background: rgba(6, 182, 212, 0.06); bottom: -9.375rem; left: -9.375rem; animation-delay: -5s; }
.floating-shape:nth-child(3) { width: 25rem; height: 25rem; background: rgba(139, 92, 246, 0.05); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -10s; }
@keyframes floatShape { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(1.875rem, -1.875rem) scale(1.05); } 50% { transform: translate(-1.25rem, 1.25rem) scale(0.95); } 75% { transform: translate(1.25rem, 1.875rem) scale(1.02); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; min-height: 2.75rem; font-family: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none; border-radius: var(--radius-md); border: none; cursor: pointer; transition: all var(--transition-fast); 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 ease; }
.btn:hover::before { left: 100%; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: var(--shadow-sm), 0 0 1.25rem rgba(245, 158, 11, 0.3); }
.btn-primary:hover { transform: translateY(-0.125rem); box-shadow: var(--shadow-md), 0 0 1.875rem rgba(245, 158, 11, 0.4); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 0.0625rem solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--accent-primary); }
.btn-outline { background: transparent; color: var(--accent-primary); border: 0.125rem solid var(--accent-primary); }
.btn-outline:hover { background: var(--accent-primary); color: white; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-icon { width: 2.75rem; height: 2.75rem; padding: 0; border-radius: var(--radius-md); }

.card { background: var(--bg-card); border: 0.0625rem solid var(--border-color); border-radius: var(--radius-xl); padding: 2rem; transition: all var(--transition-base); }
.card:hover { border-color: rgba(245, 158, 11, 0.3); transform: translateY(-0.25rem); box-shadow: var(--shadow-lg); }
.card-glass { background: rgba(22, 22, 31, 0.6); backdrop-filter: blur(1.25rem); -webkit-backdrop-filter: blur(1.25rem); }
[data-theme="light"] .card-glass { background: rgba(255, 255, 255, 0.6); }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 0; transition: all var(--transition-base); }
.nav.scrolled { background: rgba(10, 10, 15, 0.9); backdrop-filter: blur(1.25rem); -webkit-backdrop-filter: blur(1.25rem); border-bottom: 0.0625rem solid var(--border-color); padding: 0.75rem 0; }
[data-theme="light"] .nav.scrolled { background: rgba(255, 255, 255, 0.9); }
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.5rem; color: var(--text-primary); text-decoration: none; }
.nav-logo:hover { color: var(--text-primary); }
.nav-logo-icon { width: 2.75rem; height: 2.75rem; background: var(--gradient-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: white; box-shadow: var(--shadow-glow); }
.nav-logo span { font-family: var(--font-display); }
.nav-links { display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.nav-link { padding: 0.625rem 1.125rem; text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; border-radius: var(--radius-md); transition: all var(--transition-fast); }
.nav-link:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.nav-link.active { color: var(--accent-primary); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle { width: 2.75rem; height: 2.75rem; border: none; background: var(--bg-tertiary); border-radius: var(--radius-md); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.theme-toggle:hover { background: var(--bg-elevated); color: var(--accent-primary); transform: rotate(15deg); }
.nav-mobile-toggle { display: none; width: 2.75rem; height: 2.75rem; border: none; background: var(--bg-tertiary); border-radius: var(--radius-md); color: var(--text-primary); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 0.3125rem; }
.nav-mobile-toggle span { width: 1.25rem; height: 0.125rem; background: currentColor; border-radius: 0.125rem; transition: all var(--transition-fast); }
.nav-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(0.3125rem, 0.3125rem); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(0.3125rem, -0.3125rem); }

.mobile-menu { position: fixed; inset: 0; background: var(--bg-primary); z-index: 999; display: flex; flex-direction: column; padding: 6.25rem 1.5rem 2rem; transform: translateX(100%); transition: transform var(--transition-base); }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.mobile-menu-link { display: block; padding: 1rem 1.25rem; text-decoration: none; color: var(--text-primary); font-size: 1.2rem; font-weight: 500; border-radius: var(--radius-md); transition: all var(--transition-fast); }
.mobile-menu-link:hover { background: var(--bg-tertiary); color: var(--accent-primary); }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.5rem; border-top: 0.0625rem solid var(--border-color); }

.section-header { text-align: center; max-width: 43.75rem; margin: 0 auto 4rem; }
.section-label { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(245, 158, 11, 0.1); border: 0.0625rem solid rgba(245, 158, 11, 0.2); border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.0313rem; margin-bottom: 1.25rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 1rem; }
.section-description { font-size: 1.1rem; color: var(--text-secondary); }

.page-header { padding: 10rem 0 5rem; text-align: center; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50rem; height: 50rem; background: var(--gradient-primary); filter: blur(9.375rem); opacity: 0.1; pointer-events: none; }
.page-header-content { position: relative; z-index: 1; }
.page-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.page-description { font-size: 1.25rem; color: var(--text-secondary); max-width: 37.5rem; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.9rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb-separator { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-secondary); }

.footer { background: var(--bg-secondary); border-top: 0.0625rem solid var(--border-color); padding: 5rem 0 2rem; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 4rem; }
.footer-brand { max-width: 18.75rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.5rem; color: var(--text-primary); margin-bottom: 1.25rem; }
.footer-logo:hover { color: var(--text-primary); }
.footer-logo-icon { width: 2.75rem; height: 2.75rem; background: var(--gradient-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: white; }
.footer-description { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social { width: 2.5rem; height: 2.5rem; background: var(--bg-tertiary); border: 0.0625rem solid var(--border-color); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all var(--transition-fast); }
.footer-social:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: white; transform: translateY(-0.125rem); }
.footer-column-title { font-weight: 600; font-size: 1.1rem; margin-bottom: 1.25rem; color: var(--text-primary); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link { color: var(--text-secondary); font-size: 0.95rem; transition: color var(--transition-fast); }
.footer-link:hover { color: var(--accent-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; border-top: 0.0625rem solid var(--border-color); }
.footer-copyright { color: var(--text-muted); font-size: 0.9rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-muted); font-size: 0.9rem; }
.footer-legal a:hover { color: var(--accent-primary); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(0.5rem); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--bg-card); border: 0.0625rem solid var(--border-color); border-radius: var(--radius-xl); width: 100%; max-width: 30rem; max-height: 85vh; display: flex; flex-direction: column; transform: scale(0.9) translateY(1.25rem); transition: transform var(--transition-base); box-shadow: var(--shadow-xl); }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-lg { max-width: 43.75rem; }
.modal-xl { max-width: 56.25rem; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.75rem; border-bottom: 0.0625rem solid var(--border-color); }
.modal-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.modal-close { width: 2.5rem; height: 2.5rem; border: none; background: var(--bg-tertiary); border-radius: var(--radius-md); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.modal-close:hover { background: var(--accent-danger); color: white; }
.modal-body { padding: 1.75rem; overflow-y: auto; flex: 1; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; padding: 1.25rem 1.75rem; border-top: 0.0625rem solid var(--border-color); }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-primary); }
.form-label-optional { color: var(--text-muted); font-weight: 400; font-size: 0.9rem; }
.form-input { width: 100%; padding: 0.875rem 1.125rem; font-family: inherit; font-size: 1rem; color: var(--text-primary); background: var(--bg-tertiary); border: 0.0625rem solid var(--border-color); border-radius: var(--radius-md); transition: all var(--transition-fast); }
.form-input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 0.1875rem rgba(245, 158, 11, 0.1); }
.form-input::placeholder { color: var(--text-muted); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236a6a7a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 1.125rem; padding-right: 3rem; cursor: pointer; }
.form-textarea { min-height: 7.5rem; resize: vertical; }
.form-checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-checkbox { width: 1.25rem; height: 1.25rem; accent-color: var(--accent-primary); margin-top: 0.125rem; cursor: pointer; }
.form-checkbox-label { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }
.form-checkbox-label a { color: var(--accent-primary); }
.form-error { color: var(--accent-danger); font-size: 0.85rem; margin-top: 0.375rem; }
.form-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--text-muted); font-size: 0.9rem; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 0.0625rem; background: var(--border-color); }

.badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; background: var(--bg-tertiary); border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.badge-primary { background: rgba(245, 158, 11, 0.1); color: var(--accent-primary); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--accent-success); }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--accent-info); }

.reveal { opacity: 0; transform: translateY(2.5rem); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(1.875rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { left: -100%; } 50%, 100% { left: 100%; } }

@media (max-width: 75em) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 62em) { .nav-links { display: none; } .nav-actions .btn-ghost { display: none; } .nav-mobile-toggle { display: flex; } .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 48em) { .section { padding: 5rem 0; } .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } .modal { margin: 1rem; max-height: calc(100vh - 2rem); } }
@media (max-width: 30em) { .container { padding: 0 1rem; } .btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; } .section-header { margin-bottom: 3rem; } }

.sr-only { position: absolute; width: 0.0625rem; height: 0.0625rem; padding: 0; margin: -0.0625rem; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ========================================
   SHARED HEADER STYLES (injected header)
   Used by renderSharedHeader() in main.js
======================================== */

/* Auth visibility for injected header */
[data-auth-show="authenticated"] { display: none !important; }
body.is-authenticated [data-auth-show="authenticated"] { display: block !important; }
body.is-authenticated [data-auth-show="guest"] { display: none !important; }
body.is-authenticated [data-auth-show="authenticated"][data-auth-display="flex"] { display: flex !important; }
body.is-authenticated [data-auth-show="authenticated"][data-auth-display="inline-flex"] { display: inline-flex !important; }

/* Gradient text for header logo */
.sh-gradient-text {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient button for header CTA */
.sh-btn-gradient {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sh-btn-gradient:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.5rem rgba(249, 115, 22, 0.35);
}

/* Mobile menu for shared header */
.sh-mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.sh-mobile-menu.open { max-height: 62.5rem; }

/* Theme toggle icon animation */
.sh-theme-icon {
    transition: transform 0.5s ease, opacity 0.3s ease;
}
