:root {
    --logo-blue: #00127f;
    /* Deep Blue from Logo */
    --logo-red: #e30613;
    /* Red from Logo */

    --primary-color: var(--logo-blue);
    --accent-color: var(--logo-red);

    --text-main: #1e293b;
    --text-light: #f8fafc;
    /* For use on dark backgrounds */
    --text-muted: #64748b;

    --bg-body: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    /* Footer / Header Overlay */

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    bottom: -10px;
    left: 0;
}

.text-center {
    text-align: center;
}

.text-center h2.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

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

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #fff;
    /* Usually on hero */
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid #fff;
    margin-left: 1rem;
}

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

.block {
    display: block;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 25px 0;
    background: rgba(255, 255, 255, 0.95);
    /* Light navbar */
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

/* New Right Side Container */
.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8rem;
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 500;
}

.header-contact div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-contact i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

/* Hide header contact on mobile if space is tight */
@media (max-width: 992px) {
    .header-contact {
        display: none;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Slider / Hero Styles */
/* Note: Inherits structural styles from previous JS logic, but we can refine CSS */
.slider-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.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;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 18, 127, 0.8) 0%, rgba(0, 18, 127, 0.6) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #fff;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .highlight {
    color: var(--logo-red);
    -webkit-text-stroke: 1px #fff;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #cbd5e1;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent-color);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Features */
.features {
    padding: 80px 0;
    background: #fff;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow on light bg */
    text-align: center;
    border-bottom: 4px solid transparent;
    /* Bottom border effect */
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-muted);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-alt);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about .lead {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item .count {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-item .label {
    color: var(--text-muted);
    font-weight: 600;
}

.image-box {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), #0f172a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-box i {
    font-size: 5rem;
    color: white;
    z-index: 2;
    opacity: 0.8;
}

/* Product Navigation */
.product-nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 99px;
    z-index: 900;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 0;
    scrollbar-width: none;
}

.product-nav::-webkit-scrollbar {
    display: none;
}

.product-nav ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.product-nav li {
    display: inline-block;
}

.product-nav a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: inline-block;
}

.product-nav a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
}

.product-nav a.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.2);
}

@media (max-width: 992px) {
    .product-nav {
        top: 65px;
        padding: 12px 0;
    }

    .product-nav ul {
        justify-content: flex-start;
        display: inline-flex;
    }
}

/* Products Section */
.products {
    background: #fff;
    padding: 40px 0;
}

.category-section {
    margin-bottom: 80px;
    scroll-margin-top: 180px;
}

/* Category Visual Headers */
.category-header-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
}

.category-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 18, 127, 0.85), rgba(0, 18, 127, 0.4));
    z-index: 1;
    transition: var(--transition);
}

.category-header-card:hover::before {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.85), rgba(227, 6, 19, 0.4));
}

.category-header-card h2 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 0;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.category-title {
    font-size: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 40px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--accent-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed to contain to show full product details */
    padding: 10px;
    transition: var(--transition);
}

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

.product-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center text */
    text-align: center;
}

.product-icon {
    /* Kept for fallback or specific use cases */
    width: 60px;
    height: 60px;
    background: rgba(0, 18, 127, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    margin: 0 auto 20px auto;
    /* Center it */
}

.product-icon i {
    font-size: 1.5rem;
}

.product-card h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 10px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--primary-color);
    text-align: center;
    color: #fff;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.png') center/cover;
    opacity: 0.1;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    background: #fff;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: scale(1.05);
    background: var(--accent-color);
    color: #fff;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-alt);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 700;
}

.info-item p {
    color: var(--text-muted);
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
}

/* Footer */
/* Footer */
footer {
    background: var(--bg-dark);
    padding: 50px 0;
    color: #94a3b8;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h3 {
    color: #fff;
    margin-bottom: 5px;
}

.footer-brand .logo-accent {
    color: var(--accent-color);
}

.footer-links {
    margin-left: auto;
}

.footer-links a {
    color: #94a3b8;
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #64748b;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 30px;
    text-align: left;
    /* Or keep center if preferred, but user only asked to move links right */
}

/* Adjust copyright if it needs to be separate row */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    flex: 1;
}

.footer-links {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* Animations (Same as before) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar, .navbar.scrolled {
        padding: 10px 0;
    }

    .nav-logo {
        height: 45px;
    }

    .nav-right {
        margin-left: auto;
        margin-right: 15px;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .language-selector {
        margin-left: 0;
        margin-right: 0;
        font-size: 0.85rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        gap: 15px;
        align-items: center;
        border-top: 1px solid #f1f5f9;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        color: var(--primary-color);
        transition: color 0.3s;
    }

    .hamburger:hover {
        color: var(--accent-color);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    /* Products Page responsive updates */
    .category-section {
        scroll-margin-top: 130px;
    }
    .category-header-card {
        height: 150px;
        margin-bottom: 25px;
    }
    .category-header-card h2 {
        font-size: 1.5rem;
        padding: 0 15px;
    }
}

/* Page Header for Inner Pages */
.page-header {
    background: linear-gradient(rgba(0, 18, 127, 0.8), rgba(0, 18, 127, 0.8)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px; /* Navbar allowance */
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Active Nav State */
.nav-links a.active {
    color: var(--accent-color);
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.language-selector a {
    color: var(--text-muted);
    padding: 0 5px;
    transition: var(--transition);
}

.language-selector a:hover,
.language-selector a.active {
    color: var(--accent-color);
}

.language-selector .sep {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Mobile responsive adjustments for lang selector */
@media (max-width: 768px) {
    .language-selector {
        margin-left: auto;
        /* Push to right */
        margin-right: 15px;
    }
}

/* Product Detail Page Styles */
.product-detail-container {
    padding: 120px 20px 80px;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-image-large {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-large img {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow-md);
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.product-category-badge {
    display: inline-block;
    background: rgba(0, 18, 127, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-features-list {
    margin-bottom: 30px;
}

.product-features-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.product-features-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
}

.tech-specs-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.tech-specs-section h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.specs-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--primary-color);
}

.specs-table tr:hover {
    background-color: #f8fafc;
}

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

    .product-info h1 {
        font-size: 2rem;
    }

    .specs-table {
        display: block;
        overflow-x: auto;
    }
}

/* Contact Map */
.contact-map {
    width: 100%;
    height: 400px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 50px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
/* --- NEW HOMEPAGE SECTIONS --- */

/* Home Stats Section */
.home-stats {
    background: linear-gradient(135deg, var(--primary-color), #000b4d);
    padding: 60px 0;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px 20px;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-box .stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-box .stat-text {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Home Products Showcase */
.home-products {
    padding: 100px 0;
    background: #fff;
}

.home-products .section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Why Choose Us Section */
.why-us {
    padding: 100px 0;
    background: var(--bg-alt);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.why-us-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-color);
}

.why-us-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(227, 6, 19, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.why-us-content h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.why-us-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Force 3 columns for home products on desktop */
.home-products .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* --- Instagram Feed Section --- */
.instagram-feed {
    padding: 80px 0;
    background: #f9f9f9;
}

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

.instagram-feed .section-header i {
    font-size: 2.5rem;
    color: #E1306C; /* Instagram brand color */
    margin-bottom: 15px;
    display: inline-block;
}

.instagram-feed .section-header h2 {
    color: var(--primary-color);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.instagram-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #fff;
    cursor: pointer;
    display: block;
}

.instagram-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s ease;
    color: #fff;
    z-index: 2;
}

.instagram-overlay i.fa-instagram {
    font-size: 2rem;
    color: #fff;
}

.instagram-stats {
    display: flex;
    gap: 15px;
    font-size: 0.95rem;
    font-weight: 600;
}

.instagram-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.instagram-card:hover .instagram-overlay {
    opacity: 1;
}

.instagram-btn-wrapper {
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}


.hero-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;
    z-index: 0;
}

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

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* =========================================
   ENHANCED MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 768px) {
    /* Mobile Menu Dropdown */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Below navbar */
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 15px !important;
    }

    .nav-links.mobile-active {
        display: flex !important;
    }

    .nav-links a {
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links a::after {
        display: none; /* Hide underline effect on mobile */
    }

    /* Footer Fixes */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-brand, .footer-links {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-links a {
        margin: 0 10px;
    }

    .copyright {
        text-align: center;
        margin-top: 20px;
    }

    /* Custom Stats Padding Override */
    .container[style*="padding: 40px"] {
        padding: 20px 15px !important;
    }
    
    /* Mobile Stats Gap */
    .stats {
        gap: 20px !important;
    }
    .stat-item {
        flex: 1 1 120px !important;
    }

    /* Homepage Product Slider Mobile Fixes */
    .slider-wrapper {
        padding: 0 !important;
    }
    .slider-btn {
        display: none !important;
    }
    .product-slider {
        gap: 15px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .product-slider .product-card {
        flex: 0 0 260px !important;
    }

    /* Product Detail Buttons Mobile stacking */
    .product-info #btn-request,
    .product-info #btn-back {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Prevent Safari Auto-Zoom on form focus */
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    /* Hero Buttons Stacking */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .hero-buttons a {
        width: 80%;
        text-align: center;
    }

    /* Feature Grid Stacking */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Grid Stacking (if not already stacked) */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* Language Selector tweak */
    .language-selector {
        font-size: 0.85rem;
    }
}


.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-btn.prev {
    left: 20px;
}

.hero-btn.next {
    right: 20px;
}

@media (max-width: 768px) {
    .hero-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .hero-btn.prev {
        left: 10px;
    }
    .hero-btn.next {
        right: 10px;
    }
}

/* Categories Showcase Section */
.categories-showcase {
    padding: 40px 0;
    background: #ffffff;
    text-align: center;
}
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}
.category-icon-card {
    flex: 1 1 125px;
    max-width: 145px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 10px;
    text-decoration: none;
    color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.category-icon-card i {
    font-size: 1.6rem;
    color: var(--primary-color);
    background: rgba(0, 18, 127, 0.05);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.category-icon-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}
.category-icon-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 18, 127, 0.06);
}
.category-icon-card:hover i {
    color: #ffffff;
    background: var(--primary-color);
    transform: scale(1.05);
}

/* Mobile Responsiveness for Categories Showcase */
@media (max-width: 1024px) {
    .categories-grid {
        gap: 12px;
    }
    .category-icon-card {
        flex: 1 1 120px;
        max-width: 135px;
    }
}

@media (max-width: 768px) {
    .categories-showcase {
        padding: 40px 0;
    }
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 20px;
    }
    .category-icon-card {
        max-width: none;
        padding: 15px 10px;
    }
    .category-icon-card:last-child {
        grid-column: span 3;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-icon-card {
        padding: 12px 8px;
        border-radius: 12px;
    }
    .category-icon-card i {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    .category-icon-card h4 {
        font-size: 0.8rem;
    }
    .category-icon-card:last-child {
        grid-column: span 2;
    }
}

/* Highlight specs table row on selection */
.specs-table tr.highlight-row {
    background-color: rgba(0, 18, 127, 0.08) !important;
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

/* Media Page Styles */
.media-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

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

.media-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.media-card-body {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.media-icon-wrapper {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 12px;
}

.catalog-card .media-icon-wrapper {
    background: rgba(227, 6, 19, 0.1);
    color: #e30613;
}

.video-card .media-icon-wrapper {
    background: rgba(0, 18, 127, 0.1);
    color: #00127f;
}

.media-icon-wrapper i {
    font-size: 2rem;
}

.media-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.media-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-grow: 1;
}

.media-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.media-buttons .btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.media-buttons .btn-primary {
    background: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.media-buttons .btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.media-buttons .btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    margin-left: 0;
}

.media-buttons .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
