/* =========================================
   NEBULA PREMIUM - MAIN STYLES
   © 2026 Grupo Armindo
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    /* Colors - Deep Space Theme */
    --bg-deep: #020408;
    /* Darker, richer black/blue */
    --bg-surface: rgba(255, 255, 255, 0.02);
    --bg-surface-hover: rgba(255, 255, 255, 0.06);

    /* Accents - Vibrant & Neon */
    --accent-primary: #4f46e5;
    /* Electric Indigo */
    --accent-secondary: #0ea5e9;
    /* Sky Blue */
    --accent-tertiary: #ec4899;
    /* Hot Pink */
    --accent-glow: rgba(79, 70, 229, 0.6);

    /* Text */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-dim: rgba(255, 255, 255, 0.4);

    /* Glassmorphism Refined */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-highlight: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --glass-blur: blur(20px);

    /* Layout */
    --u-container: 1400px;
    --u-nav-height: 80px;
    --u-radius: 24px;

    /* Animation */
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Typography Refinements */
h1,
h2,
h3,
h4,
.brand-font {
    font-family: 'Outfit', sans-serif;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    letter-spacing: -0.04em;
    line-height: 1;
    font-weight: 800;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   BACKGROUND FX
   ========================================= */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-deep);
}

.aurora-blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.35;
    border-radius: 50%;
    animation: float 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--accent-primary);
    animation-duration: 30s;
}

.blob-2 {
    bottom: -15%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: var(--accent-secondary);
    animation-duration: 35s;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: var(--accent-tertiary);
    opacity: 0.15;
    animation-duration: 28s;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: var(--u-container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* =========================================
   NAVIGATION (Smart Blur)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--u-nav-height);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    transition: all 0.4s var(--ease-out-quart);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(2, 4, 8, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    height: 70px;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.brand img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 999px;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
}

.nav-link {
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

/* =========================================
   HERO SECTION (3D Float)
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--u-nav-height);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    z-index: 2;
    position: relative;
}

/* Floating Elements Container */
.hero-3d-elements {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.float-element {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: float 10s infinite ease-in-out;
}

.float-1 {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    animation-duration: 12s;
}

.float-2 {
    bottom: 20%;
    right: 15%;
    width: 120px;
    height: 120px;
    animation-duration: 15s;
    animation-delay: -2s;
    border-radius: 50%;
}

.float-3 {
    top: 15%;
    right: 20%;
    width: 60px;
    height: 60px;
    animation-duration: 9s;
    animation-delay: -5s;
    transform: rotate(45deg);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: 32px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: 32px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2em rgba(255, 255, 255, 0.1));
}

.hero-desc {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Magnetic Buttons */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: black;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: scale(1.05);
}

/* =========================================
   PROJECT GRID (Spotlight Effect)
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    padding: 0;
}

.bento-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--u-radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-quart), border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;

    /* Spotlight Variables */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Spotlight Overlay */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Content Z-Index to sit above spotlight */
.bento-card>* {
    position: relative;
    z-index: 2;
}

.col-span-12 {
    grid-column: span 12;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-4 {
    grid-column: span 4;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.card-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.card-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-muted);
}

/* Member Cards Specialized */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.member-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--u-radius);
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s var(--ease-out-quart);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.member-card .card-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    white-space: nowrap;
}

.member-card .card-desc {
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* =========================================
   FOOTER (Fat Board)
   ========================================= */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 15, 0.5);
    padding: 100px 0 40px;
}

.footer-nav-link {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 20px;
    font-weight: 500;
}

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

/* =========================================
   ANIMATIONS (Scroll Reveal)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-quart);
}

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {

    .col-span-8,
    .col-span-6,
    .col-span-4 {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .section {
        padding: 100px 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--u-nav-height);
        left: 0;
        width: 100%;
        background: rgba(2, 4, 8, 0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: var(--glass-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out-quart);
        z-index: 90;
    }

    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-link {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-muted);
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* =========================================
   AUTH MODAL & UI
   ========================================= */
.auth-modal {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(0px);
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
}

.auth-panel {
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s var(--ease-elastic);
    position: relative;
    overflow: hidden;
}

.auth-modal.active .auth-panel {
    transform: scale(1) translateY(0);
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.auth-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.auth-tab.active {
    color: white;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.or-divider::before {
    margin-right: 12px;
}

.or-divider::after {
    margin-left: 12px;
}

.btn-google {
    width: 100%;
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-google:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
}

/* Fix for Logout Button in Navbar */
button.nav-link {
    background: transparent;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

button.nav-link:hover {
    color: #fca5a5 !important;
    background: rgba(220, 38, 38, 0.1);
}