/* Reset and general styles */
body, h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    color: #fff;
}

body {
    background-color: #0a0a0a;
    overflow-x: hidden;
}

/* Import font Russo One */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #1a1a1a;
    border-bottom: 3px solid #e63946;
}

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

header .logo img {
    width: 150px; /* Ajustăm dimensiunea logo-ului pentru a fi mai prietenos cu mobilul */
    margin-right: 10px;
    filter: invert(1) brightness(2) contrast(2);
}

header .logo h1 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5em; /* Ușor mai mic pentru a se încadra bine pe mobil */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-family: 'Russo One', sans-serif;
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    font-weight: normal;
    position: relative;
}

.nav-links a:hover {
    background-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0px 4px 15px rgba(230, 57, 70, 0.4);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #e63946;
    left: 0;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Social icons styles */
.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
}

.social-icons a {
    font-size: 28px; /* Ușor mai mic pentru a se încadra bine pe mobil */
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a[href*="facebook.com"] {
    color: #3b5998;
}

.social-icons a[href*="instagram.com"] {
    color: #E4405F;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #e63946;
}

/* Hero section styles */
.hero {
    height: 50vh; /* Păstrează înălțimea inițială */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
    background: url('A_dynamic_and_powerful_image_of_martial_artists_in.png') no-repeat center 15%/cover;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 2.5em; /* Ajustat pentru mobil */
    margin-bottom: 20px;
    z-index: 1;
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2em; /* Ajustat pentru mobil */
    margin-bottom: 30px;
    z-index: 1;
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.7);
}

.about-hero {
    background: url('A_dramatic_image_for_a_KEMPO_martial_arts_club_sho.png') no-repeat center center/cover;
    background-attachment: fixed;
}

.contests-hero {
    background: url('conc.webp') no-repeat center center/cover;
    background-attachment: fixed;
}

.contact-hero {
    background: url('A_focused_and_serene_background_image_for_a_KEMPO_.png') no-repeat center center/cover;
    background-attachment: fixed;
}

.btn-primary {
    background-color: #e63946;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 50px;
    height: 200%;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(25deg);
    transition: left 0.5s ease;
    z-index: 2;
}

.btn-primary:hover:after {
    left: 120%;
}

/* Content Boxes */
.content-box {
    background-color: #1a1a1a;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
}

.content-box h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #e63946;
    text-transform: uppercase;
}

.content-box p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #ddd;
}

/* Gallery Section */
.gallery {
    padding: 50px 20px;
    background-color: #121212;
    text-align: center;
}

.gallery h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #e63946;
    text-transform: uppercase;
}

.contest-section {
    margin-bottom: 40px;
}

.contest-section h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #e63946;
    text-transform: uppercase;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
    justify-items: center;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Menține proporția 4:3 */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img, .gallery-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}

.show-more {
    flex: 1 1 100%;
    background-color: #e63946;
    color: white;
    padding: 10px;
    margin: 5px 0;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 10px;
}

.show-more:hover {
    background-color: #d62828;
}

.gallery-item img, .gallery-item video {
    width: 100%; /* Ajustat pentru a se încadra în mod responsiv */
    max-width: 300px; /* Dimensiune maximă pentru ecrane mai mari */
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
}

/* Contact Container (Address and Map) */
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.address {
    flex: 1;
}

.map {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.map iframe {
    width: 100%;
    height: 400px;
    flex-grow: 1;
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
    border: 0; /* Asigură-te că nu există borduri */
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .map iframe {
        height: 300px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .social-icons {
        margin-bottom: 10px;
    }

    .cta .container {
        flex-direction: column;
        text-align: center;
    }

    .cta h2, .cta p {
        margin-bottom: 10px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header .logo {
        margin-bottom: 10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 1em;
    }

    .content-box h2 {
        font-size: 1.5em;
    }

    .gallery-item img, .gallery-item video {
        max-width: 250px;
    }

    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Signup form section */
.signup-form {
    padding: 50px 20px;
    background-color: #1a1a1a;
    text-align: center;
}

.signup-form h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #e63946;
    text-transform: uppercase;
}

.signup-form form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.2em;
    color: #e63946;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: #2a2a2a;
    border: 1px solid #e63946;
    border-radius: 5px;
    color: #fff;
    font-size: 1em;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d62828;
}

/* CTA section */
.cta {
    padding: 50px 20px;
    background-color: #1a1a1a;
    margin-top: 20px;
    position: relative;
}

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

.cta h2, .cta p {
    margin-bottom: 20px;
}

.cta .btn-primary {
    margin-top: 0;
    margin-left: auto;
    display: inline-block;
}

/* Footer styles */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px 0;
    border-top: 3px solid #e63946;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    max-width: 80%;
}

.lightbox-slide {
    display: none;
    text-align: center;
}

.lightbox-slide img, .lightbox-slide video {
    margin: auto;
    max-width: 100%;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}
