/* --------------- 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 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

@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: #1C1E28;
    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: 100vw;
      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 --------------- */
.section1 {
    background-color: #FFFFFF;
    color: #1C1E28;
    width: 100%;
}
.section1-content {
    display: flex;
    padding: 1em 1em 1em 1em;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}
.section1-content .left {
    width: 100%;
    text-align: left;
}
.section1-content h1 {
    font-weight: 600;
    font-size: 3rem;
    position: relative;
    z-index: 3;
    text-align: left;
}

.section2 {
    background-color: #FFFFFF;
    color: #1C1E28;
}
.section2-content {
    display: flex;
    flex-wrap: wrap;
    padding: 1em 1em 2em 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: left;
}
.section2-content a {
    color: #1C1E28;
    text-decoration: none;
    font-weight: 300
;
    transition: color 0.3s;
}
.section2-content a:hover {
    color: #b9b2aa;
}
    
.section22 {
    background-color: #FFFFFF;
    color: #1C1E28;
}
.section22-content {
    display: flex;
    flex-wrap: wrap;
    padding: 1em 1em 2em 1em;
    justify-content: space-between;
    align-items: left;
    width: 100%;
    margin: 0 auto;
}
.section22-content .left {
    flex: 1;
    width: 100%;
}
.section22-content h1{
    font-weight: 600;
    font-size: 3rem;
    position: relative;
    z-index: 3;
    text-align: left;
    
}

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

/* Section 2 - About */
.section2-content p {
    margin: 0.5em;
    text-align: left;
    font-size: 1.75rem;
    font-weight: 200;
}

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

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

/* Media query for mobile */
@media (max-width: 786px) {
    .section1 {
        padding: 0;
        background-color: #FFFFFF;
        color: #1C1E28;
    }
    .section1-content {
        flex-direction: column;
        text-align: left;
        overflow-x: hidden;
        width: 100%;
    }

    @media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-banner h1 {
        font-size: 3rem;
    }
    
    .category-header h2 {
        font-size: 2rem;
    }
    .category-nav {
        padding: 10px 0;
    }

    .category-nav a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 800px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-banner h1 {
        font-size: 3rem;
    }
    
    .category-header h2 {
        font-size: 2rem;
    }
    .category-nav {
        padding: 10px 0;
    }

    .category-nav a {
        font-size: 0.9rem;
        padding: 6px 12px;
        top: 82px;

    }
}
@media (max-width: 768px) {
    .category-nav {
        top: 60px; /* or whatever height your mobile header is */
    }
}
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .products-banner {
        height: 60px;
    }
    
    .products-banner h1 {
        font-size: 2.5rem;
    }
    
    .category-header h2 {
        font-size: 1.8rem;
    }
    .category-nav {
        padding: 8px 0;
    }

    .category-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 4px; /* less vertical space between items */
    }

    .category-nav li {
        margin: 0;
        width: auto;
    }

    .category-nav a {
        display: inline-block;
        font-size: 0.95rem;
        padding: 6px 12px;
        border-radius: 15px;
        background-color: transparent;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .category-nav a:hover,
    .category-nav a.active {
        background-color: #a5a5a5;
        color: #fff;
    }
}

@media (max-width: 400px) {
    .category-nav ul {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 1em;
        gap: 8px;
    }

    .category-nav li {
        display: inline-block;
        margin: 0;
    }
}
}

/* Section 3 - Compatibility */
.compatibile-ecosystems {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px; /* More space between grid items */
    background-color: #FFFFFF;
    align-items: center;
    justify-items: center;
    max-width: auto;
    margin: auto;
}  
  .compatibile-ecosystems img {
    width: 90%; /* Scale up relative to container */
    height: 60%;
    object-fit: contain;
  }
  
  @media (max-width: 1024px) {
    .compatibile-ecosystems {
      grid-template-columns: repeat(4, 1fr);
    }
    .compatibile-ecosystems img {
      width: 90%;
    }
  }
  
  @media (max-width: 640px) {
    .compatibile-ecosystems {
      grid-template-columns: repeat(4, 1fr);
    }
    .compatibile-ecosystems img {
      width: 80%;
    }
  }



/* 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;
    }
}