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

body {
    font-family: 'Press Start 2P', monospace;
    background-color: #0a0a23; /* Fallback color for iOS */
    background: linear-gradient(45deg, #0a0a23, #1a1a3a, #2a2a5a);
    background-attachment: scroll; /* iOS Safari fix */
    color: #00ff00;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for better mobile support */
    position: relative;
    -webkit-font-smoothing: antialiased; /* Better font rendering on iOS */
}

.container {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for better mobile support */
    position: relative;
    z-index: 1;
}

/* Background Elements */
.bg-elements {
    position: absolute; /* Changed from fixed to absolute for iOS compatibility */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none; /* Prevent touch interference on mobile */
}

.pixel-cloud {
    position: absolute;
    width: 80px;
    height: 40px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

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

.cloud-2 {
    top: 40%;
    right: 15%;
    animation-delay: -2s;
}

.cloud-3 {
    top: 60%;
    left: 20%;
    animation-delay: -4s;
}

.floating-pixels {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pixel {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    animation: twinkle 3s ease-in-out infinite;
}

.pixel:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.pixel:nth-child(2) { top: 30%; left: 80%; animation-delay: 1s; }
.pixel:nth-child(3) { top: 50%; left: 15%; animation-delay: 2s; }
.pixel:nth-child(4) { top: 70%; left: 90%; animation-delay: 0.5s; }
.pixel:nth-child(5) { top: 80%; left: 40%; animation-delay: 1.5s; }
.pixel:nth-child(6) { top: 25%; left: 60%; animation-delay: 2.5s; }

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #00ff00;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-pixel-art {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pixel-row {
    display: flex;
    gap: 2px;
}

.pixel-block {
    width: 8px;
    height: 8px;
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.pixel-block.active {
    background: #00ff00;
    box-shadow: 0 0 4px #00ff00;
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    font-size: 2.5rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    letter-spacing: 4px;
    animation: glow 2s ease-in-out infinite alternate;
}

/* Main Content */
.main-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Terminal Window */
.terminal-window {
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    overflow: hidden;
}

.terminal-header {
    background: #333;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #00ff00;
}

.terminal-buttons {
    display: flex;
    gap: 4px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.close { background: #ff5f56; }
.btn.minimize { background: #ffbd2e; }
.btn.maximize { background: #27ca3f; }

.terminal-title {
    color: #00ff00;
    font-size: 10px;
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 8px;
}

.prompt {
    color: #00ff00;
}

.command {
    color: #ffff00;
    margin-left: 10px;
}

.output {
    color: #00ffff;
    margin-left: 20px;
}

.output.success {
    color: #00ff00;
}

/* Coming Soon Section */
.coming-soon-section {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border: 2px solid #00ffff;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
}

.retro-title {
    font-size: 3rem;
    color: #ff00ff;
    text-shadow: 2px 2px 0 #000, 4px 4px 0 #333;
    margin-bottom: 20px;
    animation: glitch 3s ease-in-out infinite;
}

.description {
    font-size: 14px;
    line-height: 1.8;
    color: #00ffff;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    padding: 20px;
    border-radius: 8px;
    min-width: 100px;
    position: relative;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff00, #00ffff, #ff00ff, #ffff00);
    border-radius: 8px;
    z-index: -1;
    animation: rainbow-border 3s linear infinite;
}

.stat-number {
    font-size: 2rem;
    color: #00ff00;
    margin-bottom: 8px;
    text-shadow: 0 0 10px #00ff00;
}

.stat-label {
    font-size: 10px;
    color: #00ffff;
    letter-spacing: 2px;
}

/* CTA Section */
.cta-section {
    margin-top: 40px;
}

.notify-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.email-input {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 12px 16px;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    border-radius: 4px;
    min-width: 250px;
    outline: none;
}

.email-input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    border-color: #00ffff;
}

.email-input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

.notify-btn {
    background: linear-gradient(45deg, #00ff00, #00ffff);
    border: none;
    color: #000;
    padding: 12px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.4);
    animation: pulse 0.5s ease-in-out;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-link {
    color: #ff00ff;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #ff00ff;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.7);
    border-top: 2px solid #00ff00;
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-pixel-art {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 15px;
}

.mini-pixel {
    width: 6px;
    height: 6px;
    background: #00ffff;
    animation: twinkle 2s ease-in-out infinite;
}

.mini-pixel:nth-child(2) { animation-delay: 0.5s; }
.mini-pixel:nth-child(3) { animation-delay: 1s; }

.footer-content p {
    color: #00ffff;
    font-size: 10px;
    margin-bottom: 15px;
}

.tech-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid #ffff00;
    color: #ffff00;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 8px;
}

/* Animations */
@keyframes glow {
    0% { text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
    100% { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes typing-animation {
    0% { width: 0; }
    100% { width: 100%; }
}

.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    animation: typing-animation 2s steps(20) 1s forwards;
    width: 0;
}

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

.blink {
    animation: blink 1s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

@keyframes rainbow-border {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.8rem;
    }
    
    .retro-title {
        font-size: 2rem;
    }
    
    .stats-container {
        gap: 15px;
    }
    
    .notify-form {
        flex-direction: column;
        align-items: center;
    }
    
    .email-input {
        min-width: 200px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }
    
    .coming-soon-section {
        padding: 20px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .retro-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    body {
        /* Ensure background renders on iOS */
        background-attachment: scroll;
        -webkit-background-size: cover;
        background-size: cover;
    }
    
    .container {
        /* Fix height issues on iOS Safari */
        min-height: -webkit-fill-available;
    }
    
    .bg-elements {
        /* Ensure background elements are visible on iOS */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
}
