/* ===================================== Base Styles =====================================*/
  
:root {
   /* #192F48  */
    --primary-color: #C98244;
    --secondary-color: #010101;
    --accent-color: #C98244;
    --dark-color: #1B2F48;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --white: #ffffff;
    --black: #000;
    --gray: #e9ecef;
    --dark-gray: #6c757d;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.2s ease;
    --border-radius: 10px;
    --border-radius-lg: 40px;
   /* --container-width: 1500px;  */
    --header-height: 120px;
}

* {
    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: 90%;
    height: auto;
    display: block;
}

.container {
    width:95%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 16px; /* Optional: adds breathing room */
}

.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: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
}

.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: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    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: var(--border-radius);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===================================== Header Styles =====================================*/
.header {
    position: fixed;
    left: 0;
    width: 100%;
    height: 120px;
    color: var(--dark-color);
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    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 {
    height: 60px;
    color: var(--dark-color);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo img {
    padding: 0;
    max-height: 90px;
    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: 3rem;
    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: 0;
    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: 120px;
}

.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: var(--border-radius);
    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: var(--border-radius);
    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: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.about-image {
    
    align-items: center;
    flex: auto;
    position: relative;
}
.about-image img {
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: var(--border-radius);
    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: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: var(--border-radius);
    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 {
    align-items: center;
    text-align: center;
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  .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: #666;
    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: #333;
    font-weight: 600;
  }


/* ================================== Production Capacity ==================================*/
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    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: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info span {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
} 

/* ================================== FAQs ==================================*/
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    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: #333;
    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: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust based on content */
}

.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: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: var(--border-radius);
    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(58, 134, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/*===================================== Footer =====================================*/
.footer {
    background-color: var(--secondary-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: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.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: var(--border-radius);
    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: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: var(--border-radius);
    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 */
    }
}