/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Main container */
.splash-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Pixelated background */
.pixel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #2d1810 0%,
        #8B4513 25%,
        #DAA520 50%,
        #FFD700 75%,
        #FFA500 100%
    );
}

.pixel-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* Animated pixel blocks */
.pixel-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pixel-block {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    animation: pixelFloat 8s linear infinite;
}

.block-1 {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.block-2 {
    right: 15%;
    top: 30%;
    animation-delay: -2s;
    background: linear-gradient(45deg, #FF6B35, #F7931E);
}

.block-3 {
    left: 20%;
    bottom: 25%;
    animation-delay: -4s;
    background: linear-gradient(45deg, #DAA520, #B8860B);
}

.block-4 {
    right: 25%;
    bottom: 35%;
    animation-delay: -6s;
    background: linear-gradient(45deg, #CD853F, #A0522D);
}

.block-5 {
    left: 5%;
    top: 60%;
    animation-delay: -1s;
    background: linear-gradient(45deg, #FF8C00, #FF7F50);
}

.block-6 {
    right: 8%;
    top: 70%;
    animation-delay: -3s;
    background: linear-gradient(45deg, #DEB887, #D2691E);
}

@keyframes pixelFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.9;
    }
}

/* Main content */
.content {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Logo container */
.logo-container {
    position: relative;
    margin-bottom: 3rem;
    animation: logoEntrance 3s ease-out;
}

.pixel-logo {
    position: relative;
    text-align: center;
}

.logo-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    z-index: 2;
}

.letter, .dot {
    display: inline-block;
    font-size: 6rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    color: #ffffff;
    text-shadow: 
        6px 6px 0px #000000,
        12px 12px 0px rgba(0,0,0,0.4),
        0 0 30px rgba(255,215,0,0.8);
    animation: letterGlow 2s ease-in-out infinite alternate;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.letter:hover, .dot:hover {
    transform: scale(1.15) rotate(3deg);
    color: #FFD700;
    text-shadow: 
        6px 6px 0px #000000,
        12px 12px 0px rgba(0,0,0,0.4),
        0 0 40px rgba(255,215,0,1),
        0 0 60px rgba(255,165,0,0.8);
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.15s; }
.letter:nth-child(3) { animation-delay: 0.3s; }
.letter:nth-child(4) { animation-delay: 0.45s; }
.letter:nth-child(5) { animation-delay: 0.6s; }
.dot { animation-delay: 0.75s; }
.letter:nth-child(7) { animation-delay: 0.9s; }
.letter:nth-child(8) { animation-delay: 1.05s; }

@keyframes letterGlow {
    0% {
        text-shadow: 
            6px 6px 0px #000000,
            12px 12px 0px rgba(0,0,0,0.4),
            0 0 30px rgba(255,215,0,0.6);
    }
    100% {
        text-shadow: 
            6px 6px 0px #000000,
            12px 12px 0px rgba(0,0,0,0.4),
            0 0 40px rgba(255,215,0,1),
            0 0 50px rgba(255,165,0,0.8),
            0 0 60px rgba(255,140,0,0.6);
    }
}

.logo-shadow {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
    filter: blur(6px);
}

/* Logo decorations */
.logo-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    pointer-events: none;
}

.deco-pixel {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    animation: decoRotate 6s linear infinite;
    box-shadow: 0 0 20px rgba(255,215,0,0.6);
}

.deco-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.deco-2 {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: -1.5s;
}

.deco-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -3s;
}

.deco-4 {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: -4.5s;
}

@keyframes decoRotate {
    0% {
        transform: translateX(-50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateX(-50%) scale(1.5) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) scale(0.8) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: translateX(-50%) scale(1.2) rotate(270deg);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-15deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Tagline */
.tagline-container {
    animation: fadeInUp 2.5s ease-out 1.5s both;
}

.tagline {
    font-size: 1.4rem;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    font-family: 'Orbitron', monospace;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-align: center;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pixelated borders */
.pixel-borders {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.border-top, .border-bottom, .border-left, .border-right {
    position: absolute;
    background: repeating-linear-gradient(
        90deg,
        #FFD700 0px,
        #FFD700 20px,
        #FFA500 20px,
        #FFA500 40px
    );
    animation: borderPulse 3s ease-in-out infinite alternate;
}

.border-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
}

.border-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
}

.border-left {
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        #FFD700 0px,
        #FFD700 20px,
        #FFA500 20px,
        #FFA500 40px
    );
}

.border-right {
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        #FFD700 0px,
        #FFD700 20px,
        #FFA500 20px,
        #FFA500 40px
    );
}

@keyframes borderPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .letter, .dot {
        font-size: 3.5rem;
        gap: 0.2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .pixel-block {
        width: 30px;
        height: 30px;
    }
    
    .deco-pixel {
        width: 18px;
        height: 18px;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1rem;
    }
    
    .letter, .dot {
        font-size: 2.5rem;
        gap: 0.1rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .pixel-block {
        width: 25px;
        height: 25px;
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    .deco-pixel {
        width: 15px;
        height: 15px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .letter, .dot {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .border-top, .border-bottom {
        height: 8px;
    }
    
    .border-left, .border-right {
        width: 8px;
    }
}

/* Animation performance optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}