/* ==========================================================================
   Tim Attewell Redirect Page
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-bg-deep: #08080a;
    --color-bg: #0c0c0e;
    --color-bg-elevated: #131316;
    --color-bg-hover: #1a1a1e;
    --color-text: #f0f0f2;
    --color-text-secondary: #a0a0a8;
    --color-text-dim: #7b837e;
    --color-accent: #5a9a5a;
    --color-accent-bright: #7ba97b;
    --color-accent-glow: rgba(90, 154, 90, 0.4);
    --color-border: #1f1f24;
    --color-border-light: #2a2a30;
    --color-linkedin: #0a66c2;
    --color-linkedin-hover: #004182;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

/* ==========================================================================
   Ambient glow orbs - CRANKED UP
   ========================================================================== */

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes pulse-medium {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1.05);
    }
    50% {
        opacity: 0.9;
        transform: scale(1);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(-30px, -30px) scale(1.05);
        opacity: 0.8;
    }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 184, 90, 0.65) 0%, rgba(90, 184, 90, 0.3) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb--top-right {
    width: 700px;
    height: 700px;
    top: -250px;
    right: -200px;
    animation: pulse-slow 7s ease-in-out infinite;
}

.glow-orb--bottom-left {
    width: 800px;
    height: 800px;
    bottom: -300px;
    left: -250px;
    animation: pulse-medium 9s ease-in-out infinite;
    animation-delay: -3s;
}

.glow-orb--top-left {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    animation: drift 12s ease-in-out infinite;
    animation-delay: -5s;
}

.glow-orb--bottom-right {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -150px;
    animation: pulse-slow 6s ease-in-out infinite;
    animation-delay: -4s;
}

/* Tablet - middle ground */
@media (max-width: 1023px) {
    .glow-orb {
        filter: blur(70px);
        background: radial-gradient(circle, rgba(90, 184, 90, 0.6) 0%, rgba(90, 184, 90, 0.28) 40%, transparent 70%);
    }

    .glow-orb--top-right {
        width: 450px;
        height: 450px;
        top: -180px;
        right: -150px;
    }

    .glow-orb--bottom-left {
        width: 500px;
        height: 500px;
        bottom: -220px;
        left: -180px;
    }

    .glow-orb--top-left {
        width: 350px;
        height: 350px;
        top: -130px;
        left: -120px;
    }

    .glow-orb--bottom-right {
        width: 400px;
        height: 400px;
        bottom: -160px;
        right: -130px;
    }
}

/* Mobile - subtle but present */
@media (max-width: 639px) {
    .glow-orb {
        filter: blur(70px);
        background: radial-gradient(circle, rgba(90, 184, 90, 0.55) 0%, rgba(90, 184, 90, 0.26) 40%, transparent 70%);
    }

    .glow-orb--top-right {
        width: 380px;
        height: 380px;
        top: -160px;
        right: -120px;
    }

    .glow-orb--bottom-left {
        width: 420px;
        height: 420px;
        bottom: -190px;
        left: -160px;
    }

    .glow-orb--top-left {
        width: 280px;
        height: 280px;
        top: -110px;
        left: -90px;
    }

    .glow-orb--bottom-right {
        width: 320px;
        height: 320px;
        bottom: -130px;
        right: -110px;
    }
}

/* ==========================================================================
   Main content
   ========================================================================== */

main {
    width: 100%;
    padding: 2rem;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

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

/* ==========================================================================
   Tagline (Name + Logo)
   ========================================================================== */

.tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 3rem 0;
    font-weight: 400;
}

.name {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-accent-bright);
    letter-spacing: 0.02em;
}

.connector {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--color-text-dim);
    font-style: italic;
}

.logo {
    height: 48px;
    width: auto;
    margin-top: 0.25rem;
    margin-left: -7px; /* Adjust this value: negative moves left, positive moves right */
    opacity: 0.95;
}

@media (min-width: 640px) {
    .tagline {
        gap: 1rem;
        margin-bottom: 4rem;
    }

    .name {
        font-size: 3rem;
    }

    .connector {
        font-size: 1.35rem;
    }

    .logo {
        height: 56px;
    }
}

/* ==========================================================================
   Countdown
   ========================================================================== */

.countdown-section {
    width: 100%;
    margin-bottom: 2.5rem;
}

.countdown-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-dim);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.countdown-text span {
    color: var(--color-accent-bright);
    font-weight: 600;
    font-size: 1rem;
}

.covolta-link {
    color: var(--color-accent-bright);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.covolta-link:hover {
    opacity: 0.8;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--color-bg-elevated);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-bright) 100%);
    border-radius: 2px;
    transition: width 1s linear;
    box-shadow: 0 0 10px var(--color-accent-glow);
}

/* ==========================================================================
   LinkedIn Button
   ========================================================================== */

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    background-color: transparent;
    color: var(--color-text-dim);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.linkedin-btn:hover {
    color: var(--color-linkedin);
    border-color: var(--color-linkedin);
    background-color: rgba(10, 102, 194, 0.08);
}

.linkedin-icon {
    width: 16px;
    height: 16px;
}

@media (min-width: 640px) {
    .linkedin-btn {
        font-size: 0.875rem;
        padding: 0.875rem 1.5rem;
    }

    .linkedin-icon {
        width: 18px;
        height: 18px;
    }
}
