body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #1a2230;
    color: #e6edf3;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d1117;
    padding: 15px 30px;
}

.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to right, #0d1117, #1f2937);
    color: white;
}

.logo {
    color: white;
    font-size: 22px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #222;
    color: white;
}

.featured {
    padding: 40px 20px;
    text-align: center;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.card {
    background-color: #1e2c3d;
    padding: 30px;
    width: 200px;
    border-radius: 5px;
}
.page {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.content-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}
.lead {
    max-width: 800px;
    line-height: 1.6;
}

.grid {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.deal-card {
    background-color: #1e2c3d;
    padding: 20px;
    border-radius: 6px;
    flex: 1 1 280px;
}

.deal-card h3 {
    margin-top: 0;
}

.deal-card ul {
    padding-left: 18px;
}

a.card {
    text-decoration: none;
    color: #e6edf3;
    text-align: center;
    display: block;
}
a.logo {
    text-decoration: none;
    color: white;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
    display: inline-block;
}

a.logo:hover {
    color: #60a5fa;
    letter-spacing: 2px;
}
.card,
.component-card,
.deal-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.card:hover,
.component-card:hover,
.deal-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}


nav a {
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

nav a:hover {
    transform: scale(1.1);
    color: #60a5fa;
}

nav a[aria-current="page"] {
    color: #60a5fa;
}
@media (max-width: 768px) {
    .page {
        padding: 25px 15px;
    }
}
footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}


/* Visually hidden utility for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Wrapper enables horizontal scroll on small screens */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Main table styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a2230;
    color: #e6edf3;
    font-size: 0.95rem;
    min-width: 500px; /* prevents squishing on very small screens */
}

/* Header row */
.comparison-table thead tr {
    background-color: #0d1117;
}

.comparison-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #60a5fa;
    border-bottom: 2px solid #2d3a4a;
}

/* First column header (Component) */
.comparison-table thead th:first-child {
    width: 160px;
}

/* Row headers (th scope=row) */
.comparison-table tbody th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    background-color: #111827;
    color: #cbd5e1;
    border-right: 2px solid #2d3a4a;
    white-space: nowrap;
}

/* Data cells */
.comparison-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #2d3a4a;
    vertical-align: top;
    line-height: 1.5;
}

/* Alternating row background */
.comparison-table tbody tr:nth-child(even) td,
.comparison-table tbody tr:nth-child(even) th {
    background-color: #1e2c3d;
}

/* Hover highlight */
.comparison-table tbody tr:hover td,
.comparison-table tbody tr:hover th {
    background-color: #243447;
    transition: background-color 0.15s ease;
}

/* Last row — no bottom border */
.comparison-table tbody tr:last-child td,
.comparison-table tbody tr:last-child th {
    border-bottom: none;
}

/* Inline tags/badges inside cells */
.tag {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #2d3a4a;
    color: #94a3b8;
}

.tag--blue {
    background-color: #1e3a5f;
    color: #60a5fa;
}

/* Responsive: collapse to single-scroll on small screens */
@media (max-width: 600px) {
    .comparison-table thead th,
    .comparison-table tbody th,
    .comparison-table td {
        padding: 10px 12px;
        font-size: 0.875rem;
    }
}

/* contact form */

.contact-form {
    max-width: 600px;
    margin-top: 20px;
}

.contact-form label {
    font-weight: bold;
    color: #cbd5e1;
    display: block;
    margin-bottom: 2px;
    margin-top: 0;
}

.contact-form fieldset label {
    font-weight: normal;
    color: #94a3b8;
    display: inline;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 8px;
    background-color: #1a2230;
    color: #e6edf3;
    border: 1px solid #2d3a4a;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}


.contact-form textarea {
    resize: vertical;
    height: 120px;
}

.contact-form fieldset {
    border: 1px solid #2d3a4a;
    padding: 16px;
    padding-top: 20px;
    margin-top: 15px;
    margin-bottom: 25px;
    background-color: #111827;
    color: #94a3b8;
}

.contact-form fieldset legend {
    font-weight: bold;
    color: #cbd5e1;
    padding: 0;
    margin-left: 8px;
    background-color: transparent;
}

/* submit button */
.btn-submit {
    background-color: #60a5fa;
    color: #0d1117;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
}

.btn-submit:hover {
    background-color: #93c5fd;
}

.fieldset-title {
    font-weight: bold;
    color: #cbd5e1;
    margin: 0 0 10px 0;
}
/*   Details / Summary Widgets */

.component-details {
    background-color: #1a2230;
    border: 1px solid #2d3a4a;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 14px 18px;
}

.component-details summary {
    font-weight: bold;
    font-size: 1rem;
    color: #60a5fa;
    cursor: pointer;
    list-style: none;
}

.component-details summary::-webkit-details-marker {
    display: none;
}

.component-details summary::before {
    content: "+ ";
    color: #60a5fa;
}

.component-details[open] summary::before {
    content: "- ";
}

.component-details p,
.component-details ul {
    margin-top: 10px;
    color: #cbd5e1;
    line-height: 1.6;
}

.component-details ul {
    padding-left: 20px;
}

/*    Intel vs Ryzen Section */

.section-heading {
    margin-top: 30px;
    color: #e6edf3;
}

.brand-compare {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.brand-card {
    background-color: #1a2230;
    border: 1px solid #2d3a4a;
    border-radius: 6px;
    padding: 20px;
    flex: 1 1 280px;
}

.brand-card h3 {
    color: #60a5fa;
    margin-top: 10px;
}

.brand-card p,
.brand-card ul {
    color: #cbd5e1;
    line-height: 1.6;
}

.brand-card ul {
    padding-left: 20px;
    margin-top: 8px;
}

.brand-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #2d3a4a;
}

.brand-note {
    margin-top: 16px;
    color: #94a3b8;
    font-size: 0.9rem;
    border-left: 3px solid #60a5fa;
    padding-left: 12px;
}

/*  Gaming Gallery */

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    background-color: #1a2230;
    border: 1px solid #2d3a4a;
    border-radius: 6px;
    flex: 1 1 280px;
    overflow: hidden;
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background-color: #2d3a4a;
}

.gallery-item figcaption {
    padding: 14px;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.7;
}

.gallery-item figcaption strong {
    color: #e6edf3;
    font-size: 1rem;
}
.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #60a5fa;
    margin: 10px 0 4px 0;
}
.price-tag {
    display: inline-block;
    margin-top: 6px;
    background-color: #1e3a5f;
    color: #60a5fa;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
}

.gallery-note {
    margin-top: 16px;
    color: #4b5a6e;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .brand-compare,
    .gallery {
        flex-direction: column;
    }
}
/*  E-Commerce Cart */

.cart-icon {
    color: white;
    font-size: 0.9rem;
    background-color: #1e3a5f;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.add-to-cart {
    margin-top: 12px;
    background-color: #60a5fa;
    color: #0d1117;
    font-weight: bold;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.add-to-cart:hover {
    background-color: #93c5fd;
}

/* Home Page Slideshow */
 
.slideshow-section {
    max-width: 900px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
}
 
.slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}
 
.slide {
    display: none;
    animation: fadeSlide 0.6s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
 
.slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
 
/* prev/next buttons */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 4px;
}
 
.slide-btn:hover {
    background-color: rgba(96, 165, 250, 0.7);
}
 
.prev { left: 10px; }
.next { right: 10px; }
 
.slide-dots {
    text-align: center;
    padding: 10px 0 6px 0;
}
 
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background-color: #2d3a4a;
    border-radius: 50%;
    cursor: pointer;
}
 
.active-dot {
    background-color: #60a5fa;
}
 
@media (max-width: 768px) {
    .slide img {
        height: 220px;
    }
}
 /* recommended build section inside deal cards */
.recommended-build {
    margin-top: 14px;
    background-color: #111827;
    border: 1px solid #2d3a4a;
    border-radius: 4px;
    padding: 12px 14px;
}
 
.rec-title {
    font-weight: bold;
    color: #60a5fa;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}
 
.recommended-build ul {
    padding-left: 16px;
    margin: 0 0 8px 0;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.7;
}
 
.rec-total {
    font-weight: bold;
    color: #e6edf3;
    font-size: 0.9rem;
    margin: 6px 0 0 0;
    border-top: 1px solid #2d3a4a;
    padding-top: 6px;
}
 /*  Product Images */

.product-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 10px;
    box-sizing: border-box;
}
/* hero glow */
.hero-title {
    font-size: 2.2rem;
    background: linear-gradient(to right, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}
 
.hero-sub {
    color: #94a3b8;
    font-size: 1rem;
}
 
/* explore cards */
.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
 
.card-label {
    font-weight: bold;
    font-size: 1rem;
    color: #e6edf3;
    margin-bottom: 6px;
}
 
.card-desc {
    font-size: 0.85rem;
    color: #60a5fa;
}
 
/* stats section */
.stats-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}
 
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #1a2230;
    border: 1px solid #2d3a4a;
    border-radius: 8px;
    padding: 30px 20px;
}
 
.stat-item {
    text-align: center;
}
 
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #60a5fa;
}
 
.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}
 