:root {
    --bg-blue: #8ecae6;
    --purple: #6a4c93;
    --yellow: #ffd60a;
    --pink: #ff70a6;
    --cyan: #00f5d4;
    --black: #1a1a1a;
    --white: #ffffff;
    
    --font-display: 'Fredoka One', cursive;
    --font-body: 'Comic Neue', cursive, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-blue);
    font-family: var(--font-body);
    color: var(--black);
    overflow-x: hidden;
    background-image: radial-gradient(rgba(0,0,0,0.15) 2px, transparent 2px);
    background-size: 35px 35px;
}

.bg-patterns {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: -1;
}
.shape { position: absolute; }
.triangle {
    width: 0; height: 0;
    border-left: 30px solid transparent; border-right: 30px solid transparent;
    border-bottom: 50px solid var(--pink);
    top: 15%; left: 10%;
    transform: rotate(25deg);
}
.circle {
    width: 80px; height: 80px;
    background-color: var(--yellow);
    border-radius: 50%;
    border: 4px solid var(--black);
    top: 60%; right: 5%;
}
.zigzag {
    width: 100px; height: 20px;
    background: linear-gradient(135deg, var(--cyan) 25%, transparent 25%) -50px 0,
                linear-gradient(225deg, var(--cyan) 25%, transparent 25%) -50px 0,
                linear-gradient(315deg, var(--cyan) 25%, transparent 25%),
                linear-gradient(45deg, var(--cyan) 25%, transparent 25%);
    background-size: 20px 20px;
    background-color: transparent;
    top: 20%; right: 20%;
    transform: rotate(-15deg);
}
.dot { width: 15px; height: 15px; border-radius: 50%; background: var(--black); }
.dot-1 { top: 80%; left: 15%; }
.dot-2 { top: 40%; left: 80%; }
.dot-3 { top: 10%; right: 40%; }

.retro-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--white);
    border-bottom: 5px solid var(--black);
    box-shadow: 0 5px 0 var(--purple);
    margin-bottom: 20px;
}
.nav-brand {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--black);
    text-shadow: 2px 2px 0 var(--cyan);
}
.nav-search { display: flex; gap: 10px; }
#search-input {
    padding: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: bold;
    border: 3px solid var(--black);
    border-radius: 8px;
    outline: none;
    box-shadow: inset 3px 3px 0 rgba(0,0,0,0.1);
}

.retro-btn {
    font-family: var(--font-display);
    font-size: 16px;
    padding: 10px 20px;
    border: 4px solid var(--black);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    text-transform: uppercase;
}
.btn-yellow { background-color: var(--yellow); box-shadow: 4px 4px 0 var(--pink); color: var(--black); }
.btn-pink { background-color: var(--pink); box-shadow: 4px 4px 0 var(--cyan); color: var(--black); }
.btn-purple { background-color: var(--purple); box-shadow: 4px 4px 0 var(--yellow); color: var(--white); }
.btn-cyan { background-color: var(--cyan); box-shadow: 4px 4px 0 var(--purple); color: var(--black); }
.retro-btn:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0 transparent; }

.hero {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1000px; margin: 40px auto; padding: 40px;
    background-color: var(--cyan); border: 5px solid var(--black); border-radius: 20px; box-shadow: 12px 12px 0 var(--purple);
}
.hero-content { flex: 1; }
.hero-title {
    font-family: var(--font-display); font-size: 60px; line-height: 1.1; margin: 0 0 15px 0; color: var(--black); text-shadow: 4px 4px 0 var(--white);
}
.hero-subtitle { font-size: 24px; font-weight: bold; margin-bottom: 25px; }
.hero-illustration { flex: 1; position: relative; height: 200px; display: flex; justify-content: center; align-items: center; }

.computer-art { display: flex; flex-direction: column; align-items: center; }
.monitor {
    width: 120px; height: 100px; background-color: #eee; border: 5px solid var(--black); border-radius: 10px 10px 0 0; padding: 10px; box-shadow: inset -5px -5px 0 #ccc, 5px 5px 0 var(--black);
}
.screen { width: 100%; height: 100%; background-color: var(--black); display: flex; justify-content: center; align-items: center; }
.face { color: var(--cyan); font-family: monospace; font-size: 24px; font-weight: bold; animation: blinkEyes 2s infinite; }
@keyframes blinkEyes {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}
.keyboard { width: 140px; height: 20px; background-color: #ddd; border: 5px solid var(--black); border-radius: 0 0 5px 5px; box-shadow: 5px 5px 0 var(--black); }
.floating-icon { position: absolute; font-size: 40px; animation: float 3s ease-in-out infinite; }
.i-1 { top: 10px; right: -30px; animation-delay: 0s; }
.i-2 { top: 80px; right: -30px; animation-delay: 0.5s; }
.i-3 { top: 150px; right: -30px; animation-delay: 1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Bulbs Button */
.retro-bulbs-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 12px;
    box-shadow: 6px 6px 0 var(--purple);
    transition: all 0.1s;
}
.retro-bulbs-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--purple);
}
.retro-bulbs-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 transparent;
}

.retro-bulbs { display: flex; gap: 8px; align-items: center; background: var(--black); padding: 5px 10px; border: 3px solid #eee; border-radius: 5px; box-shadow: 4px 4px 0 rgba(0,0,0,0.2); }
.bulb { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); background: #333; }
.b-1 { animation: bulbBlinkRed 1.5s infinite; animation-delay: 0s; }
.b-2 { animation: bulbBlinkGreen 1.5s infinite; animation-delay: 0.5s; }
.b-3 { animation: bulbBlinkBlue 1.5s infinite; animation-delay: 1s; }

@keyframes bulbBlinkRed {
    0%, 32% { background: #333; box-shadow: none; }
    33%, 66% { background: #ff0000; box-shadow: 0 0 10px #ff0000; }
    67%, 100% { background: #333; box-shadow: none; }
}
@keyframes bulbBlinkGreen {
    0%, 32% { background: #333; box-shadow: none; }
    33%, 66% { background: #00ff00; box-shadow: 0 0 10px #00ff00; }
    67%, 100% { background: #333; box-shadow: none; }
}
@keyframes bulbBlinkBlue {
    0%, 32% { background: #333; box-shadow: none; }
    33%, 66% { background: #0000ff; box-shadow: 0 0 10px #0000ff; }
    67%, 100% { background: #333; box-shadow: none; }
}

.status-bulb {
    width: 10px; height: 10px; border-radius: 50%;
    background: #00ff00; border: 2px solid var(--black);
    box-shadow: 0 0 8px #00ff00;
    animation: statusPulse 1.5s infinite;
    display: inline-block;
}
@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 4px #00ff00; }
    50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 12px #00ff00; }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 4px #00ff00; }
}

.retro-table { border-collapse: collapse; border: 3px solid var(--black); margin-top: 10px; }
.retro-table th, .retro-table td { padding: 12px; border: 2px solid var(--black); background: #fff; font-family: var(--font-body); font-weight: bold; }
.retro-table th { background: var(--cyan); text-transform: uppercase; }

.status-tag { padding: 4px 8px; border: 2px solid var(--black); font-size: 12px; border-radius: 4px; box-shadow: 2px 2px 0 var(--black); }
.tag-pending { background: var(--yellow); }
.tag-viewed { background: var(--cyan); }
.tag-purchased { background: #00ff00; }

/* Circuit Board (Contact Us) */
.circuit-board {
    position: absolute;
    top: -55px;
    left: 100px;
    background: #1a4d1a; /* PCB Green */
    border: 3px solid #808080; /* Silver Frame */
    padding: 8px 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    color: #ffd700; /* Gold Text */
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--black);
    z-index: 10;
    white-space: nowrap;
    text-transform: uppercase;
    overflow: hidden;
}

.circuit-led {
    position: absolute;
    width: 25px;
    height: 4px;
    background: #ff0000;
    border-radius: 2px;
    box-shadow: 0 0 15px #ff0000, 0 0 5px #ff0000;
    z-index: 11;
    bottom: 0;
    animation: knightRider 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

@keyframes knightRider {
    from { left: 2px; }
    to { left: calc(100% - 27px); }
}

.circuit-traces {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(255,215,0,0.1) 1px, transparent 1px),
        linear-gradient(rgba(255,215,0,0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
}

/* Wiring Connector */
.circuit-board:before {
    content: '';
    position: absolute;
    bottom: -25px;
    left: -15px;
    width: 30px;
    height: 30px;
    border-left: 4px solid #aaa;
    border-bottom: 4px solid #aaa;
    pointer-events: none;
}

.circuit-board:after {
    content: '●';
    position: absolute;
    bottom: -28px;
    left: 12px;
    color: #ffd700;
    font-size: 12px;
}

/* CMD Modal */
.cmd-window {
    background: #000;
    width: 90%;
    max-width: 600px;
    border: 3px solid #ccc;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
    font-family: 'Courier New', monospace;
    color: #fff;
}
.cmd-header {
    background: #ccc;
    color: #000;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}
.cmd-close {
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
}
.cmd-body {
    padding: 20px;
    line-height: 1.4;
}

.container { max-width: 1000px; margin: 0 auto 50px auto; padding: 0 20px; }
.section-title { 
    font-family: var(--font-display); 
    font-size: 32px; 
    color: var(--black); 
    text-shadow: 2px 2px 0 var(--white); 
    margin-bottom: 20px;
    background: rgba(255,255,255,0.7);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 50px;
    border: 3px solid var(--black);
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }

.product-card {
    background-color: var(--white); border: 5px solid var(--black); border-radius: 15px; padding: 20px; box-shadow: 8px 8px 0 var(--purple); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 12px 12px 0 var(--pink); }
.card-icon { font-size: 40px; margin-bottom: 10px; }
.card-title { font-family: var(--font-display); font-size: 22px; margin: 0 0 10px 0; }
.card-price {
    font-size: 18px; font-weight: bold; color: var(--black); margin-bottom: 15px; background: var(--yellow); display: inline-block; padding: 5px 10px; border: 3px solid var(--black); border-radius: 20px; transform: rotate(-3deg);
}
.card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.modal-overlay.hidden { display: none; }
.retro-window {
    background: var(--white); border: 5px solid var(--black); box-shadow: 10px 10px 0 var(--cyan); width: 90%; max-width: 650px; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.window-header {
    background: var(--purple); color: var(--white); padding: 10px; display: flex; justify-content: space-between; align-items: center; border-bottom: 5px solid var(--black); font-family: var(--font-display); font-size: 20px;
}
.window-close { background: var(--pink); border: 3px solid var(--black); color: var(--black); font-weight: bold; font-family: var(--font-display); width: 35px; height: 35px; cursor: pointer; }
.window-close:active { background: var(--white); }
.window-body { padding: 20px; font-size: 18px; line-height: 1.5; }
.dev-link { color: var(--purple); text-decoration: underline; cursor: pointer; font-weight: bold; }

/* Categories */
.category-nav {
    display: flex; flex-wrap: wrap; gap: 10px; padding: 15px; background: var(--white); border: 4px solid var(--black); border-radius: 10px; box-shadow: 6px 6px 0 var(--cyan);
}
.active-cat { background: var(--black); color: var(--white); box-shadow: none; transform: translate(4px, 4px); }

/* Reviews */
.reviews-section { margin-top: 20px; border-top: 4px dashed var(--black); padding-top: 20px; }
.review-card { background: var(--cyan); border: 3px solid var(--black); padding: 10px; margin-bottom: 15px; box-shadow: 4px 4px 0 var(--purple); }
.review-header { display: flex; justify-content: space-between; font-weight: bold; margin-bottom: 5px; font-family: var(--font-display); }
.review-stars { color: var(--yellow); text-shadow: 1px 1px 0 var(--black); }

.review-form { background: var(--cyan); border: 3px solid var(--black); padding: 15px; margin-top: 20px; box-shadow: 4px 4px 0 var(--purple); }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 5px; margin-bottom: 10px; }
.star-rating input { display: none; }
.star-rating label { font-size: 24px; color: var(--white); text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; cursor: pointer; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: var(--yellow); }

/* Flag Animation */
@keyframes wave-flag {
    0% { transform: perspective(400px) rotateY(-10deg) skewY(-2deg) rotateX(2deg); }
    50% { transform: perspective(400px) rotateY(15deg) skewY(2deg) rotateX(-2deg); }
    100% { transform: perspective(400px) rotateY(-10deg) skewY(-2deg) rotateX(2deg); }
}

.flag-wave {
    animation: wave-flag 2.5s ease-in-out infinite;
    transform-origin: left center;
}

/* Boot Screen */
#boot-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000; color: #00ff00; font-family: 'Courier New', monospace;
    padding: 30px; z-index: 99999; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.4; font-size: 16px;
}
.boot-line { margin-bottom: 5px; opacity: 0; animation: fadeInBoot 0.1s forwards; }
@keyframes fadeInBoot { to { opacity: 1; } }
.cursor {
    display: inline-block; width: 10px; height: 18px; background: #00ff00;
    animation: blink 0.5s infinite; vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Brand Banner */
.top-banner {
    background: var(--white);
    color: var(--black);
    text-align: center;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 2px;
    border-bottom: 4px solid var(--purple);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-transform: uppercase;
}
.nexova-brand {
    color: #009dff; /* Matching the logo blue */
    text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2em;
    padding: 0 10px;
    display: inline-block;
    transform: skewX(-10deg);
}
.nexova-logo {
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;
    filter: drop-shadow(2px 2px 0 var(--purple));
}
.nexova-subtext {
    font-size: 9px;
    font-family: 'Fredoka One', cursive;
    color: var(--black);
    margin-left: 0;
    margin-top: 7px;
    letter-spacing: 0.5px;
    text-shadow: none;
    font-style: italic;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}
.nexova-blue {
    color: #004d99; /* Dark Blue */
    font-weight: bold;
}
