/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0d1117 0%, #1a2332 50%, #0d1117 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    position: relative;
    color: #c9d1d9;
}

/* Loading Container */
.loading-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding: 60px 20px;
}

/* WiFi Signal Waves */
.signal-waves {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.4;
    z-index: 0;
}

.signal-source {
    filter: drop-shadow(0 0 10px currentColor);
}

/* Wave Animations */
.wave-1 {
    animation: wavePulse 3s ease-out infinite;
}

.wave-2 {
    animation: wavePulse 3s ease-out infinite 0.5s;
}

.wave-3 {
    animation: wavePulse 3s ease-out infinite 1s;
}

@keyframes wavePulse {
    0% {
        r: 0;
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
    }
}

/* Delays for sources */
.source-1 .wave-1 {
    animation-delay: 0s;
}

.source-1 .wave-2 {
    animation-delay: 0.5s;
}

.source-1 .wave-3 {
    animation-delay: 1s;
}

.source-2 .wave-1 {
    animation-delay: 0.3s;
}

.source-2 .wave-2 {
    animation-delay: 0.8s;
}

.source-2 .wave-3 {
    animation-delay: 1.3s;
}

.source-3 .wave-1 {
    animation-delay: 0.6s;
}

.source-3 .wave-2 {
    animation-delay: 1.1s;
}

.source-3 .wave-3 {
    animation-delay: 1.6s;
}

.source-4 .wave-1 {
    animation-delay: 0.9s;
}

.source-4 .wave-2 {
    animation-delay: 1.4s;
}

.source-4 .wave-3 {
    animation-delay: 1.9s;
}

.source-5 .wave-1 {
    animation-delay: 0.2s;
}

.source-5 .wave-2 {
    animation-delay: 0.7s;
}

.source-5 .wave-3 {
    animation-delay: 1.2s;
}

/* Logo Container */
.logo-container {
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-centerpiece {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
    z-index: 3;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    width: 280px;
    height: 280px;
    animation: ringPulse 3s ease-in-out infinite;
}

.logo-glow-ring.ring-2 {
    width: 320px;
    height: 320px;
    border-color: rgba(77, 159, 255, 0.2);
    animation-delay: 0.5s;
}

.logo-glow-ring.ring-3 {
    width: 360px;
    height: 360px;
    border-color: rgba(0, 255, 136, 0.15);
    animation-delay: 1s;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

/* Terminal Window */
.terminal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid #2a3f5f;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.terminal-header {
    background: linear-gradient(180deg, #1a2332 0%, #0d1117 100%);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2a3f5f;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red {
    background: #ff5f56;
}

.terminal-button.yellow {
    background: #ffbd2e;
}

.terminal-button.green {
    background: #27c93f;
}

.terminal-title {
    font-size: 12px;
    color: #8b949e;
    flex: 1;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 15px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.terminal-prompt {
    color: #00ff88;
    font-weight: bold;
    margin-right: 8px;
}

.terminal-text.success {
    color: #00ff88;
}

.terminal-text.info {
    color: #4d9fff;
}

.terminal-text.warning {
    color: #ffbd2e;
}

/* Countdown */
.countdown-container {
    margin: 30px auto;
    text-align: center;
}

.countdown-label {
    color: #8b949e;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.time-unit {
    background: rgba(26, 35, 50, 0.6);
    border: 2px solid #2a3f5f;
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 75px;
    display: flex;
    flex-direction: column;
}

.time-value {
    font-size: 26px;
    color: #00ff88;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.time-label {
    font-size: 10px;
    color: #8b949e;
    margin-top: 4px;
}

.time-separator {
    font-size: 26px;
    color: #4d9fff;
    font-weight: bold;
}

/* Text Container (Construction & Fun messages) */
.text-container {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.construction-text {
    font-size: 18px;
    font-weight: 300;
    color: #8b949e;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: textFade 3s ease-in-out infinite;
}

.fun-message {
    font-size: 16px;
    font-weight: 500;
    color: #00ff88;
    margin-top: 15px;
    min-height: 24px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.3));
}

@keyframes textFade {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes messageFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: whatsappPulse 3s infinite;
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
    fill: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 35px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: #0d1117;
    color: #00ff88;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    border: 1px solid #2a3f5f;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Easter Egg styles - Hidden by default */
.easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #00ff88 0%, #4d9fff 100%);
    color: #0d1117;
    padding: 30px 50px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 50px rgba(0, 255, 136, 0.5);
    pointer-events: none;
}

.easter-egg.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Animations and Utilities */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.logo-container.shake {
    animation: shake 0.5s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-container {
        width: 220px;
        height: 220px;
    }

    .logo-centerpiece {
        width: 160px;
    }

    .logo-glow-ring {
        width: 200px;
        height: 200px;
    }

    .logo-glow-ring.ring-2 {
        width: 240px;
        height: 240px;
    }

    .logo-glow-ring.ring-3 {
        width: 280px;
        height: 280px;
    }

    .time-unit {
        min-width: 65px;
        padding: 6px;
    }

    .time-value {
        font-size: 22px;
    }

    .construction-text {
        font-size: 14px;
    }

    .fun-message {
        font-size: 14px;
    }

    .terminal-body {
        min-height: 150px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .time-unit {
        min-width: 55px;
    }

    .time-value {
        font-size: 18px;
    }

    .terminal-body {
        min-height: 120px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .logo-centerpiece,
    .logo-glow-ring,
    .wave,
    .particle {
        animation: none !important;
    }
}