@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
    --primary: #ffffff;
    --secondary: #000000;
    --accent: #EF233C;
}

/* Prevent any horizontal overflow */
html,
body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'JetBrains Mono', serif;
    background-color: var(--primary);
    color: var(--secondary);
    line-height: 1.6;
}

header {
    background-color: var(--primary);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    padding-top: 10px;
}

nav {
    position: relative;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: bold;
}

nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 2rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
    color: var(--secondary);
    max-width: none;
    z-index: 0;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.subheading {
    font-variant: small-caps;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero .line-container {
    position: absolute;
    top: 0;
    left: -2rem;
    width: calc(100% + 4rem);
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.line {
    position: absolute;
    background-color: var(--accent);
}

.line-1 {
    top: 0;
    left: -10%;
    width: 150%;
    height: 2px;
    transform: rotate(15deg);
}

.line-2 {
    top: 0;
    right: 10%;
    width: 2px;
    height: 100%;
}

.line-3 {
    bottom: 10%;
    left: 0;
    width: 100%;
    height: 2px;
}

.line-4 {
    bottom: -20%;
    left: 20%;
    width: 200%;
    height: 2px;
    transform: rotate(-25deg);
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about {
    padding: 6rem 2rem;
}

.products-section {
    width: 100%;
    background-color: var(--secondary);
    padding: 6rem 0;
    max-width: none;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.products-section h2 {
    color: var(--primary);
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.product-card {
    background-color: var(--primary);
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 300px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 40%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
    align-self: center;
    max-width: 100px;
}

.product-card h3 {
    margin-top: 0;
}

.product-card p {
    font-size: 0.95rem;
}

.product-card .btn {
    margin-top: 1rem;
    display: inline-block;
}

/* Footer */
footer {
    background-color: var(--accent);
    color: var(--primary);
    padding: 2rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 80%;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
    align-items: start;
}

.footer-right {
    display: contents;
}

.footer-left {
    min-width: 250px;
}

.footer-logo img {
    height: 40px;
    vertical-align: top;
}

.footer-column {
    min-width: 200px;
}

.footer-column h3 {
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.875rem;
}

/* Animation for mobile nav */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: var(--primary);
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        animation: slideDown 0.3s ease-out;
    }

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

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

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 0.5rem 0;
    }

    .about p {
        text-align: justify;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Tablet: two columns in footer */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}