/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
    --color-primary: #D40A60;
    --color-gradient-start: #111111;
    --color-gradient-end: #D40A60;
    --color-text: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.60);
    --color-background: #111111;
    --color-form-background: #2D2D2D;
    --color-form-placeholder: #747474;
    --font-primary: 'Maison Neue', 'Roboto', sans-serif;
    --font-secondary: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: linear-gradient(180deg, var(--color-gradient-start) 45%, var(--color-gradient-end) 100%);
    overflow-x: hidden;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title {
    font-size: 56px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 56px;
    margin-bottom: 40px;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 36px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 24px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.button--primary {
    background-color: var(--color-primary);
    color: var(--color-text);
}

.button--primary:hover {
    background-color: #F0277B;
}

/* Header Styles */
.header {
    padding: 20px 0;
    background-color: var(--color-background);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-image {
    height: 36px;
    width: auto;
    margin-top: 6px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav__link:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Menu toggle animation */
.menu-toggle--active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle--active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle--active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: 150px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative tetris blocks for hero section */
.hero-tetris-1 {
    width: 108px;
    position: absolute;
    top: 20%;
    left: 5%;
    z-index: 0;
    display: none;
}

.hero-tetris-2 {
    width: 62px;
    position: absolute;
    bottom: 15%;
    left: 2%;
    z-index: 0;
    display: none;
}

.hero-tetris-3 {
    width: 91px;
    position: absolute;
    top: 30%;
    right: 8%;
    z-index: 0;
    display: none;
}

.hero-star-1 {
    width: 32px;
    position: absolute;
    top: 15%;
    right: 15%;
    z-index: 0;
    display: none;
}

.hero-star-2 {
    width: 22px;
    position: absolute;
    bottom: 25%;
    right: 20%;
    z-index: 0;
    display: none;
}

@media (min-width: 769px) {
    .hero-tetris-1,
    .hero-tetris-2,
    .hero-tetris-3,
    .hero-star-1,
    .hero-star-2 {
        display: block;
    }
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero__content {
    flex: 1;
    min-width: 300px;
    max-width: 570px;
}

.badge {
    display: inline-block;
    padding: 12px;
    background: linear-gradient(90deg, #D40A60 14%, #E46468 64%, #F4C16F 100%);
    border-radius: 22px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 24px;
    margin-bottom: 28px;
}

.subtitle {
    color: var(--color-text-secondary);
    font-size: 32px;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 32px;
    margin-bottom: 28px;
}

.title {
    font-size: 50px;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 50px;
    margin-bottom: 28px;
}

.event-details {
    color: var(--color-text-secondary);
    font-size: 32px;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 32px;
    margin-bottom: 28px;
}

.description {
    color: var(--color-text-secondary);
    font-size: 22px;
    font-weight: 400;
    line-height: 24px;
}

.registration-form {
    flex: 1;
    min-width: 300px;
    max-width: 462px;
}

.form-group {
    margin-bottom: 27px;
}

.form-group label {
    display: block;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 4px;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--color-form-background);
    border: 2px solid transparent;
    border-radius: 6px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    transition: border-color 0.3s ease;
}

.form-group input.error,
.form-group select.error {
    border-color: #FF4136;
}

.success-message {
    background-color: rgba(0, 255, 0, 0.2);
    color: white;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.form-group input::placeholder,
.form-group select {
    color: var(--color-form-placeholder);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-form-placeholder);
    pointer-events: none;
}

/* Speakers Section */
.speakers {
    padding: 60px 0;
    position: relative;
}

.speakers__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.speaker {
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 340px;
}

.speaker__image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.speaker__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker__name {
    color: var(--color-text);
    font-size: 32px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 24px;
    margin-bottom: 4px;
}

.speaker__title {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-family: var(--font-secondary);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 28px;
}

/* Expectations Section */
.expectations {
    padding: 60px 0;
    position: relative;
}

.expectations__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.expectation {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    padding: 16px;
}

.expectation__icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.expectation__icon img {
    max-width: 100%;
    max-height: 100%;
}

.expectation__time {
    color: var(--color-text);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 32px;
    margin-bottom: 8px;
}

.expectation__description {
    color: var(--color-text);
    font-size: 22px;
    font-weight: 500;
    line-height: 33px;
}

.cta-container {
    text-align: center;
    margin-top: 40px;
}

/* Benefits Section */
.benefits {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.benefits .container {
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

/* Decorative tetris blocks for benefits section */
.benefits-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.benefits-tetris-1 {
    width: 71px;
    position: absolute;
    top: 15%;
    left: 5%;
}

.benefits-tetris-2 {
    width: 90px;
    position: absolute;
    bottom: 20%;
    left: 8%;
}

.benefits-tetris-3 {
    width: 130px;
    position: absolute;
    top: 30%;
    right: 5%;
}

.benefits-tetris-4 {
    width: 57px;
    position: absolute;
    bottom: 25%;
    right: 10%;
}

.benefits .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.benefits__description {
    color: var(--color-text);
    font-size: 22px;
    font-weight: 500;
    line-height: 24.20px;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.benefit-icon {
    margin-right: 20px;
    flex-shrink: 0;
    width: 38px;
}

.benefit-icon img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2));
}

.benefit-item p {
    margin-bottom: 0;
    flex: 1;
    padding-top: 6px;
}

/* Decorative Elements */
.tetris, .star, .icon {
    position: absolute;
}

.tetris img, .star img, .icon img {
    width: 100%;
    height: 100%;
}

.tetris-1 {
    width: 71px;
    top: 50px;
    left: 20px;
}

.tetris-2 {
    width: 57px;
    top: 150px;
    right: 50px;
}

.tetris-3 {
    width: 90px;
    bottom: 50px;
    left: 100px;
}

.star-1 {
    width: 32px;
    top: 30px;
    right: 100px;
}

.star-2 {
    width: 15px;
    top: 100px;
    left: 150px;
}

.star-3 {
    width: 22px;
    bottom: 80px;
    right: 80px;
}

.icon-1 {
    width: 38px;
    top: 180px;
    left: 50px;
}

.icon-2 {
    width: 36px;
    bottom: 30px;
    right: 150px;
}

.icon-3 {
    width: 39px;
    top: 80px;
    right: 30px;
}

.decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.tetris-4 {
    width: 108px;
    top: 800px;
    left: 5%;
}

.tetris-5 {
    width: 130px;
    top: 1200px;
    right: 5%;
}

.tetris-6 {
    width: 62px;
    top: 1800px;
    left: 10%;
}

.tetris-7 {
    width: 91px;
    top: 2200px;
    right: 10%;
}

/* Image Showcase */
.image-showcase {
    width: 100%;
    margin: 60px 0;
    overflow: hidden;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Back to Top */
.back-to-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top__button {
    width: 62px;
    height: 62px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.arrow-up-icon {
    width: 38px;
    height: 38px;
}

.arrow-up-icon img {
    width: 100%;
    height: 100%;
}

.back-to-top__text {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 24px;
}

/* Animation for decorative elements */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.tetris img, .star img, .icon img {
    width: 100%;
    height: 100%;
    animation: float 6s ease-in-out infinite;
}

.star-1 img {
    animation-delay: 0.5s;
}

.star-2 img {
    animation-delay: 1s;
}

.star-3 img {
    animation-delay: 1.5s;
}

.icon-1 img {
    animation-delay: 2s;
}

.icon-2 img {
    animation-delay: 2.5s;
}

.icon-3 img {
    animation-delay: 3s;
}

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
    background-color: #B3054F;
    margin-top: 60px;
}

.footer__logo {
    max-width: 500px;
    margin: 0 auto 30px;
}

.footer__copyright {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .section-title {
        font-size: 48px;
        line-height: 48px;
    }
    
    .title {
        font-size: 42px;
        line-height: 42px;
    }
    
    .event-details {
        font-size: 28px;
        line-height: 28px;
    }
    
    .tetris-4, .tetris-7 {
        display: none;
    }
}

/* Added body class for when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 102;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.95);
        padding: 100px 20px 20px;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 101;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Hide sections on mobile */
    .image-showcase, 
    .benefits,
    .benefits-decoration {
        display: none;
    }
    
    .nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .nav__link {
        font-size: 24px;
    }
    
    .hero .container,
    .benefits .container {
        flex-direction: column;
    }
    
    .hero__content,
    .registration-form,
    .benefits__content,
    .benefits__decoration {
        max-width: 100%;
    }
    
    .speaker {
        max-width: 100%;
    }
    
    .expectation {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 42px;
        line-height: 42px;
    }
    
    .title {
        font-size: 36px;
        line-height: 36px;
    }
    
    .event-details {
        font-size: 24px;
        line-height: 24px;
    }
    
    .description {
        font-size: 18px;
    }
    
    .expectation__time {
        font-size: 28px;
        line-height: 28px;
    }
    
    .expectation__description {
        font-size: 18px;
        line-height: 28px;
    }
    
    .benefits__content .section-title {
        text-align: center;
    }
    
    .tetris-5, .tetris-6 {
        display: none;
    }
    
    .footer__logo {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 36px;
        line-height: 36px;
    }
    
    .title {
        font-size: 30px;
        line-height: 30px;
    }
    
    .subtitle {
        font-size: 24px;
        line-height: 24px;
    }
    
    .event-details {
        font-size: 20px;
        line-height: 20px;
    }
    
    .speaker__name {
        font-size: 28px;
    }
    
    .expectations__grid {
        flex-direction: column;
    }
    
    .speaker__image {
        width: 240px;
        height: 240px;
    }
    
    .expectation__icon {
        width: 150px;
        height: 150px;
    }
    
    .benefits__decoration {
        height: 300px;
    }
    
    .badge {
        font-size: 14px;
    }
    
    .tetris-1, .tetris-2, .tetris-3, .star-1, .star-3 {
        display: none;
    }
    
    .icon-1, .icon-2, .icon-3 {
        width: 30px;
    }
}
