@import url('https://fonts.googleapis.com/css2?family=Electrolize&display=swap');

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

body {
    font-family: 'Electrolize', 'Arial', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d35 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 217, 255, 0.025) 0px,
        transparent 2px,
        transparent 4px,
        rgba(0, 217, 255, 0.025) 6px
    );
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-visual {
    animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #e8f6ff;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
}

.pixel-logo {
    margin-bottom: 22px;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.pixel-logo svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 16px rgba(0, 217, 255, 0.7));
    }
}

.hero-subtitle {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.3rem;
    color: #00d9ff;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

.hero-description {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.1rem;
    color: #b8b8c8;
    margin-bottom: 40px;
    line-height: 1.75;
}

.search-container {
    position: relative;
    margin-bottom: 30px;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.search-wrapper {
    flex: 1;
    background: rgba(10, 10, 20, 0.65);
    border-radius: 6px;
    padding: 8px 20px;
    border: 1px solid rgba(0, 217, 255, 0.25);
}

.search-wrapper:focus-within {
    border-color: #00ff41;
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
}

.search-input {
    font-family: 'Electrolize', sans-serif;
    width: 100%;
    border: none;
    outline: none;
    padding: 15px 0;
    font-size: 1.1rem;
    background: transparent;
    color: #e8f6ff;
}

.search-input::placeholder {
    font-family: 'Electrolize', sans-serif;
    color: rgba(0, 217, 255, 0.6);
    opacity: 1;
}

.search-button {
    font-family: 'Electrolize', sans-serif;
    flex-shrink: 0;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff41 100%);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 17px 25px;
    color: #0a0e27;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.25);
}

.search-button:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 22px rgba(0, 255, 65, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.filter-tag {
    font-family: 'Electrolize', sans-serif;
    background: rgba(10, 10, 20, 0.65);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 6px;
    padding: 8px 16px;
    color: #00d9ff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: rgba(0, 217, 255, 0.1);
    border-color: #00d9ff;
    color: #e8f6ff;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    font-family: 'Electrolize', sans-serif;
    display: flex;
    align-items: center;
    color: #b8b8c8;
    font-weight: 500;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: transparent;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff41;
    font-size: 0.8rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-card-wrapper {
    width: 80%;
}

.game-cards {
    display: grid;
    grid-template-columns: 200px 200px;
    grid-template-rows: 200px 200px;
    gap: 20px;
}

.game-card {
    font-family: 'Electrolize', sans-serif;
    background: rgba(10, 10, 20, 0.65);
    border-radius: 6px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.25);
    transition: all 0.3s ease;
    animation: cardFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Pixel Glitch Effect */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 90%, rgba(0, 217, 255, 0.3) 92%, transparent 94%),
        linear-gradient(0deg, transparent 88%, rgba(0, 255, 65, 0.2) 90%, transparent 92%),
        repeating-linear-gradient(45deg, transparent 0px, rgba(0, 217, 255, 0.08) 2px, transparent 4px);
    background-size: 8px 8px, 8px 8px, 6px 6px;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    animation: pixelGlitch 3s infinite;
}

@keyframes pixelGlitch {
    0%, 85%, 100% { 
        opacity: 0;
        transform: translateX(0) translateY(0) scale(1);
        filter: hue-rotate(0deg);
    }
    86% { 
        opacity: 0.9;
        transform: translateX(-4px) translateY(2px) scale(1.02);
        filter: hue-rotate(90deg);
    }
    87% { 
        opacity: 0.7;
        transform: translateX(3px) translateY(-3px) scale(0.98);
        filter: hue-rotate(180deg);
    }
    88% { 
        opacity: 1;
        transform: translateX(-2px) translateY(4px) scale(1.01);
        filter: hue-rotate(270deg);
    }
    89% { 
        opacity: 0.6;
        transform: translateX(5px) translateY(-1px) scale(0.99);
        filter: hue-rotate(360deg);
    }
    90% { 
        opacity: 0.8;
        transform: translateX(-1px) translateY(2px) scale(1);
        filter: hue-rotate(45deg);
    }
}

/* Enhanced hover effect with retro vibes */
.game-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(10, 10, 20, 0.85);
}

.game-card:hover::after {
    animation-duration: 1s;
}

.game-card:nth-child(1) { 
    animation-delay: 0s; 
    --glitch-delay: 0s;
}
.game-card:nth-child(2) { 
    animation-delay: 0.5s; 
    --glitch-delay: 1s;
}
.game-card:nth-child(3) { 
    animation-delay: 1s; 
    --glitch-delay: 2s;
}
.game-card:nth-child(4) { 
    animation-delay: 1.5s; 
    --glitch-delay: 3s;
}

.game-card:nth-child(1)::after { animation-delay: 0s; }
.game-card:nth-child(2)::after { animation-delay: 1s; }
.game-card:nth-child(3)::after { animation-delay: 2s; }
.game-card:nth-child(4)::after { animation-delay: 3s; }

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

.game-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(0, 217, 255, 0.5);
}

.hero-cta-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.hero-cta-button {
    font-family: 'Electrolize', sans-serif;
    background: #1a1a2e;
    color: #00d9ff;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid #00d9ff;
}

.hero-cta-button:hover {
    background: #00d9ff;
    color: #1a1a2e;
}

.game-title {
    font-family: 'Electrolize', sans-serif;
    font-weight: 700;
    color: #e8f6ff;
    margin-bottom: 8px;
}

.game-console {
    font-family: 'Electrolize', sans-serif;
    color: #00d9ff;
    font-size: 0.9rem;
    font-weight: 600;
}

.game-price {
    font-family: 'Electrolize', sans-serif;
    color: #00ff41;
    font-weight: 700;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-button {
        align-self: stretch;
        border-radius: 20px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .game-cards {
        transform: none;
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Sign-up Section Styles */
.signup-section {
    font-family: 'Electrolize', sans-serif;
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d35 100%);
    position: relative;
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.separator-line {
    height: 1px;
    width: 100px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.5), transparent);
    margin: 0 20px;
}

.separator-icon {
    font-size: 2rem;
    color: #00d9ff;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

.signup-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.signup-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #00d9ff;
    text-shadow: 0 0 14px rgba(0, 217, 255, 0.35);
}

.signup-description {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.2rem;
    color: #b8b8c8;
    line-height: 1.75;
    margin-bottom: 40px;
}

.signup-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-item {
    font-family: 'Electrolize', sans-serif;
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 12px;
    color: #c8eeff;
    font-weight: 600;
    font-size: 1.1rem;
}

.benefit-icon {
    font-size: 1.5rem;
    color: #00ff41;
}

.signup-button,
.register-button {
    font-family: 'Electrolize', sans-serif;
    display: inline-block;
    background: linear-gradient(135deg, #00d9ff 0%, #00ff41 100%);
    color: #0a0e27;
    padding: 18px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: filter 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.signup-button:hover,
.register-button:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 28px rgba(0, 255, 65, 0.5);
}

.signup-note {
    font-family: 'Electrolize', sans-serif;
    color: rgba(184, 184, 200, 0.7);
    font-size: 0.9rem;
}

/* Footer Styles */
.footer-section {
    font-family: 'Electrolize', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #060810 100%);
    color: #b8b8c8;
    padding: 60px 0 30px;
    position: relative;
    border-top: 1px solid rgba(0, 217, 255, 0.15);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3,
.footer-column h4 {
    font-family: 'Electrolize', sans-serif;
    margin-bottom: 20px;
}

.footer-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #e8f6ff;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
    margin-bottom: 15px;
}

.footer-quote {
    font-family: 'Electrolize', sans-serif;
    font-style: italic;
    color: #00d9ff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-description {
    font-family: 'Electrolize', sans-serif;
    color: #b8b8c8;
    line-height: 1.75;
}

.footer-heading {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00d9ff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    font-family: 'Electrolize', sans-serif;
    color: #b8b8c8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
    padding-left: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    font-family: 'Electrolize', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b8b8c8;
    font-weight: 500;
}

.contact-icon {
    font-size: 1.1rem;
}

.footer-bottom {
    font-family: 'Electrolize', sans-serif;
    border-top: 1px solid rgba(0, 217, 255, 0.15);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(184, 184, 200, 0.7);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal .footer-link {
    color: rgba(184, 184, 200, 0.7);
    font-size: 0.9rem;
}

.footer-legal .footer-link:hover {
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
    padding-left: 0;
}

/* CRT Monitor Styles */
.crt-monitor {
    display: block;
    width: 100%;
    max-width: 450px;
    animation: slideInRight 1s ease-out 0.3s both;
    margin: 0 auto;
}

.crt-frame {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.1);
    position: relative;
    border: 3px solid #333;
    width: 100%;
}

.crt-screen {
    width: 100%;
    height: 280px;
    background: #000000;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 2px solid #444;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.crt-content {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000000;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.5s ease-in-out;
}

.game-screenshot.fade-out {
    opacity: 0;
}

/* CRT Effects */
.crt-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
    animation: scanlineMove 3s linear infinite;
    z-index: 10;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.crt-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    opacity: 0.3;
    animation: crtFlicker 4s ease-in-out infinite;
    z-index: 5;
}

@keyframes crtFlicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

/* CRT Bezel and Controls */
.crt-bezel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    width: 100%;
    padding: 0 10px;
}

.crt-speaker {
    width: 40px;
    height: 60px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border-radius: 5px;
    position: relative;
    border: 1px solid #444;
}

.crt-speaker::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #666;
    border-radius: 50%;
    box-shadow: 
        0 8px 0 #666,
        0 16px 0 #666,
        0 24px 0 #666,
        0 32px 0 #666,
        0 40px 0 #666;
}

.crt-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-knob {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #333, #111);
    border-radius: 50%;
    border: 2px solid #555;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-knob:hover {
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.control-knob::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #888;
    border-radius: 1px;
}

.power::after { background: #FF0066; }
.volume::after { background: #00FF00; }
.brightness::after { background: #FFFF00; }

.crt-brand {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    color: #666;
    letter-spacing: 1px;
}

.crt-base {
    width: 60%;
    height: 40px;
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    border-radius: 0 0 15px 15px;
    margin: -5px auto 0;
    border: 2px solid #333;
    border-top: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}