/* ==========================================================================
   CSS VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    /* Color Palette (Light Theme) */
    --bg-dark: #ffffff; /* Main background */
    --bg-darker: #f8fafc; /* Secondary light background */
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-primary: #0071af; /* Trukings Blue */
    --accent-secondary: #cf163c; /* Trukings Red */
    --border-color: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-heading: 'Syne', sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1400px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --trans-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #005080;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) #f1f5f9;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Common Components */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--trans-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    transition: var(--trans-fast);
    transform: scaleX(0);
    transform-origin: right;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background-color: var(--accent-secondary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(207, 22, 60, 0.3);
}

.btn-primary::before {
    background-color: var(--accent-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background-color: rgba(0, 113, 175, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem; /* Increased space for the subtitle */
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Pushed underline down to breathe */
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Wider underline */
    height: 4px; /* Thicker underline */
    background: var(--accent-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem; /* Increased subtitle font size */
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--trans-fast);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links > li > a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--trans-fast);
    position: relative;
    color: #ffffff;
}

/* --- Theme Blue Header --- */
.navbar.header-blue {
    background: rgba(0, 113, 175, 0.95);
}
.navbar.header-blue.scrolled {
    background-color: rgba(0, 113, 175, 0.98);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar.header-blue .nav-links > li > a:hover {
    color: var(--accent-secondary); /* Hover highlight using Brand Red */
}
.navbar.header-blue .nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-secondary); /* Underline indicator using Brand Red */
    transition: var(--trans-fast);
}
.navbar.header-blue .nav-links > li:hover > a::after {
    width: 100%;
}


/* Dropdown Menu - Layout & Animation */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 1rem 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--trans-fast);
    border-radius: 0 0 4px 4px;
}

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

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main); /* Dark text color by default */
    transition: var(--trans-fast);
    border-left: 2px solid transparent;
}

.dropdown-menu li {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 260px;
    padding: 0.5rem 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12); /* Soft shadow for light dropdowns */
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: var(--trans-fast);
    border-radius: 4px;
}

.dropdown-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- Theme Blue Dropdowns (Light background, dark text, blue hover, white hover text) --- */
.header-blue .dropdown-menu,
.header-blue .sub-menu {
    background-color: #ffffff; /* Light background */
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.header-blue .dropdown-menu {
    border-top: 3px solid var(--accent-primary); /* Theme Blue accent */
}
.header-blue .sub-menu {
    border-left: 3px solid var(--accent-primary); /* Theme Blue accent */
}
.header-blue .dropdown-menu li a:hover {
    color: #ffffff; /* White text on hover */
    background-color: var(--accent-primary); /* Theme Blue background on hover */
    border-left-color: var(--accent-primary);
}



@media (max-width: 1700px) {
    .sub-menu {
        left: auto;
        right: 100%;
        transform: translateX(-15px);
        border-left: none;
        border-right: 3px solid transparent;
    }
    
    .header-blue .sub-menu {
        border-right: 3px solid var(--accent-primary);
    }


    .dropdown-menu li:hover > .sub-menu {
        transform: translateX(0);
    }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark); /* Changed from #000 so it falls back to white */
    padding: 0 5%; /* Match navbar horizontal padding */
}

.hero-slider {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 10s linear;
    transform: scale(1.05);
    z-index: 1;
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    padding: 0 0 15% 0; /* Remove left padding to align with container edge */
}

.slide-image-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.1) 100%);
    z-index: 1;
    display: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 500px; /* Reduced width */
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    padding-left: 2rem;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-subtitle {
    color: var(--accent-secondary);
    font-size: 1rem; /* Smaller subtitle */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
}

.slide-title {
    font-size: 2.5rem; /* Smaller title */
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans-fast);
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.slider-indicators {
    display: flex;
    gap: 12px;
}

.dot {
    width: 30px;
    height: 3px;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--trans-fast);
}

.dot.active {
    background: var(--accent-primary);
    width: 50px;
}

/* ==========================================================================
   STATS BANNER
   ========================================================================== */
.stats-banner {
    background-color: var(--accent-primary);
    padding: 24px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    transition: background-color var(--trans-fast);
}


.stats-track {
    display: flex;
    width: 100%;
    max-width: var(--container-width);
    justify-content: center;
}

.stats-group {
    display: flex;
    gap: 2rem 4rem;
    padding: 0 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.stat-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #ffffff;
}

.stat-text strong {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .stats-group {
        gap: 1.5rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .stats-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0.5rem;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .stat-item {
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
    }
    .stat-icon {
        display: none;
    }
    .stat-text {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 0.72rem;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    .stat-text strong {
        font-size: 0.72rem;
        font-weight: 500;
        line-height: 1;
        flex-shrink: 0;
    }
    .stat-label {
        font-size: 0.72rem;
        font-weight: 400;
        line-height: 1;
        opacity: 0.9;
    }
}

/* ==========================================================================
   PRODUCT CENTER
   ========================================================================== */
.product-center {
    padding: var(--spacing-xl) 5%;
    background-color: #e8eef3; /* Deeper background to make white cards pop */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 400px;
    gap: 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.product-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.product-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.card-img-container {
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    padding: 1.5rem;
}

.card-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .card-img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.5rem;
    display: block;
    background: var(--bg-card);
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    line-height: 1.2;
    font-family: var(--font-sans);
    font-weight: 500;
}

.product-card .btn {
    opacity: 1;
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
    transition: var(--trans-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-card .btn:hover {
    background-color: var(--accent-primary);
    color: #fff;
}

/* Layout Specifics */

/* Scale up main category contents */
.product-card.main-category .card-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.product-card.main-category .btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 0;
}

/* Desktop Layout configuration (screens 1024px and wider) */
@media (min-width: 1024px) {
    .product-grid {
        grid-auto-rows: auto;
    }

    /* Row 1: 2 major cards, each taking 50% screen width (6/12 columns) and 1:1 aspect ratio */
    .product-grid > .product-card:nth-child(1),
    .product-grid > .product-card:nth-child(2) {
        grid-column: span 6;
        aspect-ratio: 1 / 1;
    }
    
    /* Row 2: 3 cards, each taking 33.3% screen width (4/12 columns) */
    .product-grid > .product-card:nth-child(3),
    .product-grid > .product-card:nth-child(4),
    .product-grid > .product-card:nth-child(5) {
        grid-column: span 4;
        height: 400px;
    }
    
    /* Row 3: 2 cards, each taking 50% screen width (6/12 columns) */
    .product-grid > .product-card:nth-child(6),
    .product-grid > .product-card:nth-child(7) {
        grid-column: span 6;
        height: 400px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 350px;
    }
    .product-grid > .product-card[data-index="0"] {
        grid-column: span 2;
    }
}

/* ==========================================================================
   INDUSTRY SOLUTIONS
   ========================================================================== */
.solutions {
    padding: var(--spacing-xl) 5%;
    background-color: #f1f5f9;
    border-top: 1px solid var(--border-color);
}

.accordion-container {
    display: flex;
    height: 600px;
    gap: 12px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.accordion-item {
    position: relative;
    width: 150px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.accordion-item.active {
    width: 450px;
    border-bottom: 5px solid var(--accent-secondary);
}

.item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    transition: background 0.4s;
}

.accordion-item.active .item-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.item-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.4s;
}

.item-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(-90deg);
    white-space: nowrap;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.accordion-item.active .item-content {
    align-items: flex-end;
    justify-content: flex-start;
}

.accordion-item.active .item-title {
    transform: rotate(0deg);
    font-size: 1.5rem;
    color: #fff;
    white-space: normal;
    max-width: 100%;
    line-height: 1.3;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
    padding: var(--spacing-xl) 5%;
    background-color: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--trans-fast);
    border: 1px solid var(--border-color);
    position: relative;
    top: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 113, 175, 0.12);
    border-color: rgba(0, 113, 175, 0.3);
}

.service-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    /* Add brightness to make images look cleaner and brighter */
    filter: brightness(1.15) contrast(1.05);
}

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

.service-content {
    padding: 2.5rem 2rem 2rem;
}

.service-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about {
    min-height: 500px;
    padding: var(--spacing-xl) 5%;
    background-image: linear-gradient(rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.95)), url('img/contact_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-content {
    max-width: 800px;
}

.about-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.about-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
    padding: var(--spacing-xl) 5%;
    background-color: #1e2d3e; /* Soft dark steel blue background */
    color: #ffffff;
}

.contact-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-info .section-title::after {
    left: 0;
    transform: none;
}

.contact-info .section-subtitle {
    margin: 0 0 3rem 0;
    color: #94a3b8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.detail-item .icon {
    font-size: 2rem;
    color: #ffffff; /* White icon color */
    background: rgba(255, 255, 255, 0.15); /* Soft transparent white circle */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--trans-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background-color: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 4px rgba(207, 22, 60, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: #001f3f;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: background-color var(--trans-fast);
}

/* --- Theme Backgrounds for Footer --- */
.theme-blue footer {
    background-color: #005080; /* Darker Brand Blue */
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
}

.social-icon:hover {
    color: var(--accent-secondary);
    transform: translateY(-3px);
}

footer p {
    color: rgba(255, 255, 255, 0.6); /* unified light gray copyright text */
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .slide {
        background-position: 75% center;
        padding-bottom: 7rem; /* Avoid overlap with slider controls */
    }
    .slide-title { font-size: 2rem; }
    
    .product-grid { grid-template-columns: repeat(6, 1fr); }
    .product-grid > .product-card:nth-child(n) {
        grid-column: span 6;
        grid-row: span 1;
    }
    
    .accordion-container {
        flex-direction: column;
        height: auto;
    }
    .accordion-item {
        width: 100%;
        height: 100px;
    }
    .accordion-item.active {
        width: 100%;
        height: 300px;
    }
    .item-title {
        transform: rotate(0);
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PARTNERS SECTION
   ========================================================================== */
.partners-section {
    padding: 4rem 5%;
    background-color: var(--bg-dark);
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.partners-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.partners-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-partners 20s linear infinite;
}

.partners-carousel-wrapper:hover .partners-track {
    animation-play-state: paused;
}

.partner-logo {
    width: 200px;
    margin: 0 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    footer {
        padding: 2rem 2%;
    }
    footer p {
        font-size: clamp(9px, 2.6vw, 12px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        height: 580px;
        min-height: auto;
        padding-top: 80px;
    }
    
    .slide {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 1.5rem 1rem 5rem 1rem;
        transform: none !important;
    }
    
    .slide-image-wrapper {
        position: relative;
        width: 100%;
        height: 220px;
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .slide-img {
        width: auto;
        height: 100%;
        max-width: 90%;
        object-fit: contain;
    }
    
    .slide-content {
        max-width: 100%;
        padding-left: 0;
        transform: none !important;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .slider-controls {
        bottom: 1.5rem; /* Adjust dots position slightly */
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        justify-content: center;
        gap: 1rem;
        box-sizing: border-box;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    .slider-indicators {
        gap: 8px;
    }
    .dot {
        width: 15px;
        height: 3px;
    }
    .dot.active {
        width: 30px;
    }
    
    .about-title {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 80, 128, 0.98);
        padding: 2.5rem 2rem;
        gap: 1.5rem;
        z-index: 999;
        overflow-y: auto;
        animation: mobileMenuFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        backdrop-filter: blur(15px);
    }
    
    @keyframes mobileMenuFade {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links.active > li {
        width: 100%;
        text-align: left;
    }
    
    .nav-links.active > li > a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        width: 100%;
    }
    
    .nav-links.active .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.15);
        border: none;
        padding-left: 1.5rem;
        margin-top: 0.5rem;
        display: none;
        border-radius: 4px;
        width: 100%;
    }
    
    .nav-links.active .dropdown.active > .dropdown-menu {
        display: block;
    }
    
    .nav-links.active .dropdown-menu li a {
        color: rgba(255, 255, 255, 0.85);
        padding: 0.6rem 1rem;
        font-size: 1rem;
        border-left: 2px solid transparent;
    }
    
    .nav-links.active .dropdown-menu li a:hover {
        color: #fff;
        background-color: rgba(255,255,255,0.1);
        border-left-color: var(--accent-secondary);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PRODUCTS OVERVIEW PAGE
   ========================================================================== */
.products-hero {
    background-color: var(--accent-primary);
    color: #fff;
    padding: 140px 5% 60px; /* Accounts for fixed navbar */
    text-align: center;
}

.products-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.products-main {
    padding: var(--spacing-xl) 5%;
    background-color: var(--bg-darker);
}

.product-category-section {
    margin-bottom: 4rem;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    scroll-margin-top: 150px;
}

.category-header {
    border-left: 6px solid var(--accent-primary);
    padding-left: 1rem;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
}

.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.prod-overview-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--trans-fast);
    display: flex;
    flex-direction: column;
}

.prod-overview-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.prod-overview-img-wrapper {
    background-color: #f1f5f9;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.prod-overview-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--trans-fast);
}

.prod-overview-card:hover .prod-overview-img-wrapper img {
    transform: scale(1.05);
}

.prod-overview-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prod-overview-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    flex-grow: 1;
}

.btn-learn-more {
    align-self: flex-start;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: transparent;
    border: 2px solid var(--accent-primary);
    border-radius: 30px;
    transition: var(--trans-fast);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-learn-more:hover {
    background: var(--accent-primary);
    color: #fff;
}

@media (max-width: 1200px) {
    .products-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Product Page Specific Styles
========================================= */

/* Product Showcase */
.product-showcase {
    padding: 120px 2rem 4rem; /* top padding to account for fixed header */
    background-color: var(--bg-darker);
}

.product-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--trans-fast);
    background-color: #fff;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--accent-primary);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-series {
    font-family: var(--font-heading);
    color: var(--accent-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.product-short-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.product-actions {
    margin-top: auto;
}

/* Product Data */
.product-data {
    padding: var(--spacing-lg) 2rem;
    background-color: var(--bg-darker);
}

.data-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05);
    overflow: hidden;
}

.data-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--trans-fast);
}

.tab-btn:hover {
    color: var(--accent-primary);
    background-color: rgba(0, 113, 175, 0.02);
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background-color: #fff;
}

.tab-content {
    display: none;
    padding: 3rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.data-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

/* Features List */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

.product-features li strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
}

/* Technical Parameters Table */
.table-responsive {
    overflow-x: auto;
}

.technical-parameters {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
}

.technical-parameters th,
.technical-parameters td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.technical-parameters th {
    background-color: rgba(0, 113, 175, 0.03);
    color: var(--text-main);
    font-weight: 600;
}

.technical-parameters th:first-child {
    width: 25%;
}

.technical-parameters td {
    color: var(--text-muted);
}

.technical-parameters tr:last-child th,
.technical-parameters tr:last-child td {
    border-bottom: none;
}

.technical-parameters tr:hover td,
.technical-parameters tr:hover th {
    background-color: rgba(0, 113, 175, 0.03);
}

/* Responsive Product Page */
@media (max-width: 900px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .data-tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-bottom-color: var(--border-color);
        border-left-color: var(--accent-primary);
    }
}



/* Features Grid Layout - Used as fallback/default */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-primary);
}

.feature-card-img-wrapper {
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.feature-card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-card-text {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
    flex-grow: 1;
}

.feature-card-text p {
    margin: 0 0 0.5rem 0;
}
.feature-card-text p:last-child {
    margin-bottom: 0;
}

.feature-card-text b,
.feature-card-text strong {
    color: var(--accent-primary);
    font-weight: 700;
}

/* =========================================
   Product Description Original Layout Overrides
========================================= */
#tab-description {
    font-family: var(--font-sans);
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Section background — neutralized to remove the gray panel, keep only spacing */
#tab-description .contentwithcolor {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    margin: 1.5rem 0;
}

/* Flex container for columns */
#tab-description .container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.5rem;
    margin: 1.5rem 0;
    width: 100%;
}

/* Equal-width feature card columns (e.g. 3 icon+caption columns) */
#tab-description .column {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#tab-description .column:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 113, 175, 0.08);
    border-color: var(--accent-primary);
}

/* =========================================
   Unified Description Layouts
   ========================================= */

/* 3-column equal-height feature grid (image + title + caption per card) */
#tab-description .features-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: stretch;
}

#tab-description .features-grid-3col .column {
    height: 100%;
}

#tab-description .features-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: stretch;
}

/* Single feature card: image + title + description unified inside ONE card.
   Used for sections like "Unique hollow bed", "Farley-A2300", "One-stop solution". */
#tab-description .feature-row-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    margin: 1.5rem 0;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#tab-description .feature-row-card:hover {
    box-shadow: 0 12px 30px rgba(0, 113, 175, 0.08);
    border-color: var(--accent-primary);
}

/* Inside feature-row-card, columns lose their individual card look */
#tab-description .feature-row-card .column {
    flex: none;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 2rem 2rem;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
    transition: none;
}

#tab-description .feature-row-card .column:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Reverse layout for "image-right" rows */
#tab-description .feature-row-card.reverse {
    direction: rtl;
}

#tab-description .feature-row-card.reverse > * {
    direction: ltr;
}

/* Application section: 4-column image grid (no cards), 2 rows */
#tab-description .application-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

#tab-description .application-grid-4col .app-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0;
}

/* column1 is same as column (used in HGLaser markup) */
#tab-description .column1 {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.25rem;
}

/* Images inside columns */
#tab-description .column img,
#tab-description .column1 img {
    max-width: 100%;
    height: auto !important;
    margin-bottom: 1rem;
    border-radius: 8px;
    object-fit: contain;
}

/* Wide full-width images (infographic style) */
#tab-description > img,
#tab-description p > img,
#tab-description div > img {
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
}

#tab-description p {
    margin-bottom: 1rem;
}

/* Bold feature titles inside columns */
#tab-description .column p[style*="font-weight: bold"],
#tab-description .column p b,
#tab-description .column p strong {
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

#tab-description h2, #tab-description h3, #tab-description h4 {
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

/* Section title (centered, large) */
#tab-description p[style*="font-weight: bold"][style*="text-align: center"] {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin: 2rem 0 1rem;
}

#tab-description ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

#tab-description li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Responsive: stack columns on mobile */
@media (max-width: 768px) {
    .data-container {
        border-radius: 0;
    }
    #tab-description .column,
    #tab-description .column1 {
        min-width: 100%;
    }
    #tab-description .features-grid-3col,
    #tab-description .features-grid-2col,
    #tab-description .application-grid-4col,
    #tab-description .feature-row-card {
        grid-template-columns: 1fr;
    }
    #tab-description .application-grid-4col .app-image {
        height: 180px;
    }
}
