/* Base Variables - Derived from Logo */
:root {
    --primary-red: #D32F2F; /* Matching the AS Red */
    --dark-text: #1a1a1a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #666666;
    --border-color: #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-text);
}

.underline {
    height: 3px;
    width: 60px;
    background-color: var(--primary-red);
    margin: 10px auto 0;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-red);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background-color: var(--light-bg);
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.product-img {
    height: 250px;
    background-color: #ffffff; /* This makes the card background pure white */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px; /* Adds breathing room around the machine */
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* We no longer need any blend modes because the image is transparent! */
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-red);
}

.product-info p {
    font-size: 0.95rem;
    color: var(--gray);
}

/* Contact Section */
.contact {
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--dark-text);
}

.contact-info-box.highlights {
    border-top: 4px solid var(--primary-red);
}

.contact-info-box h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info-box p {
    color: var(--gray);
    margin-bottom: 10px;
}

.contact-info-box a {
    color: var(--primary-red);
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Responsive Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* Secondary Button for Products */
.btn-secondary {
    background-color: var(--dark-text);
    color: var(--white);
    margin-top: 15px;
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: var(--primary-red);
}

/* Modal (Popup) Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Black with opacity */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--primary-red);
}

.modal h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.form-group input[readonly] {
    background-color: var(--light-bg);
    color: var(--primary-red);
    font-weight: bold;
    outline: none;
}

/* =========================================
   ANIMATIONS & EFFECTS
   ========================================= */

/* 1. Dynamic Hero Background */
.hero {
    /* Replaces the static background with a shifting, breathing gradient */
    background: linear-gradient(-45deg, #ffffff, #f0f0f0, #ffebee, #f8f9fa);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Button Shine Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 50%; 
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* 3. Product Card 3D Lift & Image Zoom */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.15); /* Soft red shadow */
    border-color: var(--primary-red);
}

.product-img img {
    transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.15); /* Zooms the machine in slightly on hover */
}

/* 4. Contact Box Hover Effect */
.contact-info-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* 5. Scroll Reveal Classes (Triggered by JS) */
.hidden-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.show-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Add slight delays so grids cascade beautifully */
.product-card:nth-child(1) { transition-delay: 0.1s; }
.product-card:nth-child(2) { transition-delay: 0.2s; }
.product-card:nth-child(3) { transition-delay: 0.3s; }
.product-card:nth-child(4) { transition-delay: 0.4s; }

.contact-info-box:nth-child(1) { transition-delay: 0.1s; }
.contact-info-box:nth-child(2) { transition-delay: 0.3s; }
.contact-info-box:nth-child(3) { transition-delay: 0.5s; }