/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
}

h1,
h2,
h3,
.font-cinzel {
    font-family: "Exo", sans-serif;
    font-weight: 400;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Header and Navigation */
header {
    background-color: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(22, 73, 212, 0.3);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    font-size: 1.875rem;
    font-family: "Exo", sans-serif;
    color: #0c91f5;
    text-decoration: none;
}

.desktop-nav {
    display: none;
}

.desktop-nav a {
    color: #d1d5db;
    /* gray-300 */
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-family: "Exo", sans-serif;
}

.desktop-nav a:hover {
    color: #ffffff;
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

#mobile-menu {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 1rem 0;
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    text-align: center;
    border-bottom: 1px solid rgba(200, 40, 40, 0.1);
}

#mobile-menu a:last-child {
    border-bottom: none;
}

.hidden {
    display: none;
}

/* Hero Section */
.hero-bg {
    background-image: url('../img/bg-top.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.25);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.hero-logo {
    max-width: 90%;
    height: auto;
    /* margin-bottom: 1rem; */
}

.hero-overlay p {
    margin-top: 1rem;
    max-width: 48rem;
    /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
    font-family: "Exo", sans-serif;
    color: #737b87;
    font-size: 11px !important;
    text-shadow: 0 0 0 #000;
    letter-spacing: 3px;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: white;
}

.countdown-box {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(40, 96, 200, 0.4);
    box-shadow: 0 0 15px rgba(40, 96, 200, 0.4);
    padding: 1rem;
    border-radius: 0.5rem;
    width: 8rem;
}

.countdown-box div:first-child {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: "Exo", sans-serif;
}

.countdown-box div:last-child {
    font-size: 0.875rem;
    color: #0c91f5;
    text-transform: uppercase;
    font-family: 'Exo';
}

.launch-date {
    font-family: "Exo", sans-serif;
    font-size: 1.5rem;
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-blue {
    background: linear-gradient(145deg, #187ba9, #002c66);
    color: #ffffff;
    font-family: "Exo", sans-serif;
    font-weight: 400;
    border: 1px solid #3075a9ad;
    box-shadow: 0 0 10px rgb(22 117 164);
}

.btn-blue:hover {
    background: linear-gradient(145deg, #196183, #022149);
    box-shadow: 0 0 20px rgba(19, 73, 145, 0.8);
    transform: translateY(-2px);
}

.btn-hero {
    margin-top: 3rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-nav {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Sections */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #000;
    border-top: 1px solid #0c91f545;
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    padding-bottom: 1rem;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Flip Card Styles */
.card {
    background-color: transparent;
    min-height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    /* background-color: rgba(15, 15, 15, 0.9); */
    background: linear-gradient(151deg, #062041, #162229ba);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-back {
    transform: rotateY(180deg);
}

.card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.card-back h3 {
    font-size: 1.25rem;
    text-transform: uppercase;
}

.card p {
    font-size: 0.875rem;
    color: #9ca3af;
    /* gray-400 */
    line-height: 1.6;
}

.click-hint {
    font-style: italic;
    opacity: 0.6;
    font-size: 0.75rem;
    margin-top: 1rem;
    color: #ccc;
}

/* Pre-Registro Section */
#registro {
    background-image: url('../img/bg-top.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.section-bg {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(200, 40, 40, 0.2);
    padding: 3rem 1.5rem;
    border-radius: 0.5rem;
    max-width: 56rem;
    /* max-w-4xl */
    margin: auto;
    text-align: center;
}

.section-bg p {
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 42rem;
    /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 36rem;
    /* max-w-xl */
    margin: auto;
}

.register-form input {
    width: 100%;
    background-color: #1f2937;
    /* gray-800 */
    border: 1px solid #4b5563;
    /* gray-600 */
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.register-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0c91f5;
}

.register-form button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
}

/* Eventos Section */
#eventos {
    background-image: url('../img/bg-top.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#eventos .card {
    min-height: auto;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    background-color: rgba(23, 23, 23, 0.89);
    border: 1px solid rgba(40, 104, 200, 0.2);
}

#eventos .card h3 {
    font-size: 1.25rem;
}

/* Footer */
footer {
    background-color: #111827;
    /* gray-900 */
    border-top: 1px solid rgba(40, 141, 200, 0.2);
    padding: 2rem 0;
    text-align: center;
    color: #9ca3af;
}

footer p:first-of-type {
    font-family: "Exo", sans-serif;
    font-size: 1.5rem;
    color: #0c91f5;
    margin-bottom: 0.5rem;
}

footer .legal {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #0c91f5;
}

/* Animated Border */
.animated-border {
    position: relative;
    overflow: hidden;
}

.animated-border::before,
.animated-border::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0c91f563, transparent);
    animation: animate-border 4s linear infinite;
}

.animated-border::before {
    top: 70px;
    left: -100%;
}

.animated-border::after {
    bottom: 0;
    right: -100%;
    animation-delay: -2s;
}

@keyframes animate-border {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Responsive Styles */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .mobile-menu-button {
        display: none;
    }

    .hero-logo {
        max-width: 500px;
    }

    .hero-overlay p {
        font-size: 1.25rem;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-box div:first-child {
        font-size: 3rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .grid-md-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .register-form {
        flex-direction: row;
    }

    .register-form input {
        width: 66.66%;
    }

    .register-form button {
        width: 33.33%;
    }

    .grid-md-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-lg-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}