/* ==========================================
   GLITCHER V2 - Enhanced Design
   Based on Figma AI + Original Functionality
   ========================================== */

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #60a5fa;
    --secondary-purple: #a78bfa;
    --dark-blue: #3b82f6;
    --accent-cyan: #22d3ee;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --text-lighter: #475569;
    --bg-main: #020817;
    --bg-surface: #0b1120;
    --bg-card: #0f1e35;
    --bg-elevated: #162032;
    --bg-gray: #0b1120;
    --bg-gray-dark: #020817;
    --border-gray: #1a3050;
    --border-glow: #1e4080;
    --glow-blue: rgba(96, 165, 250, 0.15);
    --glow-purple: rgba(167, 139, 250, 0.1);
    --white: #f1f5f9;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-main);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-container {
    padding: 80px 24px 40px;
}

/* ==========================================
   QUANTUM PARTICLES BACKGROUND
   ========================================== */
#quantum-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 8, 23, 0.92);
    border-bottom: 1px solid var(--border-gray);
    box-shadow: 0 1px 20px rgba(96, 165, 250, 0.08);
    backdrop-filter: blur(12px);
}

.navbar {
    padding: 16px 0;
}

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

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-icon {
    position: relative;
    width: 32px;
    height: 32px;
}

.quantum-logo {
    filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.3));
    transition: all 0.3s ease;
}

.quantum-glitch {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: subtle-glitch 8s infinite;
}

@keyframes subtle-glitch {
    0%, 90%, 100% { 
        opacity: 0; 
        transform: translate(0, 0); 
    }
    91% { 
        opacity: 0.3; 
        transform: translate(-1px, 0); 
    }
    92% { 
        opacity: 0; 
        transform: translate(1px, 0); 
    }
}

.logo-text-container {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.logo-trademark {
    font-size: 10px;
    color: var(--text-lighter);
    font-weight: 300;
}

/* Navigation Menu — desktop: fixed centrado en el header */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 64px;
    z-index: 1001;
    padding: 0;
    margin: 0;
    pointer-events: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #050d1f 0%, #0a1628 40%, #110a2e 70%, #0d0520 100%);
    z-index: -2;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 40%, rgba(59, 130, 246, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 70% 60%, rgba(139, 92, 246, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 10%, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: 110% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: -1;
    mix-blend-mode: luminosity;
}

.hero-waves {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    z-index: -1;
}

.hero-waves .wave {
    width: 100%;
    height: 100%;
}

.floating-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 10%;
}

.particle-2 {
    bottom: 20%;
    right: 10%;
    width: 8px;
    height: 8px;
    animation-delay: 1s;
    animation-duration: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.3;
    }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    padding: 60px 24px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    color: #ffffff;
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2), 0 10px 30px rgba(0,0,0,0.4);
    letter-spacing: 0.3px;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 35px rgba(96, 165, 250, 0.35), 0 15px 40px rgba(0,0,0,0.5);
    border-color: rgba(96, 165, 250, 0.6);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
    padding: 48px 0 96px;
    background: var(--bg-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 20px var(--glow-blue);
    border-color: var(--border-glow);
}

.feature-icon-container {
    position: relative;
    margin-bottom: 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

.feature-emoji {
    font-size: 32px;
}

.feature-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: pulse 2s ease infinite;
}

.feature-card:hover .feature-dot {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: var(--primary-blue);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-link {
    opacity: 1;
}

.feature-link svg {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-link svg {
    transform: translateX(4px);
}

/* ==========================================
   PAGE MANAGEMENT
   ========================================== */
main {
    position: relative;
    z-index: 1;
    min-height: 80vh;
}

.page {
    display: none;
    animation: pageSlideIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-content {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    border: 1px solid var(--border-gray);
}

.intro-text {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-content h2 {
    color: var(--primary-blue);
    font-size: 28px;
    margin-top: 32px;
    margin-bottom: 16px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.team-member {
    background: var(--bg-gray);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-gray);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 15px var(--glow-blue);
    border-color: var(--border-glow);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
    display: block;
    border: 2px solid var(--border-gray);
}

.team-member h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.member-role {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.member-bio {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================
   SERVICES PAGE
   ========================================== */
.services-grid {
    display: grid;
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: var(--border-glow);
}

.service-card h2 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 16px;
}

/* ==========================================
   BLOG PAGE
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.blog-card {
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 20px var(--glow-blue);
    border-color: var(--border-glow);
}

.blog-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 24px;
}

.blog-content h2 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-meta {
    font-size: 13px;
    color: var(--text-lighter);
    margin-bottom: 12px;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.contact-info,
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid var(--border-gray);
}

.contact-map-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border-gray);
    display: block;
}

.contact-info h2,
.contact-form-wrapper h2 {
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-size: 24px;
}

.info-block {
    margin: 24px 0;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: 8px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
    background: var(--bg-surface);
    color: var(--text-dark);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

#form-response {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

/* ==========================================
   CAREERS PAGE
   ========================================== */
.careers-content {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    border: 1px solid var(--border-gray);
}

.job-grid {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.job-card {
    background: var(--bg-gray);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.job-card {
    cursor: pointer;
}

.job-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.apply-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}


.contact-team-hint {
    font-size: 0.82rem;
    color: var(--text-lighter);
    margin-bottom: 20px;
    padding: 10px 14px;
    border-left: 2px solid rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.04);
    border-radius: 0 6px 6px 0;
}

.job-card h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.job-location {
    font-size: 14px;
    color: var(--text-lighter);
    margin-bottom: 12px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--bg-gray-dark);
    color: var(--text-lighter);
    padding: 40px 0 32px;
    margin-top: 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 8px 0;
}

.footer-section a {
    color: var(--text-lighter);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-lighter);
}

.footer-hints {
    display: flex;
    align-items: center;
    gap: 16px;
}

.version-text {
    font-size: 12px;
    color: #6b7280;
}

.footer-hint {
    font-size: 12px;
    font-style: italic;
    color: #4b5563;
    opacity: 0.5;
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-elevated);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(96, 165, 250, 0.06);
    border: 1px solid var(--border-gray);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--white);
}

#modal-content {
    font-size: 16px;
    line-height: 1.8;
}

#modal-content h2 {
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-size: 24px;
}

#modal-content .keyword {
    display: inline-block;
    background: linear-gradient(135deg, #00ff88 0%, #00cc70 100%);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
    font-size: 15px;
}

/* ==========================================
   LOGO GLITCH EFFECT
   ========================================== */
@keyframes logo-glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.logo-container.glitching .logo-icon {
    animation: logo-glitch 0.3s ease;
}

/* ==========================================
   HAMBURGER BUTTON (hidden on desktop)
   ========================================== */
.hamburger-btn {
    display: none;
}

/* Mobile drawer overlay (hidden on desktop) */
.mobile-overlay {
    display: none;
}

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

    /* ── Navbar layout: hamburger left, logo center, auth right ── */
    .navbar .container {
        position: relative;
    }

    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1002;
        flex-shrink: 0;
        order: -1;
    }

    .hamburger-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text-dark);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ── Drawer (slides in from left) ── */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 72vw;
        max-width: 280px;
        height: 100%;
        background: var(--bg-surface);
        border-right: 1px solid var(--border-gray);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
        z-index: 1001;
        list-style: none;
        margin: 0;
        padding: 72px 0 40px;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-menu.mobile-open {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-dark);
        border-bottom: 1px solid var(--border-gray);
        width: 100%;
    }

    .nav-menu .nav-link.active {
        color: var(--primary-blue);
        background: rgba(96, 165, 250, 0.06);
    }

    /* ── Overlay behind drawer ── */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1000;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* ── Auth controls ── */
    .nav-auth {
        margin-left: 0;
    }

    .nav-name-sep {
        display: none;
    }

    .user-egg-badge {
        font-size: 12px;
        padding: 5px 10px;
    }

    .nav-logout-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .nav-login-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* ── Hero ── */
    .hero-section {
        min-height: 320px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    /* ── Grids ── */
    .features-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* ── Footer ── */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* ── Pages ── */
    .about-content,
    .careers-content {
        padding: 24px;
    }

    .page-container {
        padding: 60px 16px 32px;
    }
}

/* ==========================================
   NAV AUTH CONTROLS
   ========================================== */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.nav-login-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-login-btn:hover {
    background: var(--dark-blue);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-egg-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 20px;
    padding: 6px 12px;
    white-space: nowrap;
}

.nav-logout-btn {
    background: none;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #f87171;
}

/* ==========================================
   AUTH MODAL
   ========================================== */
.auth-modal-box {
    max-width: 440px;
    width: 100%;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-gray);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.auth-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
    background: var(--bg-surface);
    color: var(--text-dark);
}

.auth-field input:focus {
    border-color: var(--primary-blue);
}

.auth-hint {
    font-size: 11px;
    color: var(--text-lighter);
    margin-top: 4px;
    display: block;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, opacity 0.2s;
}

.auth-submit-btn:hover {
    background: var(--dark-blue);
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 13px;
    color: var(--text-light);
}

.auth-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 1rem;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    min-height: 0;
}

.auth-message--error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-message--success {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================
   TEAM DRAG & DROP (Egg 3)
   ========================================== */
.team-member[draggable="true"] {
    cursor: grab;
    user-select: none;
}

.team-member[draggable="true"]:active {
    cursor: grabbing;
}

.team-member.dragging {
    opacity: 0.35;
    transform: scale(0.96);
    border-style: dashed;
    border-color: var(--primary-blue);
}

.team-member.drag-over {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
    transform: translateY(-4px);
}

.team-grid.solved .team-member {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.18);
}

#team-drag-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-lighter);
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* ==========================================
   QUANTUM MANIFESTO (Home — Egg 3 hint)
   ========================================== */
.quantum-manifesto {
    text-align: center;
    padding: 32px 24px 40px;
    max-width: 720px;
    margin: 0 auto;
}

.manifesto-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-lighter);
    margin-bottom: 14px;
}

.manifesto-text {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 300;
    color: var(--text-light);
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.manifesto-keyword {
    color: var(--accent-cyan);
    font-weight: 700;
    font-style: normal;
    letter-spacing: 4px;
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.services-footer-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.services-classified-note {
    font-size: 0.75rem;
    color: var(--text-lighter);
    font-style: italic;
    opacity: 0.5;
    margin: 0;
}

.hidden-select-text {
    color: #020817;
    user-select: text;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
}

#hidden-egg6::selection {
    background: rgba(34, 211, 238, 0.25);
    color: var(--accent-cyan);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50%       { opacity: 0.7; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.contact-connecting {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 8px;
}

.contact-connecting-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 1.4s ease-in-out infinite;
}

.contact-connecting-text {
    margin: 0;
    font-size: 0.9rem;
    color: #6ee7b7;
    line-height: 1.4;
}
