@charset "UTF-8";

/* =========================================
   Global Base
========================================= */
body {
    background-color: #050505;
    color: #e2e2e2;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}
.text-glow {
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}
::-webkit-scrollbar { display: none; }
html { scroll-behavior: smooth; }

/* =========================================
   Animations
========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.25s; }
.animate-in-delay-3 { animation-delay: 0.4s; }
.animate-in-delay-4 { animation-delay: 0.55s; }
.animate-in-delay-5 { animation-delay: 0.7s; }
.animate-in-delay-6 { animation-delay: 0.85s; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Homepage City Lights Scan */
@keyframes city-lights-scan {
    0% { mask-position: -100% 0; -webkit-mask-position: -100% 0; }
    40% { mask-position: 250% 0; -webkit-mask-position: 250% 0; }
    100% { mask-position: 250% 0; -webkit-mask-position: 250% 0; }
}
.yellow-lights-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.2) contrast(2.2) saturate(1.2);
    opacity: 0.5;
    mix-blend-mode: color-dodge;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 50%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 50%, transparent 100%);
    -webkit-mask-size: 60% 100%;
    mask-size: 60% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: city-lights-scan 6s infinite ease-in-out;
    will-change: mask-position, -webkit-mask-position;
}

/* =========================================
   Navigation
========================================= */
.nav-active span:first-child {
    color: #fff;
    position: relative;
}
.nav-active span:first-child::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0; height: 1px;
    background: rgba(255,255,255,0.5);
}

/* =========================================
   Universal Cards (Bento, Founder, Job, Lab, Tech)
========================================= */
.bento-card, .founder-card, .job-card, .lab-card, .tech-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.bento-card::before, .founder-card::before, .job-card::before, .lab-card::before, .tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.bento-card:hover, .founder-card:hover, .job-card:hover, .lab-card:hover, .tech-card:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -15px rgba(0,0,0,0.5), 0 0 40px -10px rgba(255,255,255,0.03);
}
.bento-card:hover::before, .founder-card:hover::before, .job-card:hover::before, .lab-card:hover::before, .tech-card:hover::before { 
    opacity: 1; 
}
.bento-card .card-number, .founder-card .card-number, .lab-card .card-number, .tech-card .card-number {
    font-family: 'Space Grotesk', monospace;
    font-size: 120px;
    font-weight: 600;
    line-height: 1;
    color: rgba(255,255,255,0.025);
    position: absolute;
    right: 16px;
    bottom: -15px;
    transition: color 0.5s ease;
    pointer-events: none;
}
.bento-card:hover .card-number, .founder-card:hover .card-number, .lab-card:hover .card-number, .tech-card:hover .card-number {
    color: rgba(255,255,255,0.05);
}
.tech-tag, .job-tag, .lab-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.08);
    color: #666;
    font-family: 'Space Grotesk', monospace;
}

/* =========================================
   Bento / Tech Grids & Status
========================================= */
.bento-grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}
.bento-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555;
}
.bento-status .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    /* Default white dot */
    background: #fff; 
    box-shadow: 0 0 8px #fff;
    animation: pulse-dot 2s ease-in-out infinite;
}
/* Ensure these specific colored dots can override the default with high specificity */
.bento-status .dot.bg-blue-500 { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.bento-status .dot.bg-purple-400 { background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }
.bento-status .dot.bg-green-500 { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.stat-block { border-left: 1px solid rgba(255,255,255,0.08); padding-left: 20px; }
.stat-value { animation: countUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards; opacity: 0; }
.stat-delay-1 { animation-delay: 0.6s; }
.stat-delay-2 { animation-delay: 0.8s; }
.stat-delay-3 { animation-delay: 1.0s; }
.stat-delay-4 { animation-delay: 1.2s; }

/* =========================================
   Modals
========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
    background: rgba(20,20,20,0.92);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 48px 40px;
    max-width: 440px;
    width: 90%;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-box .modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    color: #666; cursor: pointer;
    transition: all 0.3s ease;
    background: transparent; font-size: 14px;
}
.modal-box .modal-close:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.modal-input {
    width: 100%; padding: 14px 16px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    color: #e2e2e2; font-family: 'Inter', sans-serif; font-size: 14px;
    outline: none; transition: border-color 0.3s ease;
}
.modal-input::placeholder { color: #555; font-size: 13px; }
.modal-input:focus { border-color: rgba(255,255,255,0.3); }
.modal-submit {
    width: 100%; padding: 14px;
    background: #fff; color: #000;
    font-family: 'Inter', sans-serif; font-size: 11px;
    font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    border: none; cursor: pointer; transition: all 0.3s ease;
}
.modal-submit:hover { background: #e0e0e0; }

/* =========================================
   Mobile Navigation
========================================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.mobile-menu.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 60;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
    .hamburger { display: none; }
}
