/*
====================================
    GENERAL STYLES & VARIABLES
====================================
*/
:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #343a40;
    --heading-color: #212529;
    --border-color: #dee2e6;
    --white-color: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] {
    --primary-color: #007bff;
    --primary-hover-color: #3395ff;
    --secondary-color: #adb5bd;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --border-color: #444;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); background-color: var(--background-color); color: var(--text-color); transition: background-color 0.3s, color 0.3s; line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--heading-color); margin-bottom: 10px; }
.section-title p { font-size: 1.1rem; color: var(--secondary-color); max-width: 600px; margin: 0 auto; }

/* Scrollbar Styling */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface-color); }
::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/*
====================================
    PRELOADER, HEADER
====================================
*/
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--background-color); z-index: 9999; display: flex; justify-content: center; align-items: center; }
.spinner { border: 8px solid var(--surface-color); border-top: 8px solid var(--primary-color); border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#header { position: sticky; top: 0; width: 100%; background-color: var(--background-color); z-index: 1000; transition: box-shadow 0.3s, background-color 0.3s; }
#header.scrolled { box-shadow: var(--shadow); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo img { height: 40px; }
.logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark { display: block; }
.nav-menu { display: flex; list-style: none; align-items: center; }
.nav-menu li { margin-left: 30px; }
.nav-link { text-decoration: none; color: var(--text-color); font-weight: 600; transition: color 0.3s; position: relative; padding-bottom: 5px; }
.nav-link:hover { color: var(--primary-color); }
.nav-link::after { content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 50%; transform: translateX(-50%); background-color: var(--primary-color); transition: width 0.3s ease-in-out; }
.nav-link.active { color: var(--primary-color); }
.nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle-btn { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-color); }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-color); transition: all 0.3s ease-in-out; border-radius: 2px; }

/*
====================================
    HOME / HERO SECTION (ENHANCED)
====================================
*/
.hero { display: flex; align-items: center; min-height: 90vh; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://picsum.photos/1920/1080?grayscale') no-repeat center center/cover; background-attachment: fixed; color: var(--white-color); }
.hero-container { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.hero-content { flex: 1; text-align: left; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
.hero-content p { font-size: 1.3rem; margin-bottom: 2rem; }
.hero-featured-product { flex-basis: 40%; max-width: 400px; background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); transition: opacity 0.5s ease-in-out; }
.hero-featured-product.fade-out { opacity: 0; }
.hero-featured-product img { width: 100%; display: block; }
.featured-product-info { padding: 20px; }
.featured-product-info h4 { font-size: 0.9rem; text-transform: uppercase; color: var(--primary-color); letter-spacing: 1px; }
.featured-product-info h3 { font-size: 1.5rem; margin: 5px 0 10px 0; }
.cta-btn { display: inline-block; padding: 12px 30px; background-color: var(--primary-color); color: var(--white-color); text-decoration: none; border-radius: 5px; font-weight: 600; transition: background-color 0.3s, transform 0.3s; border: none; cursor: pointer; }
.cta-btn:hover { background-color: var(--primary-hover-color); transform: translateY(-3px); }

/*
====================================
    STATS SECTION
====================================
*/
.stats-section { background-color: var(--surface-color); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }
.stat-item h3 { font-size: 2.5rem; color: var(--heading-color); font-weight: 700; }
.stat-item p { font-size: 1rem; color: var(--secondary-color); }


/* Other Sections */
.about-wrapper { display: flex; gap: 40px; align-items: center; }
.about-image img { max-width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.about-content h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--heading-color); }
.services-section { background-color: var(--surface-color); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background-color: var(--background-color); padding: 30px; border-radius: 10px; box-shadow: var(--shadow); text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.service-header i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.service-header h3 { font-size: 1.5rem; color: var(--heading-color); }

/*
====================================
    PRODUCTS SECTION
====================================
*/
.products-section { background-color: var(--background-color); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.product-card { background-color: var(--surface-color); border-radius: 10px; box-shadow: var(--shadow); text-align: left; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card h3 { font-size: 1.5rem; margin: 15px 20px 10px 20px; color: var(--heading-color); }
.product-card p { margin: 0 20px 15px 20px; flex-grow: 1; }
.view-more-btn { margin: 0 20px 20px 20px; padding: 10px 20px; background-color: var(--primary-color); color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; align-self: flex-start; }
.view-more-btn:hover { background-color: var(--primary-hover-color); }

/*
====================================
    TESTIMONIALS SECTION
====================================
*/
.testimonials-section { background-color: var(--surface-color); }
.testimonial-card { margin: 0 15px; padding: 30px; background-color: var(--background-color); border-radius: 10px; border-left: 5px solid var(--primary-color); }
.testimonial-quote { font-style: italic; font-size: 1.1rem; margin-bottom: 20px; }
.testimonial-client { display: flex; align-items: center; gap: 15px; }
.testimonial-client img { width: 60px; height: 60px; border-radius: 50%; }
.client-name { font-weight: 600; display: block; color: var(--heading-color); }
.client-title { font-size: 0.9rem; color: var(--secondary-color); }
.slick-dots li button:before { font-size: 12px; color: var(--secondary-color); }
.slick-dots li.slick-active button:before { color: var(--primary-color); }

/*
====================================
    MODALS (GENERAL & PRODUCT)
====================================
*/
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
.modal-content { background-color: var(--background-color); margin: 5vh auto; width: 90%; max-width: 800px; border-radius: 10px; position: relative; animation: slideIn 0.4s; display: flex; flex-direction: column; max-height: 90vh; box-shadow: var(--shadow); }
@keyframes slideIn { from {top: -300px; opacity: 0} to {top: 0; opacity: 1} }

/* Product Modal Sticky Header & Tabs */
#product-modal .modal-header, #product-modal .tabs { flex-shrink: 0; }
#product-modal .modal-header { padding: 20px 60px 20px 30px; border-bottom: 1px solid var(--border-color); position: relative; }
#product-modal .modal-header h2 { margin: 0; font-size: 1.8rem; color: var(--heading-color); }
.close-modal { color: var(--secondary-color); position: absolute; top: 50%; right: 25px; transform: translateY(-50%); font-size: 32px; font-weight: bold; cursor: pointer; z-index: 10; transition: color 0.3s; }
.close-modal:hover { color: var(--heading-color); }
.tabs { display: flex; border-bottom: 1px solid var(--border-color); padding: 0 30px; }
.tab-link { background: none; border: none; padding: 15px 20px; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--secondary-color); position: relative; transition: color 0.3s; }
.tab-link::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 3px; background-color: var(--primary-color); transition: width 0.3s; }
.tab-link.active { color: var(--primary-color); }
.tab-link.active::after { width: 100%; }
.modal-body-content { overflow-y: auto; } /* This makes the content scrollable */
.tab-content { padding: 30px; }
.tab-pane { display: none; animation: fadeIn 0.5s; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

/* Content within Tabs */
.features-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.features-table td { padding: 12px; border-bottom: 1px solid var(--border-color); }
.features-table td:first-child { font-weight: 600; color: var(--heading-color); width: 30%; }

.modal-gallery { position: relative; }
.modal-gallery-image { display: none; width: 100%; border-radius: 8px; }
.modal-gallery-image.active { display: block; }
.gallery-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); }
.gallery-nav button { background-color: rgba(0,0,0,0.5); color: white; border: none; cursor: pointer; padding: 10px 15px; font-size: 1.5rem; transition: background-color 0.3s; }
.gallery-nav button:hover { background-color: rgba(0,0,0,0.8); }

#enquiryForm input, #enquiryForm textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 5px; background-color: var(--surface-color); color: var(--text-color); }

/*
====================================
    POLICY MODAL
====================================
*/
.policy-modal .modal-content { max-width: 800px; height: 80vh; }
.modal-header { padding: 20px 30px; border-bottom: 1px solid var(--border-color); background-color: var(--background-color); flex-shrink: 0; position: relative; }
.modal-header h2 { margin: 0; color: var(--heading-color); }
.modal-body { overflow-y: auto; padding: 30px; }
.modal-body h3 { margin-top: 20px; margin-bottom: 10px; color: var(--heading-color); }
.modal-body p, .modal-body li { margin-bottom: 15px; }

/*
====================================
    FOOTER & CONTACT
====================================
*/
.contact-wrapper { display: flex; gap: 40px; align-items: flex-start; }
.contact-form, .contact-info { flex: 1; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 5px; background-color: var(--surface-color); color: var(--text-color); }
.contact-info p { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; }
.contact-info i { color: var(--primary-color); font-size: 1.2rem; }
.map { margin-top: 20px; border-radius: 8px; overflow: hidden; }
#footer { background-color: var(--heading-color); color: var(--secondary-color); padding: 50px 0 20px 0; }
[data-theme="dark"] #footer { background-color: #1e1e1e; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-section { flex: 1; min-width: 200px; }
.footer-section h4 { margin-bottom: 15px; color: var(--white-color); }
.footer-section ul { list-style: none; }
.footer-section ul li a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s; }
.footer-section ul li a:hover { color: var(--primary-color); }
.social-icons a { color: var(--secondary-color); margin-right: 15px; font-size: 1.5rem; transition: color 0.3s; }
.social-icons a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; font-size: 0.9rem; }
[data-theme="dark"] .footer-bottom { border-top-color: var(--border-color); }

/*
====================================
    BACK TO TOP BUTTON
====================================
*/
.back-to-top-btn { position: fixed; bottom: 30px; right: 30px; background-color: var(--primary-color); color: var(--white-color); width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; font-size: 1.2rem; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, background-color 0.3s; z-index: 999; }
.back-to-top-btn.show { opacity: 1; visibility: visible; }
.back-to-top-btn:hover { background-color: var(--primary-hover-color); }

/*
====================================
    RESPONSIVE STYLES
====================================
*/
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { text-align: center; }
    .hero-featured-product { max-width: 100%; }
}
@media (max-width: 768px) {
    .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background-color: var(--background-color); width: 100%; text-align: center; transition: 0.3s; box-shadow: var(--shadow); }
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 1.5rem 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero-content h1 { font-size: 2.5rem; }
    .about-wrapper, .contact-wrapper { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
}