@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, #1a1a2e 0%, #16213e 30%, #2a2a5a 70%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><rect width="2" height="2" x="22" y="22"/><rect width="2" height="2" x="42" y="22"/><rect width="2" height="2" x="2" y="2"/><rect width="2" height="2" x="2" y="42"/><rect width="2" height="2" x="22" y="2"/><rect width="2" height="2" x="22" y="42"/><rect width="2" height="2" x="42" y="2"/><rect width="2" height="2" x="42" y="42"/></g></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(5px); }
    66% { transform: translateY(5px) translateX(-5px); }
}

.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;
    background: linear-gradient(135deg, #8A2BE2, #FF6347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.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(138, 43, 226, 0.3));
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
    }
}

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

.hero-description {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 40px;
    line-height: 1.7;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.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(0, 0, 0, 0.7);
    border-radius: 25px;
    padding: 8px 20px;
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    border-color: #00FFFF;
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

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

.search-input::placeholder {
    font-family: 'Electrolize', sans-serif;
    color: #00FFFF;
    opacity: 0.7;
}

.search-button {
    font-family: 'Electrolize', sans-serif;
    flex-shrink: 0;
    background: linear-gradient(135deg, #9966cc, #66cccc);
    border: none;
    border-radius: 25px;
    padding: 17px 25px;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(153, 102, 204, 0.3);
    white-space: nowrap;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 204, 204, 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(0, 0, 0, 0.6);
    border: 2px solid #FF00FF;
    border-radius: 20px;
    padding: 8px 16px;
    color: #00FFFF;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.filter-tag:hover,
.filter-tag.active {
    background: #FF00FF;
    border-color: #00FFFF;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.filter-tag:hover,
.filter-tag.active {
    background: #FF6347;
    border-color: #FF6347;
    color: white;
    transform: translateY(-1px);
}

.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: #6A5ACD;
    font-weight: 500;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #8A2BE2, #FF6347);
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    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(255, 255, 255, 0.75);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    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(255, 0, 255, 0.4) 92%, transparent 94%),
        linear-gradient(0deg, transparent 88%, rgba(0, 255, 255, 0.3) 90%, transparent 92%),
        repeating-linear-gradient(45deg, transparent 0px, rgba(255, 255, 0, 0.1) 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);
    box-shadow: 
        0 15px 40px rgba(138, 43, 226, 0.2),
        0 0 20px rgba(0, 255, 0, 0.1);
    background: rgba(255, 255, 255, 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);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
}

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

.hero-cta-button {
    font-family: 'Electrolize', sans-serif;
    background: linear-gradient(135deg, #9966cc, #66cccc);
    color: #000000;
    padding: 16px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(153, 102, 204, 0.4);
    border: 2px solid transparent;
}

.hero-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 204, 204, 0.5);
    border-color: rgba(255, 0, 255, 0.3);
    filter: brightness(1.1);
}

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

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

.game-price {
    font-family: 'Electrolize', sans-serif;
    color: #8A2BE2;
    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, #2a2a3e 0%, #1e1e2e 100%);
    position: relative;
}

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

.separator-line {
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, transparent, #FF00FF, transparent);
    margin: 0 20px;
}

.separator-icon {
    font-size: 2rem;
    color: #00FFFF;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.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;
    background: linear-gradient(135deg, #FF00FF, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.signup-description {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.2rem;
    color: #FFFFFF;
    line-height: 1.7;
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.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: #00FFFF;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

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

.signup-button {
    font-family: 'Electrolize', sans-serif;
    display: inline-block;
    background: linear-gradient(135deg, #9966cc, #66cccc);
    color: #000000;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(153, 102, 204, 0.4);
    margin-bottom: 20px;
}

.signup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 204, 204, 0.5);
    filter: brightness(1.1);
}

.signup-note {
    font-family: 'Electrolize', sans-serif;
    color: #CCCCCC;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer Styles */
.footer-section {
    font-family: 'Electrolize', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #ffffff;
    padding: 60px 0 30px;
    position: relative;
}

.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;
    background: linear-gradient(135deg, #8A2BE2, #FF6347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

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

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

.footer-heading {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #8A2BE2;
    margin-bottom: 20px;
}

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

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

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

.footer-link:hover {
    color: #FF6347;
    padding-left: 5px;
}

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

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

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

.footer-bottom {
    font-family: 'Electrolize', sans-serif;
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
}

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

.footer-legal .footer-link {
    color: #999;
    font-size: 0.9rem;
}

.footer-legal .footer-link:hover {
    color: #8A2BE2;
    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: #00FFFF;
    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);
}