:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-main: #F9FAFB;
    --bg-card: rgba(255, 255, 255, 0.95);
    --border-color: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

hr {
    height: 0.1em;
    padding: 0;
    margin: 24px auto;
    background-color: var(--border-color);
    border: 0;
    width: 75vw;
    max-width: 800px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.username-display {
    margin-right: 1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

#auth-section {
    display: flex;
    align-items: center;
}

/* Mobile Navbar Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    /* Mobile Menu Toggle */
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.25rem;
        color: var(--text-main);
        cursor: pointer;
        margin-right: 1rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        min-width: 200px;
        border-radius: 0 0 0 1rem;
        gap: 1rem;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .username-display {
        max-width: 100px;
        font-size: 0.85rem;
        margin-right: 0.75rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Desktop Navbar - hide toggle */
@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}

/* Banner */
.banner {
    width: 100%;
    margin-top: 76px;
    /* offset for fixed navbar */
    padding: 10rem 4rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
}

.banner::before {
    content: "";
    /* background-image: url('visiondevcamp.jpg'); */
    background-size: cover;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    z-index: -1;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.05));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    text-align: left;
}

.banner-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: black;
    margin-bottom: 0.75rem;
    /* text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5); */
    letter-spacing: -1px;
}

.banner-content p {
    font-size: 1.5rem;
    color: black;
    /* text-shadow: 0 3px 10px rgba(0, 0, 0, 1); */
    font-weight: 500;
    margin-bottom: 2rem;
}



/* Search Bar */
.search-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border-radius: 9999px;
    padding: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 300px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 1rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    padding-left: 0.25rem;
}

.input-group input {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    padding: 0;
    width: 100%;
}

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

.divider {
    width: 1px;
    height: 48px;
    background-color: var(--border-color);
}

.btn-search {
    background-color: var(--primary-color);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-search:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .search-container {
        border-radius: 1.5rem;
        padding: 1.5rem;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .divider {
        width: 100%;
        height: 1px;
        margin: 1rem 0;
    }

    .btn-search {
        width: 100%;
        border-radius: 0.75rem;
        margin-top: 1rem;
    }
}

/* Info Section */
.info-section {
    padding: 5rem 2rem;
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
}

.info-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--bg-card);
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-content h2 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step-indicator.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-indicator.active .step-label {
    color: var(--text-main);
}

/* Secondary Button */
.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    border-color: var(--text-muted);
}