/* CSS Stylesheet for Intosight UG */
:root {
    --primary-color: #FF0033; 
    --dark-color: #0F1012;    
    --light-bg: #F5F7FA;      
    --text-gray: #64748B;     
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--dark-color); line-height: 1.6; background-color: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 1. Navigation Bar */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 8%; background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
.logo { font-size: 22px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dark-color); position: relative; z-index: 101; }
.logo span { color: var(--primary-color); }

.nav-links { display: flex; gap: 35px; }
.nav-links a { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); position: relative; padding: 5px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: var(--transition); }
.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger Menu Toggle (Hidden on Desktop) */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 101; }
.menu-toggle .bar { width: 26px; height: 3px; background-color: var(--dark-color); transition: all 0.3s ease-in-out; border-radius: 2px; }

/* 2. Hero Section */
.hero { height: 85vh; background: linear-gradient(rgba(15, 16, 18, 0.6), rgba(15, 16, 18, 0.8)), url('../images/hero-bg.jpg') center/cover no-repeat; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; padding: 0 24px; }
.hero h1 { font-size: 4.5rem; font-weight: 900; margin-bottom: 20px; letter-spacing: 3px; text-transform: uppercase; line-height: 1.1; }
.hero p { font-size: 1.25rem; max-width: 650px; margin-bottom: 40px; color: #E2E8F0; font-weight: 300; }
.btn { padding: 16px 42px; background: var(--primary-color); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; transition: var(--transition); border-radius: 2px; }
.btn:hover { background: #D0002A; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 0, 51, 0.3); }

/* Common Section Header */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; position: relative; display: inline-block; padding-bottom: 15px; }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--primary-color); }
.section-header p { color: var(--text-gray); margin-top: 15px; font-size: 1.05rem; padding: 0 15px; }

/* 3. Company About Section */
.about-section { padding: 100px 8%; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; color: var(--dark-color); }
.about-content p { color: var(--text-gray); margin-bottom: 20px; font-size: 1.05rem; text-align: justify; }

/* * OPTIMIZATION FIX:
 * Made the corporate brand image completely fluid. Removed fixed pixel heights 
 * and 'object-fit: cover' to prevent the edges from clipping awkwardly on narrow screens.
 */
.about-img { background: var(--light-bg); padding: 15px; border-left: 5px solid var(--primary-color); border-radius: 4px; width: 100%; max-width: 580px; margin: 0 auto; }
.about-img img { width: 100%; height: auto; display: block; object-fit: contain; }

/* 4. Products Showcase Section */
.products-section { padding: 100px 8%; background: var(--light-bg); overflow: hidden; }
.tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn { padding: 12px 35px; font-size: 0.95rem; font-weight: 700; background: #fff; border: 1px solid #E2E8F0; color: var(--dark-color); cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px; }
.tab-btn.active, .tab-btn:hover { background: var(--dark-color); color: #fff; border-color: var(--dark-color); }

.series-desc { text-align: center; max-width: 800px; margin: 0 auto 50px; color: var(--text-gray); font-size: 1rem; display: none; line-height: 1.8; padding: 0 15px; }
.series-desc.active { display: block; animation: fadeIn 0.4s ease; }
.series-desc strong { color: var(--dark-color); }

/* * SCROLL ALIGNMENT FIX (V5):
 * Ensures the row content overflows perfectly without breaking leftmost cards.
 */
.product-grid { display: none; gap: 30px; flex-wrap: nowrap; overflow-x: auto; padding: 20px 2%; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.product-grid.active { display: flex; justify-content: flex-start; }

.product-grid::-webkit-scrollbar { height: 6px; }
.product-grid::-webkit-scrollbar-track { background: #E2E8F0; border-radius: 3px; }
.product-grid::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; transition: var(--transition); }
.product-grid::-webkit-scrollbar-thumb:hover { background: var(--text-gray); }

.product-card { background: #fff; padding: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); transition: var(--transition); border-radius: 4px; width: 290px; flex-shrink: 0; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08); }

.product-img-wrapper { width: 100%; aspect-ratio: 600 / 819; display: flex; justify-content: center; align-items: center; overflow: hidden; margin-bottom: 25px; background: #F8FAFC; border-radius: 2px; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease-in-out; }

.product-info h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-info p { color: var(--text-gray); font-size: 0.88rem; margin-bottom: 20px; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.color-swatches { display: flex; gap: 10px; align-items: center; border-top: 1px solid #F1F5F9; padding-top: 15px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: var(--transition); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px rgba(0,0,0,0.1); }
.swatch.active { transform: scale(1.2); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--dark-color); }
.swatch-label { font-size: 0.78rem; color: var(--text-gray); margin-left: auto; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }

.more-products-wrapper { text-align: center; margin-top: 50px; }
.btn-secondary { padding: 16px 42px; background: transparent; color: var(--dark-color); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 2px solid var(--dark-color); cursor: pointer; transition: var(--transition); border-radius: 2px; display: inline-block; }
.btn-secondary:hover { background: var(--dark-color); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* 5. Why Choose Us Section */
.why-us-section { padding: 100px 8%; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.feature-item { padding: 40px 30px; background: var(--light-bg); border-radius: 4px; transition: var(--transition); }
.feature-item:hover { background: var(--dark-color); color: #fff; transform: translateY(-5px); }
.feature-item h3 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.feature-item h3::before { content: ''; display: block; width: 24px; height: 3px; background: var(--primary-color); }
.feature-item p { color: var(--text-gray); font-size: 0.95rem; transition: var(--transition); }
.feature-item:hover p { color: #94A3B8; }

/* 6. Contact Section */
.contact-section { padding: 100px 8%; background: var(--light-bg); display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info-box { display: flex; flex-direction: column; justify-content: center; }
.contact-item { margin-bottom: 40px; }
.contact-item h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; color: var(--dark-color); font-weight: 800; }
.contact-item p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 15px; }

.premium-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--dark-color) 0%, #2A2D34 100%);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    width: fit-content;
}
.premium-email-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 51, 0.3), transparent);
    transition: all 0.6s ease;
}
.premium-email-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 0, 51, 0.2);
    border-color: var(--primary-color);
}
.premium-email-btn:hover::before { left: 100%; }
.premium-email-btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.3s ease; }
.premium-email-btn:hover svg { transform: scale(1.1) rotate(-5deg); }

.map-wrapper { width: 100%; height: 400px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-radius: 4px; overflow: hidden; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* 7. Footer Group */
footer { background: var(--dark-color); color: #fff; padding: 80px 8% 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; color: #fff; }
.footer-col p { color: #94A3B8; font-size: 0.95rem; line-height: 1.8; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #94A3B8; font-size: 0.95rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--primary-color); padding-left: 5px; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; color: #64748B; font-size: 0.85rem; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Responsiveness & Mobile Hamburger Menu */
@media (max-width: 1024px) {
    .about-section { grid-template-columns: 1fr; gap: 40px; }
    .contact-section { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 3.2rem; }
}
@media (max-width: 768px) {
    nav { padding: 15px 5%; }
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    .nav-links.active { max-height: 300px; }
    .nav-links a { width: 100%; text-align: center; padding: 15px 0; border-bottom: 1px solid #F1F5F9; }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a::after { display: none; }

    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.05rem; }
    .section-header h2 { font-size: 2rem; }
    .tab-btn { padding: 10px 20px; font-size: 0.85rem; }
}
