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

html, body {
    height: 100%;
    margin: 0;
}

header, footer {
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* Subtle shadow for contrast */
}

body {
    font-family: 'Roboto', sans-serif;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content {
    flex: 1;
}

header {
    background-color: rgba(0, 0, 0, 0.5); /* 50% transparent */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Maintain layering for nav menu */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* Enhance text readability */
    position: sticky;
    top: 0;
}

.logo {
    height: 80px; /* Adjust this value to make the logo smaller or larger */
    width: auto; /* Maintains aspect ratio */
    display: block;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #00aaff;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.latest-reviews h2,
.reviews h1,
.pc-building h1,
.subscribe h1,
.contact h1,
.about h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about p {
    margin-bottom: 1rem;
}

.review-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #2c2c2c;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #00aaff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #0088cc;
}

.review img,
.pc-building iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.review p {
    margin-bottom: 1rem; /* Adds 1rem (16px) space below each paragraph */
}

.subscribe-form,
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subscribe-form label,
.contact-form label {
    font-size: 1.1rem;
}

.subscribe-form input,
.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background-color: #3c3c3c;
    color: #ffffff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed; /* Sticks to viewport bottom */
    bottom: 0; /* Aligns to bottom */
    width: 100%; /* Full width */
    z-index: 1000; /* Ensures footer stays above other content */
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #2c2c2c;
        width: 200px;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .latest-reviews h2,
    .reviews h1,
    .pc-building h1,
    .subscribe h1,
    .contact h1,
    .about h1 {
        font-size: 1.5rem;
    }

    .review iframe,
    .pc-building iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    body {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/background-mobile.jpg');
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .card {
        padding: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .review p {
        margin-bottom: 0.75rem; /* Smaller spacing (12px) on mobile */
    }
}

.comparison-table {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    border-collapse: collapse;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

    .comparison-table th, .comparison-table td {
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .comparison-table th {
        background-color: rgba(255, 255, 255, 0.1);
        font-weight: 700;
    }

    .comparison-table tr:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .comparison-table td:first-child {
        font-weight: 700;
    }