/*___________________________Base Styles___________________________*/
  
:root {
    --primary-color: #d91f2d;
    --secondary-color: #111111;
    --accent-color: #d91f2d;
    --dark-color: #0b0b0b;
    --light-color: #fafafa;
    --text-color: #222;
    --text-light: #666;
    --white: #ffffff;
    --black: #000;
    --gray: #f5f5f5;
    --dark-gray: #555;
    --text-muted-dark: #333;
    --gray-border: #ddd;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.18);
    --transition: all 0.25s ease;
    --border-radius: 22px;
    --border-radius-lg: 28px;
    --header-height: 120px;
    --header-height-scrolled: 60px;
    --announcement-height: 40px;
    --gradient-primary: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 95%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/*___________________________Glow Effect___________________________*/
.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.glow-effect:hover::before {
    left: 100%;
}

/*___________________________Shadow Effect___________________________*/
.shadow-effect {
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.shadow-effect:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/*___________________________Loading Animation___________________________*/
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}
/*___________________________Announcement Bar Styles___________________________*/
.announcement-bar {
    background: var(--primary-color);
    color: var(--white);
    height: var(--announcement-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    overflow: hidden; /* Important: hides the text outside the bar */
    display: flex;
    align-items: center;
}
.announcement-bar p {
    margin: 0;         
    font-size: 0.85rem;
    line-height: 1.4;  
    font-weight: 500;
}
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-flex;
    animation: scroll-left 25s linear infinite;
}

.marquee-content p {
    display: inline-block;
    padding-right: 50px; /* Space between the two sets of text */
    margin-bottom: 0;
    font-size: 0.85rem;
}
@media (min-width: 992px) {
    .marquee-content {
        animation: none;
        display: block;
        text-align: center;
        width: 100%;
    }
    .marquee-content p:last-child {
        display: none; /* Hide the duplicate on desktop */
    }
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves by half because we duplicated the text */
}


/*___________________________Header Styles___________________________*/
.header {
    position: fixed;
    top: var(--announcement-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    color: var(--light-color);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Optional: adds a crisp edge */
}
.header.scrolled {
    top: var(--announcement-height);
    height: var(--header-height-scrolled);
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo img {
    padding: 0;
    max-height: 95px;
    max-width: 90%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}
.header.scrolled .logo img {
    height: 50px;
    width: auto;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
/* 1. Pehle desktop par inko hide karein */
.mobile-social-links {
    display: none;
    margin-top: 2rem;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.mobile-social-links a {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* 2. Mobile Media Query ke andar isse show karein */
@media (max-width: 768px) {
    .nav-list.active .mobile-social-links {
        display: flex; /* Jab menu active ho tab show ho */
        justify-content: center;
    }

    .nav-list {
        /* Aapki existing styling mein display flex hai, social links ko end mein rakhne ke liye ye zaroori hai */
        justify-content: flex-start !important; 
    }
}

/*___________________________Hero Section___________________________*/
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: var(--announcement-height);
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero .container {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding-top: var(--header-height);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.hero-controls button {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.hero-controls button:hover {
    background-color: var(--primary-color);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/*___________________________About Section___________________________*/
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    
    position: relative;
}

.about-text {
    max-width: 1980px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.about-image {
    
    align-items: center;
    flex: auto;
    position: relative;
}
.about-image img {
    display: block;
    max-width: 90%;
    margin: 0 auto 1rem auto;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

/*___________________________Services Section___________________________*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
}

/*___________________________Products category Section___________________________*/

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }
  .category-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
  .category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  .category-card img {
    display: block;
    margin: 0 auto 1rem auto;
    align-items:center;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  .card-details {
    font-size: 15px;
    color: var(--text-light);
    margin:0; /* Text ke charon taraf thoda gap */
    line-height: 1.6;
    font-weight: 300;
  }
  .category-card h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 5px; /* Heading aur details ke beech gap kam karne ke liye */
    color: var(--text-muted-dark);
    font-weight: 600;
  }


/* ================================== Production Capacity ==================================*/
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1980px;
    margin: 40px auto 0;
}

.stat-item {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.stat-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info span {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
} 

/* ================================== FAQs ==================================*/
.faq-container {
    max-width: 1200px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-border);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted-dark);
    cursor: pointer;
    text-align: left;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 600px; /* generous ceiling so longer answers never get clipped; shorter ones are unaffected */
}

.faq-item.active i {
    transform: rotate(45deg);
    color: var(--primary-color);
}

/*___________________________Contact Section___________________________*/
.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h3 {
    margin-bottom: 0.5rem;
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 31, 45, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/*___________________________Footer___________________________*/
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    padding: 0 1rem;
}

.footer-col:first-child {
    padding-left: 0;
}

.footer-col:last-child {
    padding-right: 0;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-about {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}


.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/*___________________________Whatsapp button___________________________*/
.whatsapp-float {
    position:fixed;
    right: 10px;
    bottom: 20px;
    z-index: 99;
}
.whatsapp-float img{
    width: 65px;
    transition: 0.3s;
    
}
.whatsapp-float img:hover{
    transform: scale(1.1);
}

/*___________________________Back to Top Button___________________________*/
.back-to-top {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ___________________________Responsive Styles___________________________*/

/* Large tablets and smaller (up to 992px) */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
        align-items: center; /* center items vertically */
        gap: 1.5rem; /* add spacing between elements */
    }

}

/* Tablets and smaller (up to 768px) */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem; /* added horizontal padding */
    }
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
        text-align: center; /* center headings on smaller screens */
    }
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    .nav-link, .header.scrolled .nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    font-size: 1.2rem;
}
    .nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%; 
        height: 100vh;

        background-color: var(--light-color);
       
        flex-direction: column ;
        justify-content: center ;
        align-items: left;
        padding: 30px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        overflow-y: auto; /* allow scrolling if menu is tall */
        z-index: 1000;
    }
    .nav-list.active {
        left: 0;
    }
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        text-align: center;
        padding: 0 1rem;
    }
    .hero-text {
        font-size: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
}

/* Phones and smaller (up to 576px) */
@media (max-width: 576px) {
    .section {
        padding: 2.5rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* Ensure all text scales well on mobile */
body, p, h1, h2, h3, h4, h5, h6 {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Optional: smooth font scaling for mobile */
html {
    font-size: 100%; /* base font size */
}

@media (max-width: 768px) {
    html {
        font-size: 90%; /* slightly smaller base font on tablets */
    }
}

@media (max-width: 576px) {
    html {
        font-size: 85%; /* smaller base font on phones */
    }
}