/* 
 * TutorLink Main Stylesheet
 * WCAG 2.1 AA Compliant & Mobile Responsive
 * Author: TutorLink Development Team
 */

/* 
 * TutorLink Layout Fixes CSS
 * Quick patches for common layout issues
 * Usage: Add this file after your main styles.css
 * 
 * <link rel="stylesheet" href="assets/css/styles.css">
 * <link rel="stylesheet" href="assets/css/layout_fixes.css">
 */

/* ==========================================================================
   SPACING IMPROVEMENTS
   ========================================================================== */

.main-content { 
    padding: 2rem 0 3rem; 
}

.coming-soon { 
    margin-bottom: 3rem; 
}

.features-preview { 
    margin: 4rem 0; 
}

.contact-section { 
    margin: 3rem 0; 
}

footer { 
    padding: 3rem 0 2rem; 
}

/* ==========================================================================
   TYPOGRAPHY IMPROVEMENTS
   ========================================================================== */

.main-title { 
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.main-description {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   BUTTON IMPROVEMENTS
   ========================================================================== */

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-large:hover,
.btn-large:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

/* ==========================================================================
   CARD IMPROVEMENTS
   ========================================================================== */

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-description {
    flex: 1;
}

/* Better card hover effects */
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ==========================================================================
   SECTION BACKGROUNDS
   ========================================================================== */

.features-preview {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.features-title {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.coming-soon {
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.status-badge {
    box-shadow: 0 6px 20px rgba(238, 90, 82, 0.4);
}

/* ==========================================================================
   PROGRESS BAR IMPROVEMENTS
   ========================================================================== */

.progress-container {
    margin: 2.5rem auto;
    max-width: 600px;
}

.progress-bar {
    height: 24px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* ==========================================================================
   TIMELINE IMPROVEMENTS
   ========================================================================== */

.launch-timeline {
    margin-top: 2rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.timeline-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.contact-section {
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    font-size: 1.05rem;
}

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

.social-links {
    margin: 2rem 0;
    gap: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover,
.social-link:focus {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ==========================================================================
   LOGO IMPROVEMENTS
   ========================================================================== */

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.logo-icon {
    font-size: 3.5rem;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 400;
}

/* ==========================================================================
   GRID IMPROVEMENTS
   ========================================================================== */

.features-grid {
    gap: 2.5rem;
    margin-top: 2.5rem;
}

/* Ensure equal card heights */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ==========================================================================
   MODAL IMPROVEMENTS (if modal exists)
   ========================================================================== */

.modal-content {
    max-width: 700px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.3);
}

.modal-title {
    font-size: 1.9rem;
    padding: 2.5rem 3rem 1.5rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
}

.form-section legend {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.btn-submit {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   ANIMATION IMPROVEMENTS
   ========================================================================== */

/* Smooth all transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better hover animations */
.feature-card,
.contact-section,
.btn {
    transition: all 0.3s ease;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS FIXES
   ========================================================================== */

@media (max-width: 768px) {
    .main-title { 
        font-size: 2rem; 
    }
    
    .main-description { 
        font-size: 1.1rem; 
    }
    
    .btn-large { 
        padding: 1rem 2rem; 
        font-size: 1rem; 
    }
    
    .features-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
    }
    
    .logo h1 { 
        font-size: 2.5rem; 
    }
    
    .coming-soon {
        padding: 2rem 1.5rem;
    }
    
    .features-preview {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .contact-section {
        padding: 2rem 1.5rem;
    }
    
    .progress-container {
        margin: 2rem auto;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.75rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .btn-large {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   BACKGROUND FIXES
   ========================================================================== */

/* Ensure background covers everything */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

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

/* ==========================================================================
   FLOATING ICONS IMPROVEMENTS
   ========================================================================== */

.floating-icon {
    opacity: 0.2;
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .floating-icon {
        display: none;
    }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

/* Better focus states */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #4A90E2;
    outline-offset: 3px;
}

/* Ensure sufficient color contrast */
.main-description,
.feature-description,
.timeline-content {
    color: #5a6c7d;
}

/* Better text shadows for readability */
.logo h1,
.features-title {
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .floating-icon,
    .background-animation,
    .btn,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .coming-soon,
    .feature-card,
    .contact-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Quick spacing utilities */
.mt-large { margin-top: 3rem !important; }
.mb-large { margin-bottom: 3rem !important; }
.pt-large { padding-top: 3rem !important; }
.pb-large { padding-bottom: 3rem !important; }

/* Shadow utilities */
.shadow-sm { box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important; }
.shadow-md { box-shadow: 0 5px 20px rgba(0,0,0,0.12) !important; }
.shadow-lg { box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important; }

/* Border radius utilities */
.rounded-sm { border-radius: 10px !important; }
.rounded-md { border-radius: 15px !important; }
.rounded-lg { border-radius: 20px !important; }
.rounded-xl { border-radius: 30px !important; }

/* ==========================================================================
   CRITICAL FIXES FOR COMMON ISSUES
   ========================================================================== */

/* Fix for cards not aligning */
.features-grid > * {
    display: flex;
    flex-direction: column;
}

/* Fix for background not covering page */
html, body {
    height: 100%;
    min-height: 100vh;
}

/* Fix for content too wide */
.main-content > * {
    max-width: 100%;
}

/* Fix for modal not centered */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix for text readability */
.coming-soon,
.feature-card,
.contact-section {
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   END OF LAYOUT FIXES
   ========================================================================== */

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Accessibility Features
   ========================================================================== */

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

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

/* Focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .progress-fill {
        transition: none !important;
    }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #357ABD;
    text-decoration: underline;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

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

main {
    flex: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 1rem 0;
}

.logo h1 {
    color: #4A90E2;
    margin: 0;
    font-size: 1.8rem;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.logo a:hover,
.logo a:focus {
    color: #357ABD;
    text-decoration: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.progress-container {
    margin: 2rem auto 3rem;
    max-width: 500px;
}

.progress-label {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-bar {
    background: rgba(255,255,255,0.3);
    border-radius: 25px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 100%;
    border-radius: 25px;
    transition: width 2s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   Launch Dates
   ========================================================================== */

.launch-dates {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.date-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.date-item h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.date-item time {
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFD700;
}

/* ==========================================================================
   Call-to-Action
   ========================================================================== */

.cta-container {
    margin-top: 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px; /* WCAG touch target size */
    line-height: 1.4;
}

.btn-primary {
    background: #4A90E2;
    color: white;
    border: 2px solid #4A90E2;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #357ABD;
    border-color: #357ABD;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: white;
    color: #4A90E2;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card h3 {
    color: #4A90E2;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   Early Access Section
   ========================================================================== */

.early-access-section {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.early-access-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.early-access-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Registration Form Styles
   ========================================================================== */

.registration-section {
    padding: 4rem 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.registration-content {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.registration-content h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #4A90E2;
}

.registration-content > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

/* Form Styles */
.registration-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group label.required::after {
    content: ' *';
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #4A90E2;
    outline: none;
}

.form-group input:invalid {
    border-color: #e74c3c;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

/* Fieldset and Radio Styles */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

fieldset legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

fieldset legend.required::after {
    content: ' *';
    color: #e74c3c;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-item input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
}

.radio-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Conditional Fields */
.conditional-fields {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #4A90E2;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #e74c3c;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.alert ul {
    margin-left: 1rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* ==========================================================================
   Admin Styles (for files starting with 'a')
   ========================================================================== */

.admin-header {
    background: #34495e;
    color: white;
    padding: 1rem 0;
}

.admin-nav {
    background: #2c3e50;
    padding: 0.5rem 0;
}

.admin-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.admin-nav a:hover,
.admin-nav a:focus {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.admin-content {
    padding: 2rem 0;
    min-height: 70vh;
}

.admin-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .launch-dates {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .date-item {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .registration-content {
        padding: 2rem 1rem;
        margin: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .admin-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .admin-card {
        padding: 1rem;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .features-section {
        padding: 2rem 0;
    }
    
    .early-access-section {
        padding: 2rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .progress-container {
        margin: 1.5rem auto 2rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .hero-section,
    .early-access-section,
    footer,
    .btn,
    .cta-container {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .features-grid {
        display: block;
    }
    
    .feature-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }/* ==========================================================================
   Modal Styles for Registration
   ========================================================================== */

/* Modal Container */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Modal Header */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #7a8a9a;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
    z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
    color: #2c3e50;
}

.modal-title {
    text-align: center;
    padding: 2rem 3rem 1rem;
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 1rem;
    padding: 0 3rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #7a8a9a;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.05);
}

.tab-btn.active {
    color: #4A90E2;
    border-bottom-color: #4A90E2;
    background: rgba(74, 144, 226, 0.05);
}

/* Tab Panels */
.tab-panel {
    display: none;
    padding: 0 3rem 3rem;
}

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

/* Form Sections */
.form-section {
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}

.form-section legend {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding: 0;
}

.form-section legend.required::after {
    content: ' *';
    color: #e74c3c;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label.required::after {
    content: ' *';
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #e74c3c;
}

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

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #7a8a9a;
}

.error-message {
    display: none;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item label {
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    user-select: none;
}

.checkbox-other {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.checkbox-other input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-item label {
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    user-select: none;
}

/* Consent Section */
.consent-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4A90E2;
    margin-top: 2rem;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.consent-checkbox label {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit {
    width: 100%;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.form-message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.form-message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Success Panel */
.success-panel {
    padding: 3rem;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-panel h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.success-panel p {
    color: #5a6c7d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.success-panel strong {
    color: #4A90E2;
}

/* CTA Additions */
.cta-container {
    margin: 2rem 0;
}

.cta-subtext {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Animated Background Elements */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; }
.floating-icon:nth-child(3) { top: 80%; left: 20%; animation-delay: 4s; }
.floating-icon:nth-child(4) { top: 30%; left: 70%; animation-delay: 1s; }
.floating-icon:nth-child(5) { top: 70%; left: 60%; animation-delay: 3s; }
.floating-icon:nth-child(6) { top: 40%; left: 30%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Holding Page Specific Styles */
.coming-soon {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(238, 90, 82, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 8px 25px rgba(238, 90, 82, 0.3); }
    to { box-shadow: 0 8px 35px rgba(238, 90, 82, 0.5); }
}

.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.main-description {
    font-size: 1.2rem;
    color: #5a6c7d;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.logo {
    text-align: center;
    margin-bottom: 1rem;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.launch-timeline {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #667eea;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.timeline-content {
    color: #5a6c7d;
    font-size: 1.1rem;
}

.features-preview {
    margin: 3rem 0;
}

.features-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-description {
    color: #5a6c7d;
    line-height: 1.6;
}

.contact-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #5a6c7d;
    font-weight: 500;
}

.social-links {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

/* ==========================================================================
   Responsive Modal Styles
   ========================================================================== */

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-title {
        font-size: 1.5rem;
        padding: 1.5rem 2rem 1rem;
    }
    
    .tab-navigation {
        padding: 0 2rem;
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: 1rem;
        text-align: left;
    }
    
    .tab-btn.active {
        border-left-color: #4A90E2;
        border-bottom-color: transparent;
    }
    
    .tab-panel {
        padding: 0 2rem 2rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .form-section legend {
        font-size: 1.1rem;
    }
    
    .success-panel {
        padding: 2rem 1.5rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .logo-icon {
        font-size: 3rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .main-description {
        font-size: 1.1rem;
    }
    
    .coming-soon {
        padding: 2rem 1.5rem;
        margin: 1rem auto;
    }
    
    .floating-icon {
        display: none;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-title {
        font-size: 1.3rem;
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .tab-navigation {
        padding: 0 1.5rem;
    }
    
    .tab-panel {
        padding: 0 1.5rem 1.5rem;
    }
    
    .checkbox-other input[type="text"] {
        min-width: 100%;
        margin-top: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
