/* =========================================
   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; }
.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 Hero Images */
.hero-section { height: 90vh; background: url('img/hero-bg.png') center/cover no-repeat; } /* Home Default */
.hero-inner { height: 60vh; } /* Generic Inner Page Height */

.equipment-hero {
    height: 60vh;
    background: url('img/equipment-hero.jpg') center/cover no-repeat;
}

.sectors-hero {
    height: 60vh;
    background: url('img/hero-bg.png') center/cover no-repeat;
}

/* =========================================
   6. SPLIT LAYOUT (Home, Sectors, Why TorusPak)
   ========================================= */
.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 & Intro Cards)
   ========================================= */
.benefits-grid {
    display: grid;
    /* 4 items hai to 2x2 grid banega, ya auto-fit */
    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; }

/* =========================================
   8. EQUIPMENT CARDS (Zig Zag Style)
   ========================================= */
.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 { flex-direction: row-reverse; }

/* =========================================
   9. CTA SECTIONS
   ========================================= */
.cta-section, .thick-thin-cta {
    position: relative;
    background-attachment: fixed;
    text-align: center;
    color: white;
}
.cta-section { background: url('img/equipment-hero.jpg') 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) */
.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; }

/* =========================================
   10. SLIDER (Home Sectors)
   ========================================= */
.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); }

/* =========================================
   11. TESTIMONIALS & FOOTER
   ========================================= */
.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; }

/* Blogs */
.blogs-section { background-color: var(--darker-bg); }
.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; }

/* 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; }

/* =========================================
   12. ANIMATIONS & RESPONSIVE
   ========================================= */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@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 { grid-template-columns: 1fr; }
    .footer-col:not(:last-child)::after { display: none; }
}

@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; }
}