/* =========================================================
   UNITHAGRO PVT LTD
   MAIN WEBSITE STYLES
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, sans-serif;
    color: #222222;
    background: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}


/* =========================================================
   BRAND COLORS
========================================================= */

/*
   RED  = #E31B23
   BLUE = #0057B8
*/


/* =========================================================
   NAVIGATION
========================================================= */

.navbar {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 75px;
    height: auto;
    display: block;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name span {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #0057B8;
}

.brand-name small {
    font-size: 10px;
    letter-spacing: 3px;
    margin-top: 6px;
    color: #E31B23;
    font-weight: bold;
}


/* NAV LINKS */

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #222222;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: #E31B23;
    border-radius: 5px;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #E31B23;
}

nav a:hover::after {
    width: 100%;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 8%;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ffffff 60%,
            #fff1f1 100%
        );
}


/* RED DECORATION */

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -230px;
    top: -240px;
    border-radius: 50%;
    background: #E31B23;
    opacity: 0.08;
}


/* BLUE DECORATION */

.hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    left: -170px;
    bottom: -170px;
    border-radius: 50%;
    background: #0057B8;
    opacity: 0.06;
}


/* HERO CONTENT */

.hero-content {
    flex: 1;
    max-width: 650px;
    position: relative;
    z-index: 2;
}


/* SMALL TITLE */

.small-title {
    color: #E31B23;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-transform: uppercase;
}


/* MAIN TITLE */

.hero h1 {
    font-size: 62px;
    line-height: 1.05;
    font-weight: 900;
    color: #111111;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #E31B23;
    display: block;
}


/* TITLE LINE */

.hero h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 5px;
    margin-top: 22px;
    background: #0057B8;
    border-radius: 10px;
}


/* DESCRIPTION */

.hero-text {
    color: #555555;
    font-size: 18px;
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 35px;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 26px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}


/* RED BUTTON */

.primary-btn {
    background: #E31B23;
    color: #ffffff;
    box-shadow:
        0 10px 25px rgba(227, 27, 35, 0.22);
}

.primary-btn:hover {
    background: #0057B8;
    transform: translateY(-4px);
    box-shadow:
        0 12px 28px rgba(0, 87, 184, 0.25);
}


/* OUTLINE BUTTON */

.secondary-btn {
    background: #ffffff;
    color: #E31B23;
    border: 2px solid #E31B23;
}

.secondary-btn:hover {
    background: #E31B23;
    color: #ffffff;
    transform: translateY(-4px);
}


/* TRUST ITEMS */

.hero-trust {
    display: flex;
    gap: 35px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eeeeee;
}

.hero-trust div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-trust strong {
    color: #0057B8;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-trust span {
    color: #777777;
    font-size: 13px;
}


/* HERO IMAGE */

.hero-image {
    flex: 1;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}


/* IMAGE CIRCLE */

.hero-image-circle {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            rgba(227, 27, 35, 0.10),
            rgba(0, 87, 184, 0.10)
        );
    border: 2px solid rgba(227, 27, 35, 0.12);
}


/* MACHINE */

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.04);
}


/* HERO BADGE */

.hero-badge {
    position: absolute;
    right: 0;
    bottom: 35px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: #ffffff;
    border: 5px solid #E31B23;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.hero-badge span {
    color: #0057B8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.hero-badge strong {
    color: #E31B23;
    font-size: 12px;
    margin-top: 4px;
}

.hero-badge small {
    color: #555555;
    font-size: 8px;
    letter-spacing: 1px;
    margin-top: 3px;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.products,
.about,
.gallery,
.contact {
    padding: 110px 8%;
}

section h2 {
    font-size: 45px;
    line-height: 1.15;
    margin-bottom: 20px;
}

section p {
    line-height: 1.7;
}


/* SECTION LABEL */

.section-label {
    color: #E31B23;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}


/* =========================================================
   PRODUCTS
========================================================= */

.products {
    background: #ffffff;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-heading h2 {
    color: #111111;
}

.section-heading > p:last-child {
    color: #666666;
    font-size: 17px;
    line-height: 1.7;
}


/* PRODUCT GRID */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}


/* PRODUCT CARD */

.product-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12);
}


/* PRODUCT IMAGE */

.product-image {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px;
    background:
        linear-gradient(
            135deg,
            #f8f8f8,
            #fff3f3
        );
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-number {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #E31B23;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
}


/* PRODUCT PLACEHOLDER */

.product-placeholder {
    background:
        linear-gradient(
            135deg,
            #f5f8fc,
            #fff3f3
        );
}

.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #0057B8;
    text-align: center;
}

.coming-soon strong {
    font-size: 18px;
    letter-spacing: 2px;
}

.coming-soon span {
    color: #E31B23;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}


/* PRODUCT INFO */

.product-info {
    padding: 32px;
}

.product-category {
    color: #E31B23;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.product-info h3 {
    color: #111111;
    font-size: 27px;
    margin: 12px 0;
}

.product-info p {
    color: #666666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.product-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #E31B23;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.product-btn:hover {
    background: #0057B8;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    background:
        linear-gradient(
            135deg,
            #f7f7f7,
            #fff5f5
        );
}

.about-content {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    color: #111111;
    font-size: 45px;
    line-height: 1.15;
    margin: 15px 0 25px;
}

.about-text h2 span {
    color: #E31B23;
    display: block;
}

.about-text p:not(.section-label) {
    color: #555555;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 13px 25px;
    background: #E31B23;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.about-btn:hover {
    background: #0057B8;
    transform: translateY(-3px);
}


/* HIGHLIGHTS */

.about-highlight {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.highlight-box {
    display: flex;
    gap: 20px;
    padding: 25px 30px;
    background: #ffffff;
    border-left: 5px solid #E31B23;
    border-radius: 8px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.highlight-box:hover {
    transform: translateX(8px);
}

.highlight-box > span {
    color: #0057B8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.highlight-box h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.highlight-box p {
    color: #666666;
    line-height: 1.6;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery {
    background: #ffffff;
}

.gallery-heading {
    max-width: 650px;
    margin: 0 auto 60px;
    text-align: center;
}

.gallery-heading h2 {
    margin: 15px 0;
}

.gallery-heading > p:last-child {
    color: #666666;
    font-size: 17px;
    line-height: 1.7;
}


/* GALLERY GRID */

.gallery-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #f7f7f7,
            #fff3f3
        );
    border: 1px solid #eeeeee;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.10);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #fff5f5
        );
}

.contact-heading {
    max-width: 650px;
    margin: 0 auto 60px;
    text-align: center;
}

.contact-heading h2 {
    margin: 15px 0;
}

.contact-heading > p:last-child {
    color: #666666;
    font-size: 17px;
    line-height: 1.7;
}


/* CONTACT CONTAINER */

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}


/* CONTACT INFORMATION */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    background: #ffffff;
    border-radius: 9px;
    border-left: 5px solid #E31B23;
    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 25px;
}

.contact-item h3 {
    margin-bottom: 5px;
}

.contact-item p {
    color: #666666;
}


/* LOCATION */

.location-link {
    display: inline-block;
    margin-top: 8px;
    color: #E31B23;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.location-link:hover {
    color: #0057B8;
}


/* CONTACT FORM */

.contact-form {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border-top: 5px solid #E31B23;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #E31B23;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 15px;
    border: none;
    border-radius: 6px;
    background: #E31B23;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.contact-form button:hover {
    background: #0057B8;
    transform: translateY(-2px);
}


/* =========================================================
   IMAGE VIEWER
========================================================= */

.image-viewer {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.close-viewer {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #ffffff;
    font-size: 45px;
    cursor: pointer;
}

.close-viewer:hover {
    color: #E31B23;
}


/* =========================================================
   WHATSAPP BUTTON
========================================================= */

.whatsapp-button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1000;
    padding: 14px 22px;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.20);
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-4px);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #111111;
    color: #ffffff;
    padding: 70px 8% 0;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}


/* FOOTER BRAND */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 65px;
    height: auto;
}

.footer-logo h3 {
    color: #E31B23;
    font-size: 22px;
    letter-spacing: 2px;
}

.footer-logo span {
    color: #0057B8;
    font-size: 10px;
    letter-spacing: 3px;
}

.footer-brand > p {
    color: #aaaaaa;
    line-height: 1.7;
    max-width: 330px;
}


/* FOOTER LINKS */

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links a {
    display: block;
    color: #aaaaaa;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #E31B23;
}


/* FOOTER CONTACT */

.footer-contact p {
    color: #aaaaaa;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-contact a {
    display: inline-block;
    margin-top: 10px;
    color: #E31B23;
    text-decoration: none;
    font-weight: bold;
}

.footer-contact a:hover {
    color: #0057B8;
}


/* FOOTER BOTTOM */

.footer-bottom {
    max-width: 1100px;
    margin: auto;
    border-top: 1px solid #333333;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #777777;
    font-size: 13px;
}


/* =========================================================
   TEST ANIMATION
========================================================= */

.test-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.test-animation.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   UNITHAGRO SCROLL ANIMATIONS
========================================================= */

.reveal-element {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal-element.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}


/* PRODUCTS */

.product-card.reveal-element {
    transform: translateY(70px) scale(0.96);
}

.product-card.reveal-element.reveal-visible {
    transform: translateY(0) scale(1);
}


/* ABOUT */

.about-text.reveal-element {
    transform: translateX(-60px);
}

.about-text.reveal-element.reveal-visible {
    transform: translateX(0);
}

.highlight-box.reveal-element {
    transform: translateX(60px);
}

.highlight-box.reveal-element.reveal-visible {
    transform: translateX(0);
}


/* GALLERY */

.gallery-item.reveal-element {
    transform: translateY(70px) scale(0.95);
}

.gallery-item.reveal-element.reveal-visible {
    transform: translateY(0) scale(1);
}


/* CONTACT */

.contact-item.reveal-element {
    transform: translateX(-60px);
}

.contact-item.reveal-element.reveal-visible {
    transform: translateX(0);
}

.contact-form.reveal-element {
    transform: translateX(60px);
}

.contact-form.reveal-element.reveal-visible {
    transform: translateX(0);
}


/* HEADINGS */

.section-heading.reveal-element,
.gallery-heading.reveal-element,
.contact-heading.reveal-element {
    transform: translateY(40px);
}

.section-heading.reveal-element.reveal-visible,
.gallery-heading.reveal-element.reveal-visible,
.contact-heading.reveal-element.reveal-visible {
    transform: translateY(0);
}


/* =========================================================
   HERO LANDING PAGE ANIMATION
========================================================= */

.hero-content .small-title {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-content h1 {
    opacity: 0;
    transform: translateX(-50px);
    animation: heroSlideLeft 1s ease forwards;
    animation-delay: 0.4s;
}

.hero-content .hero-text {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-content .hero-buttons {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.95s;
}

.hero-image {
    opacity: 0;
    transform: translateX(80px) scale(0.92);
    animation: heroMachineEnter 1.2s ease forwards;
    animation-delay: 0.35s;
}

.hero-image img {
    animation: machineFloat 4s ease-in-out infinite;
    animation-delay: 1.5s;
}


/* =========================================================
   ANIMATION KEYFRAMES
========================================================= */

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroMachineEnter {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes machineFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}


/* =========================================================
   HERO IMAGE CIRCLE
========================================================= */

.hero-image-circle {
    animation:
        heroCircleAppear 1.5s ease forwards,
        circlePulse 5s ease-in-out 1.5s infinite;
}

@keyframes heroCircleAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes circlePulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}


/* =========================================================
   UNIVERSAL ANIMATION SYSTEM
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.animation-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-70px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal-left.animation-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(70px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal-right.animation-visible {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.85);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.zoom-in.animation-visible {
    opacity: 1;
    transform: scale(1);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.animation-visible {
    opacity: 1;
}

.stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.stagger.animation-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal,
.reveal-left,
.reveal-right,
.zoom-in,
.fade-in,
.stagger {
    will-change: transform, opacity;
}


/* =========================================================
   MACHINE DETAILS GALLERY
========================================================= */

.machine-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.machine-card img {
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.machine-card:hover img {
    transform: scale(1.06);
    filter: brightness(0.75);
}


/* =========================================================
   GALLERY OVERLAY
========================================================= */

.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0)
        );
    color: white;
    transform: translateY(15px);
    opacity: 0;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.machine-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay span {
    display: block;
    color: #E31B23;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.gallery-overlay h3 {
    font-size: 23px;
    margin: 0;
}


/* =========================================================
   MACHINE VIEWER
========================================================= */

.machine-viewer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}


/*
   IMPORTANT:
   JavaScript uses machine-viewer-active.
   We support both names just in case.
*/

.machine-viewer.active,
.machine-viewer.machine-viewer-active {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}


/* =========================================================
   MACHINE MODAL
========================================================= */

.machine-modal {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.4);
    transform:
        translateY(50px)
        scale(0.94);
    opacity: 0;
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease;
}


/*
   IMPORTANT:
   JavaScript uses machine-modal-active.
*/

.machine-viewer.active .machine-modal,
.machine-viewer.machine-viewer-active .machine-modal,
.machine-modal.machine-modal-active {
    transform:
        translateY(0)
        scale(1);
    opacity: 1;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.machine-close {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 45px;
    height: 45px;
    z-index: 10;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.machine-close:hover {
    background: #E31B23;
    transform: rotate(90deg);
}


/* =========================================================
   MACHINE IMAGE
========================================================= */

.machine-modal-image {
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background:
        linear-gradient(
            135deg,
            #f7f7f7,
            #eeeeee
        );
}

.machine-modal-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    transition:
        transform 0.6s ease;
}

.machine-modal:hover .machine-modal-image img {
    transform: scale(1.03);
}


/* =========================================================
   MACHINE CONTENT
========================================================= */

.machine-modal-content {
    padding: 55px 50px;
    overflow-y: auto;
}

.machine-modal-label {
    color: #E31B23;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.machine-modal-content h2 {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #111;
}

.machine-description {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}


/* =========================================================
   SPECIFICATIONS
========================================================= */

.machine-specifications {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}


/*
   JavaScript creates:
   .machine-specification
*/

.machine-specification,
.machine-spec {
    padding: 15px;
    background: #f7f7f7;
    border-radius: 8px;
    border-left: 3px solid #E31B23;
}

.machine-specification span,
.machine-spec-label {
    display: block;
    color: #888;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.machine-specification strong,
.machine-spec-value {
    display: block;
    color: #222;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.machine-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.machine-contact-button,
.machine-whatsapp-button {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.machine-contact-button {
    background: #E31B23;
    color: white;
}

.machine-contact-button:hover {
    background: #0057B8;
    transform: translateY(-3px);
}

.machine-whatsapp-button {
    background: #25D366;
    color: white;
}

.machine-whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-3px);
}


/* =========================================================
   PREVENT PAGE SCROLL WHEN POPUP OPEN
========================================================= */

body.machine-popup-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    /* NAVIGATION */

    .navbar {
        padding: 12px 5%;
        flex-direction: column;
        gap: 15px;
    }

    .brand img {
        width: 65px;
    }

    .brand-name span {
        font-size: 20px;
    }

    .brand-name small {
        font-size: 9px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    nav a {
        font-size: 13px;
    }


    /* HERO */

    .hero {
        min-height: auto;
        flex-direction: column;
        text-align: center;
        padding: 70px 5% 80px;
        gap: 35px;
    }

    .hero-content {
        max-width: 100%;
    }

    .small-title {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero h1 span {
        display: block;
    }

    .hero h1::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
        gap: 20px;
    }

    .hero-image {
        min-height: 350px;
        width: 100%;
    }

    .hero-image-circle {
        width: 320px;
        height: 320px;
    }

    .hero-image img {
        max-width: 340px;
    }

    .hero-badge {
        right: 5%;
        bottom: 10px;
        width: 105px;
        height: 105px;
    }


    /* GENERAL SECTIONS */

    .products,
    .about,
    .gallery,
    .contact {
        padding: 75px 5%;
    }

    section h2 {
        font-size: 35px;
    }


    /* PRODUCTS */

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 280px;
    }


    /* ABOUT */

    .about-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-text h2 {
        font-size: 35px;
    }


    /* GALLERY */

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 280px;
    }


    /* CONTACT */

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    /* FOOTER */

    .footer {
        padding: 60px 5% 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }


    /* WHATSAPP */

    .whatsapp-button {
        right: 15px;
        bottom: 15px;
        padding: 12px 18px;
    }


    /* MACHINE VIEWER */

    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .machine-viewer {
        padding: 15px;
        align-items: center;
    }

    .machine-modal {
        grid-template-columns: 1fr;
        max-height: 94vh;
        overflow-y: auto;
        border-radius: 14px;
    }

    .machine-modal-image {
        min-height: 260px;
        height: 260px;
        padding: 25px;
    }

    .machine-modal-image img {
        max-height: 220px;
    }

    .machine-modal-content {
        padding: 30px 25px 35px;
    }

    .machine-modal-content h2 {
        font-size: 31px;
    }

    .machine-description {
        font-size: 15px;
    }

    .machine-specifications {
        grid-template-columns: 1fr;
    }

    .machine-actions {
        flex-direction: column;
    }

    .machine-contact-button,
    .machine-whatsapp-button {
        width: 100%;
        text-align: center;
    }

    .machine-close {
        width: 40px;
        height: 40px;
        font-size: 27px;
        right: 12px;
        top: 12px;
    }
}