/**
 * SEAGOAT SOFTWARE - TEASER
 * Mysterious. Minimal. Stunning.
 */

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

:root {
    --bg: #000000;
    --text: #ffffff;
    --text-dim: #666666;
    --accent: #ffffff;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ================================================
   CANVAS BACKGROUND - ANIMATED PARTICLES
   ================================================ */

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ================================================
   GRAIN TEXTURE
   ================================================ */

.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 2;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain-animation 8s steps(10) infinite;
}

@keyframes grain-animation {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* ================================================
   MAIN CONTENT
   ================================================ */

.content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ================================================
   LOGO SECTION
   ================================================ */

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6rem;
    opacity: 0;
    animation: fadeInScale 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
}

.logo-hexagon {
    animation: rotate-slow 20s linear infinite;
    transform-origin: center;
}

.logo-center {
    animation: pulse-glow 3s ease-in-out infinite;
}

.logo-line {
    animation: line-pulse 2s ease-in-out infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes line-pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.5; }
}

.brand {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 200;
    letter-spacing: 0.5em;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.2);
}

.tagline {
    font-size: 1.25rem;
    letter-spacing: 0.8em;
    color: var(--text-dim);
    font-weight: 300;
    margin-top: 0.5rem;
    padding-left: 0.8em;
}

/* ================================================
   MAIN MESSAGE WITH GLITCH EFFECT
   ================================================ */

.main-message {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.glitch {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    position: relative;
    color: var(--text);
    margin: 0;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch::before {
    color: #ff00ff;
    animation: glitch-anim-1 2.5s infinite;
}

.glitch::after {
    color: #00ffff;
    animation: glitch-anim-2 2.5s infinite;
}

@keyframes glitch-anim-1 {
    0%, 96%, 100% { opacity: 0; }
    97% {
        opacity: 0.8;
        transform: translate(-2px, 2px);
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    }
}

@keyframes glitch-anim-2 {
    0%, 94%, 100% { opacity: 0; }
    95% {
        opacity: 0.8;
        transform: translate(2px, -2px);
        clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    }
}

/* ================================================
   ANIMATED DOTS
   ================================================ */

.dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text);
    opacity: 0.3;
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ================================================
   YEAR DISPLAY
   ================================================ */

.year {
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: 100;
    letter-spacing: 0.2em;
    color: var(--text);
    opacity: 0.05;
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0;
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

.contact-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 2rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--text);
    border-color: var(--text-dim);
    background: rgba(255, 255, 255, 0.02);
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================================================
   CURSOR
   ================================================ */

body {
    cursor: crosshair;
}

a {
    cursor: pointer;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .logo {
        width: 80px;
        height: 80px;
    }

    .logo-section {
        margin-bottom: 4rem;
    }

    .main-message {
        margin-bottom: 3rem;
    }

    .year {
        font-size: clamp(6rem, 25vw, 10rem);
        bottom: 15%;
    }

    .brand {
        letter-spacing: 0.3em;
    }

    .tagline {
        letter-spacing: 0.5em;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1rem;
    }

    .footer {
        bottom: 1rem;
    }

    .year {
        bottom: 20%;
    }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 4px;
}

/* ================================================
   BOTTOM LINK - REGGAE THEMED
   ================================================ */

.bottom-link {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 1.5s ease 2s forwards;
}

.reggae-link {
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;

    /* ULTRA subtle reggae gradient: red, yellow, green with high transparency */
    background: linear-gradient(135deg,
        rgba(220, 20, 60, 0.15) 0%,
        rgba(220, 20, 60, 0.15) 33%,
        rgba(255, 215, 0, 0.15) 33%,
        rgba(255, 215, 0, 0.15) 66%,
        rgba(29, 185, 84, 0.15) 66%,
        rgba(29, 185, 84, 0.15) 100%
    );

    /* Very subtle text */
    color: rgba(255, 255, 255, 0.4);

    /* Almost invisible border */
    border: 1px solid rgba(255, 255, 255, 0.05);

    /* Backdrop blur for modern glass effect */
    backdrop-filter: blur(2px);
}

.reggae-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.1);

    /* Subtle increase opacity on hover */
    background: linear-gradient(135deg,
        rgba(220, 20, 60, 0.35) 0%,
        rgba(220, 20, 60, 0.35) 33%,
        rgba(255, 215, 0, 0.35) 33%,
        rgba(255, 215, 0, 0.35) 66%,
        rgba(29, 185, 84, 0.35) 66%,
        rgba(29, 185, 84, 0.35) 100%
    );

    color: rgba(255, 255, 255, 0.75);
}

.reggae-link:active {
    transform: translateY(0);
}

/* ================================================
   SELECTION
   ================================================ */

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text);
}
