:root {
    --color-bg-darker: #111827;
    /* gray-900 */
    --color-bg-dark: #1f2937;
    /* gray-800 */
    --color-text-main: #f3f4f6;
    /* gray-100 */
    --color-text-muted: #d1d5db;
    /* gray-300 */
    --color-primary: #2563eb;
    /* blue-600 */
    --color-primary-hover: #1d4ed8;
    /* blue-700 */
    --color-accent-blue: #60a5fa;
    /* blue-400 */
    --color-accent-indigo: #4f46e5;
    /* indigo-600 */
    --color-accent-purple: #9333ea;
    /* purple-600 */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-darker);
    color: var(--color-text-main);
    -webkit-font-smoothing: antialiased;
}

/* --- Utilities --- */
.gradient-text {
    background: linear-gradient(to right, #93c5fd, #818cf8);
    /* blue-300 to indigo-400 */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.text-gradient-logo {
    background: linear-gradient(to right, #60a5fa, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Components: Buttons --- */
.btn {
    display: inline-block;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-indigo), var(--color-accent-purple));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible;
    /* Allow glow to show */
}

/* Glow effect for primary buttons */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    border-radius: 0.5rem;
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    border-color: var(--color-accent-blue);
}

.btn-primary:hover::after {
    opacity: 0.3;
    /* Reduced from 0.6 */
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-nav {
    background: linear-gradient(135deg, var(--color-accent-indigo), var(--color-accent-purple));
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-left: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.btn-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    border-radius: 0.5rem;
    z-index: -1;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent-blue);
}

.btn-nav:hover::after {
    opacity: 0.3;
    /* Reduced from 0.6 */
}

/* Modal Error Button - Red gradient version */
.modal-error-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    position: relative;
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 700;
    z-index: 1;
}

.modal-error-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: 0.5rem;
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-error-btn:hover {
    transform: scale(1.05);
    border-color: #dc2626;
}

.modal-error-btn:hover::after {
    opacity: 0.3;
}


/* --- Layout Sections --- */
.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

/* --- Header --- */
.main-header {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: var(--color-bg-darker);
    border-bottom: 1px solid var(--color-bg-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--color-text-muted);
    margin: 0 0.75rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: white;
}

/* --- Hero --- */
.hero-section {
    background: linear-gradient(rgba(17, 24, 39, 0.50), rgba(17, 24, 39, 0.60)), url('../img/hero.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
        word-break: break-word;
        /* Ensure word wrapping if it still overflows */
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
    /* gray-200 */
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* --- Feature Cards --- */
.feature-card {
    background-color: var(--color-bg-dark);
    padding: 2rem;
    border-radius: 0.5rem;
    border-top-width: 4px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: scale(1.05);
    background-color: #263345;
    /* slightly lighter than gray-800 */
}

.card-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.card-icon img {
    width: 6rem;
    /* Increased from 4rem (w-16) */
    height: 6rem;
    /* Increased from 4rem (h-16) */
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card-text {
    color: var(--color-text-muted);
}

/* Specific Border Colors */
.border-blue {
    border-color: var(--color-primary);
}

.hover-shadow-blue:hover {
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}




/* --- Channel Grid System (Flex for centering) --- */
.channels-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    /* Space between modules */
}

/* Container for Button + Description */
.channel-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 18rem;
    /* Control width of the column */
}

/* The Clickable Button (Logo ONLY - Circular) */
.channel-btn {
    background-color: transparent;
    /* Handled by ::before */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    /* Circle */
    position: relative;
    /* overflow: hidden;  <-- REMOVE this so glow can bleed out */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 14rem;
    height: 14rem;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 1.5rem;
    padding: 0;
    z-index: 1;
    /* Establish stacking context */
}

/* 1. Button Background Surface */
.channel-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-bg-dark);
    border-radius: 50%;
    z-index: -1;
    transition: background-color 0.3s;
    /* Clean clip for content inside */
    overflow: hidden;
}

/* 2. Gradient Glow (The "Shadow") */
.channel-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    border-radius: 50%;
    z-index: -2;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(0, 10px);
    /* Push shadow down slightly */
}

/* Hover States */
.channel-btn:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--color-accent-blue);
    /* No box-shadow */
}

.channel-btn:hover::before {
    background-color: #2d3748;
}

.channel-btn:hover::after {
    opacity: 0.7;
    /* Adjust intensity */
}

/* Overlay for "Unirme" (Circular) */
.channel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    border-radius: 50%;
    /* Match parent */
}

.channel-btn:hover .channel-overlay {
    opacity: 1;
}

.join-text {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    border: 1px solid white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
}

.channel-btn:hover .join-text {
    transform: translateY(0);
}

.channel-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Zooms to fill, cropping if needed */
    margin: 0;
    transition: transform 0.5s ease;
    border-radius: 50%;
    /* Ensure image clips to circle if needed, though parent overflow handles it */
    position: relative;
    z-index: 10;
    /* Ensure visual hierarchy */
}

.channel-btn:hover .channel-logo {
    transform: scale(1.1);
}

/* Title Outside */
.channel-title-outside {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Description Outside */
.channel-desc-outside {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    text-align: center;
}

/* --- Scroll to Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(31, 41, 55, 0.7);
    /* gray-800 semi-transparent */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    /* Semi-transparent white */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 50;
    opacity: 0;
    /* Hidden by default */
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    border-radius: 50%;
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: rgba(79, 70, 229, 0.8);
    /* Darker indigo instead of bright blue */
    transform: translateY(-5px);
}

.scroll-top-btn:hover::after {
    opacity: 0.3;
    /* Reduced from 0.7 */
}



/* Social Hub Styles */
.social-hub-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    background: rgba(31, 41, 55, 0.5);
    /* gray-800 with opacity */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-pill:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-pill:hover::before {
    opacity: 1;
}

/* Brands Glows using box-shadow for a cleaner "aura" */
.pill-x:hover {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    /* sky-400 */
    border-color: rgba(56, 189, 248, 0.5);
}

.pill-instagram:hover {
    box-shadow: 0 0 20px rgba(219, 39, 119, 0.4);
    /* pink-600 */
    border-color: rgba(219, 39, 119, 0.5);
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.1), rgba(245, 158, 11, 0.1));
}

.social-pill svg {
    transition: transform 0.3s ease;
}

.social-pill:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

/* --- Forms --- */
.contact-container {
    background-color: var(--color-bg-darker);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-bg-dark);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
    /* mb-6 */
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    /* gray-400 */
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-bg-dark);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--color-primary);
}



/* --- Footer --- */
.main-footer {
    background-color: var(--color-bg-darker);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid var(--color-bg-dark);
    text-align: center;
}

/* --- Typography Helpers --- */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.text-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.text-highlight {
    font-weight: 700;
    color: white;
}

.text-accent-blue {
    font-weight: 600;
    color: var(--color-accent-blue);
}