/* ============================================
   KrypticLab - Under Construction Page
   ============================================ */

/* CSS Variables */
:root {
    /* Dark Mode Colors */
    --dark-bg: #0a0a0f;
    --dark-bg-secondary: #12121a;
    --dark-text: #ffffff;
    --dark-text-muted: #8a8a9a;
    --dark-accent: #6366f1;
    --dark-accent-glow: rgba(99, 102, 241, 0.3);

    /* Light Mode Colors */
    --light-bg: #f8f9fc;
    --light-bg-secondary: #ffffff;
    --light-text: #1a1a2e;
    --light-text-muted: #6b7280;
    --light-accent: #4f46e5;
    --light-accent-glow: rgba(79, 70, 229, 0.2);

    /* Shared */
    --transition-speed: 0.5s;
    --border-radius: 16px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color var(--transition-speed) ease,
        color var(--transition-speed) ease;
}

/* Dark Mode Styles */
body.dark-mode {
    background: #000000;
    color: var(--dark-text);
}

body.dark-mode .logo {
    filter: none;
}

body.dark-mode .subtitle {
    color: var(--dark-text-muted);
}

body.dark-mode .decoration {
    display: none;
}

/* Light Mode Styles */
body.light-mode {
    background: #000000;
}

body.light-mode .container {
    display: none;
}

body.light-mode .particles {
    display: none;
}

/* Container */
.container {
    text-align: center;
    padding: 0;
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
}

/* Logo */
.logo-container {
    margin-bottom: 0;
}

.logo {
    width: 350px;
    height: auto;
    transition: filter var(--transition-speed) ease,
        transform var(--transition-speed) ease;
}

/* Content */
.content {
    animation: fadeIn 0.8s ease;
}

.title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    font-weight: 400;
    opacity: 0.9;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--dark-accent) 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 1rem;
    transition: color var(--transition-speed) ease;
}

/* See Progress Section */
.see-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0;
}

.see-progress-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-text-muted);
}

.eye-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    animation: eyePulse 2s ease-in-out infinite;
    opacity: 0.9;
}

.eye-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8));
}

.eye-icon:focus {
    outline: 2px solid var(--dark-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Fullscreen GIF Overlay */
.gif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    background: #ffffff;
}

.gif-overlay.active {
    display: block;
}

.gif-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
}

/* Decorative Elements */
.decoration {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transition: background var(--transition-speed) ease,
        opacity var(--transition-speed) ease;
}

.decoration-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -100px;
    filter: blur(100px);
}

.decoration-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -100px;
    filter: blur(80px);
}

.decoration-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(120px);
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--dark-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: rise 10s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes eyePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes rise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .logo-container {
        margin-bottom: 2rem;
    }

    .logo {
        width: 120px;
    }

    .title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .title-highlight {
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .see-progress-text {
        font-size: 0.9rem;
    }

    .eye-icon {
        font-size: 1.75rem;
    }

    .decoration-1 {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -50px;
    }

    .decoration-2 {
        width: 250px;
        height: 250px;
        bottom: -125px;
        left: -50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .logo {
        width: 100px;
    }

    .logo-container {
        margin-bottom: 1.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .see-progress-text {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .eye-icon {
        font-size: 1.5rem;
    }
}

/* Transition for mode switch */
body.transitioning * {
    transition: all 0.3s ease !important;
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    .title-highlight {
        -webkit-text-fill-color: initial;
        background: none;
        color: #6366f1;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}