
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* This kills the horizontal scroll */
}

/* Ensure the hero section doesn't push the page out */
.blind-hero {
    max-width: 100vw;
    overflow: hidden;
}/* Prevent horizontal scrolling and white space on the side */
html, body {
    width: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden; 
}

/* Ensure the header doesn't push the page out */
.header {
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1000;
}
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background-color: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 150px;
}

.navbar {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-right: 1rem;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.cta-button {
  background-color: #ff6600;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.cta-button:hover {
  background-color: #e65c00;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: left;
  justify-content: space-between;
  padding: 4rem 0;
  background: linear-gradient(to right, #fff, #f4f4f4);
}

.hero-content {
  max-width: 50%;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-button {
  padding: 0.75rem 1.5rem;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.hero-button:hover {
  background-color: #005fa3;
}

.hero-image img {
  max-width: 500px;
  border-radius: 8px;
}

/* Benefits */
.benefits {
  padding: 3rem 0;
  background-color: #fff;
}

.benefits-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-item {
  flex: 1;
  text-align: center;
}

.benefit-item img {
  height: 60px;
  margin-bottom: 1rem;
}

/* Featured Products */
.featured-products {
  padding: 3rem 0;
  background-color: #f1f1f1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.view-button {
  display: inline-block;
  margin-top: 1rem;
  background-color: #333;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
}

.view-button:hover {
  background-color: #111;
}

/* --- REVAMPED TESTIMONIALS --- */
#testimonials {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.testimonial-heading {
    letter-spacing: 1px;
    margin: 30px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-heading span {
    font-size: 1.1rem;
    color: #ff6600; /* Brand Color */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.testimonial-box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.testimonial-box {
    width: 350px;
    box-shadow: 2px 2px 20px rgba(0,0,0,0.05);
    background-color: #ffffff;
    padding: 25px;
    margin: 15px;
    border-radius: 10px;
    transition: all ease 0.3s;
}

/* Avatar Circle Logic */
.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    background-color: #333; /* Default Color */
}

/* Specific Avatar Colors for Variety */
.avatar-j { background-color: #ff6600; }
.avatar-m { background-color: #0077cc; }
.avatar-s { background-color: #28a745; }
.avatar-d { background-color: #6f42c1; }
.avatar-e { background-color: #e83e8c; }
.avatar-r { background-color: #fd7e14; }

.profile {
    display: flex;
    align-items: center;
}

.name-user {
    display: flex;
    flex-direction: column;
}

.name-user strong {
    color: #333;
    font-size: 1.1rem;
}

.name-user span {
    color: #888;
    font-size: 0.85rem;
}

.reviews {
    color: #f9d71c; /* Gold Stars */
}

.box-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.client-comment p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.testimonial-box:hover {
    transform: translateY(-10px);
    box-shadow: 2px 10px 30px rgba(0,0,0,0.1);
}

/* Mobile Responsiveness */
@media(max-width:790px){
    .testimonial-box{
        width: 100%;
    }
}

/* CTA */
.cta {
  padding: 3rem 0;
  background-color: #ee0c0c;
  color: white;
  text-align: center;
}

.cta-button {
  background-color: white;
  color: #ff6600;
}

.cta-button:hover {
  background-color: #f1f1f1;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background-color: #333;
  color: white;
  text-align: center;
}
/* Footer Logo Adjustment */
.footer-logo img {
  height: 200px; /* Adjust this value to your liking */
  width: auto;  /* Maintains aspect ratio */
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
/* CAROUSEL FOR 6 ITEMS */
/* --- CAROUSEL FOR 6 ITEMS --- */
.loop-images {
    position: relative;
    padding: 4rem 0;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.carousel-header h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

.carousel-track {
    /* The calculation for --left should be: -(width of item * total items) */
    --left: -1800px; 
    position: relative;
    width: 100%;
    height: 350px;
}

.carousel-track .carousel-item {
    position: absolute;
    width: 300px;
    height: 300px;
    left: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: scroll-left var(--time) linear infinite;
    /* This math spaces the 6 images out evenly */
    animation-delay: calc(var(--time) / var(--total) * (var(--i) - 1) - var(--time));
    will-change: left;
}

.carousel-track .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transform: rotateY(-35deg); /* Slightly less aggressive than the codepen */
    transition: 0.5s ease-in-out;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.carousel-track .carousel-item:hover img {
    transform: rotateY(0deg) scale(1.1);
    cursor: pointer;
}

@keyframes scroll-left {
    to {
        left: var(--left);
    }
}
.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
/* --- INTERACTIVE BLIND HERO CSS --- */
:root {
    --string-color: #555;
}

.blind-hero {
    position: relative;
    height: 100vh; /* Full screen height */
    width: 100%;
    overflow: hidden;
    background: #000;
}

.skyline-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.skyline-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#window_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Allows clicking through to the string */
}
#open_string {
    /* ... existing styles ... */
    pointer-events: auto !important; /* Forces the string to be clickable */
    z-index: 100; /* Ensures it is on the very top layer */
}

.blind_slat {
    width: 100%;
    height: 10.1vh; /* Slightly overlapping to prevent gaps */
    background: linear-gradient(to bottom, #eee 5%, #fff 20%, #ddd);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.1s ease-out;
    transform-origin: top;
    z-index: 11;
}

/* Vertical Strings */
#window_container:before, #window_container:after {
    content: '';
    width: 2px;
    height: 100%;
    background: var(--string-color);
    position: absolute;
    top: 0;
    z-index: 12;
}
#window_container:before { left: 5%; }
#window_container:after { right: 5%; }

/* The Pull Cord */
#open_string {
    position: absolute;
    width: 40px;
    height: 60px;
    background: linear-gradient(to bottom, #ddd, #fff, #ddd);
    right: 8%;
    top: 10%;
    border-radius: 50% 50% 40% 40%;
    cursor: grab;
    z-index: 100;
    pointer-events: auto; /* Makes cord clickable */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #888;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#open_string:before {
    content: '';
    width: 3px;
    height: 200vh;
    background: #ccc;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

#hero-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20; /* Higher than the slats (11) */
    text-align: center;
    width: 90%;
    pointer-events: none;
}

#hero-text h1 {
    font-family: 'Times New Roman', serif;
    font-size: clamp(2rem, 8vw, 5rem);
    transition: opacity 0.3s ease;
    position: absolute; /* Stack them on top of each other */
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* BLACK TEXT for when blinds are CLOSED */
.text-closed {
    color: #000;
    text-shadow: none;
    opacity: 1;
}

/* WHITE TEXT for when blinds are OPEN */
.text-open {
    color: #fff;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.7);
    opacity: 0;
}
/* --- NEW DROPDOWN NAVIGATION --- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  list-style: none;
  padding: 0.5rem 0;
  border-radius: 4px;
  top: 100%; /* Sits right below the parent */
}

.dropdown-content li a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
}

.dropdown-content li a:hover {
  background-color: #f1f1f1;
  color: #ff6600; /* Matches your brand orange */
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn {
  cursor: pointer;
}
/* --- PRODUCT PAGE SPECIFIC STYLES --- */

.product-page-hero {
    margin-bottom: 2rem;
}

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #888;
}

/* Filter Bar Icons */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    background: #fff;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 2rem 0;
}

.filter-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-icon img {
    height: 40px;
    width: auto;
}

/* Product Card Improvements */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
}

.product-card .badges {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6600;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Toggle Buttons */
.toggle-switch button.active {
    background: #ff6600;
    color: white;
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th {
    background-color: #333;
    color: white;
    text-align: left;
    padding: 15px;
}

.spec-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

/* Map/Trust Bar */
.local-trust {
    background-color: #f4f4f4;
    padding: 4rem 1rem;
    text-align: center;
    border-top: 2px solid #ff6600;
}
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        margin-right: 0;
    }

    .logo img {
        height: 100px; /* Smaller logo for mobile */
    }
}
@media (max-width: 480px) {
    .filter-controls {
        flex-wrap: wrap; /* Let buttons wrap to the next line */
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
        flex: 1 1 40%; /* Two buttons per row */
    }
}
/* --- MOBILE NAVIGATION LOGIC --- */
.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #333;
}

/* Hidden by default in the mobile menu, shown on desktop */
.mobile-only-cta { display: none; }

@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1001; }
    .desktop-cta { display: none; } /* Hide the floating button on mobile */
    .mobile-only-cta { display: block; } /* Show button inside the menu */

    .nav-links {
        position: fixed;
        left: -100%; /* Sits off-screen */
        top: 0;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        z-index: 1000;
        padding-top: 100px;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
    }

    .nav-links.active { left: 0; } /* Slides in when active */
    .nav-links li { margin: 1.5rem 0; }

    /* X Animation for Hamburger */
    .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); }
}
/* Final safety check for mobile overflow */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden; /* Keep the side-scroll blocked on phones */
    }

    .blinds-hero, .shades-hero, .hero-overlay, .nav-container, .header {
        max-width: 100vw !important;
        overflow-x: hidden !important; /* ONLY hide side-to-side, not up-and-down */
    }
}