:root {
    --bg-color: #010C2C;
    --text-color: #f5f5f5;
    --accent-color: #C00BFD;
    --accent-glow: rgba(192, 11, 253, 0.6);
    --secondary-color: #001569;
    --card-bg: rgba(67, 2, 190, 0.2);
    --primary-color: #9407F2;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

body {
    position: relative;
}

/* Custom Cursor Glow */
#cursor-glow {
    position: fixed;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0.5;
    transition: width 0.3s, height 0.3s;
}

/* Typography */
h1, h2, h3, .logo-text {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.text-accent {
    color: var(--accent-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 12, 14, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-color), #ff5a5f);
    color: #fff;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(230, 57, 70, 0.5);
}

.secondary-btn {
    background: transparent;
    color: #fff;
    border: 2px solid var(--accent-color);
    background: rgba(12, 12, 14, 0.8);
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
}

.section:not(.hero) {
    background: linear-gradient(to bottom, var(--bg-color), #050507);
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--primary-color), var(--accent-color), transparent);
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--primary-color);
    z-index: 5;
}

.container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Hero Section */
.hero {
    overflow: hidden;
    background: linear-gradient(rgba(1, 12, 44, 0.8), rgba(1, 12, 44, 0.6)), url('public/img/hero_bg.jpg') center/cover;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #ccc;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Background Animated Shapes */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-glow);
    top: -150px;
    left: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(29, 53, 87, 0.6);
    bottom: 0px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(230, 57, 70, 0.3);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Spirit Section */
.spirit h2 {
    font-size: 3rem;
    margin-bottom: 60px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(230, 57, 70, 0.2);
    background: rgba(29, 53, 87, 0.4);
}

.card:hover::before {
    transform: scaleX(1);
}

.card .icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.card:hover .icon {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card p {
    color: #bbb;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Location Section */
.location h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.location p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 50px;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 450px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(192, 11, 253, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Let the overlay handle the click */
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0,0,0,0.1);
    transition: background 0.3s ease;
    cursor: pointer;
}

.map-overlay a.map-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
}

.map-overlay .btn {
    z-index: 4;
    pointer-events: none;
}

.map-container:hover .map-overlay {
    background: rgba(0,0,0,0.4);
}

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    background: #050507;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer p {
    color: #777;
}

.socials {
    display: flex;
    gap: 25px;
}

.socials a {
    color: #aaa;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.socials a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
    background: rgba(230, 57, 70, 0.1);
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.card.hidden {
    transform: translateY(40px) scale(0.95);
}

.card.show {
    transform: translateY(0) scale(1);
    transition-delay: var(--delay);
}

/* Glitch effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -2px 0 #00d4ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(21px, 9999px, 86px, 0); }
    10% { clip: rect(62px, 9999px, 30px, 0); }
    20% { clip: rect(10px, 9999px, 12px, 0); }
    30% { clip: rect(89px, 9999px, 71px, 0); }
    40% { clip: rect(42px, 9999px, 55px, 0); }
    50% { clip: rect(74px, 9999px, 14px, 0); }
    100% { clip: rect(74px, 9999px, 14px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    10% { clip: rect(3px, 9999px, 59px, 0); }
    20% { clip: rect(76px, 9999px, 81px, 0); }
    30% { clip: rect(23px, 9999px, 4px, 0); }
    40% { clip: rect(98px, 9999px, 21px, 0); }
    50% { clip: rect(15px, 9999px, 68px, 0); }
    100% { clip: rect(15px, 9999px, 68px, 0); }
}

/* Forms and New Sections */
.join {
    text-align: center;
    padding: 80px 20px;
    min-height: auto;
}

.join-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 20px;
    border: 1px solid rgba(192, 11, 253, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.join-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(192, 11, 253, 0.15);
}

.join h2, .contact h2 {
    margin-bottom: 20px;
}

.join p, .contact p {
    margin-bottom: 35px;
    font-size: 1.1rem;
    color: #bbb;
}

.whatsapp-btn {
    background: #25D366;
    background-image: linear-gradient(45deg, #1ebe57, #25D366);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.5);
    background-image: linear-gradient(45deg, #25D366, #1ebe57);
}

.contact {
    padding: 80px 20px;
    min-height: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(192, 11, 253, 0.3);
    backdrop-filter: blur(10px);
}

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

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.hidden-field {
    display: none;
}

.footer-email {
    margin-top: 5px;
    font-size: 1.1rem;
}

.footer-email a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .navbar { padding: 15px 20px; }
    
    .menu-toggle { display: block; }
    
    nav { 
        position: absolute;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(1, 12, 44, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: right 0.4s ease;
    }
    
    nav.active { right: 0; }
    
    nav a {
        margin: 20px 0;
        font-size: 1.5rem;
    }

    #cursor-glow { display: none; }
}
