/*
    Template Name: Shiv Screens - Premium Insect Screen Systems
    Author: ChatGPT
    Version: 1.0 (Final Corrected)
*/

/* ======================================================
    1. Base Styles & Typography
   ====================================================== */
   html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #ff7f27;
    --accent-color: #25D366; /* WhatsApp green */
    --dark-color: #212529;
    --text-color: #495057;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-family-barlow: 'Barlow', sans-serif;
    --font-family-poppins: 'Poppins', sans-serif;
}
html {
  margin: 0;
  padding: 0;
}


/* Correct Fix for fixed header: Add padding to the body to prevent content from being hidden */
body {
  font-family: var(--font-family-poppins);
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.6;
  margin: 0 !important; /* ✅ forcefully remove white space */
  padding: 0;
  overflow-x: hidden; /* also prevent horizontal scroll if any */
}
/* Header top styles */
.header-top {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

.header-top a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-top i {
  font-size: 1rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .header-top .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .header-top .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .header-top .social-icons {
    justify-content: flex-start;
    width: 100%;
    gap: 1rem;
  }

  .header-top i {
    font-size: 1rem;
  }

  .header-top a {
    font-size: 0.85rem;
  }
}
@media (max-width: 576px) {
  .header-top .container {
    align-items: center;
    text-align: center;
  }

  .header-top .contact-info,
  .header-top .social-icons {
    align-items: center;
    justify-content: center;
  }
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-barlow);
    font-weight: 700;
    color: var(--dark-color);
}

h2 {
    font-size: 2.5rem;
}

.display-4 {
    font-family: var(--font-family-barlow);
    font-weight: 800;
    line-height: 1.2;
}

.lead {
    font-weight: 400;
    font-size: 1.25rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0a58ca;
}

section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.badge.rounded-pill {
    font-weight: 600;
    padding: 0.5em 1em;
}

.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: var(--primary-color) !important;
}

.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
}


/* ======================================================
    2. Header & Navigation
   ====================================================== */
.main-header {
    background-color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-top {
    font-size: 0.9rem;
    background-color: var(--dark-color);
    color: var(--white);
}

.social-links a {
    color: var(--white) !important;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

.navbar-brand .brand-name {
    font-family: var(--font-family-barlow);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.navbar-nav .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem !important;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ======================================================
    3. Hero Section & Vertical Carousel
   ====================================================== */
.hero-section {
    position: relative;
    margin: 0;
    padding: 0;
}

#vertical-carousel {
    height: 100vh;
    margin: 0;
    padding: 0;
}

#vertical-carousel .carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center center;
    position: relative;
    margin: 0;
    padding: 0;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#vertical-carousel .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: left;
    z-index: 1;
}

.hero-content {
    color: var(--white);
    max-width: 650px;
}

.hero-content h1 {
    color: var(--white);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Vertical Indicators */
#vertical-carousel .carousel-indicators {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    margin: 0;
    z-index: 2;
}

#vertical-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    margin: 8px 0;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#vertical-carousel .carousel-indicators button.active {
    width: 12px;
    height: 12px;
    background-color: var(--white);
    opacity: 1;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    opacity: 0.8;
    animation: fadeIn 1s forwards;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.mouse .scroller {
    width: 6px;
    height: 12px;
    background: var(--white);
    border-radius: 3px;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}


/* ======================================================
    4. Problem & Solution Section
   ====================================================== */
.problem-list {
    display: grid;
    gap: 1.5rem;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(220, 53, 69, 0.05);
}

.problem-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dc3545;
    color: var(--white);
    font-size: 1.5rem;
}

.problem-content h5 {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.problem-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.solution-card {
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}

.solution-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 1;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.feature-box h6 {
    margin-bottom: 0;
    font-weight: 700;
}


/* ======================================================
    5. Product Section
   ====================================================== */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.badge-ribbon {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 1;
}

/* ======================================================
    6. Gallery Section
   ====================================================== */
.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-item {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    font-size: 2.5rem;
}


/* ======================================================
    7. Testimonial Section
   ====================================================== */
.testimonial-card {
    padding: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-quote i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.testimonial-rating .fa-star {
    color: #ffc107;
}

.splide__pagination__page {
    background: #ccc;
    transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
    background: var(--primary-color);
    transform: scale(1.2);
}


/* ======================================================
    8. Contact Section
   ====================================================== */
.contact-info-card {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    padding: 3rem;
}

.contact-info-card h4 {
    color: var(--white);
}

.contact-info-card a {
    color: var(--white);
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--secondary-color);
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

textarea.form-control {
    min-height: 150px;
}


/* ======================================================
    9. Footer
   ====================================================== */
.main-footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
}

.main-footer h5 {
    color: var(--white);
    font-family: var(--font-family-barlow);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--white);
}

.footer-social-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}


/* ======================================================
    10. Utility & Animations
   ====================================================== */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color) !important;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #0a58ca;
    transform: translateY(-3px);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ======================================================
    11. Responsive Design
   ====================================================== */
@media (max-width: 1200px) {
    .navbar-brand .brand-name {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-top: 60px; /* Adjust padding for smaller nav on mobile */
    }

    .main-header .navbar-nav {
        background-color: var(--white);
        border-radius: 8px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .main-header .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }

    .navbar-brand img {
        max-height: 45px;
    height: auto;
    }
    .navbar-collapse {
  width: 100%;
  background-color: #fff;
  z-index: 1001;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}


    .hero-content h1 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1rem;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .back-to-top {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .problem-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .problem-icon {
        margin-bottom: 0.5rem;
    }
    .gallery-grid {
        column-count: 1;
    }
    .contact-info-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    h2 {
        font-size: 2rem;
    }
    .display-4 {
        font-size: 2.5rem;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .lead {
        font-size: 1rem;
    }
    .navbar-brand img {
        max-height: 35px;
    }
    .header-top .text-end {
        text-align: center !important;
    }
}
.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.main-footer .footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.main-footer .footer-link:hover {
  color: #fff;
}

.footer-social-links a {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 12px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-social-links a:hover {
  color: var(--primary-color);
}
.footer-logo-white {
    filter: brightness(0) invert(1);
}

#site-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#site-loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #0d6efd;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

body.loading #site-loader {
  visibility: visible;
  opacity: 1;
}

body.loaded #site-loader {
  visibility: hidden;
  opacity: 0;
}
