:root {
    --PCB_GREEN: #145114;
    --CONTACT_SILVER: #888888;
    --TRACE_GOLD: #d4af37;
    --AERO_BLUE: #6686de;
    --BOX_SHADOW: 6px 6px 0px rgba(0, 0, 0, 0.7);
    --OPAQUE_PCB_GREEN: rgba(20, 81, 20, 0.8);
    --SOLDER_MASK_GREEN: #0d8a0d;
    --COPPER_ORANGE: #b87333;
    --RESISTOR_BLACK: #1a1a1a;
    --CAPACITOR_BLUE: #4a90e2;
    --LED_RED: #e63946;
    --CHIP_BLACK: #2b2b2b;
    --SILKSCREEN_WHITE: #f0f0f0;
    --CONNECTOR_GRAY: #5a5a5a;
    --THERMAL_PAD_SILVER: #c0c0c0;
}

header {
    background-color: var(--OPAQUE_PCB_GREEN);
    color: var(--CONTACT_SILVER);
    box-shadow: var(--BOX_SHADOW);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border: 3px solid var(--TRACE_GOLD);
}

header .logo {
    width: 12vw;
    height: auto;
    filter: drop-shadow(var(--BOX_SHADOW));
    display: block;
    image-rendering: pixelated;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    font-family: 'Courier New', Courier, monospace;
}

header .tagline {
    font-size: 0.75rem;
    font-family: "Courier New", Courier, monospace;
    font-style: italic;
    margin-bottom: 0.2rem;
    color: var(--TRACE_GOLD);
    text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 0px;
    text-align: center;
}

header nav {
    text-align: right;
}

header nav a {
    color: var(--CONTACT_SILVER);
    font-size: 0.95rem;
    margin-left: 1rem;
    font-family: "Courier New", Courier, monospace;
    text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 0px;
    text-decoration: none;
}

/*
.navassist {
    display: flex;
    justify-content: center;
    align-items: center;
}*/



body::before{
    content: "";
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: url("../img/—Pngtree—circuit board_1377943.png");
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: -1;
}

body {
    font-family: "Courier New", Courier, monospace;
    color: var(--CONTACT_SILVER);
    background-color: var(--PCB_GREEN);
    line-height: 1.6;
    padding: 1rem;
}

.content-section {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: var(--BOX_SHADOW);
    background-color: var(--OPAQUE_PCB_GREEN);
    gap: 2rem;
    padding: 2rem;
    margin: 20px auto;
    border: 4px solid var(--TRACE_GOLD);
}

.content-section h2 {
    width: 100%;
    text-align: center;
    color: var(--TRACE_GOLD);
    margin-bottom: 1rem;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.content-section h3 {
    color: var(--TRACE_GOLD);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}



.content-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Contact Section*/

.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.mail, .phone {
    margin-top: 1rem;
    font-style: italic;
    color: var(--TRACE_GOLD);
}

.phone a {
    color: var(--TRACE_GOLD);
    text-decoration: none;
}

/* Footer */

footer {
    background-color: var(--OPAQUE_PCB_GREEN);
    color: var(--CONTACT_SILVER);
    box-shadow: var(--BOX_SHADOW);
    text-align: center;
    padding: 1.5rem;
    margin: 20px;
    border: 4px solid var(--TRACE_GOLD);
    font-family: "Courier New", Courier, monospace;
}

/* Image Gallery Functionality */
.image-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    position: relative;
}

.gallery-btn {
    background-color: var(--TRACE_GOLD);
    color: var(--CHIP_BLACK);
    border: 3px solid var(--CONTACT_SILVER);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: var(--BOX_SHADOW);
}

.gallery-btn:hover {
    background-color: var(--CONTACT_SILVER);
    color: var(--TRACE_GOLD);
    transform: scale(1.1);
}

.gallery-btn:active {
    transform: scale(0.95);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.7);
}

.content-image {
    max-width: 100%;
    height: auto;
    border: 4px solid var(--TRACE_GOLD);
    box-shadow: var(--BOX_SHADOW);
}

#gallery-caption {
    margin-top: 1rem;
    font-style: italic;
    color: var(--TRACE_GOLD);
    text-align: center;
}

/* For Sale Banner */
.for-sale-banner {
    position: absolute;
    top: 10px;
    right: 80px;
    background: linear-gradient(135deg, var(--LED_RED) 0%, #c02030 100%);
    border: 2px solid var(--TRACE_GOLD);
    padding: 0.6rem 1.2rem;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    z-index: 10;
}

.sale-sign {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--SILKSCREEN_WHITE);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.2rem;
    font-family: 'Courier New', Courier, monospace;
}

.sale-subtitle {
    font-size: 0.75rem;
    color: var(--TRACE_GOLD);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
    margin-top: 0.15rem;
    font-style: italic;
    letter-spacing: 0.08rem;
}

/* Buy Now Button */
.buy-now-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--TRACE_GOLD) 0%, var(--COPPER_ORANGE) 100%);
    color: var(--CHIP_BLACK);
    border: 5px solid var(--CONTACT_SILVER);
    border-radius: 8px;
    padding: 1.5rem 3rem;
    font-size: 2rem;
    font-weight: bold;
    font-family: "Courier New", Courier, monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--BOX_SHADOW);
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    margin-top: 2rem;
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, var(--COPPER_ORANGE) 0%, var(--TRACE_GOLD) 100%);
    transform: scale(1.05);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.9);
    border-color: var(--TRACE_GOLD);
}

.buy-now-btn:active {
    transform: scale(0.98);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.7);
}

/* Demo */
.demonstration-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1.5rem auto;
    max-width: 500px;
}

.demonstration-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 4px solid var(--TRACE_GOLD);
    box-shadow: var(--BOX_SHADOW);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
}

/* Similar Products Section */
.selector-for-products {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.product-container {
    flex: 1;
    max-width: 700px;
    min-height: 300px;
}

.similar-product-display {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border: 3px solid var(--TRACE_GOLD);
    border-radius: 8px;
    box-shadow: var(--BOX_SHADOW);
}

#product-title {
    color: var(--TRACE_GOLD);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#product-description {
    color: var(--CONTACT_SILVER);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

#product-features {
    list-style-type: none;
    padding-left: 0;
}

#product-features li {
    color: var(--SILKSCREEN_WHITE);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
}

#product-features li::before {
    content: "▸";
    color: var(--TRACE_GOLD);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.similar-product-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border: 4px solid var(--TRACE_GOLD);
    box-shadow: var(--BOX_SHADOW);
    margin: 1rem auto;
    display: block;
}

/* Reviews Section */
.reviews-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.review-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(20, 81, 20, 0.3) 100%);
    border: 3px solid var(--TRACE_GOLD);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--BOX_SHADOW);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.9);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--TRACE_GOLD);
}

.review-header h4 {
    color: var(--TRACE_GOLD);
    font-size: 1.2rem;
    margin: 0;
}

.rating {
    color: var(--TRACE_GOLD);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--SILKSCREEN_WHITE);
    font-style: italic;
    line-height: 1.6;
    margin: 1rem 0;
}

.review-date {
    color: var(--CONTACT_SILVER);
    font-size: 0.9rem;
    text-align: right;
    margin-top: 1rem;
}

.add-review-section {
    width: 100%;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 3px solid var(--TRACE_GOLD);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-sizing: border-box;
}

.add-review-section h3 {
    color: var(--TRACE_GOLD);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

#review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#review-form input,
#review-form textarea,
#review-form select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--CONTACT_SILVER);
    border-radius: 4px;
    padding: 0.8rem;
    color: var(--RESISTOR_BLACK); /* Dark text for better readability */
    font-family: "Courier New", Courier, monospace;
    font-size: 1rem;
}

#review-form input:focus,
#review-form textarea:focus,
#review-form select:focus {
    outline: none;
    border-color: var(--TRACE_GOLD);
    background-color: rgba(255, 255, 255, 0.15);
}

#review-form input::placeholder,
#review-form textarea::placeholder {
    color: var(--RESISTOR_BLACK);
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-input label {
    color: var(--TRACE_GOLD);
    font-weight: bold;
}

.rating-input select {
    flex: 1;
}

.submit-review-btn {
    background-color: var(--TRACE_GOLD);
    color: var(--CHIP_BLACK);
    border: 3px solid var(--CONTACT_SILVER);
    border-radius: 4px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: "Courier New", Courier, monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--BOX_SHADOW);
}

.submit-review-btn:hover {
    background-color: var(--CONTACT_SILVER);
    color: var(--TRACE_GOLD);
    transform: scale(1.05);
}

.submit-review-btn:active {
    transform: scale(0.98);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.7);
}

/* Scales */

@media (max-width: 900px) {
    .content-section {
        width: 90%;
        padding: 1rem;
    }

    .demonstration-image {
        max-width: 100%;
    }

    .selector-for-products {
        flex-direction: column;
    }

    .product-container {
        max-width: 100%;
    }
}