:root {
    /* Color Palette */
    --primary-color: #2a2c86;
    /* Navy Blue */
    --primary-hover: #1e2060;
    /* Darker Navy */
    --secondary-color: #42bfa7;
    /* Teal */
    --accent-color: #458d49;
    /* Green */
    /* Dark Gray */
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    --container-padding: 0 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Utility Classes */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-muted {
    color: var(--text-muted);
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.gap-40 {
    gap: 40px;
}

.gap-50 {
    gap: 50px;
}

.gap-60 {
    gap: 60px;
}

.flex-column {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Spacing Utilities */
.m-0 {
    margin: 0 !important;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mb-80 {
    margin-bottom: 80px;
}

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.ml-10 {
    margin-left: 10px;
}

.p-0 {
    padding: 0 !important;
}

.p-20 {
    padding: 20px;
}

.p-40 {
    padding: 40px;
}

.pt-10 {
    padding-top: 10px;
}

.pt-20 {
    padding-top: 20px;
}

.pt-60 {
    padding-top: 60px;
}

.pt-100 {
    padding-top: 100px;
}

.pb-60 {
    padding-bottom: 60px;
}

.pb-80 {
    padding-bottom: 80px;
}

.pb-100 {
    padding-bottom: 100px;
}

/* Global Typography & Elements */
.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.text-uppercase {
    text-transform: uppercase;
}

.ls-1 {
    letter-spacing: 1px;
}

.fs-0-7 {
    font-size: 0.7rem;
}

.fs-0-85 {
    font-size: 0.85rem;
}

.fs-0-9 {
    font-size: 0.9rem;
}

.fs-0-95 {
    font-size: 0.95rem;
}

.fs-1-1 {
    font-size: 1.1rem;
}

.fs-1-2 {
    font-size: 1.2rem;
}

.fs-2-2 {
    font-size: 2.2rem;
}

.fs-2-5 {
    font-size: 2.5rem;
}

.fs-3 {
    font-size: 3rem;
}

.lh-1-2 {
    line-height: 1.2;
}

.lh-1-8 {
    line-height: 1.8;
}

/* Visual Decorations */
.br-4 {
    border-radius: 4px;
}

.br-8 {
    border-radius: 8px;
}

.br-12 {
    border-radius: 12px;
}

.br-20 {
    border-radius: 20px;
}

.overflow-hidden {
    overflow: hidden;
}

.shadow-subtle {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.shadow-medium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-light {
    border: 1px solid var(--border-color);
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.h-auto {
    height: auto;
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-light {
    background-color: #f8f8fa;
}

.bg-secondary {
    background-color: #f4f4f4;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

.btn-email {
    background-color: #4285F4;
    color: white;
}

.btn-email:hover {
    background-color: #357ae8;
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.left::after {
    left: 0;
    transform: none;
}

/* Card Component */
.card-common {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 35px 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    position: relative;
    height: 100%;
}

.card-common:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--primary-color);
}


.icon-box {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition-base);
    border-radius: 8px;
}

.card-common:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Certification Cards */
.cert-card .cert-img-wrapper {
    height: 260px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px;
}

.cert-card .cert-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.08));
    transition: var(--transition-base);
}

.cert-card:hover .cert-img-wrapper img {
    transform: scale(1.05);
}

.cert-info {
    padding: 25px;
}

/* Grids */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}


/* --- PAGE SPECIFIC STYLES --- */

/* Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/hero-image.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--bg-white);
}

.hero .container {
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Home / Services Section */
.services {
    background: #f5f5f5;
}

.services-image {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

.services-image img {
    width: 85%;
    max-height: 420px;
    object-fit: cover;
    transform: translateY(60px);
}

.services-content {
    text-align: center;
    padding: 100px 8% 80px;
}

.subtitle {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Stats / Features */
.choose-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-weight: 600;
    color: var(--text-color);
}


.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-box {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: 8px;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.feature-item:hover .feature-box {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    overflow: hidden;
    height: 100%;
}

.project-img {
    height: 250px;
    background-color: #eee;
}

.project-info {
    padding: 25px;
    background-color: var(--bg-white);
}

/* About Page */
.about-hero {
    padding: 100px 0;
    background-color: #f8f8fa;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-banner {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0;
    margin-bottom: 60px;
}

.stats-grid-horizontal {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

/* Product Page */
.product-hero {
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/pre-engineered-ordinary-steel-bu.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-align: center;
    margin-bottom: 60px;
}

.product-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.product-sidebar {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--secondary-color);
}

.sidebar-links li a:hover,
.sidebar-links li a.active {
    color: var(--primary-color);
    background-color: #fff5f5;
}

.sidebar-links li a i {
    font-size: 0.8rem;
}

.products-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: #f8f8fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.product-img {
    height: 220px;
    background-color: #ddd;
    position: relative;
}

.product-img-single,
.product-img-carousel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-single img {
    display: block;
}

.product-img-carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.carousel-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.3);
}

.product-info {
    padding: 20px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 0;
    align-items: start;
}

.contact-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.contact-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.contact-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    height: 300px;
    margin-top: 20px;
}

/* Header & Navigation */
.top-bar {
    background-color: #f8f8f8;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .logo img {
    height: 36px;
}

.top-bar-contacts {
    display: flex;
    gap: 40px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.top-bar-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.top-bar-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-bar-label {
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.8rem;
}

.top-bar-item span:not(.top-bar-label) {
    font-size: 0.75rem;
    color: var(--text-muted);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.main-nav {
    background-color: var(--bg-white);
}

.main-nav .container {
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 50px;
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 20px 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #f4f4f4;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-info-list i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Infinite Logo Carousel */
@keyframes slides {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.logos {
    display: flex;
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    width: 100%;
    margin-top: 40px;
    background: var(--bg-white);
}

.logos:before,
.logos:after {
    position: absolute;
    top: 0;
    content: '';
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos:before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), rgba(255, 255, 255, 0));
}

.logos:after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), rgba(255, 255, 255, 0));
}

.logo_items {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    animation: 40s slides infinite linear;
}

.logos:hover .logo_items {
    animation-play-state: paused;
}

.logo_items img {
    height: 60px;
    width: auto;
    margin: 0 50px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-base);
    object-fit: contain;
    flex-shrink: 0;
}

.logo_items img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Certificate Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-color);
}

body.modal-open {
    overflow: hidden;
}

/* Reveal & Fade Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Delays */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.service-card:nth-child(2),
.project-card:nth-child(2),
.feature-item:nth-child(2),
.product-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3),
.project-card:nth-child(3),
.feature-item:nth-child(3),
.product-card:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:nth-child(4),
.project-card:nth-child(4),
.feature-item:nth-child(4) {
    transition-delay: 0.3s;
}

.project-card:nth-child(5) {
    transition-delay: 0.4s;
}

.project-card:nth-child(6) {
    transition-delay: 0.5s;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-image img {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .top-bar-contacts {
        gap: 20px;
    }

    .top-bar-item {
        font-size: 0.85rem;
    }

    .top-bar .logo img {
        height: 50px;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .choose-us-grid,
    .contact-grid,
    .contact-info-section {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .top-bar-contacts {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .footer-col:first-child,
    .footer-col:last-child {
        grid-column: 1 / -1;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid-horizontal {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Navbar & Sidebar Styles --- */

/* Hide Hamburger by default on desktop */
.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-sidebar {
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.close-sidebar:hover {
    color: #ffd700;
}

.mobile-nav-links {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav-links li a {
    display: block;
    padding: 15px 25px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 30px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Adjustments for Mobile View (max-width: 768px) */
@media (max-width: 768px) {

    /* Top Bar Layout Change */
    .top-bar .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    /* Logo and Hamburger on the top row */
    .logo {
        order: 1;
    }

    .hamburger-menu {
        display: block;
        order: 2;
    }

    /* Contacts below */
    .top-bar-contacts {
        order: 3;
        flex-direction: row;
        width: 100%;
        margin-top: 15px;
        justify-content: space-between;
        /* Removed overflow-x: auto to prevent scroll */
        padding-bottom: 5px;
        gap: 5px;
        /* Reduce gap */
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    /* Hide desktop nav */
    .main-nav {
        display: none;
    }

    .top-bar-item {
        flex-shrink: 1;
        /* Allow shrinking */
        gap: 5px;
        /* Reduce internal gap */
        justify-content: center;
        flex-basis: 0;
        flex-grow: 1;
    }

    .top-bar-item i {
        font-size: clamp(0.7rem, 3vw, 1.1rem);
        /* Dynamic icon size */
    }

    .top-bar-label {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
        /* Dynamic label size */
    }

    .top-bar-item span:not(.top-bar-label) {
        font-size: clamp(0.55rem, 2.2vw, 0.75rem);
        /* Dynamic text size */
    }
}

/* Mobile Product Category Panel */
.hamburger-product-menu {
    display: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--bg-white);
    transition: var(--transition-fast);
}

.hamburger-product-menu:hover {
    color: #ffd700;
}

.mobile-category-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-category-panel.active {
    right: 0;
}

.category-panel-header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.category-panel-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-category-panel {
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.close-category-panel:hover {
    color: #ffd700;
    transform: rotate(90deg);
}

.mobile-category-links {
    list-style: none;
    padding: 20px 0;
}

.mobile-category-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 25px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-category-links li a:hover,
.mobile-category-links li a.active {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 30px;
}

.mobile-category-links li a i {
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.mobile-category-links li a:hover i {
    transform: translateX(5px);
}

.category-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.category-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .hamburger-product-menu {
        display: block;
    }

    .product-sidebar {
        position: sticky;
        top: 0;
        z-index: 100;
        margin-bottom: 20px;
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
    }

    .sidebar-links {
        display: none;
    }

    .products-grid-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card .product-img {
        height: 180px;
    }

    .product-card .product-info {
        padding: 15px;
    }

    .product-card .product-info h4 {
        font-size: 0.95rem;
    }
}