:root {
    --primary: #1F2937;
    --secondary: #3B82F6;
    --accent: #10B981;
    --light: #F9FAFB;
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: var(--light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.2s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    height: 42px;
    width: auto;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.2s ease;
}

/* --- HAMBURGER TO 'X' ANIMATION --- */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- MOBILE NAVIGATION FIXED --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Full screen overlay */
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        
        /* Start hidden/off-screen */
        transform: translateY(-100%); 
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        font-size: 1.5rem; /* Larger links for mobile fingers */
        font-weight: 600;
    }
}
/* Hero Section */
.hero {
    min-height: 100vh;
    background: 
        linear-gradient(rgba(31, 41, 55, 0.85), rgba(31, 41, 55, 0.85)),
        url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(16, 185, 129, 0.2));
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

.section-bg-1 {
    background: 
        linear-gradient(rgba(249, 250, 251, 0.95), rgba(249, 250, 251, 0.95)),
        url('https://images.unsplash.com/photo-1502902415041-2c495b8068f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
}

.section-bg-services {
    background: 
        linear-gradient(rgba(243, 244, 246, 0.95), rgba(243, 244, 246, 0.95)),
        url('https://images.unsplash.com/photo-1578916171728-46686eacfd1f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
}

.section-bg-5 {
    background: 
        linear-gradient(rgba(249, 250, 251, 0.95), rgba(249, 250, 251, 0.95)),
        url('https://images.unsplash.com/photo-1461023050532-82b8f6de0b96?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255,255,255,0.9);
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--white);
}

/* --- ENHANCED SERVICES CSS --- */

/* High-Contrast Tab Bar */
.services-tabs {
    background: var(--primary); 
    display: flex;
    padding: 8px;
    border-radius: 16px 16px 0 0;
    gap: 8px;
    box-shadow: var(--shadow-lg);
}

.tab-button {
    flex: 1;
    padding: 1rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-button i {
    font-size: 1.1rem;
}

.tab-button:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background: var(--white);
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.tab-button.active::after { display: none; } /* Remove old underline */

/* Refined Service Cards */
.tab-content {
    position: relative;
    min-height: 400px; /* Prevents layout collapse during switch */
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--gray-200);
    border-top: none;
    overflow: hidden;
}

.tab-panel {
    display: none; /* Default state */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* The class that triggers the smooth entrance */
.tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.service-card.detailed-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-icon {
    margin: 0 0 0.75rem 0;
    border-radius: 12px;
    font-size: 1.2rem;
}
.service-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 12px;
    color: var(--primary);
}

/* Service Badge Style */
.service-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.service-card h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    text-align: left;
}

.service-card p {
    text-align: left;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

/* Feature List with Better Spacing */
.service-features {
    width: 100%;
    margin-top: auto; /* Pushes list to bottom */
}

.service-features li {
    font-size: 0.88rem;
    color: var(--primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: "\f058"; /* FontAwesome Check Circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .services-tabs {
        flex-direction: row; /* Keep them horizontal */
        overflow-x: auto; /* Scroll if too many */
        padding: 6px;
    }
    .tab-button {
        white-space: nowrap;
        padding: 0.75rem 1.25rem;
    }
}
/* Grid & Cards (Other sections) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.4);
    text-align: center;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

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

.card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    text-align: center;
}

.stat-item {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
}

/* Products */
.products-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.product-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.product-feature.reverse .product-img {
    order: 2;
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease;
}

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

.product-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.product-info p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Facility */
.facility-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.facility-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.facility-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.facility-text p {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Chart */
.chart-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    height: 400px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.95rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .product-feature {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        backdrop-filter: blur(12px);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .cta-buttons { 
        flex-direction: column; 
        gap: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .facility-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .facility-image {
        height: 250px;
    }
    
    .product-img {
        height: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* SERVICES TABS RESPONSIVE */
    .services-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 1rem;
    }
    
    .tab-content {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}
