/* ================================
   Archive Link Connect - Styles
   ================================ */

/* CSS Variables */
:root {
    --primary-blue: #0080CC;
    --secondary-blue: #0066AA;
    --light-bg: #F0F0F0;
    --white: #FFFFFF;
    --dark-text: #1A1A1A;
    --muted-text: #666666;
    --grid-color: rgba(0, 128, 204, 0.06);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 2rem;
}

/* Subtle background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.8;
}

/* Main container */
.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-wrapper {
    margin-bottom: 2rem;
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 4px 20px rgba(0, 128, 204, 0.3));
}

/* Animate the logo connection lines */
.logo line {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawLine 1.5s ease-out forwards;
}

.logo line:nth-child(2) { animation-delay: 0.3s; }
.logo line:nth-child(3) { animation-delay: 0.5s; }
.logo line:nth-child(4) { animation-delay: 0.7s; }

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Pulse animation for logo nodes */
.logo circle {
    animation: nodePulse 2s ease-in-out infinite;
}

.logo circle:nth-child(5) { animation-delay: 0s; }
.logo circle:nth-child(6) { animation-delay: 0.3s; }
.logo circle:nth-child(7) { animation-delay: 0.6s; }

@keyframes nodePulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Brand name */
.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.brand-archive,
.brand-connect {
    color: var(--dark-text);
}

.brand-link {
    color: var(--primary-blue);
}

/* Tagline */
.tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 500;
    color: var(--muted-text);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Divider */
.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

/* Description */
.description {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--dark-text);
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    padding: 0.6rem 1.4rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 128, 204, 0.15);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 128, 204, 0.5);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(0, 128, 204, 0);
    }
}

.status-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-blue);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Coming soon text */
.coming-soon {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 128, 204, 0.2);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    z-index: 1;
}

.footer p {
    font-size: 0.85rem;
    color: var(--muted-text);
    letter-spacing: 0.02em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 1.5rem;
        padding-bottom: 4rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .logo-wrapper {
        margin-bottom: 1.5rem;
    }

    .description {
        font-size: 1.05rem;
    }

    .status-badge {
        padding: 0.5rem 1.2rem;
    }

    .bg-grid {
        background-size: 40px 40px;
    }
}

/* Hover effect for interactive feel */
.logo-wrapper:hover .logo {
    filter: drop-shadow(0 6px 25px rgba(0, 128, 204, 0.45));
    transition: filter 0.3s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    
    .logo-wrapper {
        animation: none;
    }
}
