/* --------------- GENERAL STYLING ---------------- */
/* Include Source Sans Pro font */
@import url('https://fonts.googleapis.com/css?family=Source%20Sans%20Pro%3A400%2C600%7CSource%20Sans%20Pro%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&#038;display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px; /* 1rem = 16px */
  }
body {
    background-color: #1C1E28;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100vw;

}
.container {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;

}

@media (max-width: 768px) {
    html {
        font-size: 14px; /* 1rem = 14px */
      }
    .container {
        width: 100%;
        margin: 0 auto;
    }  
}

/* --------------- HEADER --------------- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100%;
    background-color: rgba(28, 30, 40, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
    z-index: 1000;
}

@media (max-width: 768px) {
    header {
        left: 0;
        right: 0;
        width: 100%;
        padding-left: 0.25em;
        padding-right: 0.25em;
    }
}

/* Logo */
header .logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-height: 40px;
    padding-left: 10px;
}
header .logo img {
    max-height: 40px;
    height: auto;
    width: auto;
    display: block;
}
@media (max-width: 768px) {
    header .logo {
        padding-left: 2%;
    }
    header .logo img {
        max-height: 35px;
        height: auto;
        width: auto;
        display: block;
    }
}
@media (max-width: 480px) {
    header .logo img {
        max-height: 35px;
    }
}

/* Navigation */
#main-menu {
    display: flex;
    align-items: center;
    gap: 1em;
}
nav ul {
    list-style: none;
    justify-content: center;
    display: flex;
    padding: 0;
}
nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.5rem;
    font-weight: 300;
    margin-right: 1.25em;
}
nav ul li a:hover {
    color: #B9B2AA;
}
@media (max-width: 1600px) {
    nav ul {
        justify-content: center;
    }
    nav ul li a {
        font-size: 1.2rem;
    }
    nav ul li a:hover {
        color: #b9b2aa;
    }
}

/* Buy Now Button */
.buy-now-link {
    margin-right: 1em;
}
.buy-now-btn {
    background-color: #FFFFFF;
    color: #1C1E28;
    border: none;
    border-radius: 50px; /* Creates pill shape */
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.7em 3.2em;
}
.buy-now-btn:hover {
    background-color: #f0f0f0; /* Slight variation on hover */
    transform: scale(1.05); /* Slight grow effect */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Mobile Hamburger Nav */
#hamburger-menu {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  text-align: right;
}
#hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 6px auto;
  background-color: white;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
#hamburger-menu:hover span {
  background-color: #FFFFFF;
}
#hamburger-menu.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}
#hamburger-menu.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
#hamburger-menu.open:hover span {
  background-color: #FFFFFF;
}
#hamburger-menu:not(.open) span {
  background-color: #FFFFFF;
}

@media (max-width: 1000px) {
  #hamburger-menu {
      display: block;
      position: absolute;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      padding-right: 10px;
      z-index: 2001; /* Higher than menu overlay */
  }

  #main-menu {
      flex-direction: row-reverse;
      position: relative;
      justify-content: flex-start;
      width: auto;
  }

  /* Updated dropdown menu - positioned below header */
  #main-menu ul {
      display: none;
      flex-direction: column;
      position: fixed; /* Changed to fixed positioning */
      top: 63px; /* Position below the header (adjust based on your header height) */
      left: 0;
      right: 0;
      width: 100%;
      background-color: #1C1E28;
      justify-content: center;
      align-items: center;
      border: none;
      border-radius: 0;
      box-sizing: border-box;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      z-index: 2000; /* Below hamburger button but above content */
      backdrop-filter: blur(10px);
  }

  #main-menu ul.show {
      opacity: 1;
      display: flex;
      animation: slideDown 0.3s ease-out;
  }

  /* Add slide-down animation */
  @keyframes slideDown {
      from {
          opacity: 0;
          transform: translateY(-10px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  #main-menu ul li {
      margin: 0.8em 0;
      display: flex;
      justify-content: center;
      width: 100%;
      max-width: 300px;
  }

  #main-menu ul li a {
      font-size: 1.3rem;
      text-align: center;
      display: block;
      width: 100%;
      padding: 0.5em 1em;
      margin: 0 auto;
      box-sizing: border-box;
      border-radius: 8px;
      transition: all 0.3s ease;
  }

  #main-menu ul.show li a:hover {
      color: #FFFFFF;
      background-color: rgba(255, 255, 255, 0.1);
      transform: scale(1.05);
  }

  /* Keep Buy Now Button styling exactly the same */
  .buy-now-link {
      order: 1;
      margin-right: 3em;
      display: flex;
      align-items: center;
  }

  .buy-now-btn {
      background-color: #FFFFFF;
      color: #1C1E28;
      border: none;
      border-radius: 50px;
      font-size: 1rem;
      font-weight: 300;
      cursor: pointer;
      transition: all 0.3s ease;
      text-transform: uppercase;
      letter-spacing: 1px;
      padding: 0.6em 3em;
  }

  .buy-now-btn:hover {
      background-color: #f0f0f0;
      transform: scale(1.05);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  /* Hamburger menu order */
  #hamburger-menu {
      order: 2;
  }
}

/* Additional styles for very small screens */
@media (max-width: 480px) {
  #main-menu ul {
      top: 63px; /* Adjust for smaller header on mobile */
  }

  #main-menu ul li {
      margin: 0.6em 0;
      max-width: 280px;
  }

  #main-menu ul li a {
      font-size: 1.2rem;
      padding: 0.4em 0.8em;
  }

  .buy-now-btn {
      font-size: 1rem;
      padding: 0.6em 2.2em;
  }
}



/* --------------- BODY CONTENT --------------- */
        .banner-slider {
            width: 100%;
            position: relative;
            overflow: hidden;
            background-color: #1C1E28;
            /* Remove fixed height and aspect-ratio - let content determine size */
        }

        .banner-container {
            display: flex;
            width: 500%; /* 5 slides = 500% */
            transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .banner-slide {
            width: 20%; /* Each slide takes 20% of container (100% / 5 slides) */
            position: relative;
            flex-shrink: 0;
        }

        .banner-background {
            position: relative;
            width: 100%;
            z-index: 1;
        }

        .banner-background img {
            width: 100%;
            height: auto; /* Let image maintain its natural proportions */
            display: block;
            object-fit: contain;
            object-position: center;
        }

        /* Desktop images - shown by default */
        .banner-background .desktop-img {
            display: block;
        }

        /* Mobile images - hidden by default */
        .banner-background .mobile-img {
            display: none;
        }

        /* Mobile images - show on mobile, hide desktop */
        @media (max-width: 768px) {
            .banner-background .desktop-img {
                display: none;
            }
            
            .banner-background .mobile-img {
                display: block;
            }
        }

        /* Navigation Arrows */
        .banner-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: #FFFFFF;
            font-size: 1.5rem;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
            user-select: none;
        }

        .banner-arrow:hover {
            background-color: rgba(255, 255, 255, 0.7);
        }

        .banner-arrow:active {
            transform: translateY(-50%) scale(0.95);
        }

        .banner-arrow.prev {
            left: 2rem;
        }

        .banner-arrow.next {
            right: 2rem;
        }

        /* Dot Navigation */
        .banner-nav {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 1rem;
            z-index: 10;
        }

        .banner-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .banner-dot.active {
            background-color: white;
            transform: scale(1.2);
        }

        .banner-dot:hover {
            background-color: rgba(255, 255, 255, 0.8);
        }

        .banner-dot::before {
            content: '';
            position: absolute;
            top: -8px;
            left: -8px;
            right: -8px;
            bottom: -8px;
            border-radius: 50%;
            background: transparent;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .banner-arrow {
                font-size: 1.5rem;
                width: 50px;
                height: 50px;
            }

            .banner-arrow.prev {
                left: 15px;
            }

            .banner-arrow.next {
                right: 15px;
            }

            .banner-nav {
                bottom: 1.5rem;
                gap: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            .banner-arrow {
                width: 40px;
                height: 40px;
                font-size: 1.1rem;
            }

            .banner-arrow.prev {
                left: 0.8rem;
            }

            .banner-arrow.next {
                right: 0.8rem;
            }

            .banner-nav {
                bottom: 1.2rem;
                gap: 0.6rem;
            }

            .banner-dot {
                width: 8px;
                height: 8px;
            }
        }

        @media (max-width: 320px) {
            .banner-arrow {
                width: 35px;
                height: 35px;
                font-size: 1rem;
            }

            .banner-arrow.prev {
                left: 0.5rem;
            }

            .banner-arrow.next {
                right: 0.5rem;
            }

            .banner-nav {
                bottom: 1rem;
                gap: 0.5rem;
            }
        }


        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }


/* Section 2 - About */
.section2 {
    background-color: #1C1E28;
    color: #FFFFFF;
}
.section2-content {
    display: flex;
    flex-wrap: wrap;
    padding: 1em 1em 1em 1em;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}
.section2-content .left {
    flex: 1;
    width: 100%;
}
.section2-content h1{
    font-weight: 600;
    font-size: 3rem;
    position: relative;
    z-index: 3;
    text-align: center; /* Ensures text is centered */
    
}
.section2-content p {
    margin: 1em;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 200;
    padding: 0em 3em 0em 3em;
}

@media (max-width: 786px) {
    .section2 {
        padding: 0 0 0 0;
        background-color: #1C1E28;
        color: #FFFFFF;
    }
    .section2-content {
        flex-direction: column;
        text-align: center;
        overflow-x: hidden;
        width: 100%;
        padding: 1em 1em 0em 1em;
    }
    .section2-content .left {
        display: flex;
        flex-direction: column;
        align-items: center; /* Ensures content is centered */
        text-align: center;
    }
    .section2-content h1 {
        font-size: 2rem;
        margin: 0 0 0 0; /* Added bottom margin */
        text-align: center;
    }
    .section2-content p {
        font-size: 1.25rem;
        font-weight: 300;
        margin: 1em 0; /* Consistent margin */
        width: 100%;
        text-align: center;
        max-width: 100%; /* Ensures text doesn't overflow */
    }
}

/* Section 3 - Category thumbnails */
.category-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal-width columns */
    grid-template-rows: repeat(2, 1fr); /* 2 equal-height rows */
    gap: 35px; /* Space between grid items */
    padding: 0em 2em 2em 2em;
    background-color: #1C1E28;
    max-width: 100%; /* Optional: limit max width */
    margin:  auto; /* Center the grid */
}

.category-thumbnail {
    position: relative;
    aspect-ratio: 1 / 1; /* Ensures square thumbnails */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers entire container */
    transition: transform 0.3s ease;
}

.category-thumbnail .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: height 0.3s ease;
}

.category-thumbnail .category-name {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center; /* Center the text */
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 0 10px; /* Add some padding for longer titles */
    width: 100%; /* Full width for centering */
}

/* Hover Effects */
.category-thumbnail:hover {
    transform: scale(1.0); /* Slight zoom on hover */
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    z-index: 10; /* Ensures hovered item is on top */
}

.category-thumbnail:hover img {
    transform: scale(1.1); /* Subtle image zoom */
}

.category-thumbnail:hover .overlay {
    height: 100%;
}

.category-thumbnail:hover .category-name {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5em;
        padding: 1.5em;
    }
}

@media (max-width: 768px) {
    .category-thumbnails {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        grid-template-rows: repeat(3, 1fr); /* 3 rows when condensed */
        gap: 1.5em;
        padding: 1.5em;
    }
}

@media (max-width: 480px) {
    .category-thumbnails {
        grid-template-columns: 1fr; /* Single column on mobile */
        grid-template-rows: repeat(6, 1fr); /* 6 rows on mobile */
        gap: 1em;
        padding: 1em;
    }
}
/* Section 4 - Compatibility */
.compatibility-section {
    background-color: #FFFFFF;
    padding: 2em 2em 2em 2em;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compatibility-section h2 {
    font-weight:600;
    font-size: 3rem;
    color: #1C1E28;
    margin-bottom: 0.5em;
    text-align: center;
}

.compatibility-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    margin: 0 auto;
}

.compatibility-item {
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 80px;
}

.compatibility-item img {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .compatibility-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0px;
    }

    .compatibility-section h2 {
        margin-bottom: 20px;

    }

    .compatibility-item {
        background: #FFFFFF;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 80px;
    }    
    
    .compatibility-item img {
        max-height: 60px;
        max-width: 180px;
        padding: 5px;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .compatibility-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0px;
    }
    
    .compatibility-section h2 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .compatibility-item {
        background: #FFFFFF;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 80px;
    }
    
    .compatibility-item img {
        max-height: 50px;
        max-width: 150px;
        object-fit: contain;
    }
}

@media (max-width: 633px) {
    .compatibility-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 5px;
    }

    .compatibility-section h2 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .compatibility-item {
        background: #FFFFFF;
        padding: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
    }
    
    .compatibility-item img {
        max-height: 50px;
        max-width: 150px;
        object-fit: contain;
    }
}
   
@media (max-width: 480px) {
    .compatibility-section {
    background-color: #FFFFFF;    
    padding: 1em 1em 1em 1em;
    }

    .compatibility-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .compatibility-section h2 {
        font-size: 2em;
    }

    .compatibility-item {
        background: #FFFFFF;
        padding: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
    }
    
    .compatibility-item img {
        max-height: 45px;
        max-width: 120px;
        object-fit: contain;
    }

}

/* Section 6 - Footer */
.footer {
    background-color: #414F47;
    color: #f0f0f0;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 auto;
    justify-content: space-between;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-column {
    min-width: 120px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .footer-column {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        gap: 0px;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    .footer-container {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 20px;
    }
}