/* =========================================
   ROOT VARIABLES & TOKENS
   ========================================= */
:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --orange: #ff5500;
    --gray: #1a1a1a;
    --soft-gray: #f4f4f4;
    --text-muted: #666666;
    --surface-color: #f9f9f9;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   RESET & BASE TYPOGRAPHY
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

/* Respect user preferences for motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body { 
    font-family: 'Outfit', -apple-system, sans-serif; 
    background: var(--white); 
    color: var(--black); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* Prevents horizontal scroll bugs */
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 80px 10%;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 40px;
    text-align: center;
}

.section-title span {
    color: var(--orange);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.glass-header {
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%; 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    padding: 20px 10%; 
    z-index: 1000; 
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo { 
    font-size: 2rem; 
    font-weight: 900; 
    color: var(--black); 
    text-decoration: none;
    letter-spacing: -1px; 
}

.logo span { color: var(--orange); }

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
    align-items: center;
}

.nav-links li a { 
    text-decoration: none; 
    color: var(--black); 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    transition: var(--transition-smooth); 
}

.nav-links li a:hover {
    color: var(--orange);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 35px; 
    text-decoration: none; 
    font-weight: 800; 
    text-transform: uppercase; 
    border-radius: 4px;
    transition: var(--transition-smooth); 
    cursor: pointer; 
    text-align: center;
    border: none;
    will-change: transform;
}

.btn-primary { 
    background: var(--orange); 
    color: var(--white); 
}

.btn-primary:hover { 
    background: var(--black); 
    color: var(--white); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(255, 85, 0, 0.2);
}

.btn-secondary { 
    border: 2px solid var(--black); 
    color: var(--black); 
    background: transparent;
    margin-left: 15px; 
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh; 
    background: var(--black) url('stitching.jpg') center/cover;
    background-blend-mode: overlay;
    color: var(--white);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    text-align: center; 
    max-width: 900px; 
    padding: 0 20px;
}

.hero h1 { 
    font-size: clamp(3rem, 8vw, 5.5rem); 
    font-weight: 900; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.hero h1 span {
    color: var(--orange);
}

.hero p { 
    font-size: clamp(1rem, 2vw, 1.2rem); 
    margin-bottom: 40px; 
    color: #e0e0e0; 
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid { 
    display: grid; 
    /* Bulletproof grid: prevents overflow on ultra-small screens */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); 
    gap: 60px; 
    align-items: center; 
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-image-wrapper img { 
    border-radius: 8px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* =========================================
   WHY US (FEATURES GRID & GLASS CARDS)
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    border: 1px solid #eaeaea;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--orange);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-item p {
    color: var(--text-muted);
}

/* =========================================
   PRODUCT CATEGORIES (SHOWCASE)
   ========================================= */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.product-cat {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
}

.product-cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
    padding: 40px 30px 20px;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.product-cat:hover img {
    transform: scale(1.08);
}

.product-cat:hover .product-overlay {
    transform: translateY(0);
}

.product-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.product-overlay p {
    font-size: 0.95rem;
    color: #ddd;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-cat:hover .product-overlay p {
    opacity: 1;
}

/* =========================================
   VIDEOS (PREVIOUS WORK)
   ========================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.video-wrapper video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: var(--black);
}

/* =========================================
   FAQS SECTION
   ========================================= */
.faqs-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--black);
    cursor: pointer;
    padding: 15px 0;
    text-align: left;
}

.faq-answer {
    padding: 0 0 15px 0;
    color: var(--text-muted);
}

/* =========================================
   BLOGS PREVIEW
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-img {
    height: 220px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img { transform: scale(1.05); }

.blog-content {
    padding: 25px;
}

.blog-tag {
    background-color: var(--orange);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.blog-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-read-more {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* =========================================
   LOGISTICS & PARTNERS
   ========================================= */
.logistics-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.logistics-card img {
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition-smooth);
    max-width: 120px;
}

.logistics-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); 
    gap: 60px;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info h3 span { color: var(--orange); }

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 85, 0, 0.1);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-detail h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-detail p {
    margin-bottom: 0;
}

.contact-form { 
    display: grid; 
    gap: 15px; 
}

.contact-form input, 
.contact-form textarea { 
    padding: 15px 20px; 
    background: var(--surface-color); 
    border: 1px solid #eaeaea; 
    color: var(--black); 
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition-smooth);
    width: 100%;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input:focus, 
.contact-form textarea:focus { 
    outline: none; 
    border-color: var(--orange); 
    background: var(--white);
}

/* =========================================
   FINAL CTR (CALL TO ACTION)
   ========================================= */
.final-ctr {
    padding: 120px 10%;
    background-color: var(--black);
    background-image: linear-gradient(rgba(10,10,10,0.85), rgba(10,10,10,0.95)), url('factory-bg-2.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.ctr-content h2, .ctr-content p { 
    color: var(--white); 
}

/* =========================================
   FOOTER
   ========================================= */
footer { 
    background: var(--black); 
    color: #aaa; 
    padding: 80px 10% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col h3 span { color: var(--orange); }

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    background: #222;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--orange);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--orange);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE CLEANUP (MOBILE/TABLET)
   ========================================= */
@media (max-width: 900px) {
    .section-padding { padding: 60px 5%; }
    .glass-header { padding: 15px 5%; }
    
    .mobile-menu-btn { display: block; }
    
    /* MOBILE NAVIGATION MENU LOGIC */
    .nav-links { 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    /* Triggered by JS */
    .nav-links.active {
        max-height: 500px;
        padding: 20px 5%;
    }
    
    .hero h1 { font-size: 3rem; }
    
    /* Mobile Button Stacking Fix */
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary, .btn-secondary { 
        width: 100%; 
        margin-left: 0;
    }

    /* Mobile Touch Enhancements for Product Overlay */
    .product-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0,0,0,0.95));
    }
    .product-overlay p {
        opacity: 1; /* Ensures text is always visible on mobile */
    }
}