/* --- CSS VARIABLES & RESET --- */

/* Add at the very beginning of the CSS file */
@viewport {
    width: device-width;
    zoom: 1;
}

/* Ensure touch-friendly elements */
button,
a,
input,
textarea,
select {
    font-size: 16px; /* Prevent iOS zoom on focus */
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-blue: #0056b3;
    --deep-blue: #002a5c;
    --tech-cyan: #00a8e8;
    --accent-teal: #00c2cb;
    --white: #ffffff;
    --off-white: #f8faff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --container-width: 1200px;
    --header-height: 80px;search-hero
    --radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 6px 12px rgba(0, 42, 92, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 42, 92, 0.12);
    --transition: all 0.3s ease;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}

ul { list-style: none; }
img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

/* --- UTILITIES --- */
.container { 
    max-width: var(--container-width); 
    margin: 1rem auto; 
    padding: 0 1.25rem; 
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.4); 
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover { 
    background: var(--primary-blue); 
    color: var(--white); 
}

.btn-white { 
    background: var(--white); 
    color: var(--primary-blue); 
}

.btn-white:hover { 
    background: var(--off-white); 
    color: var(--deep-blue); 
}

.section-title { 
    text-align: center; 
    margin-bottom: 3rem; 
}

.section-title h2 { 
    font-size: 2.25rem; 
    color: var(--deep-blue); 
    margin-bottom: 1rem; 
    font-weight: 700; 
}

.section-title p { 
    color: var(--text-gray); 
    max-width: 600px; 
    margin: 0 auto; 
    font-size: 1.1rem; 
}

.section-padding { 
    padding: 5rem 0; 
}

/* --- HEADER --- */
header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    font-weight: 700; 
    font-size: 1.5rem; 
    color: var(--deep-blue); 
}

.logo img { 
    height: 3.5rem; 
    width: auto; 
}

.logo-text { 
    display: flex; 
    flex-direction: column; 
    line-height: 1.1; 
}

.logo-text-footer { 
    display: flex; 
    flex-direction: column; 
    line-height: 1.1; 
    color: var(--white);
}

.logo-tagline { 
    font-size: 0.65rem; 
    letter-spacing: 2px; 
    color: var(--text-gray); 
    text-transform: uppercase; 
    font-weight: 400; 
}

.logo-text-footer { 
    font-size: 0.65rem; 
    letter-spacing: 2px; 
    color: var(--text-gray); 
    text-transform: uppercase; 
    font-weight: 400; 
    color: var(--white); 
}

.nav-links { 
    display: flex; 
    gap: 2rem; 
}

.nav-links a { 
    font-weight: 500; 
    color: var(--text-dark); 
}

.nav-links a:hover { 
    color: var(--primary-blue); 
}

.nav-cta { 
    display: none; 
}

.mobile-menu-btn { 
    display: none; 
    font-size: 1.5rem; 
    color: var(--deep-blue); 
    cursor: pointer; 
}

/* --- HERO SECTION --- */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    background: url('../img/hero-section1.webp') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content { 
    text-align: center; 
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--deep-blue);
}

.hero-content h1 span {
    color: var(--primary-blue);
    background: linear-gradient(120deg, var(--tech-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    max-width: 100%;
    font-weight: 500;
}

/* --- ANIMATED LOGO STYLES --- */
.hero-visual {
    position: relative;
    height: clamp(300px, 60vw, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-animation-wrapper {
    position: relative;
    width: clamp(300px, 60vw, 500px);
    height: clamp(300px, 60vw, 500px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 10px 20px rgba(0, 42, 92, 0.15));
    animation: floatLogo 4s ease-in-out infinite;
}

.orbit-ring-1 {
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 168, 232, 0.1);
    border-top: 2px solid var(--text-gray);
    border-left: 2px solid var(--text-gray);
    animation: spin 8s linear infinite;
}

.orbit-ring-2 {
    position: absolute;
    top: -5px; 
    left: -5px; 
    right: -5px; 
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(0, 42, 92, 0.05);
    border-bottom: 3px solid var(--primary-blue);
    border-right: 3px solid var(--deep-blue);
    animation: spinReverse 12s linear infinite;
}

.glow-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,168,232,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

/* --- ANIMATIONS --- */
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

/* --- FEATURES SECTION --- */
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); 
    gap: 2rem; 
}

.feature-card {
    padding: 2.5rem; 
    background: var(--off-white); 
    border-radius: var(--radius);
    transition: var(--transition); 
    text-align: left; 
    border: 1px solid transparent;
}

.feature-card:hover { 
    transform: translateY(-5px); 
    background: var(--white); 
    box-shadow: var(--shadow-md); 
    border-color: var(--tech-cyan); 
}

.icon-box {
    width: 60px; 
    height: 60px; 
    background: rgba(0, 86, 179, 0.1); 
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--primary-blue);
    font-size: 1.5rem; 
    margin-bottom: 1.5rem;
}

.feature-card h3 { 
    margin-bottom: 1rem; 
    color: var(--deep-blue); 
}

.feature-card p { 
    color: var(--text-gray); 
    font-size: 0.95rem; 
}

/* --- PRODUCTS SECTION --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white); 
    border-radius: var(--radius); 
    overflow: hidden;
    box-shadow: var(--shadow-sm); 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column;
}

.product-card:hover { 
    box-shadow: var(--shadow-lg); 
    transform: translateY(-5px); 
}

.product-image { 
    height: 220px; 
    background-color: #e2e8f0; 
    position: relative;
    overflow: hidden; 
}

.product-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.product-card:hover .product-image img { 
    transform: scale(1.05); 
}

.product-details { 
    padding: 1.5rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.category-tag { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    color: var(--tech-cyan); 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
}

.product-title { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--deep-blue); 
    margin-bottom: 0.75rem; 
}

.product-desc { 
    color: var(--text-gray); 
    font-size: 0.9rem; 
    margin-bottom: 1.5rem; 
    flex-grow: 1; 
}

.product-link { 
    color: var(--primary-blue); 
    font-weight: 600; 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.product-link:hover i { 
    transform: translateX(5px); 
}

/* --- FILTER BUTTONS --- */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid transparent;
    background-color: #f1f5f9;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.filter-btn:hover:not(.active) {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.hide-product { 
    display: none; 
}

/* --- ABOUT / SCIENCE --- */
.science-container { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 3rem; 
    align-items: center; 
}

.science-text h2 { 
    font-size: clamp(2rem, 4vw, 2.5rem); 
    color: var(--deep-blue); 
    margin-bottom: 1.5rem; 
    text-align: center;
}

.science-text p { 
    margin-bottom: 1.5rem; 
    color: var(--text-gray); 
    font-size: clamp(1rem, 2vw, 1.1rem); 
    text-align: center;
}

.stat-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem; 
    margin-top: 2rem; 
}

.stat-item h4 { 
    font-size: 2rem; 
    color: var(--tech-cyan); 
    font-weight: 700; 
    text-align: center;
}

.stat-item span { 
    color: var(--text-dark); 
    font-size: 0.9rem; 
    font-weight: 600; 
    text-align: center;
    display: block;
}

.science-img img { 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-lg); 
    max-width: 100%;
    height: auto;
}

/* --- CTA SECTION --- */
.cta-section { 
    background: linear-gradient(135deg, var(--deep-blue), var(--primary-blue));
    color: var(--white); 
    text-align: center;
}

.cta-content h2 { 
    font-size: clamp(2rem, 4vw, 2.5rem); 
    margin-bottom: 1rem; 
}

.cta-content p { 
    font-size: clamp(1rem, 2vw, 1.2rem); 
    opacity: 0.9; 
    margin-bottom: 2.5rem; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
}
.btn-white { background: var(--white); color: var(--primary-blue); }
.btn-white:hover { background: var(--deep-blue); color: var(--white); }
/* --- TOOLS & SERVICES SECTION --- */
.tools-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.calculator-card, .services-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.calc-header h3 { 
    color: var(--deep-blue); 
    font-size: 1.25rem; 
}

.calc-header span { 
    font-size: 0.8rem; 
    color: var(--tech-cyan); 
    font-weight: 600; 
    background: rgba(0,168,232,0.1); 
    padding: 2px 8px; 
    border-radius: 4px; 
}

.calc-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.option-group label, .sequence-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.option-group select, 
.sequence-input-group textarea,
.modal-body textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background-color: #fff;
    font-family: 'Inter', sans-serif;
}

.sequence-input-group textarea,
.modal-body textarea {
    font-family: 'Courier New', monospace;
    min-height: 120px;
    resize: vertical;
}

.sequence-input-group textarea:focus,
.modal-body textarea:focus,
.option-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.calc-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.calc-actions { 
    display: flex; 
    flex-wrap: wrap;
    gap: 0.5rem; 
}

.calc-results {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f1f5f9;
    border-radius: 6px;
    border-left: 4px solid var(--primary-blue);
    display: none;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.result-item:last-child { 
    border-bottom: none; 
}

.result-label { 
    color: var(--text-gray); 
}

.result-value { 
    font-weight: 700; 
    color: var(--deep-blue); 
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
}

.service-item:hover {
    border-color: var(--tech-cyan);
    background-color: #f8fafc;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.service-icon {
    width: 40px;
    height: 40px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.service-info h4 { 
    font-size: 1rem; 
    color: var(--deep-blue); 
    margin-bottom: 0.25rem;
}

.service-info p { 
    font-size: 0.8rem; 
    color: var(--text-gray); 
    margin: 0; 
}

/* --- MODAL STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 1.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}

.close:hover {
    color: var(--deep-blue);
}

.modal-body label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.tool-result {
    background-color: var(--off-white);
    padding: 10px;
    border-radius: 4px;
    margin-top: 1rem;
    font-family: monospace;
    word-break: break-all;
    color: var(--deep-blue);
    display: none;
}

/* --- LOADER --- */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
    margin-left: 10px;
}

/* --- BLAST TABLE --- */
.blast-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
}

.blast-table th {
    text-align: left;
    padding: 8px;
    background-color: #f1f5f9;
    color: var(--deep-blue);
    font-weight: 600;
}

.blast-table td {
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.e-value { 
    color: #b91c1c; 
    font-weight: 600; 
}

/* --- FOOTER --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a:hover {
    color: var(--tech-cyan);
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/*---distributer---*/

        .search-hero {
            background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
            color: white;
            padding: 80px 0;
            margin-bottom: 40px;
        }
        
        .distributor-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            border: 1px solid #eaeaea;
            height: 100%;
        }
        
        .distributor-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
            border-color: #1a365d;
        }
        
        .search-box {
            background: white;
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-top: -60px;
            position: relative;
            z-index: 10;
        }
        
        .stat-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 3px 15px rgba(0,0,0,0.08);
            border: 1px solid #eaeaea;
            transition: all 0.3s ease;
        }
        
        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.12);
        }
        
        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 1.5rem;
        }
        
        .stat-icon.bg-primary {
            background: rgba(26, 54, 93, 0.1);
            color: #1a365d;
        }
        
        .stat-icon.bg-success {
            background: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .stat-icon.bg-warning {
            background: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        .stat-value {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #1a365d;
        }
        
        .stat-label {
            color: #666;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .no-distributors {
            text-align: center;
            padding: 60px 40px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.08);
            border: 2px dashed #eaeaea;
        }

        .btn-outline {
            background: transparent;
            color: #1a365d;
            border: 2px solid #1a365d;
            padding: 8px 20px;
            border-radius: 6px;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
        }
        
        .btn-outline:hover {
            background: #1a365d;
            color: white;
        }
        
        .btn-white {
            background: white;
            color: #0056b3;
            padding: 12px 30px;
            border-radius: 6px;
            text-decoration: none;
            display: inline-block;
            font-weight: 600;
            border: none;
            transition: all 0.3s ease;
        }
        
        .btn-white:hover {
            background: #f8f9fa;
            transform: translateY(-2px);
        }



/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .nav-cta { display: block; }
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
    
    .hero-grid { 
        grid-template-columns: 1fr 1fr; 
        text-align: left;
    }
    
    .hero-content { 
        text-align: left; 
    }
    
    .hero-content p {
        max-width: 90%;
    }
    
    .tools-container {
        grid-template-columns: 2fr 1fr;
    }
    
    .calc-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .calc-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .science-container { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .science-text h2,
    .science-text p,
    .stat-item h4,
    .stat-item span {
        text-align: left;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .hero-grid { 
        gap: 3rem; 
    }
    
    .section-padding { 
        padding: 6rem 0; 
    }
    
    .features-grid,
    .product-grid {
        gap: 2.5rem;
    }
    
    .tools-container {
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
    
    .modal-content {
        padding: 2rem;
    }
}

/* Large Mobile (576px and up) */
@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .logo-animation-wrapper {
        width: clamp(350px, 60vw, 500px);
        height: clamp(350px, 60vw, 500px);
    }
    
    .calculator-card,
    .services-card {
        padding: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small Mobile (under 576px) */
@media (max-width: 575px) {
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 3rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.25rem;
        width: 95%;
    }
    
    .close {
        right: 0.75rem;
        top: 0.25rem;
    }
}

/* --- MOBILE MENU STYLES --- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-menu-container {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.mobile-menu-logo img {
    height: 2.5rem;
    width: auto;
}

.mobile-menu-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: var(--deep-blue);
    font-weight: 700;
    font-size: 1.25rem;
}

.mobile-menu-logo-tagline {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 400;
}

.mobile-menu-close {
    font-size: 1.5rem;
    color: var(--deep-blue);
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(0, 86, 179, 0.2);
    color: var(--primary-blue);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.mobile-menu-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    border-left: 4px solid transparent;
}

.mobile-menu-links a:hover {
    background-color: var(--off-white);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    padding-left: 1.75rem;
}

.mobile-menu-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.mobile-menu-cta .btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Update existing mobile menu button styling */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--deep-blue);
    cursor: pointer;
    background: rgba(0, 86, 179, 0.1);
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(0, 86, 179, 0.2);
    color: var(--primary-blue);
}

/* Add to style.css - Product Detail Mobile Fixes */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Add to style.css */
.product-title-detail {
    font-size: 1.75rem;
    color: #1a365d;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .product-title-detail {
        font-size: 2.5rem;
    }
}

/* Add to style.css */
.product-price-detail {
    font-size: 1.5rem;
    color: #0056b3;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .product-price-detail {
        font-size: 1.75rem;
    }
}
/* Add to style.css */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.product-actions .btn {
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .product-actions {
        flex-direction: row;
    }
    
    .product-actions .btn {
        width: auto;
    }
}
/* Hide nav links on mobile - keep this existing rule */
@media (max-width: 767px) {
    .nav-links {
        display: none !important; /* Force hide on mobile */
    }
    
    .nav-cta {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex !important; /* Force show on mobile */
        align-items: center;
        justify-content: center;
    }
}

/* Add to Mobile Responsive Section (around line 650) */
@media (max-width: 767px) {
    .hero {
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-visual {
        height: 280px;
        margin-top: 1.5rem;
    }
    
    .logo-animation-wrapper {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .icon-box {
        margin: 0 auto 1.25rem;
    }
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .product-card {
        margin-bottom: 0;
    }
    
    .product-image {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .tools-container {
        gap: 1.5rem;
    }
    
    .calculator-card,
    .services-card {
        padding: 1.25rem;
    }
    
    .calc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .calc-options {
        grid-template-columns: 1fr;
    }
    
    .primer-input-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calc-actions {
        flex-direction: column;
    }
    
    .calc-actions .btn {
        width: 100%;
    }
    
    .service-item {
        padding: 0.75rem;
    }
}

@media (max-width: 767px) {
    .science-container {
        gap: 2rem;
    }
    
    .science-text h2 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .science-text p {
        text-align: center;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item h4 {
        font-size: 1.5rem;
    }
    
    .stat-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .quote-form {
        padding: 0 0.5rem;
    }
    
    .quote-form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}