/**
 * AurID Landing Page Styles
 * Light/Dark Theme Support
 */

/* ============================================
   CSS VARIABLES - Light Theme (Default)
   ============================================ */
:root,
.theme-light {
    /* Background Colors */
    --bg-primary: #FFF7E9;
    --bg-secondary: #F5E8D8;
    --bg-card: #FFFFFF;
    --bg-hover: #F0E0D0;
    
    /* Accent Colors */
    --accent-primary: #DAA520;
    --accent-primary-hover: #C6941A;
    --accent-secondary: #3A86FF;
    --accent-secondary-hover: #2A76EF;
    
    /* Text Colors */
    --text-primary: #2B2B2F;
    --text-secondary: #6B6460;
    --text-muted: #9B9490;
    --text-on-accent: #FFFFFF;
    
    /* Border Colors */
    --border-color: #E5D8C8;
    --border-focus: #DAA520;
    
    /* Shadow */
    --shadow-sm: 0 2px 4px rgba(43, 43, 47, 0.05);
    --shadow-md: 0 4px 12px rgba(43, 43, 47, 0.08);
    --shadow-lg: 0 8px 24px rgba(43, 43, 47, 0.12);
    
    /* Success/Error */
    --success: #28A745;
    --error: #DC3545;
    
    /* Transition */
    --transition: all 0.3s ease;
}

/* ============================================
   CSS VARIABLES - Dark Theme
   ============================================ */
.theme-dark {
    /* Background Colors */
    --bg-primary: #1C1C1E;
    --bg-secondary: #2A2622;
    --bg-card: #3A3632;
    --bg-hover: #4A4642;
    
    /* Accent Colors */
    --accent-primary: #F2CB05;
    --accent-primary-hover: #E0BB00;
    --accent-secondary: #3A86FF;
    --accent-secondary-hover: #2A76EF;
    
    /* Text Colors */
    --text-primary: #F5E8D8;
    --text-secondary: #B0A9A0;
    --text-muted: #8B8480;
    --text-on-accent: #1C1C1E;
    
    /* Border Colors */
    --border-color: #4A4642;
    --border-focus: #F2CB05;
    
    /* Shadow */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    /* Success/Error */
    --success: #48C76A;
    --error: #F55A5A;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-secondary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    color: var(--text-on-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 247, 233, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.theme-dark .header {
    background-color: rgba(28, 28, 30, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), #FFD700);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language & Theme Switchers */
.lang-switcher,
.theme-switcher {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-switcher:hover,
.theme-switcher:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.lang-dropdown {
    position: relative;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 150px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
}

.lang-menu.active {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.lang-menu a:hover {
    background-color: var(--bg-secondary);
}

.lang-menu a.active {
    background-color: var(--accent-primary);
    color: var(--text-on-accent);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding-top: 120px;
    padding-bottom: 5rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #FFD700 50%, var(--accent-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.hero-illustration::before {
    content: '';
    position: absolute;
    inset: 20px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.hero-icon {
    position: relative;
    z-index: 1;
    font-size: 8rem;
}

/* ============================================
   FOR WHOM SECTION
   ============================================ */
.for-whom {
    background-color: var(--bg-primary);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.audience-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.audience-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-primary), #FFD700);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.audience-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.audience-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    background-color: var(--bg-secondary);
}

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

.feature-card {
    background-color: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
    background-color: var(--bg-primary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-on-accent);
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.9375rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ============================================
   FOR ORGS SECTION
   ============================================ */
.for-orgs {
    background-color: var(--bg-secondary);
}

.orgs-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.org-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.org-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.org-tab.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-on-accent);
}

.orgs-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.org-card {
    background-color: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition);
}

.org-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.org-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary), #FFD700);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.org-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.org-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ============================================
   MLEX SECTION
   ============================================ */
.mlex {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #FFD700 100%);
    color: var(--text-on-accent);
}

.mlex-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mlex h2 {
    color: var(--text-on-accent);
    margin-bottom: 1rem;
}

.mlex p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.mlex .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-on-accent);
}

.mlex .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-on-accent);
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */
.contact {
    background-color: var(--bg-primary);
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--error);
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

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

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    background-color: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-hover);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

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

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

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

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   PRIVACY & TERMS PAGES
   ============================================ */
.page-header {
    padding-top: 120px;
    padding-bottom: 3rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-illustration {
        max-width: 300px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .steps::before {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .orgs-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .org-tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
