/* CSS Variables for Dark Futuristic Theme */
:root {
    --bg-deep: #050914;
    --bg-grid: rgba(0, 240, 255, 0.03);
    --text-main: #f0f4f8;
    --text-muted: #8b9bb4;
    --accent-cyan: #00f0ff;
    --accent-purple: #7000ff;
    --font-main: 'Inter', system-ui, sans-serif;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* allow scrolling, but hide horizontal overflow in case grid background bleeds */
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding-bottom: 6rem; /* Space for the footer */
}

/* Animated Grid Background */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(3);
    animation: gridMove 20s linear infinite;
}

/* Radial glow behind content */
body::after {
    content: '';
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
    z-index: -1;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) scale(3); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) scale(3); }
}

.container {
    text-align: center;
    padding: 2.5rem;
    max-width: 850px;
    margin-top: 3rem;
    z-index: 1;
    /* Glassmorphism panel */
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
    animation: floatIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo styling */
.logo-container {
    margin-bottom: 2rem;
    height: 300px; /* Reserved space to prevent layout shift */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 450px;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

/* Fallback if logo is missing */
.logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
    border: 2px dashed rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.7)); transform: scale(1.05); }
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff 20%, var(--accent-cyan) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
    line-height: 1.1;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    font-family: monospace;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.description-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: justify;
}

.description-container p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.description-container p:last-child {
    margin-bottom: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.05), rgba(112, 0, 255, 0.05));
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

/* Animated scanner effect on the badge */
.status-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: scanLine 3s infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Footer & Language Indicator */
.site-footer {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 10;
    width: 100%;
}

.contact-email {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

.contact-email:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.05), transparent);
    border-color: rgba(0, 240, 255, 0.2);
}

.lang-indicator {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    font-family: monospace;
}

.lang-indicator span {
    color: var(--text-muted);
    opacity: 0.5;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.lang-indicator span.active {
    color: var(--accent-cyan);
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 1rem; letter-spacing: 2px; }
    p { font-size: 1rem; }
    .status-badge { font-size: 0.8rem; padding: 0.7rem 1.5rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
}
