/* navbar.css */

.nav-links *, .nav-links {
  
  margin: 0;

  padding: 0;

  box-sizing: border-box;

}

/* Navbar styles */

.navbar {

  position: fixed;

  top: 0;

  left: 0;

  right:0;

  /* width: 100%; */

  background: var(--navbar);

  backdrop-filter: blur(10px);

  z-index: 10;

  padding: 0.5rem 1rem;

  box-shadow: 0 2px 6px rgba(0,0,0,0.5);

}



.navbar .container {

  max-width: 1100px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

}



.logo {

  font-weight: bold;

  font-size: 1.5rem;

  color: var(--text-color);

  text-decoration: none;

  user-select: none;

}

.light-theme .logo {
  filter:invert(1);

}



/* Logo styles */

.logo img {

  height: 40px; /* default desktop size */

  width: auto;  /* keep proportions */

  display: block;

}



/* Responsive adjustments */

@media (max-width: 768px) {

  .logo img {

    height: 30px; /* smaller logo for tablets */

  }

}



@media (max-width: 480px) {

  .logo img {

    height: 20px; /* smaller logo for mobile phones */

  }

}



.nav-links {

  list-style: none;

  display: flex;

  gap: 1.5rem;

}



.nav-links a {

  color: var(--text-color);

  text-decoration: none;

}



.nav-links li a {

  color: var(--text-color);

  text-decoration: none;

  font-weight: 500;

  transition: color 0.3s ease;

}



.nav-links li a:hover {

  color: var(--accent);

}



.mega-parent {

  position: static; /* important: so mega menu can go full width */
  align-content: center;

}

@media (max-width: 768px) {

.mega-parent{
  border-bottom: 1px solid #222;
  padding-bottom:1vh;

}
.mega-parent > a {
  text-transform: uppercase;
  
}
}


.mega-menu {

  position: absolute;

  top: 100%;

  left: 0;

  right: 0;                /* full width */

  background: var(--bg-content-color);

  padding: 2rem 3rem;

  display: none;

  box-shadow: 0 4px 16px rgba(0,0,0,0.1);


  max-height: calc(100vh - var(--header-height)); 
  overflow-y: auto;
}


.mega-parent.open .mega-menu {

  display: block; /* show only when .open is added */

}



.mega-inner {

  max-width: 1200px;       /* optional: keep content centered */

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 2rem;

}



.mega-column h4, .mega-inner h4 {

  margin-bottom: 0.5rem;

  color: var(--text-color);

  font-size: 1.1rem;

  text-align: left;      /* align heading text to left */

}

@media (max-width: 768px) {


  .mega-column h4, .mega-inner h4 {

  text-align: center;
   
  }
}




.mega-column a, .mega-inner a {

  display: block;

  margin: 0.3rem 0;

  color: #555;

}



.mega-item {

  display: flex;

  justify-content: flex-start; /* text left, image right */

  align-items: flex-start;        /* align top of text with image */

  gap: 1rem;                   /* space between image and text */

  /* margin-bottom: 1.5rem; */
  margin-bottom:0.5rem;

}

.text-group p {
  color: var(--darkened-text-col);
  padding-bottom:5px;
}

.specs-mobile {
  visibility: hidden;
  display: none;
}

@media (max-width: 768px) {

  .specs-mobile {

   visibility: visible;
   display:block;

  }
}
.specs-desktop{
  color:var(--darkened-text-col);
  visibility: visible;
}

@media (max-width: 768px) {

  .specs-desktop {

   visibility: hidden;
  }
}


.model-section{
  margin-bottom: 1.5rem;
}


.text-group a {

  display: block;        /* stack links vertically */

  color: #fff;

  text-decoration: none;

  margin-bottom: 0.3rem;

  font-weight: 500;

}



.text-group a:hover {

  color: var(--accent);

}



.image-group img {

  width: auto;   /* adjust size as needed */

  height: 120px;

  border-radius: 4px; /* optional styling */

}



/*.mega-parent:hover .mega-menu,

.mega-parent:focus-within .mega-menu {

  display: block;

}*/



@media (max-width: 768px) {

  /* Override mega menu on mobile */

  .mega-menu {

    position: static;    /* keep it inside flow */

    display: none;       /* hidden until opened */

    /* background: rgba(0,0,0,0.6); */
    background: rgba(0,0,0,0);
    padding: 1rem;

    box-shadow: none;
    width: 100%;


    max-height: none;
    overflow: visible;

  }



  /* When parent is "open", show the menu */

  .mega-parent.open .mega-menu {

    display: block;

  }

  

  .mega-item {

    flex-direction: column; /* stack image above text */

    align-items: center;    /* center image and text horizontally */

    text-align: center;     /* center text inside */

  }

  

  .mega-column {

	  width: 100%; 

	  display: flex;

	  flex-direction: column; /* stack items inside column vertically */

	  gap: 0.5rem;

  }

	

  /* Make inner grid vertical for mobile */

  .mega-inner {

    display: flex;

    flex-direction: column;

    gap: 1rem;

	width: 100%;            /* make it stretch full width */

    box-sizing: border-box; /* include padding in width */

  }

  

  .image-group img {

	width: 100%;  /* fill parent width */

	height: auto; /* maintain aspect ratio */

	/* max-width: 200px; /* optional limit */

  }

}



/* Language selector */

.custom-lang-select {

  position: relative;

  display: inline-block;

  background:var(--custom-lang-select);

  color: var(--text-color);

  font-weight: 600;

  padding: 0.4rem 1rem 0.4rem 0.8rem;

  border-radius: 6px;

  cursor: pointer;

  user-select: none;

  min-width: 120px;

  outline: none;

  font-size: 0.9rem;

  box-sizing: border-box;

}



.selected-lang {

  pointer-events: none;

}



.custom-lang-select:focus {

  background: rgba(0, 0, 0, 0.95); 

  outline: 2px solid var(--accent);

}



.lang-options {

  list-style: none;

  padding: 0.3rem 0;

  margin: 0;

  position: absolute;

  top: calc(100% + 4px);

  left: 0;

  right: 0;

  background: rgba(0, 0, 0, 0.85);

  border-radius: 6px;

  box-shadow: 0 4px 8px rgba(0,0,0,0.7);

  max-height: 150px;

  overflow-y: auto;

  z-index: 20;

}



.lang-options[hidden] {

  display: none;

}


.lang-options li {

  padding: 0.4rem 1rem;

  cursor: pointer;

  transition: background-color 0.2s ease;

}



.lang-options li:hover,

.lang-options li[aria-selected="true"] {

  background-color: #ffcc00;

  color: black;

  font-weight: 700;

}


/* Hamburger menu button (hidden on large screens) */

.nav-toggle {

  display: none;

  background: none;

  border: none;

  cursor: pointer;

}



.hamburger,

.hamburger::before,

.hamburger::after {

  content: '';

  display: block;

  background: white;

  height: 3px;

  width: 25px;

  border-radius: 3px;

  position: relative;

  transition: all 0.3s ease;

}



.hamburger::before,

.hamburger::after {

  position: absolute;

}



.hamburger::before {

  top: -8px;

}



.hamburger::after {

  top: 8px;

}



/* Responsive menu - mobile */

@media (max-width: 768px) {

  .nav-links {

    position: fixed;

    top: var(--header-height);

    right: 0;

    /* background: rgba(0,0,0,0.95); */
    background: var(--bg-content-color);

    height: calc(100vh - var(--header-height));

    width: 100%;/*200px;*/

	overflow-y: auto;

	-webkit-overflow-scrolling: touch;

  /* margin:0; */



	/* WebKit browsers */

	scrollbar-width: none; /* Firefox */

	-ms-overflow-style: none; /* IE 10+ */

		

    display: flex;               /* make sure it's flex */

    flex-direction: column;      /* vertical stack */

    /* align-items: flex-end;       align items to the right */

    text-align: center;           /* make the text inside links right-aligned */

	

    gap: 1rem;

    padding: 1rem;

    transform: translateX(100%);

    transition: transform 0.3s ease;

    box-shadow: -2px 0 10px rgba(0,0,0,0.7);

  }

  

  .nav-links::-webkit-scrollbar {

  width: 0;

  background: transparent;

  }

  .nav-links.active {

    transform: translateX(0);

  }

  .nav-toggle {

    display: block;

  }

}

/* Default: show desktop selector, hide mobile one */

.desktop-lang { display: block; }

.mobile-lang { display: none; }



@media (max-width: 280px) {

  /* On small screens: hide desktop, show mobile */

  .desktop-lang { display: none; }

  .mobile-lang { display: block; }

}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}

.social-links {
  /* display: flex; *//*puts the links to the left*/
  align-items: center;
}

.social-links img {
  width: 24px;
  height: 24px;
  filter: invert(1) brightness(0.9);
  transition: transform 0.2s, filter 0.3s;
}

.social-links a {
  display: inline-block;
  padding: 10px;
}

.social-links img:hover {
  transform: scale(1.2);
  filter: invert(1) brightness(1.2);
}

ul.nav-links.active li.mobile-only.social-links {
  /*margin-top: auto;*/ /* Pushes the element to the bottom of the flex container */
  /*align-self: flex-start;*/ /* Ensures it stays to the left */
}

li p {
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 0;
}

/* Default: show on desktop */
.mega-title {
  display: block;
}

/* Hide on mobile */
@media (max-width: 768px) {
  .mega-title {
    display: none;
  }
}

.nav-links li p {
  font-weight:500;
  font-size:17px;
}