/* CSS Variables for Theme Support */
:root {
    /* Light Theme Colors */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --rainbow-gradient: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
}

/* Dark Theme Styles */
html.dark {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --surface-color: #1e293b;
    --background-color: #0f172a;
    --border-color: #334155;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #3b82f6, #1e40af);
    --gradient-secondary: linear-gradient(135deg, #f59e0b, #d97706);
}

html.dark .header {
    background: rgba(15, 23, 42, 0.1);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

html.dark .brand-name {
    color: #f8fafc;
}

html.dark .btn-outline {
    color: #f8fafc;
    border-color: rgba(203, 213, 225, 0.3);
}

html.dark .btn-outline:hover {
    background-color: rgba(203, 213, 225, 0.1);
    border-color: rgba(203, 213, 225, 0.5);
    color: #f8fafc;
}

html.dark .btn-secondary {
    background-color: rgba(30, 41, 59, 0.3);
    color: #f8fafc;
    border-color: rgba(51, 65, 85, 0.3);
}

html.dark .btn-secondary:hover {
    background-color: rgba(30, 41, 59, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

/* Adjust body padding for fixed header */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Add padding to account for fixed header */
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    margin-bottom: 12px;
}

/* Header Styles - Always Dark Theme */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    height: 56px;
}

/* Remove theme-specific header styling */
html.dark .header {
    background: rgba(0, 0, 0, 0.7);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Left Section: Branding */
.header-left {
    display: flex;
    align-items: center;
    position: relative;
}

.header-logo {
    width: 80px;
    height: 80px;
    position: absolute;
    top: -12px;
    left: 0;
    z-index: 10;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #f8fafc; /* Always white text for dark header */
    margin-left: 90px;
}

/* Middle Section: Flexible spacer */
.header-middle {
    flex: 1;
}

/* Right Section: Actions & Tools */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Ghost Buttons - Always styled for dark header */
.btn-ghost {
    background: transparent;
    border: none;
    color: #f8fafc; /* Always white text for dark header */
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1); /* Always white hover for dark header */
}

/* Primary Header Button */
.btn-primary-header {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-header:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Theme Toggle - Always styled for dark header */
.theme-toggle-header {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Always white border for dark header */
    color: #f8fafc; /* Always white text for dark header */
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-header:hover {
    background: rgba(255, 255, 255, 0.1); /* Always white hover for dark header */
    transform: scale(1.05);
}
/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 9rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
}

.hero-title-glass {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html.dark .hero-title-glass {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.3);
}

.dynamic-text {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease-in-out infinite;
    transition: opacity 0.5s ease-in-out;
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-button {
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive font sizes */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Features Section */
.features {
    background-color: #ffffff;
    padding: 4rem 0;
}

html.dark .features {
    background-color: var(--surface-color);
}

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

/* Responsive Tab Triggers Grid */
.tab-triggers {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
    /* Mobile: 2 columns */
    grid-template-columns: repeat(2, 1fr);
}

/* Medium screens: 3 columns */
@media (min-width: 768px) {
    .tab-triggers {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large screens: 5 columns (single row) */
@media (min-width: 1024px) {
    .tab-triggers {
        grid-template-columns: repeat(5, 1fr);
    }
}

.tab-trigger {
    padding: 1.5rem 2rem;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
}

/* Checkbox Group Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: transparent;
}

.checkbox-label:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-label .checkmark {
    display: none; /* Hide custom checkmark since we're using native checkbox */
}
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    word-wrap: break-word;
}

.tab-trigger.active,
.tab-trigger:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Tab Content */
.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-card-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 400px;
    align-items: stretch;
}

/* Large screens: two-column layout */
@media (min-width: 1024px) {
    .feature-card-content {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

.feature-text {
    padding: 3rem;
}

.feature-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.feature-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-image-container {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}

@media (min-width: 1024px) {
    .feature-image-container {
        border-radius: 0 16px 16px 0;
    }
}

@media (max-width: 1023px) {
    .feature-image-container {
        border-radius: 0 0 16px 16px;
    }
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

/* Dark mode styles */
html.dark .feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

html.dark .feature-title {
    color: var(--text-primary);
}

html.dark .feature-description {
    color: var(--text-secondary);
}

.tab-content-panel.active {
    display: block;
    opacity: 1;
}

/* Feature Card Styling */
.feature-card {
    background-color: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-light);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card-content {
    display: grid;
    align-items: center;
    /* Large screens: 2 columns */
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Small screens: single column */
@media (max-width: 1023px) {
    .feature-card-content {
        grid-template-columns: 1fr;
    }
}

.feature-text-content {
    padding: 2.5rem;
}

.feature-text-content h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.feature-text-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.feature-image-container {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.feature-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: top;
}

/* On small screens, adjust image border radius */
@media (max-width: 1023px) {
    .feature-image-container img {
        /* Border radius removed for seamless alignment */
    }
}

/* Benefits Section */
.benefits {
    background-color: #ffffff;
}

html.dark .benefits {
    background-color: var(--surface-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 24px;
}

.benefit-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Mission Section */
.mission {
    background-color: var(--surface-color);
}

html.dark .mission {
    background-color: var(--surface-color);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.mission-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mission-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.mission-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta {
    background: linear-gradient(to bottom, var(--surface-color) 80%, rgba(255, 255, 255, 0.8) 100%);
    color: var(--text-primary);
    text-align: center;
}

.cta h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: orange;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
}

.popup {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: popupSlideIn 0.3s ease;
}

html.dark .popup {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

html.dark .popup-header {
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

html.dark .popup-header h3 {
    color: #f8fafc;
}

html.dark .close-btn {
    color: #cbd5e1;
}

html.dark .close-btn:hover {
    background-color: rgba(30, 41, 59, 0.5);
    color: #f8fafc;
}

.large-popup {
    max-width: 700px;
}

.small-popup {
    max-width: 400px;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.popup-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: var(--surface-color);
    color: var(--text-primary);
}

.popup-content {
    padding: 1.5rem;
}

.scrollable {
    max-height: 60vh;
    overflow-y: auto;
}

/* Registration popup specific styles */
.registration-popup .popup-header {
    padding: 1rem 1.5rem 0.5rem 1.5rem;
}

.registration-popup .popup-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.registration-popup .popup-content {
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
}

.registration-popup .popup-content::-webkit-scrollbar {
    width: 8px;
}

.registration-popup .popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.registration-popup .popup-content::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.registration-popup .popup-content::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Login popup specific styles */
.login-popup .popup-content {
    background-color: transparent;
    padding: 0;
}

.login-popup .popup-header {
    padding: 1.5rem 1.5rem 0rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.login-popup .popup-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.login-left {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.login-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    /* Align the first button with the first input field */
    margin-top: 0;
}

.role-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: white !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.role-btn.btn-primary {
    background-color: #007bff;
}

.role-btn.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.role-btn.btn-secondary {
    background-color: #6c757d;
}

.role-btn.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.admin-btn {
    background-color: #343a40 !important;
}

.admin-btn:hover {
    background-color: #23272b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 58, 64, 0.4);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-option label {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    flex: 1;
}

.radio-option input[type="radio"]:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 0.25rem;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 0;
    }
    
    .nav-section {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-section .btn {
        width: 100%;
        justify-content: center;
    }
    
    .theme-toggle {
        align-self: center;
        margin-top: 0.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-title-glass {
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
    }
    
    .hero-content .container {
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .login-form {
        grid-template-columns: 1fr;
    }
    
    .popup {
        width: 95%;
        margin: 10px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .logo {
        height: 32px;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-title-glass {
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }
    
    .nav-section .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

/* Registration Loading Styles */
.registration-loading {
    margin-top: 1.5rem;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.loading-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 200px;
}

.timer-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.timer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Form disabled state during loading */
.registration-form.loading {
    pointer-events: none;
    opacity: 0.7;
}

.registration-form.loading input,
.registration-form.loading button {
    cursor: not-allowed;
}

html.dark .registration-loading {
    background: var(--surface-color);
    border-color: var(--border-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification .toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notification .toast-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.toast-notification .toast-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.toast-notification .toast-body {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.toast-notification .toast-body a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.toast-notification .toast-body a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* Dark mode toast adjustments */
html.dark .toast-notification {
    background: linear-gradient(135deg, #4c1d95 0%, #581c87 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile responsive toast */
@media (max-width: 768px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

.toast-notification .toast-body a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.toast-notification .toast-body a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* Loading Toast Styles */
.loading-toast .toast-body {
    padding: 1rem 0 0 0;
}

.loading-toast .loading-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.loading-toast .loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-toast .loading-text {
    flex: 1;
}

.loading-toast .loading-text p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.loading-toast .loading-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-toast .timer-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.loading-toast .timer-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.loading-toast .timer-text {
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 20px;
}

.toast-notification .toast-body a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.toast-notification .toast-body a:hover {
    color: #ffed4e;
    text-decoration: underline;
}
css
/* CSS Variables for Theme Support */
:root {
    /* Light Theme Colors */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --rainbow-gradient: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
}

/* Dark Theme Styles */
html.dark {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --surface-color: #1e293b;
    --background-color: #0f172a;
    --border-color: #334155;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #3b82f6, #1e40af);
    --gradient-secondary: linear-gradient(135deg, #f59e0b, #d97706);
}

html.dark .header {
    background: rgba(15, 23, 42, 0.1);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

html.dark .brand-name {
    color: #f8fafc;
}

html.dark .btn-outline {
    color: #f8fafc;
    border-color: rgba(203, 213, 225, 0.3);
}

html.dark .btn-outline:hover {
    background-color: rgba(203, 213, 225, 0.1);
    border-color: rgba(203, 213, 225, 0.5);
    color: #f8fafc;
}

html.dark .btn-secondary {
    background-color: rgba(30, 41, 59, 0.3);
    color: #f8fafc;
    border-color: rgba(51, 65, 85, 0.3);
}

html.dark .btn-secondary:hover {
    background-color: rgba(30, 41, 59, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

/* Adjust body padding for fixed header */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #0f172a;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Add padding to account for fixed header */
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    margin-bottom: 12px;
}

/* Header Styles - Always Dark Theme */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    height: 56px;
}

/* Remove theme-specific header styling */
html.dark .header {
    background: rgba(0, 0, 0, 0.7);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Left Section: Branding */
.header-left {
    display: flex;
    align-items: center;
    position: relative;
}

.header-logo {
    width: 80px;
    height: 80px;
    position: absolute;
    top: -12px;
    left: 0;
    z-index: 10;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #f8fafc; /* Always white text for dark header */
    margin-left: 90px;
}

/* Middle Section: Flexible spacer */
.header-middle {
    flex: 1;
}

/* Right Section: Actions & Tools */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Ghost Buttons - Always styled for dark header */
.btn-ghost {
    background: transparent;
    border: none;
    color: #f8fafc; /* Always white text for dark header */
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1); /* Always white hover for dark header */
}

/* Primary Header Button */
.btn-primary-header {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-header:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Theme Toggle - Always styled for dark header */
.theme-toggle-header {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Always white border for dark header */
    color: #f8fafc; /* Always white text for dark header */
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-header:hover {
    background: rgba(255, 255, 255, 0.1); /* Always white hover for dark header */
    transform: scale(1.05);
}
/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 9rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
}

.hero-title-glass {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html.dark .hero-title-glass {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.3);
}

.dynamic-text {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease-in-out infinite;
    transition: opacity 0.5s ease-in-out;
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-button {
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive font sizes */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Features Section */
.features {
    background-color: #ffffff;
    padding: 4rem 0;
}

html.dark .features {
    background-color: var(--surface-color);
}

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

/* Responsive Tab Triggers Grid */
.tab-triggers {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
    /* Mobile: 2 columns */
    grid-template-columns: repeat(2, 1fr);
}

/* Medium screens: 3 columns */
@media (min-width: 768px) {
    .tab-triggers {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large screens: 5 columns (single row) */
@media (min-width: 1024px) {
    .tab-triggers {
        grid-template-columns: repeat(5, 1fr);
    }
}

.tab-trigger {
    padding: 1.5rem 2rem;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(