/* ===== CSS VARIABLES ===== */
:root {
    --primary-red: #E21E25;
    --dark-bg: #111111;
    --medium-grey: #333333;
    --text-white: #FFFFFF;
    --card-bg: #F5F5F5;
    --border-grey: #DDDDDD;
    --header-white: #FFFFFF;
    --neutral-white: #ffffff;
    --neutral-black: #000000;
    --neutral-grey: #333333;
    --light-grey: #313030;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-heading: 'League Spartan', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background-color: var(--header-white);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.hydrocare-logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
    display: block;
}

.thermax-logo-img {
    height: 62px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Navigation */
.nav-container {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: flex-end;
}

.nav-primary {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}

.nav-primary li a {
    color: var(--dark-bg);
    text-decoration: none;
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-primary li a:hover {
    color: var(--primary-red);
}

.nav-primary li.active > a {
    color: var(--primary-red);
}

.nav-primary li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-red);
}

/* Dropdown Styles */
.nav-primary li.dropdown {
    position: relative;
}

.nav-primary li.dropdown>a i {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--header-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-width: 480px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-grey);
    margin-top: 8px;
    padding: 28px 32px;
}

.nav-primary li.dropdown:hover>a i {
    transform: rotate(180deg);
}

.nav-primary li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-column h3 {
    font-family: 'League Spartan', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-grey);
}

.dropdown-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-column li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--medium-grey);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
}

.dropdown-column li a i {
    font-size: 10px;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.dropdown-column li a:hover {
    color: var(--primary-red);
    padding-left: 4px;
}

.dropdown-column li a:hover i {
    transform: translateX(3px);
}

.nav-secondary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--medium-grey);
    font-size: 14px;
}

.nav-contact i {
    color: var(--primary-red);
}

.cta-nav {
    background-color: var(--primary-red);
    color: white;
    padding: 10px 22px;
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cta-nav:hover {
    background-color: #C4181E;
    transform: translateY(-2px);
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--dark-bg);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--neutral-black);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    max-width: 600px;
    color: var(--neutral-white);
    position: relative;
    z-index: 10;
}

.slide-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.2s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p,
.slide.active .btn-primary {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-red);
    color: var(--neutral-white);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.3s ease, transform 0.8s ease-out 0.4s, opacity 0.8s ease-out 0.4s;
}

.btn-primary:hover {
    background-color: #c01a20;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(226, 30, 37, 0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
}

.prev-btn,
.next-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--neutral-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.liquid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--neutral-white), transparent);
    z-index: 5;
    pointer-events: none;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    text-align: center;
    padding: 60px 20px;
    font-family: Arial, sans-serif;
}

.services-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.services-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: red;
    margin: 10px auto 0;
}

.services-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 15px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(226, 30, 37, 0.07);
    border-color: rgba(226, 30, 37, 0.12);
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-img {
    transform: scale(1.06);
}

.service-content {
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-bg);
    font-family: var(--font-heading);
}

.service-content p {
    font-size: 14px;
    color: var(--medium-grey);
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 11px 20px;
    background-color: transparent;
    color: var(--primary-red);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 2px solid var(--primary-red);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    width: 100%;
    cursor: pointer;
}

.card-btn:hover {
    background-color: var(--primary-red);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(226, 30, 37, 0.2);
}

/* ===== COUNTERS SECTION ===== */
.counters-section {
    padding: 60px 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(249, 249, 249, 1) 100%);
    text-align: center;
}

.counters-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.counters-title {
    font-size: 28px;
    margin-bottom: 6px;
}

.counters-subtitle {
    color: #666;
    margin-bottom: 28px;
    font-size: 15px;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: center;
}

.counter-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--primary-red);
    font-weight: 800;
    margin-bottom: 8px;
}

.counter-label {
    color: #555;
    font-size: 14px;
}

@media (max-width: 600px) {
    .counter-number {
        font-size: 32px;
    }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 100px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--primary-red);
}

.section-subtitle {
    color: var(--light-grey);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 40px;
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-red);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(226, 30, 37, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-red);
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.feature-content p {
    color: var(--light-grey);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.feature-link {
    color: var(--primary-red);
    text-decoration: none;
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-link:hover {
    gap: 10px;
}

/* ===== CLIENTS SECTION ===== */
.clients-section {
    padding: 80px 20px;
    background-color: #f5f5f5;
}

.clients-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.clients-section .section-title {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.clients-section .section-subtitle {
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ===== CLIENTS MARQUEE TICKER (2 LINES) ===== */
.logo-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.marquee-track-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.marquee-track-container::before,
.marquee-track-container::after {
    content: "";
    height: 100%;
    width: 150px;
    position: absolute;
    z-index: 2;
    top: 0;
    pointer-events: none;
}

.marquee-track-container::before {
    left: 0;
    background: linear-gradient(to right, #f5f5f5 0%, rgba(245, 245, 245, 0) 100%);
}

.marquee-track-container::after {
    right: 0;
    background: linear-gradient(to left, #f5f5f5 0%, rgba(245, 245, 245, 0) 100%);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

.marquee-left .marquee-track {
    animation: scrollLeft 35s linear infinite;
}

.marquee-right .marquee-track {
    animation: scrollRight 35s linear infinite;
}

.marquee-track-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 12px));
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(calc(-50% - 12px));
    }
    100% {
        transform: translateX(0);
    }
}

.client-logo-item {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
    flex-shrink: 0;
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(226, 30, 37, 0.08);
    border-color: rgba(226, 30, 37, 0.15);
}

.client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .client-logo-item {
        width: 160px;
        height: 80px;
        padding: 12px;
    }

    .clients-section {
        padding: 60px 20px;
    }
}

/* ===== FOOTER ===== */
footer {
    background-color: #1e1e1e;
    padding: 70px 0 0;
    color: #cccccc;
}

/* 4-column grid */
.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
    gap: 50px;
    padding-bottom: 50px;
}

/* ---- Column 1: Brand ---- */
.footer-brand .footer-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-thermax-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #999999;
}

/* ---- Column headings ---- */
.footer-heading {
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* ---- Quick Links & Services lists ---- */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links li a {
    color: #999999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

/* ---- Contact list ---- */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-icon {
    color: #888888;
    font-size: 0.85rem;
    margin-top: 4px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.footer-contact-list span {
    color: #999999;
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-contact-list a {
    color: #999999;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact-list a:hover {
    color: var(--primary-red);
}

/* ---- Social buttons ---- */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: #2e2e2e;
    border: 1px solid #3a3a3a;
    color: #aaaaaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-btn:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
}

/* ---- Footer Bottom bar ---- */
.footer-bottom {
    border-top: 1px solid #2e2e2e;
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p {
    color: #666666;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

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

    .nav-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        gap: 20px;
    }

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

    .nav-primary {
        flex-direction: column;
        gap: 16px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        min-width: unset;
        padding: 10px 0 0 16px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .header-content {
        position: relative;
    }

    .slide-content h1 {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    footer {
        padding: 50px 0 0;
    }
}

/* Active Navigation Link in Dropdown */
.dropdown-column li a.active-link {
    color: var(--primary-red) !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}
.dropdown-column li a.active-link i {
    transform: translateX(3px);
}