/* Reset and Base Styles */
:root {
    --primary-color: #d0011b;
    --secondary-color: #d0011b;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #f8f9ff;
    --white: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --container-width: 480px;
    --header-height: 64px;
    --safe-area: env(safe-area-inset-top, 20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    min-height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

/* Container */
.container {
    padding: 0 1rem;
    margin: 0 auto;
    width: 100%;
}

/* Header and Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding-top: var(--safe-area);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: var(--transition);
}

/* Hamburger to X animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.nav-menu a:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    position: relative; /* Added to position the overlay */
    padding: calc(var(--header-height) + 2rem) 1rem 3rem;
    background-image: url('https://res.cloudinary.com/dxyka5ukp/image/upload/v1737364467/florian-olivo-Mf23RF8xArY-unsplash_wpicfs.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    border-radius: 0 0 24px 24px;
    margin: 0 0 -24px;
    overflow: hidden; /* added to clip the pseudo element if it would extend outside the div */

}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0014ff;
    opacity: 0.22;
    z-index: 1; /* Ensure overlay is on top of the image */
}


.hero-content {
    position: relative; /* Required to place content on top of the overlay */
    z-index: 2; /* Ensure content is on top of the overlay */
}

.hero h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Stats Section */
.stats {
    padding: 3rem 1rem;
    background: var(--white);
    border-radius: 24px 24px 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-text);
    font-size: 0.875rem;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 3rem 1rem;
    background: var(--background);
    border-radius: 24px 24px 0 0;
}

.about-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    justify-items: center;
    padding-bottom: 1rem;
    box-shadow: var(--card-shadow);
}

.about-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.about-features {
    list-style: none;
}

.about-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.875rem;
    color: var(--light-text);
}

.about-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Why Us Section */
.why-us {
    padding: 3rem 1rem;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.benefit-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.benefit-card p {
    font-size: 0.8125rem;
    color: var(--light-text);
}

/* Quick Start Guide */
.quick-start {
    padding: 3rem 1rem;
    background: var(--background);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.step-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.step-card p {
    font-size: 0.8125rem;
    color: var(--light-text);
}

/* Register Section */
.register {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    border-radius: 24px;
    margin: 0 1rem;
}

.register h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.register p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #1e1b4b;
    color: var(--white);
    padding: 3rem 1rem 2rem;
    margin-top: 3rem;
    border-radius: 24px 24px 0 0;
}

.footer-content {
    display: grid;
    gap: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.link-group h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.link-group ul {
    list-style: none;
}

.link-group a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Utility Classes */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button:active {
    transform: scale(0.98);
}

.nav-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-cta-button:active {
    transform: scale(0.98);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    color: var(--text-color);
}

/* Ensure mobile design on desktop */
@media (min-width: 481px) {
    body {
        max-width: var(--container-width);
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }

    .main-header {
        max-width: var(--container-width);
        margin: 0 auto;
    }

    .nav-menu {
        max-width: var(--container-width);
    }
}