:root {
    --primary-color: #111827;
    --secondary-color: #0f143b;
    --accent-color: #3949ab;
    --text-color: #ffffff;
    --text-secondary: #b3e5fc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(135deg, #1e1e3f 0%, #0f0f23 100%);
    padding: 1.2rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #8b5cf6;
}

/* .nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
} */

/* .nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: center;
    gap: 1rem; 
} */
.nav-content {
    max-width: 70%;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-links,
    .nav-auth {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-links a,
    .auth-button {
        padding: 0.5rem;
        text-align: center;
        flex: 1 1 45%; /* allow side-by-side on landscape */
        min-width: 120px;
    }

    .container {
        padding-top: 12rem; /* increase space to account for tall nav on wrap */
    }
}



.nav-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #b3e5fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(179, 229, 252, 0.3);
}

.nav-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
    text-shadow: 0 0 30px rgba(179, 229, 252, 0.5);
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    border-color: #c084fc;
    color: #ffffff;
}

.user-email {
    font-size: 0.9rem;
    color: #b3e5fc;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.6rem 1.2rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 500;
}

/* .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 2rem;
    text-align: center;
} */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem; /* Adjust padding to account for fixed navbar */
    text-align: center;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* min-height: calc(100vh - 400px); */
    /* padding: 1rem 1rem; */
    padding: 0.5rem 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    margin-top: 0rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.info-section {
    margin-top: 1rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #5c6bc0;
}

.join-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border: 2px solid #c084fc;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.join-button:hover {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    border-color: #d8b4fe;
}

.content-box {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.status-text {
    padding: 0.75rem;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--text-color);
}

.text-box {
    padding: 1rem;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--text-color);
    min-height: 100px;
    margin-top: 1rem;
}

.button-danger {
    background-color: #d32f2f;
}

.button-danger:hover {
    background-color: #f44336;
}

.button-warning {
    background-color: #ffa000;
}

.button-warning:hover {
    background-color: #ffb74d;
}

.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info {
    margin: 2rem 0;
    text-align: left;
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.contact-info strong {
    color: var(--text-secondary);
}

.about-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-color);
}

.section-title {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.password-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
    flex-direction: column;
}

.password-display span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    background-color: var(--primary-color);
    padding: 0.5rem 2rem;
    border-radius: 4px;
    letter-spacing: 2px;
    min-width: 120px;
    text-align: center;
}

.password-display button {
    margin-top: 0.5rem;
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
    text-align: center;
}

input[type="password"] {
    font-family: monospace;
    letter-spacing: 2px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
}

.auth-button {
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border: 2px solid #c084fc;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.auth-button:hover {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    border-color: #d8b4fe;
    color: #ffffff;
}

.user-email {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    font-size: 0.9rem;
}

@media (max-width: 400px) {
    .nav-links a,
    .auth-button {
        flex: 1 1 100%;
    }

    .container {
        padding-top: 13rem; /* increase just a bit for extra tall nav */
    }
}

/* Hide speaker code display */
#speaker-code-display {
    display: none;
}

/* New styles for restructured index page */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.content-block {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.warning-block {
    background: linear-gradient(135deg, #2d1b1b 0%, #1a0f0f 100%);
    border: 1px solid #ff6b6b;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
}

.highlight-block {
    background: linear-gradient(135deg, #1b2d1b 0%, #0f1a0f 100%);
    border: 1px solid #6bff6b;
    box-shadow: 0 4px 20px rgba(107, 255, 107, 0.2);
}

.contact-block {
    background: linear-gradient(135deg, #1b1b2d 0%, #0f0f1a 100%);
    border: 1px solid #6b6bff;
    box-shadow: 0 4px 20px rgba(107, 107, 255, 0.2);
}

.section-title {
    color: var(--text-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

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

.feature-card {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card h3 {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* About Section Styles */
.about-block {
    background: linear-gradient(135deg, #1d1d2d 0%, #0f0f1a 100%);
    border: 1px solid #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-content strong {
    color: var(--text-secondary);
    font-weight: 600;
}

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

.limitations-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

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

.languages-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.languages-grid {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.languages-grid p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

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

.partners-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.partners-cta {
    font-size: 1.3rem !important;
    color: var(--text-secondary) !important;
    margin-top: 2rem !important;
}

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

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    margin-top: 1rem;
}

.contact-email {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Why Us Section Styles */
.why-us-block {
    background: linear-gradient(135deg, #1d1d2d 0%, #0f0f1a 100%);
    border: 1px solid #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

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

.why-us-card {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

.why-us-card:hover::before {
    transform: scaleX(1);
}

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

.why-us-card h3 {
    color: var(--text-secondary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.why-us-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Features Section Styles */
.features-block {
    background: linear-gradient(135deg, #1d1d2d 0%, #0f0f1a 100%);
    border: 1px solid #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

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

.feature-card {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

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

.feature-card h3 {
    color: var(--text-secondary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .content-block {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .languages-grid {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .why-us-card {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .content-block {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .languages-grid {
        padding: 1rem;
    }
    
    .why-us-card {
        padding: 1rem;
    }
    
    .why-us-icon {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

/* Contact Page Styles */
.contact-info-block {
    background: linear-gradient(135deg, #1d1d2d 0%, #0f0f1a 100%);
    border: 1px solid #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

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

.contact-card {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

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

.contact-card h3 {
    color: var(--text-secondary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.about-us-block {
    background: linear-gradient(135deg, #1d1d2d 0%, #0f0f1a 100%);
    border: 1px solid #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.about-us-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: left;
}

.about-us-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-us-content p:last-child {
    margin-bottom: 0;
}

.cta-block {
    background: linear-gradient(135deg, #1b2d1b 0%, #0f1a0f 100%);
    border: 1px solid #6bff6b;
    box-shadow: 0 4px 20px rgba(107, 255, 107, 0.2);
}

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

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .button {
    min-width: 150px;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1rem;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
}
