/* 
   THEME: BOLD DESIGNER (Black, White, Red)
   Focus: Bold, Clean, High-Impact.
   Colors: Black, White, Grey, Electric Red.
   Font: Roboto
*/

:root {
    /* Color Palette - Premium Corporate (Deep Navy & Royal Blue) */

    /* Primary Colors - Trust & Stability */
    --primary: #0B1120;
    /* Richer Deep Navy */
    --primary-light: #1E293B;
    /* Lighter Navy for Cards */

    /* Gradients for Premium Feel */
    --primary-gradient: linear-gradient(135deg, #0F172A 0%, #020617 100%);
    --accent-gradient: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --accent-hover-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);

    /* Actions & Accents */
    --accent: #2563EB;
    /* Royal Blue */
    --accent-hover: #1D4ED8;
    --accent-light: #EFF6FF;

    /* Typography */
    --text-main: #334155;
    /* Slate 700 */
    --text-light: #64748B;
    /* Slate 500 */
    --text-inverse: #FFFFFF;

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-body: #F8FAFC;
    /* Soft Slate for less glare */
    --bg-light: #F1F5F9;
    /* Slate 100 */
    --bg-surface: #FFFFFF;
    --bg-dark: #0F172A;
    /* Deep Navy Footer */
    --card-bg: #FFFFFF;
    --text-card: var(--text-main);

    /* UI Elements */
    --border: rgba(226, 232, 240, 0.8);
    /* Refined Border */

    /* Spacing */
    --container: 1140px;
    --header-height: 80px;

    /* Shadows - Ultra Premium Depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /* Blue-tinted glow for hover */
    --shadow-hover: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(37, 99, 235, 0.04);

    /* Missing Variables for JS Content */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius-sm: 8px;
    --text-secondary: #64748B;
    --gradient-dark: #F8FAFC;
    --accent-primary: #2563EB;
    --accent-secondary: #3B82F6;
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth Scrolling & Hardware Acceleration for animations */
[data-aos] {
    will-change: transform, opacity;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    /* Softer background */
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    /* Premium tight spacing */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-icon {
    margin-left: 0.5rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    /* Accent Border */
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: #fff;
}

/* --- HEADER REDESIGN (PREMIUM MINIMALIST) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    /* Subtle border effect */
}

/* Gradient Bottom Line Effect */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(37, 99, 235, 0.1) 20%,
            var(--accent) 50%,
            rgba(37, 99, 235, 0.1) 80%,
            transparent 100%);
    opacity: 0.5;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

header.scrolled::after {
    opacity: 1;
}

header .container {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 10;
}

.logo-circle {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 50%;
    /* Changed to circle */
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.logo-circle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: rotate(45deg);
    animation: shimmy 3s infinite;
}

@keyframes shimmy {
    0% {
        transform: translateX(-150%) rotate(45deg);
    }

    30% {
        transform: translateX(150%) rotate(45deg);
    }

    100% {
        transform: translateX(150%) rotate(45deg);
    }
}

/* Nav Links Container - Removed Pill Background */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Individual Links - Clean Typography */
.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-radius: 0;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--accent);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
    background: transparent;
    box-shadow: none;
}

.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Header Action Button (Login) */
#loginBtn {
    margin-left: 20px;
    border-radius: 100px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

#loginBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

/* --- HERO --- */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/v/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-title span {
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-description {
    font-size: 1.2rem;
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 2.5rem;
}

/* --- SECTIONS --- */
#about {
    background-color: var(--bg-white);
}

#services {
    background-color: var(--bg-light);
    padding: 6rem 0;
}

#products {
    background-color: var(--bg-white);
    padding: 4rem 0;
}

/* --- CARDS & GRIDS --- */
.services-grid,
.product-grid {
    display: grid;
    gap: 2rem;
}

.services-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    /* Ensure cards are same height */
}

.product-grid {
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    /* Ensure cards are same height */
}

.service-card {
    background: var(--card-bg);
    /* White */
    color: var(--text-card);
    /* Dark Text */
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Force fill grid cell */
}

.service-card h3 {
    color: var(--primary);
    /* Black Headings inside card */
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.service-image-header {
    height: 180px;
    background-color: #eee;
    position: relative;
    /* Removed image, plain grey card header */
    background-size: cover;
    background-position: center;
}

.service-floating-icon {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 2;
}

.service-card-content {
    padding: 2.5rem 1.75rem 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-description {
    min-height: 80px;
    /* Ensure roughly 3 lines text space */
}

.service-features {
    margin: 1.5rem 0;
    padding: 0;
    flex-grow: 0;
    /* Don't stretch content */
    margin-bottom: auto;
    /* Push button down */
}

/* Ensure action button stays at bottom */
.service-action {
    margin-top: 1rem;
    /* Spacing from features */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    cursor: pointer;
    background: var(--bg-light);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    align-self: center;
    /* Center horizontally if needed, or flex-start */
    justify-content: center;
    width: 90%;
    /* Similar to image style */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-action:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.service-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
    text-align: left;
    /* Ensure left alignment */
}

.service-feature-icon {
    color: #22c55e;
    margin-right: 0.8rem;
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.service-feature-text {
    flex: 1;
    text-align: left;
}

.product-card {
    background: var(--card-bg);
    /* White */
    color: var(--text-card);
    /* Dark Text */
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    height: 100%;
    /* Force fill grid cell */
}

.product-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1.4;
    min-height: 3.1rem;
    /* Align "Validity" text by forcing 2-line height */
    margin: 0.8rem 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Added for standard compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- VIEW ALL BUTTON (Hidden on Desktop, Styling only) --- */
.view-all-container {
    width: 100%;
    display: none;
    /* JS will handle creation on mobile */
    justify-content: center;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.view-all-btn {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--border);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.view-all-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateY(3px);
}

.product-card:hover {
    background: var(--card-bg);
    /* Keep white on hover */
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-action {
    margin-top: auto;
    /* Push to bottom */
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    opacity: 1;
    /* Changed from 0.8 to 1 for better visibility */
}

/* On card hover, animate the arrow */
.product-card:hover .product-action i {
    transform: translateX(5px);
}

.product-validity {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: auto;
    /* Push content above up */
}

.product-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
    /* Force black icons */
}

/* --- PORTFOLIO PAGES --- */
.page-header {
    padding: 140px 0 100px;
    background: var(--bg-light);
    /* Plain background */
    color: var(--primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--primary);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.portfolio-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding-bottom: 60px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.portfolio-item-page {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.portfolio-item-page:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.portfolio-content-page h3 {
    color: var(--primary);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
    flex: 0 0 calc(100% - 30px);
    margin: 0 15px;
    background: var(--card-bg);
    color: var(--text-card);
    /* Dark Text */
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    border: none;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.testimonial-card h4 {
    color: var(--primary);
}

@media(min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 30px);
    }
}

@media(min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(33.333% - 30px);
    }
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- FOOTER REDESIGN (SUPER COMPACT) --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 2.5rem 0 1rem;
    /* Minimal Padding */
    position: relative;
    font-size: 0.85rem;
    /* Smaller Base Font */
    overflow: hidden;
}

/* Elegant Top Gradient Border */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    /* Thinner Border */
    background: linear-gradient(90deg,
            var(--accent),
            #3b82f6,
            var(--accent));
    opacity: 0.8;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 2rem;
    /* Tighter Gap */
    margin-bottom: 1.5rem;
    /* Reduced Margin */
}

/* Brand Section */
.footer-logo {
    display: inline-block;
    color: #fff;
    font-size: 1.3rem;
    /* Small Logo */
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.footer-description {
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    max-width: 95%;
}

/* Headings */
.footer-links h3 {
    color: #fff;
    font-size: 0.8rem;
    /* Petit Heading */
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

.footer-links h3::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: var(--accent);
    margin-top: 4px;
    border-radius: 2px;
}

/* Links */
.footer-links ul li {
    margin-bottom: 0.4rem;
    /* Ultra Tight List */
}

.footer-links a {
    color: #94a3b8;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-links a i {
    font-size: 0.8em;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.footer-links a:hover i {
    transform: translateX(2px);
}

/* Social Icons (Micro) */
.social-links {
    display: flex;
    gap: 0.6rem;
}

.social-link {
    width: 32px;
    /* Micro Icons */
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

/* Copyright Area */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

.copyright p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-links h3::after {
        margin: 4px auto 0;
    }

    .footer-links a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    color: var(--text-card);
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h2,
.modal-content h3 {
    color: var(--primary);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    border: none;
    background: var(--bg-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    /* Navigation Mobile Fix for Floating Header */
    header {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: rgba(255, 255, 255, 0.98);
    }

    header.scrolled {
        top: 0;
        width: 100%;
        border-radius: 0;
        height: 70px;
    }

    /* Navigation Mobile */
    .nav-links {
        display: none;
        background: none;
        padding: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        /* Hide default flex behavior on mobile */
    }

    .mobile-toggle {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 2rem;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        gap: 1.5rem;
        z-index: 999;
        animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-text-column p {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .about-text-column h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-image-column {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Services & Products */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        /* Use full width on small screens */
        margin: 0 auto;
        gap: 1.5rem;
    }

    .service-card {
        max-width: 100%;
    }

    .service-card-content {
        padding: 2rem 1.5rem;
        text-align: left;
        /* Ensure content is left aligned */
    }

    .service-title {
        font-size: 1.5rem;
        text-align: left;
    }

    .service-description {
        text-align: left;
        font-size: 0.95rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Testimonials */
    .testimonial-card {
        flex: 0 0 100%;
        margin: 0;
    }

    /* Modals */
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 85vh;
    }
}

/* --- ADDED COMPONENTS --- */
/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-column {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-image-column:hover .about-profile-img {
    transform: scale(1.1);
}

.about-experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.badge-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.about-stats-grid {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Testimonials */
.testimonials-container {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 30px);
    /* Show 3 per row */
    margin: 0 15px;
    background: var(--bg-white);
    padding: 1.2rem 1.5rem;
    /* Significantly reduced padding */
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.testimonial-quote-icon {
    font-size: 1.8rem;
    /* Reduced icon size */
    color: var(--accent);
    opacity: 0.15;
    margin-bottom: 0.8rem;
    /* Tighter margin */
}

.testimonial-text {
    font-size: 0.95rem;
    /* Slightly smaller text */
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    /* Tighter margin */
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    /* Tighter gap */
    width: 100%;
    padding-top: 1rem;
    /* Reduced padding */
    border-top: 1px solid var(--border);
}

.author-avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-light);
}

.author-info {
    text-align: left;
}

.author-info h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--primary);
}

.author-info p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-light);
}


.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.testimonial-dot.active {
    background: var(--accent);
}

.testimonial-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
}

.testimonial-arrow:hover {
    background: var(--primary);
    color: #fff;
}

/* Product Filter */
.product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.product-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    background: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    /* WhatsApp Green */
    color: #fff;
    border: none;
    font-size: 1.8rem;
    /* Slightly larger icon */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    /* Green Glow */
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}

/* Google Login Button Style */
.btn-google {
    background-color: #ffffff !important;
    color: #3c4043;
    border: 1px solid #dadce0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background-color: #f8f9fa;
    /* Slight grey on hover */
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

.btn-google i {
    /* If you want the icon to have the original Google colors, you can use a trick or just Red default */
    color: #DB4437;
}

/* --- SERVICE EXPLORE BUTTON --- */
/* --- SERVICE EXPLORE BUTTON --- */
.service-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    /* Full width button */
}

.service-action:hover {
    background: var(--primary);
    /* Black background on hover */
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.service-action i {
    transition: transform 0.3s ease;
}

.service-action:hover i {
    transform: translateX(5px);
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-grid {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        /* Full width buttons on small screens */
    }

    .modal-buttons {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- ADDITIONAL RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {

    /* Global Layout Adjustments */
    .container {
        padding: 0 1.25rem;
    }

    section {
        padding: 3.5rem 0;
    }

    /* Typography */
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* About Section Details */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-experience-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -20px;
    }

    .about-stats-grid {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .about-text-column p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-grid {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        /* Full width buttons on small screens */
    }

    .modal-buttons {
        flex-direction: column !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}



/* Green Button Strategy */
.btn-green {
    background-color: transparent;
    color: #22c55e;
    /* Bright Green */
    border: 2px solid #22c55e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    /* Pill Shape for Premium Look */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-green:hover {
    background-color: #22c55e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.btn-primary {
    background-color: var(--primary);
    /* Blue */
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    /* Pill Shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* --- PRODUCT HEADER REDESIGN --- */
.product-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 1. Filters on Top */
.product-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    background: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    margin: 0 auto;
    /* Center the filter pill container */
    max-width: fit-content;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

.mobile-filter-container {
    display: none;
}

/* 2. Controls Row: Search (Centered) */
.product-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
    flex-wrap: wrap;
    /* responsive wrap */
}

/* Count Display - Removed/Hidden */
.product-count {
    display: none;
}

/* Search Container - Centered */
.product-search-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
}



.product-search-box {
    position: relative;
    width: 100%;
    /* Fill container */
}

.product-search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-main);
    background-color: var(--bg-surface);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: var(--shadow-sm);
}

.product-search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    pointer-events: none;
}

.product-search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);

}

/* --- OPTIMIZED PRODUCT GRID & CARDS (AI TOOLS) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 0.8rem 0;
}

@media screen and (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.8rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(37, 99, 235, 0.1);
}

.product-icon-box {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.product-icon-box img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.product-icon-box i {
    font-size: 1.4rem;
}

.product-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--primary);
    line-height: 1.3;
}

.product-validity {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.explore-link {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.explore-link:hover {
    gap: 12px;
}

.explore-link i {
    font-size: 0.8rem;
}


.product-search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
    pointer-events: none;
}

/* Mobile Adjustments for Controls */
@media (max-width: 600px) {
    .product-controls {
        flex-direction: column-reverse;
        /* Search on top, or just stack */
        align-items: stretch;
        gap: 1rem;
    }

    .product-count {
        text-align: center;
    }

    .product-search-container {
        max-width: 100%;
    }
}

/* --- ABOUT SECTION ENHANCEMENTS --- */
.about-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-section-block {
    flex: 1;
    min-width: 250px;
}

.about-section-block h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
    padding-left: 12px;
}

.about-section-block h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.about-service-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.about-service-list li {
    background: var(--bg-light);
    color: var(--text-main);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.about-service-list li:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.about-features-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.about-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: left;
}

.about-features-list i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .about-details-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-service-list {
        justify-content: center;
    }
}


/* --- ABOUT LIST LINKS --- */
.about-service-list li a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}


/* Fix for product icon box centering */
.product-icon-box {
    text-align: center;
}

.product-icon-box img {
    margin: 0 auto;
    display: block;
}

/* --- DESKTOP HERO BUTTON ALIGNMENT FIX --- */
@media screen and (min-width: 1024px) {
    .hero-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        /* Prevent text wrapping */
        width: auto;
        /* Prevent full width */
        min-width: 180px;
        /* consistent sizing */
        margin: 0;
        /* Remove extra margins */
        flex-shrink: 0;
    }
}

/* --- PRODUCT DETAIL MODAL --- */
#productModalBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pm-header {
    margin-bottom: 2rem;
}

.pm-icon-box {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.pm-icon-box img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.pm-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pm-status {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.pm-status.in-stock {
    color: #22c55e;
}

.pm-status.stock-out {
    color: #ef4444;
}

.pm-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #475569;
}

.pm-meta-info {
    width: 100%;
    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pm-meta-item {
    font-size: 1rem;
    color: #475569;
    font-weight: 500;
}

.pm-features-title {
    width: 100%;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}

.pm-features-list {
    width: 100%;
    list-style: none;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.pm-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
}

.pm-features-list i {
    color: #2563eb;
    font-size: 1rem;
}

.pm-whatsapp-btn {
    width: 100%;
    max-width: 300px;
    background: #fff;
    border: 2px solid #22c55e;
    color: #22c55e;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin: 0 auto;
}

.pm-whatsapp-btn:hover {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* --- SERVICE MODAL FEATURES LIST --- */
.modal-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #334155;
    text-align: left;
}

.modal-features-list li span {
    flex: 1;
    text-align: left;
}

.feature-icon-green {
    color: #22c55e;
    margin-top: 4px;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-icon-gold {
    color: #f59e0b;
    margin-top: 4px;
    font-size: 1rem;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 2rem 1.2rem;
    }

    .modal-header-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        margin-bottom: 1.5rem !important;
        gap: 1rem !important;
    }

    .modal-header-container .service-icon {
        margin: 0 !important;
        flex-shrink: 0 !important;
        width: 60px !important;
        height: 60px !important;
        background-color: #22c55e !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.5rem !important;
        color: #fff !important;
    }

    .modal-header-container .service-icon i {
        position: static !important;
        margin: 0 !important;
        transform: none !important;
    }

    .modal-header-container h2 {
        font-size: 1.6rem !important;
        margin: 0 !important;
        flex: 1;
    }

    .modal-buttons {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .modal-buttons .btn {
        width: 100% !important;
        display: flex !important;
        flex-direction: row-reverse !important;
        /* Swaps text and icon if icon is after text */
        justify-content: center !important;
        gap: 12px !important;
        padding: 0.8rem !important;
    }
}