:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.1;
    font-weight: 700;
}

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

/* Fluid Typography */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); border-left: 5px solid var(--accent); padding-left: 1.5rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.75rem;
    background: var(--primary);
    color: white;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo { 
    font-size: 1.6rem; 
    color: var(--primary); 
    text-decoration: none; 
    flex-shrink: 0; 
}
.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2.5rem); /* Dynamic gap for zoom */
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    white-space: nowrap;
}

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

/* Dropdown Menu Styles */
.nav-item.dropdown { position: relative; padding: 0.5rem 0; }
.dropdown-menu { 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%) translateY(10px); 
    background: white; 
    min-width: 220px; 
    padding: 1rem 0; 
    border-radius: 12px; 
    box-shadow: 0 15px 35px rgba(15,23,42,0.15); 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 1000; 
    border: 1px solid #f1f5f9; 
}
.dropdown-menu a { 
    display: block; 
    padding: 0.8rem 2rem; 
    color: var(--primary); 
    text-decoration: none; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    transition: 0.2s; 
}
.dropdown-menu a:hover { 
    background: #f8fafc; 
    color: var(--accent); 
    padding-left: 2.5rem; 
}
.nav-item.dropdown:hover .dropdown-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateX(-50%) translateY(0); 
}

/* Data Elements */
.data-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th {
    background: var(--primary);
    color: white;
    padding: 1.2rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table td {
    padding: 1.2rem;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
}

/* Mobile Toggle */
.menu-toggle { 
    display: none; 
    background: var(--charcoal); 
    color: white;
    border: none; 
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem; 
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover { background: var(--accent); }

@media (max-width: 850px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1001;
    }
    .nav-links.active { right: 0; }
    .nav-link { font-size: 1.1rem; padding: 1rem 0; border-bottom: 1px solid #f1f5f9; width: 100%; }
}

/* Floating WhatsApp */
.whatsapp-bubble { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); text-decoration: none; z-index: 9999; transition: all 0.3s ease; }
.whatsapp-bubble:hover { transform: scale(1.1); background-color: #128c7e; }

/* Back to Top Icon */
.back-to-top { position: fixed; bottom: 100px; right: 30px; width: 50px; height: 50px; background-color: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); text-decoration: none; z-index: 9998; transition: all 0.3s ease; opacity: 0; visibility: hidden; transform: translateY(20px); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--accent); color: white; transform: scale(1.1); }
@media (max-width: 768px) { .whatsapp-bubble { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; } }

/* Hide Mobile Close on Desktop */
.close-menu { display: none; }
@media (max-width: 850px) { .close-menu { display: block; position: absolute; top: 2rem; right: 2rem; font-size: 2.5rem; cursor: pointer; color: var(--charcoal); } }

/* Accent Button Style */
.btn-accent { background: var(--accent) !important; color: white !important; }
.btn-accent:hover { background: var(--accent-hover) !important; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); }

/* Fix Menu Toggle Visibility */
.menu-toggle { display: none; background: #0f172a !important; color: white !important; border-radius: 6px; }
.menu-toggle:hover { background: var(--accent) !important; }
@media (max-width: 850px) { .menu-toggle { display: flex !important; } }

/* Industrial Form Styles */
input, select, textarea { width: 100%; padding: 1rem; border: 1.5px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 1rem; color: var(--primary); transition: var(--transition); background: #fcfcfc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); background: white; }
label { font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; color: var(--primary); margin-bottom: 0.5rem; display: block; }

/* Responsive Layouts & Stacking */
@media (max-width: 992px) {
    .product-row { grid-template-columns: 1fr !important; gap: 3rem !important; }
}

@media (max-width: 768px) {
    .hero, .about-header { padding: 8rem 0 4rem !important; }
    h1 { font-size: 2.25rem !important; }
    .container { padding: 0 1.5rem !important; }
    .hide-mobile { display: none !important; }

    /* Mobile Navigation Drawer Fix */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    
    .nav-item { width: 100%; border-bottom: 1px solid #f1f5f9; }
    .nav-link { font-size: 1.1rem; padding: 1.2rem 0; width: 100%; display: block; }

    /* Mobile Dropdown (Accordion Style) */
    .nav-item.dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 1.5rem 1.5rem;
        display: none;
        border: none;
        background: #f8fafc;
        border-radius: 0;
    }
    .nav-item.dropdown.active .dropdown-menu { display: block; }
    .dropdown-menu a { padding: 0.8rem 0; border: none; font-size: 0.9rem; }

    /* Footer & News Stacking */
    .footer-grid { grid-template-columns: 1fr !important; text-align: center; gap: 3rem !important; }
    .footer-bottom { flex-direction: column !important; gap: 1.5rem !important; text-align: center; }
    .back-to-top { bottom: 80px; right: 20px; width: 45px; height: 45px; font-size: 18px; }
}
