﻿/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&family=Orbitron:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: black;
    color: #00ffcc;
    font-family: 'Share Tech Mono', 'Orbitron', monospace;
    overflow: hidden;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    z-index: -2;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Better touch handling */
}

/* Add to your CSS */
#matrixConsole {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    padding: 20px;
    display: none;
    z-index: 9999;
    overflow: auto;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Particle Background */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Matrix Background Effect */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Style the Main Content */
.content {
    position: relative;
    z-index: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 0 0 25px rgba(0, 255, 255, 0.4), 0 0 40px rgba(0, 255, 255, 0.2);
    backdrop-filter: brightness(0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    max-width: 90%;
    margin: 0 auto;
    /* Glass morphism effect for modern browsers */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Headings */
h1 {
    font-size: 50px;
    letter-spacing: 3px;
    color: #00cccc;
    text-shadow: 0 0 5px #008888, 0 0 10px rgba(0, 255, 255, 0.5);
    margin-top: 0;
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #008888, 0 0 10px rgba(0, 255, 255, 0.5);
    }

    to {
        text-shadow: 0 0 10px #008888, 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.4);
    }
}

/* "Coming Soon" Text */
.coming-soon {
    font-size: 40px;
    color: #00b3b3;
    text-shadow: 0 0 5px #007777, 0 0 15px rgba(0, 255, 255, 0.4);
    height: 50px; /* Fixed height to prevent layout shifting */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* Tagline */
.tagline {
    font-size: 22px;
    color: #00aaaa;
    text-shadow: 0 0 3px #006666, 0 0 10px rgba(0, 255, 255, 0.3);
    margin: 10px 0;
}

/* Additional Info */
.info {
    font-size: 18px;
    color: #00ffee;
    text-shadow: 0 0 3px #008888, 0 0 10px rgba(0, 255, 255, 0.5);
    font-weight: bold;
    margin: 15px 0;
}

/* Cursors */
.cursorText, .cursorLink {
    font-size: 40px;
    color: #00cccc;
    text-shadow: 0 0 5px #007777, 0 0 12px rgba(0, 255, 255, 0.5);
    display: inline-block;
    animation: blink 0.8s infinite;
}

.cursorLink {
    display: none; /* Hide the second cursor initially */
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Follow the Rabbit */
#rabbitLink {
    display: inline-block;
    font-size: 40px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    animation: float 3s infinite ease-in-out;
}

    #rabbitLink:hover {
        transform: scale(1.2);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    }

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Glitch effect for rabbit text */
.glitch {
    position: relative;
    color: #00aaaa;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

    .glitch::before,
    .glitch::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .glitch::before {
        left: 2px;
        text-shadow: -2px 0 #ff00c1;
        clip: rect(44px, 450px, 56px, 0);
        animation: glitch-anim 5s infinite linear alternate-reverse;
    }

    .glitch::after {
        left: -2px;
        text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
        clip: rect(44px, 450px, 56px, 0);
        animation: glitch-anim2 5s infinite linear alternate-reverse;
    }

@keyframes glitch-anim {
    0% {
        clip: rect(13px, 9999px, 56px, 0);
        transform: skew(0.58deg);
    }

    5% {
        clip: rect(54px, 9999px, 56px, 0);
        transform: skew(0.03deg);
    }

    10% {
        clip: rect(89px, 9999px, 75px, 0);
        transform: skew(0.6deg);
    }

    15% {
        clip: rect(75px, 9999px, 76px, 0);
        transform: skew(0.95deg);
    }

    20% {
        clip: rect(73px, 9999px, 31px, 0);
        transform: skew(0.75deg);
    }

    25% {
        clip: rect(77px, 9999px, 21px, 0);
        transform: skew(0.13deg);
    }

    30% {
        clip: rect(85px, 9999px, 92px, 0);
        transform: skew(0.6deg);
    }

    35% {
        clip: rect(93px, 9999px, 81px, 0);
        transform: skew(0.09deg);
    }

    40% {
        clip: rect(9px, 9999px, 33px, 0);
        transform: skew(0.11deg);
    }

    45% {
        clip: rect(20px, 9999px, 78px, 0);
        transform: skew(0.67deg);
    }

    50% {
        clip: rect(26px, 9999px, 73px, 0);
        transform: skew(0.84deg);
    }

    55% {
        clip: rect(33px, 9999px, 3px, 0);
        transform: skew(0.26deg);
    }

    60% {
        clip: rect(89px, 9999px, 56px, 0);
        transform: skew(0.11deg);
    }

    65% {
        clip: rect(56px, 9999px, 97px, 0);
        transform: skew(0.27deg);
    }

    70% {
        clip: rect(4px, 9999px, 8px, 0);
        transform: skew(0.43deg);
    }

    75% {
        clip: rect(46px, 9999px, 34px, 0);
        transform: skew(0.07deg);
    }

    80% {
        clip: rect(47px, 9999px, 46px, 0);
        transform: skew(0.12deg);
    }

    85% {
        clip: rect(27px, 9999px, 80px, 0);
        transform: skew(0.35deg);
    }

    90% {
        clip: rect(71px, 9999px, 88px, 0);
        transform: skew(0.21deg);
    }

    95% {
        clip: rect(90px, 9999px, 58px, 0);
        transform: skew(0.72deg);
    }

    100% {
        clip: rect(61px, 9999px, 74px, 0);
        transform: skew(0.65deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 39px, 0);
        transform: skew(0.81deg);
    }

    5% {
        clip: rect(24px, 9999px, 7px, 0);
        transform: skew(0.32deg);
    }

    10% {
        clip: rect(47px, 9999px, 7px, 0);
        transform: skew(0.91deg);
    }

    15% {
        clip: rect(7px, 9999px, 78px, 0);
        transform: skew(0.09deg);
    }

    20% {
        clip: rect(97px, 9999px, 30px, 0);
        transform: skew(0.35deg);
    }

    25% {
        clip: rect(30px, 9999px, 61px, 0);
        transform: skew(0.07deg);
    }

    30% {
        clip: rect(23px, 9999px, 96px, 0);
        transform: skew(0.85deg);
    }

    35% {
        clip: rect(41px, 9999px, 62px, 0);
        transform: skew(0.25deg);
    }

    40% {
        clip: rect(51px, 9999px, 52px, 0);
        transform: skew(0.36deg);
    }

    45% {
        clip: rect(95px, 9999px, 72px, 0);
        transform: skew(0.43deg);
    }

    50% {
        clip: rect(27px, 9999px, 99px, 0);
        transform: skew(0.89deg);
    }

    55% {
        clip: rect(57px, 9999px, 16px, 0);
        transform: skew(0.46deg);
    }

    60% {
        clip: rect(96px, 9999px, 56px, 0);
        transform: skew(0.06deg);
    }

    65% {
        clip: rect(62px, 9999px, 59px, 0);
        transform: skew(0.03deg);
    }

    70% {
        clip: rect(15px, 9999px, 66px, 0);
        transform: skew(0.92deg);
    }

    75% {
        clip: rect(83px, 9999px, 99px, 0);
        transform: skew(0.33deg);
    }

    80% {
        clip: rect(32px, 9999px, 15px, 0);
        transform: skew(0.3deg);
    }

    85% {
        clip: rect(31px, 9999px, 50px, 0);
        transform: skew(0.16deg);
    }

    90% {
        clip: rect(32px, 9999px, 25px, 0);
        transform: skew(0.44deg);
    }

    95% {
        clip: rect(73px, 9999px, 76px, 0);
        transform: skew(0.81deg);
    }

    100% {
        clip: rect(11px, 9999px, 59px, 0);
        transform: skew(0.84deg);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(-1deg);
    }

    10% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(1deg);
    }

    30% {
        transform: skew(0deg);
    }

    40% {
        transform: skew(-1deg);
    }

    50% {
        transform: skew(-1deg);
    }

    60% {
        transform: skew(0deg);
    }

    70% {
        transform: skew(1deg);
    }

    80% {
        transform: skew(0deg);
    }

    90% {
        transform: skew(-1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

/* Hidden elements initially */
#rabbitText {
    visibility: hidden;
}

/* Rain effect container */
.rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, rgba(0, 255, 204, 0), rgba(0, 255, 204, 0.6));
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    to {
        transform: translateY(calc(100vh + 30px));
    }
}

/* Responsive design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .coming-soon {
        font-size: 30px;
        height: 40px;
    }

    .tagline {
        font-size: 18px;
    }

    .info {
        font-size: 16px;
    }

    .cursorText, .cursorLink {
        font-size: 30px;
    }

    .content {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    .coming-soon {
        font-size: 24px;
        height: 36px;
    }

    .tagline {
        font-size: 16px;
    }

    .info {
        font-size: 14px;
    }

    .cursorText, .cursorLink {
        font-size: 24px;
    }

    .content {
        padding: 15px;
    }
}
