/* --- GLOBAL RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #000;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* --- HEADER & BACKGROUND SLIDESHOW --- */
#header {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #222; /* Fallback color */
}

.background-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    list-style: none;
    z-index: 0;
}

.background-slider li {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 15s infinite; 
}

/* Update these paths to your actual images */
.background-slider li:nth-child(1) { background-image: url('images/slide1.jpg'); animation-delay: 0s; }
.background-slider li:nth-child(2) { background-image: url('images/slide2.jpg'); animation-delay: 5s; }
.background-slider li:nth-child(3) { background-image: url('images/slide3.jpg'); animation-delay: 10s; }

@keyframes slideAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

#header .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Makes text readable over images */
    z-index: 1;
}

.container {
    padding: 10px 10%;
    position: relative;
    z-index: 2;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 140px;
}

nav ul {
    display: flex;
}

nav ul li {
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hide mobile icons by default on Desktop */
nav .fa-bars, 
nav ul .fa-square-xmark {
    display: none;
}

/* --- HERO TEXT --- */
.header-text {
    position: relative;
    margin-top: 20vh;
    max-width: 700px;
    color: #fff;
}

.header-text h1 {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 20px;
}

.header-text p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-primary{
    display: inline-block;
    background: #ff004f;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid #ff004f;
}



.btn-primary:hover{
    background: transparent;
    color: #ff004f;
    transform: translateY(-3px);
}

/* --- ABOUT US SECTION --- */
#about-us {
    padding: 100px 10%;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #222;
}

.about-content p {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

/* --- PRODUCTS SECTION (GRID FIX) --- */
#products {
    padding: 100px 10%;
    text-align: center;
    background: #f9f9f9;
}

#products h2 {
    font-size: 40px;
    margin-bottom: 40px;
}

.product-container {
    display: grid;
    /* This forces 4 items to stay on one line on desktop */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    justify-items: center;
    width: 100%;
}

.product-box {
    width: 100%;
    max-width: 250px;
    background: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-box img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 0, 79, 0.2);
}

.product-name {
    font-weight: 600;
    font-size: 18px;
}

/* --- CUSTOMER LOGO SLIDER --- */
.customers {
    padding: 80px 0;
    background: #fff;
    text-align: center;
    overflow: hidden;
}

.customers h2 {
    margin-bottom: 50px;
    font-size: 30px;
}

.customer-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.customer-track {
    display: flex;
    width: calc(250px * 10); /* Adjust width based on logo count */
    animation: scroll 25s linear infinite;
}

.customer-track img {
    width: 150px;
    height: 80px;
    object-fit: contain;
    margin: 0 40px;
    filter: grayscale(100%);
    transition: 0.3s;
    opacity: 0.6;
}

.customer-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-230px * 5)); }
}

/* --- FOOTER & DOWNLOAD BUTTON --- */
.footer {
    background: #1a1a1a;
    color: #efefef;
    padding: 80px 10% 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 25px;
    color: #ff004f;
    border-bottom: 2px solid #ff004f;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #bbb;
}

/* Styled Download Button */
.download-btn {
    display: inline-block;
    background: #ff004f;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid #ff004f;
}

.download-btn:hover {
    background: transparent;
    color: #ff004f;
    transform: translateY(-3px);
}

.download-btn i {
    margin-right: 8px;
}

/* Contact Form */
#contact-form input, 
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 5px;
}
.send-btn{ 
    display: inline-block;
    background: #ff004f;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid #ff004f;
}
    
.send-btn:hover { 
    background: transparent;
    color: #ff004f;
    transform: translateY(-3px);
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablets & Small Laptops */
@media (max-width: 1024px) {
    .header-text h1 { font-size: 45px; }
    
    .product-container {
        grid-template-columns: repeat(2, 1fr); /* 2x2 layout */
        gap: 30px;
    }
}

/* Mobile Devices */
@media (max-width: 900px) {
    /* Side Menu Logic */
    nav .fa-bars {
        display: block;
        font-size: 25px;
        color: #fff;
        cursor: pointer;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        background: #ff004f;
        flex-direction: column;
        padding-top: 50px;
        z-index: 10;
        transition: 0.5s;
    }

    nav ul li {
        margin: 20px;
    }

    nav ul .fa-square-xmark {
        display: block;
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 25px;
        cursor: pointer;
    }
    
    #about-us {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Phones */
@media (max-width: 600px) {
    .product-container {
        grid-template-columns: 1fr; /* Stack 1 by 1 */
    }
    
    .header-text h1 {
        font-size: 35px;
    }
    
    .footer-container {
        flex-direction: column;
    }
}

/* Friendly Renovation Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.popup-box {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: 85%;
  font-family: "Segoe UI", sans-serif;
  animation: fadeInUp 0.4s ease;
}

.popup-box h2 {
  color: #ff004f;
  margin-bottom: 12px;
}

.popup-box p {
  color: #444;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 22px;
}

.popup-box button {
  background: #ff004f;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s;
}

.popup-box button:hover {
  background: #0056b3;
  transform: scale(1.05);
}