* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
  }

/* vvv === NAVIGATION BAR === vvv */

.navbar {
    color: white;
    background-color: #1f1f1f;
}

.content {
    background-color: #1f1f1f;
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 80vw;
    max-width: 80vw;  /* 80% of the viewport width */
    margin: 0 auto;      /* Centers it */
    padding: 0 2rem;     /* Adds spacing on the left & right */
    height: 5rem; 
}


.logo img {
    width: 150px;
    height: auto;
    flex: 1;
}

.search-box {
    display: flex;
    width: 50%;
    margin: 0 20px;
    position: relative;
    overflow: visible; /* Allow overflow for the triangle */
}

.search-box input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: #fcfdfc;
    color: black;
}

.search-box input:focus {
    outline: none;
}


.search-box button {
    background: #4d4d4d;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    color: #fcfdfc;
}

/* Search Result */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto; /* allow vertical scrolling */
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 0 0 5px 5px;
    z-index: 100;
    padding: 10px;
    margin-top: 10px;
    box-sizing: border-box; /* include padding in max-height */
    display: none;
}

/* Diamond shape pointer */
.search-results::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background-color: #2a2a2a;
    transform: rotate(45deg);
    z-index: -1;

    border-top: 1px solid #444;
    border-left: 1px solid #444;
}

/* Custom scrollbar for search results */

/* WebKit browsers (Chrome, Edge, Safari) */
.search-results::-webkit-scrollbar {
    width: 8px; /* scrollbar width */
}

.search-results::-webkit-scrollbar-track {
    background: #1f1f1f; /* darker track background */
    border-radius: 5px;
}

.search-results::-webkit-scrollbar-thumb {
    background-color: #555; /* thumb color */
    border-radius: 5px;
    border: 2px solid #2a2a2a; /* creates padding around thumb */
}

.search-results::-webkit-scrollbar-thumb:hover {
    background-color: #888; /* thumb color on hover */
}

/* Firefox */
.search-results {
    scrollbar-width: thin;
    scrollbar-color: #555 #1f1f1f;
}


.search-results p {
    padding: 5px 10px;
    margin: 0;
    cursor: pointer;
}

.search-results p:hover {
    background-color: #444;
}


/* Navbar-Right */
.navbar-right {
    display: flex;
    align-items: center;
}

.icon {
    margin-left: 30px;
    cursor: pointer;
    flex: 1;
}

#profile-icon {
    font-size: 24px;

}

#cart-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

#cart-icon:hover {
    transform: scale(1.3);
}

#about-icon {
    font-size: 25px;
    transition: transform 0.3s ease;
}

#about-icon:hover {
    transform: scale(1.3);
}

.no-link-style {
    color: inherit;       
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block; 
}

.no-link-style:hover {
    transform: scale(1.2);
}



/* Responsive Code */

/* Show search-toggle only on small screens */
.search-toggle {
  display: none; /* hide on desktop */
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}

@media (max-width: 950px) {
    .content {
    width: 90vw;
    max-width: 90vw;
    padding: 0 1rem;
  }

}


@media (max-width: 768px) {
  .search-box {
    display: none;
  }

  .search-toggle {
    display: flex;
  }

  .logo img {
    width: 120px;
  }

  .content {
    width: 95vw;
    max-width: 95vw;
    padding: 0 1rem;
  }


/* Mobile Search Container - scoped styles similar to desktop .search-box */
.mobile-search-container {
  display: flex;
  width: 100%;          /* Full width for mobile */
  position: relative;
  overflow: visible;    /* allow dropdown overflow */
  background-color: #1f1f1f; /* or inherit as needed */
}

/* Input inside mobile search */
.mobile-search-container input {
  width: 85%;
  margin-bottom: 10px;
  margin-left: auto;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px 0 0 5px;
  background-color: #fcfdfc;
  color: #000; /* black text for better contrast */
  outline: none;
}

/* Button inside mobile search */
.mobile-search-container button {
  background: #4d4d4d;
  color: white;
  border: none;
  padding: 15px 20px;
  margin-bottom: 10px;
  margin-right: auto;
  cursor: pointer;
  border-radius: 0 5px 5px 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon color inside mobile search button */
.mobile-search-container i {
  color: #fcfdfc;
}

/* Search results dropdown inside mobile search */
.mobile-search-container .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto; /* allow vertical scrolling */
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 0 0 5px 5px;
    z-index: 100;
    padding: 10px;
    margin-top: 10px;
    box-sizing: border-box; /* include padding in max-height */
}

/* Diamond shape pointer for dropdown */
.mobile-search-container .search-results::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 20px;
  width: 10px;
  height: 10px;
  background-color: #2a2a2a;
  transform: rotate(45deg);
  z-index: -1;

  border-top: 1px solid #444;
  border-left: 1px solid #444;
}

/* Individual search result items */
.mobile-search-container .search-results p {
  padding: 5px 10px;
  margin: 0;
  cursor: pointer;
}

/* Hover effect for search results */
.mobile-search-container .search-results p:hover {
  background-color: #444;
}

#mobileSearchResults{
    margin-top: 0px;
}

/* Mobile Search Close */
.mobile-search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}


#mobileSearchClear {
  position: absolute;
  right: 50px; /* a bit left of the search button */
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  top: 50%;
  transform: translateX(-250%) translateY(-72%);

  padding: 0;
  line-height: 1;
  user-select: none;

    font-size: 28px;       /* bigger size */
    font-weight: 300;      /* bolder */
    color: #000000;           /* maybe lighter for subtlety */


}
}



/* ^^^ === NAVIGATION BAR === ^^^ */



/* vvv === Main === vvv */

/* ! == About Us Banner == ! */
.about-banner {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  color: white;
}

/* This is the blurred background image */
.about-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background-image: url('../resources/AboutUsBanner.webp');
  background-size: 10%;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(0.5px);       /* <-- this adds the blur */
  transform: scale(11);   /* optional: zoom in a little so edges don’t show */
  z-index: 0;
}

/* This is the dark overlay to add contrast on top of the blur */
.about-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Content must be positioned above the overlays */
.banner-content {
  position: relative;
  z-index: 2;

  width: 80vw;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 3rem;
  
  text-align: justify;
}

/* Responsive Code */
@media (max-width: 768px) {
  .about-banner::before {
    background-size: cover; /* let the image cover the entire area */
    transform: scale(1);     /* remove the big zoom */
    background-position: center top; /* shift visible part upwards */
     filter: blur(5px);       /* <-- this adds the blur */
  }

  .about-banner {
    padding: 60px 0; /* reduce vertical padding for mobile */
  }

  .banner-content h1{
    margin-bottom: 20px;
  }
}



/* !== Contact Information ==! */

.contact-info-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  color: #333;
}

.contact-container {
  width: 80vw;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-description {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.contact-cards {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 100%;
  background-color: rgba(221, 221, 221, 0.726);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-info {
  font-size: 1rem;
  line-height: 1.4;
}

/* Manual responsiveness */
@media (max-width: 900px) {
  .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px){

    .section-description {
        text-align: justify;
    }
}


/* !== Our Team !== */
.our-team-container {
  width: 100%;
}

.our-team-content {
  width: 80vw;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 3rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Card container */
.team-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}


.team-card:hover {
  transform: translateY(-5px);
}

.team-card {
  position: relative;
  flex: 1 1 200px;
  max-width: 500px;
  overflow: hidden;
  cursor: pointer;
  color: white; /* text on image is usually white */
  text-decoration: none;
  transition: transform 0.3s ease;
}

.team-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Overlay for darkening the image for readability */
.team-card::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.4); /* adjust opacity */
  pointer-events: none;
  transition: background 0.3s ease;
}

/* Text container positioned at bottom */
.team-name {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.5); /* semi-transparent black background */
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  margin: 0;
  box-sizing: border-box;
  transition: background 0.3s ease;
}

/* Optional: On hover, lighten overlay */
.team-card:hover::before {
  background: rgba(0, 0, 0, 0.1);
}

.team-card:hover .team-name {
  background: rgba(0, 0, 0, 0.1);
}

#member1-image {
  object-position: center top; 
}

#member2-image {
  object-position: 0% 20%; 
}

#member3-image {
  object-position: 0% 12%; 
}

#member4-image {
  object-position: 0% 20%; 
}

/* ^^^ === ADD TO CART === ^^^ */
.cart-modal2 {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.cart-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

/* Add to cart content */
.cart-content {
    display: flex;
}

.cart-content-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 25px;
}

.checkout-button{
  background: #007BFF;
  color: white;
  padding: 0.5rem; /* Less vertical padding */
  height: 40px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.checkout-button:hover{
  background: #0056b3;
  transform: translateY(-2px);
}

.total{
    display: flex;
}

.checkout-section{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


.product-description {
  padding: 2rem;
  max-width: 1200px;
  margin: 20px auto;
  border: 1px solid #edeeee;
  text-align: justify;
}

.product-description li{
  margin-left: 15px;
}

/* Close button */
.close-cart {
    position: relative;
    cursor: pointer;
    float: right;
    font-size: 28px;
    font-weight: bold;
    z-index: 9999;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ^^^ === Main === ^^^ */












/* vvv === FOOTER === vvv */

/* Quality Footer */
.qualities{
    background-color: #f3f4f7;
}

.qualities-container {
    position: relative;
    width: 80vw;
    max-width: 80vw;  /* 80% of the viewport width */
    margin: 0 auto;      /* Centers it */
    padding: 0 3rem;     /* Adds spacing on the left & right */
    


    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Ensures equal height */
    gap: 50px;
}

.quality-box {
    display: flex;
    align-items: flex-start; /* Aligns content to the top */
    gap: 10px;
    max-width: 300px;
    min-height: 160px; /* Set a minimum height for consistency */
}

.quality-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distributes text evenly */
    height: 100%; /* Make sure it takes up full height */
    text-align: justify;
    gap: 20px;
    padding: auto;
    margin-top: 20px;

    font-family: "Kantumruy Pro", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.quality-title {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    margin: 0;
}

.quality-text {
    font-size: 14px;
    color: #333;
    margin: 0;
    flex-grow: 1; /* Ensures text stretches evenly */
    margin-bottom: 20px;
}

/* RESPONSIVE CODE */

@media (max-width: 1439px) {
    .qualities-container {
    width: 85vw;
    max-width: 85vw;  
    padding: 0 1rem;
  }

}

@media (max-width: 1199px) {
    .qualities-container {
    width: 90vw;
    max-width: 90vw;  
    padding: 0 1rem;
  }

}

@media (max-width: 900px) {
  .qualities {
    height: auto; /* allow it to grow */
    padding: 2rem 0;
  }

  .qualities-container {
    flex-direction: column;
    align-items: center; /* center the stacked boxes */
    width: 90vw;
    max-width: 90vw;
    padding: 0 1rem;
    gap: 2rem;
  }

  .quality-box {
    max-width: 100%;
    width: 100%;
    align-items: flex-start;
    min-height: auto;
  }

  .quality-content {
    text-align: left;
    margin-top: 0;
    gap: 10px;
  }

  .quality-title {
    font-size: 1rem;
  }

  .quality-text {
    font-size: 0.9rem;
  }
}


/* Primary Footer */

.footer-container-primary {
    display: flex;
    justify-content: space-around; /* changed from space-between */
    flex-wrap: wrap;
    gap: 1.5rem;
}



#primary-footer-links {
    background-color: #1f1f1f;
    padding: 2rem 0 1rem;
    font-size: 0.9rem;
    color: #c9c9c9;
    font-family: "Kantumruy Pro", sans-serif;
}

.footer-container-primary {
    max-width: 1200px;
    width: 90vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0 1rem;
}

/* Mascot Container */
#mascot-container {
    flex: 0 0 120px;
    align-self: center;
}

#Mascot {
    height: 230px;
    width: auto
}

/* Company Information */
#footer-rabyte-information {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-information-title h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 400;
}

.footer-information-content {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-information-content h6 {
    font-weight: 600;
    margin: 0;
    font-size: 15px;
}

.footer-information-content p {
    margin: 0;
    font-weight: 400;
    font-size: 15px;
    color: #a0a0a0;
}

/* Link Sections */
.footer-link {
    flex: 1;
    min-width: 150px;
    margin-top: auto;
    margin-bottom: auto;
}

.footer-link-title {
    margin-bottom: 1rem;
}

.footer-link-title h5 {
    font-family: "Kantumruy Pro", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.footer-link-list ul {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-link-list li {
    font-family: "Kantumruy Pro", sans-serif;
    font-weight: 400;
    font-size: 15px;
}

.footer-link-list a {
    text-decoration: none;
    color: #a0a0a0;
    transition: color 0.2s;
}

.footer-link-list a:hover {
    text-decoration: underline;
    color: #c9c9c9;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-size: 0.8rem;
    margin-top: 1rem;
    border-top: 1px solid #333;
}

/* RESPONSIVE ADJUSTMENTS */

/* Large tablets and small laptops */
@media (max-width: 1199px) {
    .footer-container-primary {
        width: 95vw;
        max-width: 95vw;
        padding: 0 1rem;
    }

    #Mascot {
        height: 100px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .footer-container-primary {
        justify-content: center;
        gap: 2rem;
    }

    #mascot-container {
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    #footer-rabyte-information,
    .footer-link {
        flex: 1 1 45%;
        min-width: 180px;
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    .footer-container-primary {
        flex-direction: column;
        max-width: 95vw;
        padding: 1rem;
        gap: 2rem;
    }

    #mascot-container {
        margin: 0 auto 1.5rem auto;
        width: 100px;
    }

    #Mascot {
        height: auto;
        max-width: 100%;
    }

    #footer-rabyte-information,
    .footer-link {
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }

    .footer-information-content {
        justify-content: center;
    }

    .footer-link-title {
        margin-bottom: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 400px) {
    .footer-container-primary {
        gap: 1.5rem;
    }

    #Mascot {
        height: 80px;
    }

    .footer-information-title h1 {
        font-size: 1.3rem;
    }

    .footer-link-title h5 {
        font-size: 1.1rem;
    }
}



/* Last Footer */
.footer-container-tertiary {
    max-width: 80vw;  /* 80% of the viewport width */
    margin: 0 auto;      /* Centers it */
    padding: 0 2rem;     /* Adds spacing on the left & right */
    height: 4rem; 
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #e8e9e9;
    align-items: center;
}

#copyright {
    align-content: center;
}

#copyright h6 {
    font-family: "Kantumruy Pro", sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: rgb(56, 47, 47); 
}

#payment-partnership {
    display: flex;
    gap: 10px;
}

.payment-card {
    height: 2em; /* Matches h6 text size */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white; /* optional, helps visualize the box */
    border-radius: 10px; /* optional, for rounded corners */
    overflow: hidden; /* prevents overflow of weirdly-sized images */
}

.payment-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* keeps aspect ratio, fits nicely inside */
}
/* ^^^ === FOOTER === ^^^ */

#f1{
    cursor: pointer;
}

#f2{
    cursor: pointer;
}

#f3{
    cursor: pointer;
}

#f4{
    cursor: pointer;
}