:root {
    --primary: #84bd00;
    --secondary: #26d07c;
    --dark: #07272d;
    --gray: #424142;
    --light-gray: #999999;
    --offwhite: #f2f2f2;
}

/* Dark Mode (Default) */
html:not(.light-mode) {
    --bg-primary: #07272d;
    --bg-secondary: rgba(32, 61, 66, 0.886);
    --text-primary: #f2f2f2;
    --text-secondary: #999999;
    --border-color: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-placeholder: rgba(242, 242, 242, 0.6);
    --card-bg: rgb(32, 61, 66);
    --header-bg: rgba(7, 39, 45, 0.9);
    --overlay-bg: rgba(7, 39, 45, 0.98);
    --hero-bg: rgba(7, 39, 45, 0.4);
}

/* Light Mode */
html.light-mode {
    --bg-primary: #f2f2f2;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(0, 0, 0, 0.05);
    --input-placeholder: rgba(26, 26, 26, 0.5);
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --overlay-bg: rgba(255, 255, 255, 0.98);
    --hero-bg: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 3.5rem;
    text-align: center;
    margin: 90px 20px 0px;
    color: var(--secondary);
}

/* Mega menu bullet removal */
.mega-menu-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-top: 10px;
}

.mega-menu-column ul {
    padding-left: 0 !important;
}

.mega-menu-content ul li {
    list-style: none !important;
    padding-left: 0 !important;
    position: static !important;
}

.mega-menu-content ul li::before,
.mega-menu-content ul ul li::before {
    content: none !important;
}

html,
body {
    height: auto;
    min-height: 100vh;
    font-family: 'Barlow', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(10px, 4vw, 20px) clamp(20px, 6vw, 40px); /* Responsive padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3000;
    background: none;
    transition: background 0.3s;
    gap: 20px; /* Helps with spacing */
}

header.scrolled,
header.scrolled2 {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header img {
    height: clamp(35px, 8vw, 50px); /* Scales logo smoothly */
    width: auto;
    flex-shrink: 0; /* Prevents logo from shrinking too much */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
}
#hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 3000;
}

#hamburger-btn:hover>span {
    background: var(--primary);
}

#hamburger-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: 0.3s;
}

/* Theme Toggle Button */
#theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 3000;
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

#theme-toggle-btn:hover {
    color: var(--primary);
}

#theme-toggle-btn i {
    transition: transform 0.3s ease;
}

#hamburger-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

#hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

#hamburger-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mega Menu */
#mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    background: none;
    transition: opacity 0.5s ease;
}

#mega-menu.open {
    display: flex;
    opacity: 1;
    background: var(--overlay-bg);
}

.mega-menu-content {
    width: 90%;
    max-width: 1200px;
    max-height: 100vh;
    overflow-y: auto;
    padding: 100px 40px 140px 40px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    box-sizing: border-box;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mega-menu-content {
        padding-bottom: calc(140px + env(safe-area-inset-bottom));
    }
}

.mega-menu-content::-webkit-scrollbar {
    display: none;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    color: var(--text-primary);
    padding-bottom: 20px;
}

.mega-menu-column:last-child {
    margin-bottom: 20px;
}

.mega-menu-column h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary);
}

.mega-menu-column ul {
    list-style: none;
    padding-left: 10px;
}

.mega-menu-column li {
    margin-bottom: 12px;
}

.mega-menu-column a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.mega-menu-column a:hover {
    color: var(--primary);
}

.mega-submenu h4 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.mega-submenu h4::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
    font-size: 1.2em;
}

.mega-submenu.centrifuges h4::before {
    content: '\f021';
}

.mega-submenu.dredges h4::before {
    content: '\f85e';
}

.mega-submenu.chemicals h4::before {
    content: '\f0c3';
}

.mega-submenu.systems h4::before {
    content: '\f863';
}

.mega-submenu.energy h4::before {
    content: '\e532';
}

.mega-submenu.environmental h4::before {
    content: '\f4d8';
}

.klab::before {
    content: '\e4f3';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--text-primary);
    margin-right: 10px;
    font-size: 1.2em;
}

.kdry::before {
    content: '\f06c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--text-primary);
    margin-right: 10px;
    font-size: 1.2em;
}

/* Hero Section (Index) */
#hero {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.hero-content-3d {
    text-align: center;
    max-width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
    transition: filter 0.4s ease, opacity 0.4s ease;
    background: rgba(255, 255, 255, 0.15);
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: clamp(15px, 3vw, 40px);
    padding-right: clamp(15px, 3vw, 40px);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-content-3d * {
    pointer-events: auto;
    position: relative;
}

.hero-content-3d h1 {
    font-size: clamp(1.5rem, 8vw, 6rem);
    margin-bottom: 20px;
    color: var(--text-primary);
    margin-top: 0px;
}

.hero-content-3d p {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 40px;
    opacity: 0.9;
    color: var(--text-primary);
}

.hero-content-3d .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--dark);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s, box-shadow 0.4s ease;
    margin: 0;
}

.hero-content-3d .cta-button:hover {
    background: var(--secondary);
}

/* General Sections */
section:not(#hero) {
    position: relative;
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
}

/* Generic Two-Column Layout */
.content-section {
    margin-bottom: 140px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.content-grid.lg-gap {
    gap: 80px;
}

@media (min-width: 993px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.content-main h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.content-grid.lg-gap .content-main h2 {
    margin-bottom: 40px;
}

.content-main h3 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--secondary);
}

.content-main p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-grid.lg-gap .content-main p {
    margin-bottom: 30px;
}

.content-main ul {
    list-style: none;
    margin: 30px 0;
}

.content-grid.lg-gap .content-main ul {
    margin: 40px 0;
}

.content-main ul li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.content-grid.lg-gap .content-main ul li {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 40px;
}

.content-main ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 2px;
}

.content-image img,
.content-image iframe {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Video wrapper for YouTube embeds */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.content-ctas {
    margin-top: 20px;
}

.content-grid.lg-gap .content-ctas {
    margin-top: 40px;
}

/* Backward Compatibility - Map old classes to new ones */
.dredge-section { margin-bottom: 140px; }
.dredge-grid { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center; }
@media (min-width: 993px) { .dredge-grid { grid-template-columns: 1fr 1fr; } }
.dredge-content h2,
.dredge-grid h2 { font-size: 3rem; margin-bottom: 30px; color: var(--primary); }
.dredge-content p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 20px; }
.dredge-content ul { list-style: none; margin: 30px 0; }
.dredge-content ul li { font-size: 1.1rem; margin-bottom: 15px; padding-left: 30px; position: relative; }
.dredge-content ul li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary); position: absolute; left: 0; }
.dredge-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.dredge-ctas { margin-top: 20px; }

.centrifuge-section { margin-bottom: 140px; }
.centrifuge-grid { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center; }
@media (min-width: 993px) { .centrifuge-grid { grid-template-columns: 1fr 1fr; } }
.centrifuge-content h2 { font-size: 3rem; margin-bottom: 30px; color: var(--primary); }
.centrifuge-content p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 20px; }
.centrifuge-content ul { list-style: none; margin: 30px 0; }
.centrifuge-content ul li { font-size: 1.1rem; margin-bottom: 15px; padding-left: 30px; position: relative; }
.centrifuge-content ul li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary); position: absolute; left: 0; }
.centrifuge-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }

.application-section { margin-bottom: 140px; }
.application-grid { display: grid; grid-template-columns: 1fr; gap: 80px; align-items: center; }
@media (min-width: 993px) { .application-grid { grid-template-columns: 1fr 1fr; } }
.application-content h2 { font-size: 3rem; margin-bottom: 40px; color: var(--primary); }
.application-content h3 { font-size: 2rem; margin: 40px 0 20px; color: var(--secondary); }
.application-content p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 30px; }
.application-content ul { list-style: none; margin: 40px 0; }
.application-content ul li { font-size: 1.2rem; margin-bottom: 20px; padding-left: 40px; position: relative; }
.application-content ul li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary); position: absolute; left: 0; top: 4px; }
.application-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.application-ctas { margin-top: 40px; }

.service-section { margin-bottom: 140px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.service-content h2 { font-size: 3rem; margin-bottom: 40px; color: var(--primary); }
.service-content h3 { font-size: 2rem; margin: 40px 0 20px; color: var(--secondary); }
.service-content p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 30px; }
.service-content ul { list-style: none; margin: 40px 0; }
.service-content ul li { font-size: 1.2rem; margin-bottom: 20px; padding-left: 40px; position: relative; }
.service-content ul li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary); position: absolute; left: 0; top: 4px; }
.service-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); background: var(--bg-secondary); }
.service-ctas { margin-top: 40px; }

/* Contact & Locations Page */
#map {
    height: 60vh !important;
    width: 100% !important;
    max-width: 90%;
    margin: 150px auto 40px;
    border-radius: 20px;
    overflow: hidden;
    filter: brightness(1.2) saturate(0.9);
}


.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.country-section h2 {
    font-size: 2.5rem;
    margin: 60px 20px 40px;
    text-align: center;
    color: var(--secondary);
}

section.country-section {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--bg-secondary) !important;
}

.location-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(132, 189, 0, 0.1);
}

.location-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.location-card p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.location-card a {
    color: var(--primary) !important;
    text-decoration: none !important;
}

.location-card a:hover {
    text-decoration: underline;
}

.address-block {
    cursor: pointer;
    user-select: none;
    padding: 12px 16px;
    margin: 10px -16px -16px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.address-block:hover {
    background: rgba(38, 208, 124, 0.08);
}

.address-block::after {
    content: '\f0c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    opacity: 0;
    transition: opacity 0.3s;
}

.address-block:hover::after {
    opacity: 0.6;
}

.copied-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copied-notification.show {
    opacity: 1;
}

/* Contact Form Section */
#contact-form-section {
    max-width: 800px;
    margin: 100px auto 60px;
    padding: 0 40px;
}

#contact-form-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary);
}

.contact-form {
    background: var(--input-bg);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--input-placeholder);
}

.contact-form button {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--dark);
    font-weight: 600;
    font-size: 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: var(--secondary);
}

/* Company Page */
#history,
#values,
#hse {
    margin-bottom: 120px;
}

#history h2,
#values h2,
#hse h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: var(--primary);
    text-align: center;
}

#history p,
#values ul li,
#hse p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#values ul {
    list-style: none;
    max-width: 900px;
    margin: 40px auto;
}

#values ul li {
    margin-bottom: 30px;
    padding-left: 40px;
    position: relative;
}

#values ul li strong {
    color: var(--secondary);
}

#values ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 4px;
}

/* Centrifuges Page */

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 992px) {

    .centrifuge-grid,
    .dredge-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .centrifuge-content h2,
    .dredge-content h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .centrifuge-content,
    .dredge-content {
        text-align: center;
    }

    .centrifuge-content ul,
    .dredge-content ul {
        padding-left: 0;
    }

    .centrifuge-content ul li,
    .dredge-content ul li {
        padding-left: 40px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

@media (max-width: 768px) {
    main {
        padding: 20px;
        padding-top: 100px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .centrifuge-content h2,
    .dredge-content h2 {
        font-size: 2.2rem;
    }
}

/* Applications Page */

/* Footer */
footer {
    text-align: center;
    padding: 40px;
}

/* General CTA Button */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--dark);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    margin-right: 20px;
    margin-top: 20px;
}

.cta-button:hover {
    background: var(--secondary);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--offwhite);
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Secondary button text color in light mode */
html.light-mode .cta-button.secondary {
    color: #000000;
}

/* Product Content Icons */
.product-content i {
    font-size: 200px;
}

/* Mobile Adjustments for Applications */
@media (max-width: 992px) {
    .application-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .application-content h2 {
        font-size: 2.8rem;
        text-align: center;
    }

    .application-content {
        text-align: center;
    }

    .application-content ul {
        padding-left: 0;
        max-width: 600px;
        margin: 40px auto;
    }

    .application-content ul li {
        padding-left: 40px;
    }

    .application-ctas {
        text-align: center;
    }

    .application-image,
    .video-wrapper {
        order: -1;
    }
}

@media (max-width: 768px) {
    .application-content h2 {
        font-size: 2.4rem;
    }
}

main {
    
    padding: 20px;
    padding-top: 0px;
}

#hero {
    position: relative;
    width: 100%;
    height: 100vh;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#hero-text-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-section {
    margin-bottom: 140px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .service-content h2 {
        font-size: 2.8rem;
        text-align: center;
    }

    .service-content {
        text-align: center;
    }

    .service-content ul {
        padding-left: 0;
        max-width: 600px;
        margin: 40px auto;
    }

    .service-content ul li {
        padding-left: 40px;
    }

    .service-ctas {
        text-align: center;
    }

    .service-image {
        order: -1;
    }
}

@media (max-width: 768px) {

    .service-content h2 {
        font-size: 2.4rem;
    }
}

/* Hero Loading Overlay */
.hero-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    z-index: 2;
    font-size: 1.2rem;
    opacity: 0.9;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(132, 189, 0, 0.3);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Page transition fade */
main {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.hero-content-3d {
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 2s;
}

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    70% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
 /* ============================================
           Product Page Specific Styles
           (add these at the bottom of your existing CSS or in a new file)
        ============================================ */

        .product-hero {
            padding: clamp(120px, 15vh, 180px) 40px 80px;
            background: linear-gradient(to bottom, var(--hero-bg), var(--bg-primary));
            text-align: center;
        }

        .product-hero h1 {
            font-size: clamp(2.8rem, 8vw, 4.5rem);
            margin: 0 0 20px;
            color: var(--secondary);
            line-height: 1.1;
        }

        .product-hero p.lead {
            font-size: clamp(1.3rem, 4vw, 1.6rem);
            max-width: 800px;
            margin: 0 auto 40px;
            opacity: 0.9;
            color: var(--text-primary);
        }

        .product-main {
            max-width: 1400px;
            margin: 0 auto;
            padding: 60px 40px;
        }

        .product-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: start;
        }

        .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;       /* ← changed from start → makes columns same height */
    /* Optional: if you want both columns to grow with content */
    min-height: 600px;          /* fallback minimum — adjust or remove */
}

.product-image {
    position: sticky;
    top: 100px;
    
    /* Make it fill 100% of the grid cell */
    width: 100%;
    height: 100%;
    
    display: flex;
    align-items: center;        /* vertical center */
    justify-content: center;    /* horizontal center — optional but nice */
    
    /* Optional: visual feedback / containment */
    background: var(--bg-secondary);          /* subtle bg if image is transparent/short */
    border-radius: 12px;
    overflow: hidden;           /* prevents image overflow */
    border: 1px solid var(--border-color);
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 100%;           /* ← crucial: prevents image from overflowing the container */
    object-fit: contain;        /* keeps full image visible, centered */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: var(--offwhite);
}
        .product-content h2 {
            font-size: 2.8rem;
            margin: 0 0 25px;
            color: var(--primary);
        }

        .product-content h3 {
            font-size: 1.9rem;
            margin: 45px 0 20px;
            color: var(--secondary);
        }

        .product-content p {
            font-size: 1.2rem;
            line-height: 1.8;
            margin-bottom: 25px;
            color: var(--text-primary);
        }

        .product-content ul {
            list-style: none;
            margin: 30px 0 40px;
        }

        .product-content ul li {
            font-size: 1.15rem;
            margin-bottom: 16px;
            padding-left: 35px;
            position: relative;
        }

        .product-content ul li::before {
            content: '\f058';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: var(--primary);
            position: absolute;
            left: 0;
            top: 2px;
        }

        .product-price {
            font-size: 2.2rem;
            font-weight: 600;
            color: var(--secondary);
            margin: 40px 0 30px;
        }

        .product-ctas {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 30px;
        }

        /* Mobile stacking */
        @media (max-width: 992px) {
            .product-layout {
                grid-template-columns: 1fr;
                gap: 50px;
            }

            .product-image {
                position: static; /* no sticky on mobile */
            }

            .product-content h2 {
                text-align: center;
            }

            .product-content {
                text-align: center;
            }

            .product-content ul {
                max-width: 600px;
                margin-left: auto;
                margin-right: auto;
            }

            .product-ctas {
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            .product-main {
                padding: 40px 25px;
            }

            .product-hero {
                padding: 140px 25px 60px;
            }
        }