/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-red: #E31E24;
    --red-hover: #b01217;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1c1c1c;
    --text-white: #ffffff;
    --text-grey: #cccccc;
    --text-dark: #333333;
    
    --font-main: 'Fahkwang', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--dark-bg); color: var(--text-white); line-height: 1.6; overflow-x: hidden; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-dark { background-color: var(--dark-bg); }
.bg-darker { background-color: #050505; }
.text-center { text-align: center; }
.text-highlight { color: var(--primary-red); }
.small-text { font-size: 0.85rem; }
.mb-20 { margin-bottom: 20px; }
.mb-50 { margin-bottom: 50px; }
.mt-50 { margin-top: 50px; }
.relative-z { position: relative; z-index: 2; }
.section-desc { max-width: 800px; margin: 20px auto 40px; color: var(--text-grey); }

/* =========================================
   3. BUTTON COMPONENTS
   ========================================= */
.btn { padding: 12px 28px; font-weight: 600; font-size: 14px; text-transform: uppercase; display: inline-block; cursor: pointer; border: 2px solid transparent; transition: var(--transition); letter-spacing: 0.5px; }
.btn:hover { transform: translateY(-3px); }

.btn--red { background-color: var(--primary-red); color: white; }
.btn--red:hover { background-color: white; color: var(--primary-red); }

.btn--red-bg { background-color: var(--primary-red); color: white; margin-top: 20px; }
.btn--red-bg:hover { background-color: var(--red-hover); }

.btn--white { background-color: white; color: var(--primary-red); }
.btn--white:hover { background-color: var(--primary-red); color: white; }

.btn--white-outline { border: 2px solid white; background: transparent; color: white; }
.btn--white-outline:hover { background: white; color: var(--dark-bg); }

/* =========================================
   4. NAVBAR
   ========================================= */
.header { background: white; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { max-width: 180px; height: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-dark); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links .active-link { color: var(--primary-red); }
.mobile-btn, .menu-toggle { display: none; }

/* =========================================
   5. HERO SECTIONS (All Pages)
   ========================================= */
.hero-section { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.hero-content { position: relative; z-index: 2; max-width: 1000px; padding: 20px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; }
.hero-subtitle { margin-bottom: 30px; font-size: 1.2rem; color: #f0f0f0; }

/* --- Specific Background Images --- */
/* Note: Apni images ke naam yahan check karein */
.hero-section { height: 90vh; background: url('img/hero-bg.png') center/cover no-repeat; } /* Home Default */

/* Inner Pages (Small Height) */
.hero-inner { height: 60vh; } 
.equipment-hero { height: 60vh; background: url('img/equipment-hero.jpg') center/cover no-repeat; }
.sectors-hero { height: 60vh; background: url('img/sectors-hero.jpg') center/cover no-repeat; }
.about-hero { height: 60vh; background: url('img/about-hero.jpg') center/cover no-repeat; }
.blog-hero { height: 50vh; background: url('img/blog-hero.png') center/cover no-repeat; }


/* =========================================
   6. SPLIT LAYOUT (Home, Sectors, About)
   ========================================= */
.split-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
}
.split-content-image { flex: 1; min-width: 300px; position: relative; }
.split-content-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.split-content-text { flex: 1; min-width: 300px; display: flex; align-items: center; padding: 40px; }
.text-box { width: 100%; }
.text-box h2 { font-size: 2.2rem; margin-bottom: 10px; }
.text-box p { color: var(--text-grey); margin-bottom: 25px; }

/* Reverse Class */
.reverse-layout { flex-direction: row-reverse; }


/* =========================================
   7. GRID LAYOUTS (Benefits, Why TorusPak)
   ========================================= */
.benefits-grid {
    display: grid;
    /* Auto fit columns */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card { background: var(--card-bg); border-radius: 8px; overflow: hidden; transition: var(--transition); }
.benefit-card:hover { transform: translateY(-5px); }
.benefit-card img { width: 100%; height: 200px; object-fit: cover; }
.benefit-content { padding: 25px; }
.benefit-content h3 { font-size: 1.25rem; margin-bottom: 10px; color: white; }

/* Steps Grid (Why TorusPak) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.step-item { display: flex; flex-direction: column; gap: 20px; padding: 30px; background: #111; border-radius: 6px; border: 1px solid #222; }
.step-number { background: #222; color: var(--primary-red); font-size: 1.5rem; font-weight: 700; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; border-radius: 4px; border: 1px solid #333; }
.step-text h3 { margin-bottom: 10px; color: white; }

/* Features Zig Zag (Why TorusPak) */
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-bottom: 80px; }
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 2rem; margin-bottom: 15px; color: white; }
.feature-text p { color: var(--text-grey); font-size: 1.1rem; }
.feature-image { flex: 1; }
.feature-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* Specs Section */
.specs-section { background: linear-gradient(to right, #0a0a0a 50%, #151515 50%); }
.specs-layout { display: flex; align-items: center; gap: 60px; }
.specs-content { flex: 1; }
.specs-content h2 { font-size: 2.5rem; margin-bottom: 30px; }
.specs-list { margin-bottom: 30px; }
.specs-list li { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #333; color: var(--text-grey); }
.specs-list li strong { color: white; font-size: 1.1rem; display: block; margin-bottom: 5px; }
.specs-image { flex: 1; height: 500px; }
.specs-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }


/* =========================================
   8. EQUIPMENT CARDS (Zig Zag Dark)
   ========================================= */
.equip-card-row {
    display: flex;
    margin-bottom: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.equip-text-box { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; background: #1f1f1f; }
.equip-text-box h3 { font-size: 2rem; margin-bottom: 20px; color: white; }
.equip-text-box p { color: var(--text-grey); line-height: 1.7; }
.equip-image-box { flex: 1; min-height: 350px; }
.equip-image-box img { width: 100%; height: 100%; object-fit: cover; }

/* Reverse Row */
.reverse-row { flex-direction: row-reverse; }


/* =========================================
   9. ABOUT PAGE (Timeline)
   ========================================= */
.timeline-section { position: relative; background: url('img/timeline-bg.jpg') center/cover no-repeat; background-attachment: fixed; color: white; }
.timeline-section .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }

.timeline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-top: 40px; }
.timeline-item { position: relative; padding-left: 20px; border-left: 3px solid var(--primary-red); }
.timeline-item .year { display: block; font-size: 3rem; font-weight: 700; color: white; margin-bottom: 10px; line-height: 1; }
.timeline-item p { color: #ccc; font-size: 1rem; }

.wide-image-box { width: 100%; height: 400px; border-radius: 8px; overflow: hidden; margin-top: 40px; }
.wide-image-box img { width: 100%; height: 100%; object-fit: cover; }


/* =========================================
   10. BLOG PAGE
   ========================================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.blog-card { background: transparent; cursor: pointer; }
.blog-img { position: relative; height: 240px; overflow: hidden; border-radius: 4px; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.1); }
.date-badge { position: absolute; bottom: 15px; left: 15px; background: var(--primary-red); color: white; padding: 5px 12px; font-size: 0.8rem; font-weight: 600; }
.blog-text { padding: 20px 0; }
.read-more { color: var(--primary-red); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 60px; }
.page-link { width: 45px; height: 45px; display: flex; justify-content: center; align-items: center; background-color: #222; color: white; border-radius: 50%; font-weight: 600; transition: 0.3s; border: 1px solid #333; }
.page-link:hover, .page-link.active { background-color: var(--primary-red); border-color: var(--primary-red); color: white; }
.page-link.next { width: auto; padding: 0 25px; border-radius: 25px; gap: 10px; }


/* =========================================
   11. CTA & SLIDER (Shared)
   ========================================= */
.cta-section, .thick-thin-cta { position: relative; background-attachment: fixed; text-align: center; color: white; }
.cta-section { background: url('img/blog-hero.png') center/cover no-repeat; }
.thick-thin-cta { background: url('img/cta-food-bg.jpg') center/cover no-repeat; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }

/* Plates Perfectly (Home Parallax) */
.plates-perfectly-section { position: relative; padding: 120px 20px; background: url('img/Plates-Perfectly.png') center/cover fixed no-repeat; text-align: center; }
.plates-perfectly-section .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.content-box { position: relative; z-index: 2; max-width: 750px; margin: 0 auto; }

/* Home Slider */
.sectors-slider-section { background: url('img/Sectors-bg.png') center/cover; }
.sectors-slider-section .sub-text { margin-bottom: 40px; color: var(--text-grey); }
.slider-container { display: flex; overflow-x: auto; scroll-behavior: smooth; gap: 25px; padding: 20px 0 40px; scrollbar-width: none; }
.slider-container::-webkit-scrollbar { display: none; }
.sector-card { min-width: 300px; height: 400px; position: relative; border-radius: 8px; overflow: hidden; flex-shrink: 0; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.sector-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sector-card:hover img { transform: scale(1.1); }
.card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 20px; transform: translateY(10px); transition: var(--transition); }
.sector-card:hover .card-overlay { transform: translateY(0); }
.slider-controls { display: flex; justify-content: center; align-items: center; gap: 40px; margin-top: 20px; }
.arrow-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.arrow-btn:hover { color: var(--primary-red); transform: scale(1.2); }


/* =========================================
   12. TESTIMONIALS & FOOTER (Global)
   ========================================= */
.testimonials-section { background-color: #151515; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.testimonial-card-box { background-color: var(--card-bg); padding: 40px; border-radius: 4px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.quote-icon-large { font-size: 3rem; opacity: 0.2; position: absolute; top: 20px; left: 20px; }
.stars { color: #f1c40f; margin: 10px 0 20px; }
.testimonial-text { font-style: italic; color: #ddd; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-nav { margin-top: 20px; display: flex; gap: 20px; justify-content: flex-end; }
.nav-arrow { font-size: 1.2rem; cursor: pointer; color: #666; }

/* Footer */
footer { background-color: #222; padding: 60px 0 0; color: #aaa; width: 100%; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; }
.footer-col { flex: 1; min-width: 220px; padding: 0 20px; position: relative; margin-bottom: 30px; }
.brand-col { flex: 2; padding-right: 40px; }
.footer-logo img { height: 40px; margin-bottom: 15px; }
.footer-col:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 10%; height: 80%; width: 1px; background: rgba(255,255,255,0.1); }
.social-links { display: flex; gap: 15px; margin-top: 20px; align-items: center; }
.social-links i { width: 32px; height: 32px; background: var(--primary-red); color: white; display: flex; justify-content: center; align-items: center; border-radius: 4px; transition: 0.5s; }
.social-links i:hover { background: white; color: var(--primary-red); transform: rotate(360deg); }
.footer-bottom { background: var(--card-bg); padding: 20px; text-align: center; border-top: 1px solid #333; }


/* =========================================
   13. ANIMATIONS & RESPONSIVE
   ========================================= */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Mobile & Tablet Styles */
@media (max-width: 900px) {
    .split-layout-wrapper, .reverse-layout, .equip-card-row, .reverse-row { flex-direction: column; }
    .split-content-image, .equip-image-box { width: 100%; height: 300px; }
    
    .hero-content h1 { font-size: 2.5rem; }
    
    .testimonial-grid, .timeline-grid, .steps-grid, .feature-row, .specs-layout { grid-template-columns: 1fr; flex-direction: column; }
    .footer-col:not(:last-child)::after { display: none; }
    
    /* Feature Row Zig Zag Mobile Fix */
    .feature-row, .feature-row:nth-child(even) { flex-direction: column; text-align: left; gap: 20px; margin-bottom: 50px; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px; }
    .menu-toggle { display: block; color: var(--text-dark); font-size: 1.5rem; cursor: pointer; }
    
    .nav-links { position: absolute; top: 80px; left: 0; width: 100%; background: white; flex-direction: column; align-items: center; padding: 30px; gap: 20px; transform: translateY(-150%); transition: 0.4s; z-index: 999; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-links.nav-active { transform: translateY(0); }
    
    .desktop-btn { display: none; }
    .mobile-btn { display: block; }
}