@import url('https://fonts.googleapis.com/css2?family=Science+Gothic:wght@100..900&display=swap');

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

body {
    background-color: #fff;
    color: rgb(0, 0, 0);
}

nav {
    width: 100%;
    height: 80px;
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
    color: rgb(0, 204, 255);
}

.logo a:hover {
    color: white;
}

.logo a:visited {
    color: white;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-item {
    display: inline-block;
    padding: 0 20px;
}

.nav-link {
    color: rgb(0, 157, 255);
    font-size: 1.2rem;
    text-decoration: none;
}

.nav-link:hover {
    color: white;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgb(0, 0, 0);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        height: calc(100vh - 80px);
        padding-top: 2rem;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }
}

.header {
    text-align: center;
    margin-top: 8rem;
    height: 100vh;
    padding-bottom: 5rem;
}

.header p {
    margin: 0.7rem;
}

.highlight {
    font-size: 5rem;
    color: rgb(0, 157, 255);
}

.science-gothic-company-name {
    font-family: "Science Gothic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "wdth" 75,
        "CTRS" 0;
}

.company-tagline {
    font-size: 1.5rem;
    font-weight: 200;
}

.section-header {
    font-size: 2rem;
    padding-top: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

#products {
    background-color: rgb(63, 178, 250);
}

.products-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem;
}

/* Base card layout: 3 per row on large screens */
.product-card {
    background-color: #f8f8f8;
    flex: 0 1 30%;
    display: flex;
    align-items: flex-start;
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    flex-direction: column;
}

.product-card img {
    float: left;
    max-width: 35%;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.product-card .name {
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.product-card .description {
    font-size: 1.1rem;
    padding-left: 1rem;
    line-height: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-card button {
    align-self: center;
    margin: 1rem auto;
    padding: 1rem;
    background-color: rgb(63, 178, 250);
    border-radius: 5px;
}

.product-card button a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

#contact {
    color: rgb(0, 157, 255);
    background-color: #f5f5f5;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    height: 2.2rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group textarea {
    height: 100px;
}

.submit-button {
    background-color: rgb(0, 157, 255);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
}

.submit-button:hover {
    background-color: rgb(4, 110, 175);
}

footer {
    margin-top: 2rem;
    background-color: #000000;
    color: #fff;
    padding: 1.5rem;
}

.social-links,
.quick-links,
.email-links {
    float: left;
    box-sizing: border-box;
    width: 33.33%;
    padding: 1rem;
    /* text-align: center; */
}

.link-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgb(1, 136, 214)
}

.footer-link {
    color: #ccc;
    display: block;
    text-decoration: none;
}

.footer-link:hover {
    color: rgb(0, 242, 250);
    text-decoration: underline;
}

.footer-links {
    overflow: auto;
}

@media screen and (max-width: 375px) {
    .footer-links div {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .footer-links div {
        width: 50%;
    }

    .products-container {
        flex-direction: column;
    }

    /* One card per row */
    .product-card {
        flex-basis: 100%;
        max-width: 100%;
        padding: 0 12px;
        margin: 0.5rem auto;
    }

    .product-card img {
        max-width: 100%;
        height: auto;
        margin: 0 auto 1rem;
        display: block;
    }

    .product-card .name,
    .product-card .description {
        text-align: center;
        padding-left: 0;
    }

    .product-card button {
        width: 100%;
        padding: 0.8rem;
    }
}

/* Tablet view: 2 per row */
@media (max-width: 992px) {
    .product-card {
        flex-basis: 45%;
    }
}