:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-gray: #f4f4f4;
    --text-color: #333333;
    --card-bg: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Grunge/Rock Texture Overlay */
/* Grunge/Rock Texture Overlay */
.background-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    opacity: 1;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    z-index: 1;
}

/* Hero */
.hero {
    margin-bottom: 4rem;
    animation: fadeIn 1s ease-out;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: none;
}

.subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Newsletter */
.newsletter {
    margin-bottom: 4rem;
    animation: slideUp 0.8s ease-out 0.3s backwards;
}

.newsletter p {
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

form {
    display: flex;
    gap: 0;
    /* Connected input and button */
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

input[type="email"] {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    border-right: none;
    transition: background 0.3s ease;
}

input[type="email"]:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.05);
}

button {
    padding: 1.2rem 2.5rem;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

button:hover {
    background: transparent;
    color: var(--primary-color);
}

.message {
    margin-top: 1.5rem;
    font-weight: 500;
}

.hidden {
    display: none;
}

/* Sections */
section {
    margin-bottom: 4rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* Cards Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.card {
    background: var(--card-bg);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 150px;
    background-color: #ddd;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.card .date {
    font-weight: 500;
    color: var(--text-color);
}

/* Objectives Section */
.objectives-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.objective-item {
    background: var(--accent-gray);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 4px solid var(--primary-color);
}

/* Carousel Section */
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

.carousel-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.company-logo {
    display: inline-block;
    margin: 0 2rem;
    height: 50px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.company-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.social-links a {
    color: white;
    margin: 0 0.5rem;
    text-decoration: none;
    font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        max-width: 300px;
    }

    h1 {
        font-size: 2.5rem;
    }

    form {
        flex-direction: column;
        gap: 1rem;
        box-shadow: none;
    }

    input[type="email"] {
        border-right: 2px solid var(--primary-color);
        width: 100%;
    }

    button {
        width: 100%;
    }
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 0;
    width: auto;
    height: auto;
    filter: none;
}

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

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

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

.btn-login {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 700;
}

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

/* Forms & Registration */
.registration-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.glass-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: block;
    /* Override flex from main form */
    max-width: 100%;
}

.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.form-steps::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 0;
    transform: translateY(-50%);
}

.step {
    background: white;
    padding: 0.5rem 1.5rem;
    border: 2px solid #eee;
    border-radius: 20px;
    z-index: 1;
    font-weight: 600;
    color: #aaa;
    transition: all 0.3s;
}

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

.form-section {
    display: none;
    animation: fadeIn 0.5s;
}

.form-section.active {
    display: block;
}

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

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

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

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

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-secondary {
    background: #eee;
    color: #666;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #ddd;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    background: white;
    color: #333;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-social:hover {
    background: #f4f4f4;
    border-color: #999;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 0;
}

.divider span {
    background: white;
    padding: 0 10px;
    color: #999;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Logo Header Sizing */
.logo-header {
    height: 40px;
    width: auto;
    display: block;
}

.logo-link {
    display: flex;
    align-items: center;
}

/* Intro Animation */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#intro-logo {
    max-width: 80%;
    max-height: 80vh;
    width: 600px;
    /* Start large */
    height: auto;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
}

/* State to hide overlay */
#intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Hide the real header logo initially so we can 'land' the animated one there */
.logo-header {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.logo-header.visible {
    opacity: 1;
}

/* Musical Pulse Animation */
@keyframes pulse-music {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.05) rotate(1deg);
    }

    30% {
        transform: scale(0.98) rotate(-1deg);
    }

    45% {
        transform: scale(1.08) rotate(2deg);
    }

    60% {
        transform: scale(0.95) rotate(-2deg);
    }

    75% {
        transform: scale(1.02) rotate(1deg);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-active {
    animation: pulse-music 0.8s infinite ease-in-out;
}