/* Ganesh Filter - Complete Style 3 CSS (Final Updated Version)
    Optimized for: TM Positioning, Visibility, and Industrial Sector Layout
*/

:root {
    --primary: #041d3d;    /* Deep Industrial Blue */
    --accent: #007aff;     /* Modern Electric Blue */
    --success: #10b981;    /* Clean Green */
    --text-dark: #1a202c;
    --text-light: #cbd5e1; /* For Dark Backgrounds */
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

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

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    background: #ffffff; 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
}

h1, h2, h3, h4, .logo { font-family: 'Outfit', sans-serif; }

/* Top Bar Styling */
.top-bar {
    background: var(--primary); 
    color: white; 
    padding: 10px 10%;
    display: flex; 
    justify-content: space-between; 
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar a { color: white; text-decoration: none; margin-left: 15px; font-weight: 500; transition: 0.3s; }
.top-bar a:hover { color: var(--accent); }
.top-bar i { color: var(--accent); margin-right: 5px; }

/* Navigation & Logo */
nav {
    padding: 15px 10%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: #fff; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-container { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 60px; width: auto; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 13px; text-transform: uppercase; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--primary); background: none; border: none; }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; background-color: #ffffff; min-width: 260px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1); z-index: 1001;
    border-top: 3px solid var(--accent); border-radius: 0 0 8px 8px; padding: 10px 0; top: 100%;
}
.dropdown-content a {
    color: var(--primary) !important; padding: 12px 20px; text-decoration: none;
    display: block; font-size: 13px !important; text-transform: capitalize !important;
    border-bottom: 1px solid #f1f5f9;
}
.dropdown-content a:hover { background: #f8fbff; color: var(--accent) !important; }
.dropdown:hover .dropdown-content { display: block; }

/* Hero Section */
/* Hero Container - Fixed & Locked for Speed */
.hero {
    position: relative; 
    width: 100%;
    /* Desktop-kku 550px reserve pannanum, appo thaan page jump aagaathu */
    height: 550px; 
    background-color: #041d3d; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
    /* Browser content load aagum munnadiye size-ai lock panna idhu help pannum */
    contain: layout size; 
}

/* Background Image Fix */
.hero-bg-img {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100% !important; 
    height: 100% !important;
    object-fit: cover;
    z-index: 1;
}

/* Overlay Fix (Readability-kaga idhai add pannirukkaen) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 29, 61, 0.5); /* Text nalla theriyum */
    z-index: 2;
}

/* Content Positioning */
.hero-content { 
    position: relative; 
    z-index: 3; /* Overlay-kku mela vara 3 nu mathirukkaen */
    max-width: 900px; 
    padding: 40px 20px; 
}

.hero-content h1 { 
    font-size: clamp(2.2rem, 6vw, 3.5rem); 
    line-height: 1.1; 
    margin-bottom: 20px; 
    font-weight: 800;
}

/* Product Display Section - Balanced Layout */
.product-hero { 
    background: linear-gradient(135deg, #f8fbff 0%, #eef2f7 100%); 
    padding: 80px 10%; 
    display: flex; 
    align-items: flex-start; 
    gap: 60px;
}
.hero-text { flex: 1.4; } 
.hero-text .tagline { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; margin-bottom: 10px; display: block; }
.hero-text h2 { font-size: 2.8rem; color: var(--primary); margin-bottom: 20px; line-height: 1.2; }
.hero-text p { font-size: 1.05rem; line-height: 1.8; color: #4a5568; margin-bottom: 30px; }

/* Image Container - Fixed Size */
.hero-image { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}
.hero-image img { 
    width: 100%; 
    max-width: 450px; 
    height: auto; 
    border-radius: 20px; 
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}
.hero-image img:hover { transform: scale(1.02); }

/* Specifications Table */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 25px; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.specs-table td { padding: 15px; border-bottom: 1px solid #edf2f7; font-size: 14px; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td:first-child { font-weight: 700; color: var(--primary); width: 40%; background: #fcfdfe; }

/* Features List */
.feature-list { list-style: none; margin-bottom: 30px; }
.feature-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 500; color: var(--primary); }
.feature-list i { color: var(--success); font-size: 18px; }

/* Sector Section - Visibility Fixed */
.sector-wrapper { padding: 80px 10%; background: #f8fbff; }
.sector-container { background: var(--primary); border-radius: 20px; padding: 60px 50px; box-shadow: var(--card-shadow); }
.sector-container h2 { color: #ffffff !important; text-align: center; margin-bottom: 40px; font-size: 2.2rem; font-weight: 800; }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.sector-list { list-style: none; padding: 0; }
.sector-list li { color: #ffffff !important; font-size: 18px; margin-bottom: 22px; display: flex; align-items: center; font-weight: 600; }
.sector-list li i { color: var(--accent); margin-right: 18px; font-size: 22px; width: 30px; text-align: center; }

/* Info Grid */
.info-grid { 
    padding: 100px 10%; 
    background: var(--primary); 
    color: white; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}
.info-grid h2 { grid-column: 1 / -1; font-size: 2.5rem; margin-bottom: 10px; color: white; }
.info-grid .tagline { grid-column: 1 / -1; color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }

.app-box { 
    background: var(--glass-bg); 
    padding: 40px 30px; 
    border-radius: 15px; 
    border: 1px solid rgba(255,255,255,0.1); 
    transition: 0.4s ease;
}
.app-box:hover { transform: translateY(-10px); background: rgba(255,255,255,0.08); border-color: var(--accent); }
.app-box i { font-size: 35px; color: var(--accent); margin-bottom: 20px; display: block; }
.app-box h4 { color: white; margin-bottom: 15px; font-size: 1.3rem; }
.app-box p { color: var(--text-light); font-size: 14.5px; line-height: 1.6; }


/* Footer Styling with Corrected Logo & TM */
footer { padding: 80px 10% 40px; background: #020c1a; color: #94a3b8; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: white; margin-bottom: 25px; font-size: 16px; position: relative; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-col ul li a:hover { color: white; padding-left: 5px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 60px; padding-top: 30px; display: flex; justify-content: space-between; font-size: 13px; }

/* Footer Logo & TM Position Correction */
.footer-col .logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    color: #ffffff !important; 
    font-size: 24px; 
    font-weight: 800; 
    margin-bottom: 20px; 
    position: relative;
}
.footer-col .logo span { color: var(--accent); }
.footer-col .logo sup { 
    font-size: 10px; 
    color: var(--accent);
    margin-left: 2px;
    font-weight: 700;
    position: relative;
    top: -8px; /* Correctly aligns TM to the top */
}

/* Utilities */
.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 2000; text-decoration: none; box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: 0.3s; }

/* --- Tablet & Small Desktop (1024px and below) --- */
@media (max-width: 1024px) {
    .top-bar { display: none; }
    nav { padding: 15px 5%; }
    .menu-toggle { display: block !important; } 
    .logo-img { height: 40px; width: auto; aspect-ratio: 140 / 40; }
    .nav-links { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: white; flex-direction: column; padding: 30px; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    }
    .nav-links.active { display: flex; }
    .product-hero { flex-direction: column; text-align: center; padding: 60px 5%; align-items: center; }
    .hero-image img { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sector-container { padding: 40px 20px; }
}

/* --- Mobile & Tablet Fix (768px and below) --- */
@media (max-width: 768px) {
    /* 1. Hero & LCP Stability */
    .hero {
        min-height: 450px !important;
        background: #041d3d !important;
    }
    .hero-bg-img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    /* 2. Navigation & Logo */
    .top-bar { display: none; }
    nav { padding: 10px 5%; }
    .menu-toggle { display: block !important; }
    .logo-img { height: 35px; width: auto; }
    .nav-links { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: white; flex-direction: column; padding: 20px; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    }
    .nav-links.active { display: flex; }

    /* 3. Product & Footer Layout */
    .product-hero { flex-direction: column; text-align: center; padding: 40px 5%; }
    .hero-image img { max-width: 100%; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    
    .sector-container { padding: 30px 15px; }
    .sector-container h2 { font-size: 1.7rem; }
}