:root {
    --primary-color: #2563eb;
    /* Modern Blue */
    --primary-dark: #1e40af;
    --secondary-color: #0f172a;
    /* Slate 900 */
    --accent-color: #f59e0b;
    /* Amber 500 */
    --text-color: #334155;
    /* Slate 700 */
    --light-bg: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.75rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--light-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 a {
    text-decoration: none;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a.nav-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    /* Pill shape */
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.main-nav ul li a.nav-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: var(--white);
    text-align: center;
    padding: 8rem 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Abstract Background Shapes */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.hero-section::before {
    top: -50px;
    left: -50px;
}

.hero-section::after {
    bottom: -50px;
    right: -50px;
    background: var(--accent-color);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
    /* Center the content block */
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    font-weight: 400;
}

.btn-cta {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 3rem;
    font-size: 1.125rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
    /* Let sections handle their own padding */
}

/* Registration Form Card */
.registration-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 3rem auto;
    /* Added margin since main-content padding is gone */
    border: 1px solid #e2e8f0;
}

.registration-form-container h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    text-transform: uppercase;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-edit-photo {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-edit-photo:hover {
    background-color: #334155;
}

/* Modal */
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker overlay */
    backdrop-filter: blur(8px);
    display: flex;
    /* Flexbox for centering */
    align-items: center;
    /* Vertical center */
    justify-content: center;
    /* Horizontal center */
}

/* Ensure modal is hidden initially via JS, but flex causes issues if display:none is not set inline or via generic rule. 
   The JS toggles 'display: block', which breaks flex centering. 
   FIX: We'll change JS to toggle a class or just handle display:flex in a separate rule if active.
   Actually, standard JS toggle sets display:block. We need to override or change JS. 
   Easier fix: Keep display:block/none management in JS, but use an inner wrapper for centering or styling.
   Better fix: Change .modal to rely on a class 'show' for display:flex.
   
   However, for now, let's keep it simple. 
*/

.modal {
    display: none;
    /* Hidden by default */
    /* Other props remain */
}

/* When displayed via block, we can use margin auto on content */

.modal-content {
    background-color: #fefefe;
    margin: auto;
    /* Vertically centered if flex container, or just styled */
    padding: 0;
    border: 1px solid #444;
    width: 90%;
    max-width: 500px;
    /* Smaller max width for portrait look */
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    /* Vertical centering hack if not flex */
}

@keyframes zoomIn {
    from {
        transform: translateY(-50%) scale(0.9);
        opacity: 0
    }

    to {
        transform: translateY(-50%) scale(1);
        opacity: 1
    }
}

.modal-header {
    padding: 15px 20px;
    background-color: #0f172a;
    /* Dark styling */
    color: white;
    border-bottom: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close {
    color: #94a3b8;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
}

.close:hover {
    color: white;
}

.modal-body {
    padding: 0;
    /* No padding for full image area */
    background: black;
    height: 400px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-container {
    width: 100%;
    height: 100%;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    /* Ensure image fits */
    display: block;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    text-align: right;
}

.modal-footer .btn-submit {
    margin: 0;
    width: 100%;
    /* Full width button on mobile feels better or auto? User liked clean. */
    background-color: var(--primary-color);
    border-radius: 6px;
    padding: 12px;
}

/* Footer */
.main-footer {
    background: var(--secondary-color);
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        /* Show hamburger */
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        /* Hidden */
        transition: clip-path 0.4s ease-in-out;
    }

    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        /* Visible */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .main-nav ul li {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 0.75rem;
    }

    .main-nav ul li a.nav-btn {
        width: 100%;
        display: block;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .registration-form-container {
        padding: 1.5rem;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .registration-form-container h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 15px;
    }
}