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

:root {
    --bg-dark: #05080d;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --text-primary: #e8eaed;
    --text-muted: rgba(232, 234, 237, 0.5);
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Slideshow */
.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.05);
    animation: subtle-zoom 12s ease-in-out infinite alternate;
}

.slide.active {
    opacity: 1;
}

@keyframes subtle-zoom {
    0% {
        transform: scale(1.0);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Dark overlay with gradient */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: 
        radial-gradient(ellipse at center, transparent 0%, var(--bg-dark) 70%),
        linear-gradient(180deg, 
            rgba(5, 8, 13, 0.3) 0%, 
            rgba(5, 8, 13, 0.6) 40%,
            rgba(5, 8, 13, 0.85) 100%
        );
    pointer-events: none;
}

/* Scanline effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Content */
.content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: clamp(0.75rem, 4vw, 2rem);
    animation: fade-in-up 1.2s ease-out;
}

.logo {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 0 40px var(--accent-glow));
    transition: filter 0.5s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 60px var(--accent-glow)) drop-shadow(0 0 80px var(--accent-glow));
}

/* Title */
.title {
    font-family: 'Smooch Sans', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: clamp(0.5rem, 3vw, 1.5rem);
    animation: fade-in-up 1.2s ease-out 0.2s both;
}

.title-fail {
    color: var(--text-primary);
}

.title-labs {
    color: var(--accent);
    margin-left: 0.0em;
    text-shadow: 0 0 30px var(--accent-glow);
}

/* Tagline */
.tagline {
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: clamp(1rem, 5vw, 3rem);
    animation: fade-in-up 1.2s ease-out 0.4s both;
}

/* Contact */
.contact {
    animation: fade-in-up 1.2s ease-out 0.6s both;
}

.contact-link {
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.contact-link:hover::before {
    left: 100%;
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        width: 110px;
    }
    
    .title {
        font-size: 2.5rem;
        letter-spacing: 0.02em;
    }
    
    .tagline {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }
    
    .contact-link {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 20vw;
        min-width: 60px;
        max-width: 90px;
    }
    
    .title {
        font-size: 11vw;
        letter-spacing: 0.01em;
        white-space: nowrap;
    }
    
    .tagline {
        font-size: 0.55rem;
        letter-spacing: 0.08em;
    }
    
    .contact-link {
        padding: 0.5rem 1.25rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 360px) {
    .title {
        font-size: 10.5vw;
    }
    
    .tagline {
        font-size: 0.5rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 300px) {
    .title {
        font-size: 10vw;
    }
    
    .tagline {
        display: flex;
        flex-direction: column;
        gap: 0.3em;
    }
    
    .tagline-bullet {
        display: none;
    }
    
    .tagline-item {
        display: block;
    }
}
