/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cyber Matrix Color Palette */
    --color-bg-dark: #0a0a0f;
    --color-bg-blue: #0f1729;
    --color-cyan: #00f0ff;
    --color-magenta: #ff00ff;
    --color-purple: #8b00ff;
    --color-white: #ffffff;
    --color-gray: #a0a0b0;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Exo 2', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-blue) 100%);
    color: var(--color-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===================================
   PARTICLES BACKGROUND
   =================================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--color-cyan);
    border-radius: 50%;
    opacity: 0.6;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) translateX(var(--float-x));
        opacity: 0;
    }
}

/* ===================================
   HEXAGONAL GRID BACKGROUND
   =================================== */
.hex-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, transparent 48%, rgba(0, 240, 255, 0.03) 49%, rgba(0, 240, 255, 0.03) 51%, transparent 52%),
        linear-gradient(90deg, transparent 48%, rgba(0, 240, 255, 0.03) 49%, rgba(0, 240, 255, 0.03) 51%, transparent 52%),
        linear-gradient(150deg, transparent 48%, rgba(0, 240, 255, 0.03) 49%, rgba(0, 240, 255, 0.03) 51%, transparent 52%);
    background-size: 100px 100px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* ===================================
   MAIN CONTAINER
   =================================== */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
}

/* ===================================
   HEADER
   =================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: var(--spacing-xs);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.3rem;
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border: none;
    color: var(--color-gray);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-btn:hover {
    color: var(--color-cyan);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    color: var(--color-white);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.lang-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Social Media Icons */
.social-media {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--color-cyan);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-magenta));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    color: var(--color-white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

/* ===================================
   MAIN CONTENT
   =================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--spacing-lg);
}

/* Logo */
.logo-container {
    position: relative;
    animation: fadeInScale 1.2s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0;
    position: relative;
    z-index: 2;
}

.logo-text {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.logo-tech {
    color: var(--color-white);
    text-shadow: 0 0 20px var(--color-cyan);
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px var(--color-cyan));
    }

    to {
        filter: drop-shadow(0 0 30px var(--color-magenta));
    }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Main Title */
.main-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--color-white);
    max-width: 800px;
    line-height: 1.4;
    animation: fadeIn 1.5s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   COUNTDOWN TIMER
   =================================== */
.countdown-container {
    animation: fadeIn 1.5s ease-out 0.6s both;
}

.countdown-glass {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow:
        0 8px 32px rgba(0, 240, 255, 0.2),
        inset 0 0 20px rgba(0, 240, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.countdown-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(0, 240, 255, 0.1),
            transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.countdown-value {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    min-width: clamp(60px, 10vw, 100px);
    background: linear-gradient(180deg, var(--color-cyan), var(--color-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: digitGlow 2s ease-in-out infinite alternate;
}

@keyframes digitGlow {
    from {
        filter: drop-shadow(0 0 3px rgba(0, 240, 255, 0.5));
    }

    to {
        filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.5));
    }
}

.countdown-label {
    font-family: var(--font-secondary);
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.countdown-separator {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-purple);
    text-shadow: 0 0 10px var(--color-purple);
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0.3;
    }
}

/* ===================================
   DESCRIPTION
   =================================== */
.description {
    max-width: 700px;
    animation: fadeIn 1.5s ease-out 0.9s both;
}

.description-text {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* Loading Bar */
.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-magenta), var(--color-purple));
    border-radius: 10px;
    animation: loading 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--color-cyan);
}

@keyframes loading {
    0% {
        width: 0%;
        transform: translateX(0);
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
        transform: translateX(0);
    }
}

/* Footer Text */
.footer-text {
    font-family: var(--font-primary);
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 400;
    color: var(--color-gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease-out 1.2s both;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }

    .header {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .countdown-glass {
        padding: 1.5rem 1rem;
        gap: 0.5rem;
    }

    .countdown-separator {
        display: none;
    }

    .main-content {
        gap: var(--spacing-md);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: var(--spacing-sm);
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .countdown-glass {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .countdown-item {
        min-width: 70px;
    }

    .logo-glow {
        width: 200px;
        height: 200px;
    }
}

/* Large Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        margin: 0 auto;
    }
}