/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --primary-red: #E31E24;
    --red-hover: #b01217;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1c1c1c;
    --text-white: #ffffff;
    --text-grey: #cccccc;
    --text-dark: #333333;
    
    /* Fonts & Sizes */
    --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 80px 0px; }
.bg-dark { background-color: var(--dark-bg); }
.text-center { text-align: center; }
.text-highlight { color: var(--primary-red); }
.small-text { font-size: 0.85rem; }

/* =========================================
   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);
    border-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;
    position: relative;
}
.nav-links a:hover { color: var(--primary-red); }

.mobile-btn { display: none; }
.menu-toggle { display: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }

/* =========================================
   5. HERO SECTION
   ========================================= */
/* Update Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    /* Image background hata diya hai kyunki ab video hai */
    /* background: url('img/hero-bg.png') center/cover no-repeat; */ 
    background: #000; /* Fallback color agar video load na ho */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Zaroori hai taki video bahar na nikle */
}

/* Video Wrapper - Isse video piche rahega */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Sabse neeche */
    pointer-events: none; /* User video click na kar sake */
    overflow: hidden;
}

/* Iframe ko 'Cover' fit karne ka formula */
.video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw; /* Given 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* Given 16:9 aspect ratio */
}

/* Overlay ko video ke upar layein */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Thoda dark overlay text padhne ke liye */
    z-index: 1; /* Video ke upar */
}

/* Content sabse upar rahega */
.hero-content {
    position: relative;
    z-index: 2; /* Sabse upar */
    max-width: 1000px;
    padding: 20px;
}




/* .hero-section {
    position: relative;
    height: 90vh;
    background: url('img/hero-bg.png') center/cover no-repeat;
    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-section {
    /* Video load hone se pehle ye photo dikhegi */
    background: url('img/hero-bg.png') center/cover no-repeat; 
}
.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;
}

/* =========================================
   6. SPLIT LAYOUT (About & Services) - FIXED CENTER ALIGNMENT
   ========================================= */

/* Wrapper ab Container ke andar rahega */
.split-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Height barabar karne ke liye */
    width: 100%;
    max-width: 1200px; /* Isse content center me rahega */
    margin: 0 auto;    /* Left-Right auto margin center karne ke liye */
    background: var(--card-bg); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); /* Thoda shadow look ke liye */
    border-radius: 8px; /* Corners ko smooth karne ke liye */
    overflow: hidden; /* Image agar round corner se bahar nikle to chupane ke liye */
}

/* Image Section */
.split-content-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.split-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Content Logic */
.split-content-text {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    padding: 40px; /* Text aur border ke beech space */
}

/* Text Box ki styling */
.text-box {
    width: 100%;
}

.text-box h2 { 
    font-size: 2.2rem; 
    margin-bottom: 10px; 
}

.text-box p { 
    color: var(--text-grey); 
    margin-bottom: 25px; 
}

/* Background Fixes for Sections */
.section-padding.bg-dark {
    /* Section ka background dark rahega, par content center me aa jayega */
    display: flex;
    justify-content: center;
}

/* Reverse Layout for Service Section */
.reverse-layout {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .split-layout-wrapper { 
        flex-direction: column; 
        max-width: 100%; /* Mobile par full width */
    }
    .reverse-layout { 
        flex-direction: column; /* Mobile par image upar, text neeche */
    }
    
    .split-content-image { 
        height: 300px; /* Mobile par image ki height fix karein */
    }
    
    .split-content-text {
        padding: 30px 20px;
    }
}

/* =========================================
   7. SECTIONS & SLIDER
   ========================================= */
.why-matters-section {
    background: url('img/Why-TorusPak.png') center/cover, var(--darker-bg);
}
.section-desc {
    max-width: 800px; margin: 20px auto 40px; color: var(--text-grey);
}

.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; }

/* Slider Styles */
.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;
    justify-content: center;
}
.slider-container::-webkit-scrollbar { display: none; }

.sector-card {
    min-width: 300px;
    height: 400px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0; /* Prevents shrinking */
    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); }

/* =========================================
   8. TESTIMONIALS & BLOGS
   ========================================= */
.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; transition: 0.3s; color: #666; }
.nav-arrow:hover { color: var(--primary-red); }

/* 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; }
.blog-text h3 { font-size: 1.3rem; margin-bottom: 10px; transition: 0.3s; }
.blog-card:hover .blog-text h3 { color: var(--primary-red); }
.read-more {
    color: var(--primary-red); font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.read-more:hover { gap: 12px; }

/* =========================================
   9. FOOTER
   ========================================= */
footer { background-color: #222; padding: 60px 0 0; color: #aaa; font-size: 0.9rem; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; padding-bottom: 40px; }
.footer-col { flex: 1; min-width: 220px; padding: 0 20px; position: relative; margin-bottom: 30px; }

/* Vertical Divider for Desktop */
.footer-col:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 10%; height: 80%; width: 1px;
    background: rgba(255,255,255,0.1);
}

.brand-col { flex: 2; padding-right: 40px; }
.footer-logo img { height: 40px; margin-bottom: 15px; }
.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); }

.links-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.links-col ul li { margin-bottom: 10px; }
.links-col ul li a:hover { color: var(--primary-red); padding-left: 5px; }
.footer-bottom { background: var(--card-bg); padding: 20px; text-align: center; border-top: 1px solid #333; }

/* =========================================
   10. ANIMATIONS & RESPONSIVE
   ========================================= */
.reveal {
    opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive Media Queries */
@media (max-width: 900px) {
    .testimonial-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    
    .split-layout-wrapper { flex-direction: column; }
    .reverse-layout { flex-direction: column; }
    
    .split-content-image { width: 100%; height: 350px; }
    .split-content-text { width: 100%; }
    .text-box { padding: 40px 20px; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px; }
    .menu-toggle { display: block; }
    
    .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; }

    .footer-col:not(:last-child)::after { display: none; }
    .slider-controls { gap: 20px; justify-content: space-between; }
    
    /* ===============================
   FAQ SECTION
================================ */

.faq-wrapper {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question:hover {
    background-color: #222;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #151515;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-grey);
    line-height: 1.7;
}

/* Active State */
.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
}