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

:root {
    --primary: #00E5FF;
    --secondary: #7C4DFF;
    --accent: #00FFA3;
    --dark: #0A0E27;
    --darker: #020308;
    --light: #FFFFFF;
    --gray: #64748B;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: fixed;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 25%; /* Adjust height as needed to cover top text */
    pointer-events: none;
    background: linear-gradient(to top, transparent 0%, rgba(2,3,8,0.95) 100%);
    z-index: 2;
}

.video-background::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 25%;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, rgba(2,3,8,0.95) 100%);
    z-index: 2;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 180%;
    min-height: 180%; /* Increased height to zoom in */
    width: auto;
    height: auto;
    transform: translate(-50%, -40%); /* Adjusted to show desired part */
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 20%, rgba(2, 3, 8, 0.5) 100%), /* Darker center */
        linear-gradient(to right, rgba(2, 3, 8, 0.7) 0%, transparent 15%, transparent 85%, rgba(2, 3, 8, 0.7) 100%), /* Darker sides */
        linear-gradient(to bottom, rgba(2, 3, 8, 0.6) 0%, transparent 20%, transparent 80%, rgba(2, 3, 8, 0.8) 100%); /* Darker top/bottom */
    backdrop-filter: blur(0px);
}

/* Background Effects */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hidden */
}

/* Gradient Orbs - Hyperliquid Style */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
    display: none; /* Hidden */
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 30%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -80px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 80px) scale(0.9);
    }
}

/* Container */
.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Content */
.content {
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

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

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

/* Minimal Robot */
.robot-minimal {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-core {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    position: relative;
    animation: pulse 3s ease-in-out infinite, rotate 20s linear infinite;
    box-shadow: 
        0 0 40px rgba(0, 229, 255, 0.4),
        0 0 80px rgba(124, 77, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.robot-core::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 2px solid var(--primary);
    border-radius: 17px;
    opacity: 0.3;
    animation: expandPulse 3s ease-in-out infinite;
}

.robot-core::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    opacity: 0.2;
    animation: expandPulse 3s ease-in-out infinite 0.5s;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(0, 229, 255, 0.4),
            0 0 80px rgba(124, 77, 255, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(0, 229, 255, 0.6),
            0 0 120px rgba(124, 77, 255, 0.4),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

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

@keyframes expandPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
}

/* Hyperliquid Card */
.hyperliquid-card {
    position: relative;
    padding: 80px 100px;
    background: rgba(20, 40, 80, 0.15);
    backdrop-filter: blur(20px) saturate(120%);
    border-radius: 50px;
    border: 3px solid rgba(0, 229, 255, 0.8);
    box-shadow: 
        0 0 60px rgba(0, 229, 255, 0.4),
        0 0 100px rgba(0, 229, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    animation: cardFloat 6s ease-in-out infinite, cardFadeIn 1.5s ease-out;
    overflow: visible;
    clip-path: polygon(
        30px 0%, calc(100% - 30px) 0%, 100% 30px,
        100% calc(100% - 30px), calc(100% - 30px) 100%, 30px 100%,
        0% calc(100% - 30px), 0% 30px
    );
}

.hyperliquid-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(0, 229, 255, 0.3);
    border-radius: 50px;
    z-index: -1;
    filter: blur(30px);
    animation: borderGlow 3s ease-in-out infinite;
    clip-path: polygon(
        30px 0%, calc(100% - 30px) 0%, 100% 30px,
        100% calc(100% - 30px), calc(100% - 30px) 100%, 30px 100%,
        0% calc(100% - 30px), 0% 30px
    );
}

.hyperliquid-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: linear-gradient(
        135deg,
        rgba(0, 229, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 229, 255, 0.05) 100%
    );
    pointer-events: none;
    clip-path: polygon(
        30px 0%, calc(100% - 30px) 0%, 100% 30px,
        100% calc(100% - 30px), calc(100% - 30px) 100%, 30px 100%,
        0% calc(100% - 30px), 0% 30px
    );
}

/* Liquid Background Animation */
.liquid-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    animation: liquidFlow 15s ease-in-out infinite;
    filter: blur(60px);
    opacity: 0.4;
    clip-path: polygon(
        30px 0%, calc(100% - 30px) 0%, 100% 30px,
        100% calc(100% - 30px), calc(100% - 30px) 100%, 30px 100%,
        0% calc(100% - 30px), 0% 30px
    );
}

.card-content {
    position: relative;
    z-index: 2;
}

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

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.6;
        filter: blur(30px);
    }
    50% {
        opacity: 1;
        filter: blur(40px);
    }
}

@keyframes liquidFlow {
    0% {
        transform: translate(0%, 0%) rotate(0deg);
    }
    33% {
        transform: translate(10%, -10%) rotate(120deg);
    }
    66% {
        transform: translate(-10%, 10%) rotate(240deg);
    }
    100% {
        transform: translate(0%, 0%) rotate(360deg);
    }
}

/* Brand Name */
.brand {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: #ffffff;
    position: relative;
    display: inline-block;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 5px 15px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(255, 255, 255, 0.8),
        0 0 100px rgba(0, 229, 255, 0.6);
}

.brand::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 5px;
}

.brand.typing-complete::after {
    content: '';
}

/* Typewriter Letter Animation */
.typed-letter {
    display: inline-block;
    opacity: 0;
    animation: typeLetter 0.1s forwards;
}

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

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.8));
    }
}

/* Coming Soon */
.coming-soon {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 12px;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 229, 255, 0.6),
        0 0 80px rgba(0, 229, 255, 0.4);
    z-index: 3;
    margin-top: 0;
    display: inline-block;
}

.coming-soon::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 5px;
}

.coming-soon.typing-complete::after {
    content: '';
}

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

.coming-soon::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -20px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: slideIn 2s ease-out 0.5s both;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Text Card for Coming Soon */
.text-card {
    background: transparent;
    padding: 0;
    margin-top: 30px; /* Adjust spacing from logo */
    animation: cardFadeIn 2s ease-out 0.8s both;
}

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

@keyframes cardGlow {
    from {
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 20px rgba(0, 229, 255, 0.3);
    }
    to {
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 40px rgba(0, 229, 255, 0.6);
    }
}

/* Footer */
.footer {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    animation: fadeIn 1.5s ease-out 0.6s both;
    z-index: 10;
}

.footer p {
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hyperliquid-card {
        padding: 50px 60px;
        clip-path: polygon(
            20px 0%, calc(100% - 20px) 0%, 100% 20px,
            100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%,
            0% calc(100% - 20px), 0% 20px
        );
    }

    .hyperliquid-card::before,
    .hyperliquid-card::after,
    .liquid-bg {
        clip-path: polygon(
            20px 0%, calc(100% - 20px) 0%, 100% 20px,
            100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%,
            0% calc(100% - 20px), 0% 20px
        );
    }

    .brand {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .coming-soon {
        font-size: 1rem;
        letter-spacing: 6px;
    }

    .robot-core {
        width: 50px;
        height: 50px;
    }

    .orb-1, .orb-2, .orb-3 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hyperliquid-card {
        padding: 40px 40px;
        border-radius: 30px;
        clip-path: polygon(
            15px 0%, calc(100% - 15px) 0%, 100% 15px,
            100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%,
            0% calc(100% - 15px), 0% 15px
        );
    }

    .hyperliquid-card::before,
    .hyperliquid-card::after,
    .liquid-bg {
        clip-path: polygon(
            15px 0%, calc(100% - 15px) 0%, 100% 15px,
            100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%,
            0% calc(100% - 15px), 0% 15px
        );
    }

    .brand {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .coming-soon {
        font-size: 0.875rem;
        letter-spacing: 4px;
    }

    .robot-core {
        width: 40px;
        height: 40px;
    }

    .footer {
        bottom: 30px;
    }

    .footer p {
        font-size: 0.75rem;
    }
}

/* Loading Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    z-index: 9999;
    animation: fadeOut 1s ease-out forwards;
    pointer-events: none;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* Animated Miners Container */
.miners-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    display: none; /* Hidden */
}

.miner {
    position: absolute;
    width: 280px;
    height: 280px;
    opacity: 0.75;
    animation: floatMiner 20s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.4));
    display: none; /* Hidden */
}

.miner-1 {
    top: 12%;
    left: 8%;
    animation-delay: 0s;
}

.miner-2 {
    top: 55%;
    right: 12%;
    animation-delay: -7s;
}

.miner-3 {
    bottom: 15%;
    left: 12%;
    animation-delay: -14s;
}

@keyframes floatMiner {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(40px, -40px) rotate(3deg);
    }
    50% {
        transform: translate(-30px, 30px) rotate(-2deg);
    }
    75% {
        transform: translate(30px, -15px) rotate(1deg);
    }
}

/* GPU Card Animations */
.gpu-card {
    animation: gpuPulse 1.5s ease-in-out infinite;
}

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

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

@keyframes gpuPulse {
    0%, 100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 4px currentColor);
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px currentColor);
    }
}

/* Hash Line Animations */
.hash-line {
    stroke-dasharray: 15;
    stroke-dashoffset: 15;
    animation: hashFlow 1.2s linear infinite;
    stroke-width: 2;
    filter: drop-shadow(0 0 3px currentColor);
}

.hash-1 {
    animation-delay: 0s;
}

.hash-2 {
    animation-delay: 0.3s;
}

.hash-3 {
    animation-delay: 0.6s;
}

@keyframes hashFlow {
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Power Dot Animation */
.power-dot {
    animation: powerBlink 1s ease-in-out infinite;
}

@keyframes powerBlink {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 6px #00FFA3);
    }
    50% {
        opacity: 0.4;
        filter: drop-shadow(0 0 2px #00FFA3);
    }
}

/* Activity Lights */
.activity-light {
    animation: activityBlink 0.8s ease-in-out infinite;
}

.light-1 {
    animation-delay: 0s;
}

.light-2 {
    animation-delay: 0.3s;
}

.light-3 {
    animation-delay: 0.6s;
}

@keyframes activityBlink {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 6px currentColor);
    }
    50% {
        opacity: 0.3;
    }
}

/* Data Stream Animation */
.data-stream {
    stroke-dasharray: 5 10;
    stroke-dashoffset: 0;
    animation: dataFlow 1.5s linear infinite;
    stroke-width: 1.5;
}

.stream-1 {
    animation-delay: 0s;
}

.stream-2 {
    animation-delay: 0.5s;
}

.stream-3 {
    animation-delay: 1s;
}

@keyframes dataFlow {
    to {
        stroke-dashoffset: -15;
        opacity: 0.8;
    }
}

/* Blockchain Block Animations */
.block {
    animation: blockGlow 2s ease-in-out infinite;
}

.block-1 {
    animation-delay: 0s;
}

.block-2 {
    animation-delay: 0.7s;
}

.block-3 {
    animation-delay: 1.4s;
}

@keyframes blockGlow {
    0%, 100% {
        opacity: 0.5;
        filter: drop-shadow(0 0 4px currentColor);
    }
    50% {
        opacity: 0.9;
        filter: drop-shadow(0 0 10px currentColor);
    }
}

/* Chain Link Animation */
.chain-link {
    animation: chainPulse 1.5s ease-in-out infinite;
}

.link-1 {
    animation-delay: 0s;
}

.link-2 {
    animation-delay: 0.75s;
}

@keyframes chainPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

/* Hash Symbol Animation */
.hash-symbol {
    animation: hashSymbolGlow 1.5s ease-in-out infinite;
}

@keyframes hashSymbolGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 5px currentColor);
    }
}

/* Mining Rig Animation */
.mining-rig {
    animation: rigVibrate 2s ease-in-out infinite;
}

@keyframes rigVibrate {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-1px);
    }
    75% {
        transform: translateY(1px);
    }
}

/* Server Stack Animation */
.server-stack {
    animation: serverPulse 2.5s ease-in-out infinite;
}

@keyframes serverPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Blockchain Animation */
.blockchain {
    animation: blockchainSlide 6s ease-in-out infinite;
}

@keyframes blockchainSlide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

/* Responsive for miners */
@media (max-width: 768px) {
    .miner {
        width: 200px;
        height: 200px;
        opacity: 0.65;
    }
    
    .miner-1 {
        top: 8%;
        left: 3%;
    }
    
    .miner-2 {
        top: 60%;
        right: 3%;
    }
    
    .miner-3 {
        bottom: 12%;
        left: 5%;
    }
}

@media (max-width: 480px) {
    .miner {
        width: 160px;
        height: 160px;
        opacity: 0.55;
    }
    
    .miner-1 {
        top: 5%;
        left: 2%;
    }
    
    .miner-2 {
        top: 65%;
        right: 2%;
    }
    
    .miner-3 {
        bottom: 10%;
        left: 3%;
    }
}


