/* Font Definitions (Keep these as they are from your original code) */
@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat/static/Montserrat-Regular.ttf")
    format("truetype");
}

@font-face {
  font-family: "Ubuntu Sans";
  src: url("./fonts/Ubuntu_Sans/static/UbuntuSans-Regular.ttf")
    format("truetype");
}

@font-face {
  font-family: "Questrial";
  src: url("./fonts/Questrial-Regular.ttf") format("truetype");
}

/* Root Variables - Corrected nav-back-color syntax */
:root {
  --background-color: black;
  --font-family-1: "Questrial", sans-serif;
  --font-family-2: "Montserrat", sans-serif;
  --font-family-3: "Ubuntu Sans", sans-serif;
  --nav-back-color: #2a125b; /* Corrected syntax */
}

/* Base Navbar Styles (for larger screens - generally > 1366px) */
.navbar {
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 80px;
  padding: 0 20px;
}

.navbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(0, 0, 0, 0.253);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
  margin-left: 30px;
}

.logo a {
  text-decoration: none;
}

.logo a img {
  width: 150px;
  filter: brightness(70%);
  transition: filter 0.3s ease;
}

.logo a img:hover {
  filter: brightness(100%);
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-right: 30px;
}

.nav-right-box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 200px; /* Adjust for responsiveness below */
  width: 100%;
  margin: 5px;
}

.a-links {
  display: flex;
  align-items: center;
  gap: 150px; /* Adjust for responsiveness below */
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 50px; /* Adjust for responsiveness below */
}

.a-links a {
  font-family: var(--font-family-3);
  font-size: 0.9rem;
  position: relative;
  text-decoration: none;
  color: #8d8d8d;
  font-weight: bold;
  overflow: hidden;
}

/* Underline Animation */
.a-links .inside-a-link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: 0;
  left: 0;
  background-color: #f88c18;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.a-links .inside-a-link:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}

.a-links a.active::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}

/* Mega Dropdown Menu Styles */
.mega-menu {
  position: relative;
  z-index: 1000;
}

/* Background Layer (Grey border) */
.mega-bg {
  position: absolute;
  top: 120%;
  left: 50%;
  width: 700px; /* Adjust for responsiveness below */
  height: 310px; /* Adjust for responsiveness below */
  background: none;
  transform: translateX(-50%) rotate(-1.5deg);
  border-radius: 70px;
  border: 2px solid #35353557;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.3s ease, transform 0.3s ease;
}

/* Main Mega Content */
.mega-content {
  position: absolute;
  top: 130%;
  left: 50%;
  width: 700px; /* Adjust for responsiveness below */
  height: 310px; /* Adjust for responsiveness below */
  padding: 20px;
  border-radius: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  visibility: hidden;
  transition: visibility 0.3s ease;
  z-index: 2; /* Needs to be higher than mega-bg */
}

.mega-content::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 70px;
  left: 0;
  top: 0;
  z-index: -1;
  background: rgba(87, 87, 87, 0.329);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

}

.mega-content h2 {
  text-align: center;
  font-size: 2rem; /* Adjust for responsiveness below */
  margin-bottom: 15px;
  color: #dadada;
  font-family: var(--font-family-3);
  font-weight: 400;
}

/* Mega Menu Columns */
.mega-content-body {
  margin-top: 2%;
  margin-left: 2%;
  display: flex;
  justify-content: space-around;
  gap: 50px; /* Adjust for responsiveness below */
  width: 100%;
}

.mega-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  top: 8%;
}

.mega-column a {
  /* display: inline-block; */
  position: relative;
  line-height: 12px;
  color: #dadada;
  letter-spacing: -1px;
  text-decoration: none;
  font-family: var(--font-family-2);
}

.mega-link {
  display: inline;
  position: relative;
  text-decoration: none;
  width: fit-content;
  font-weight: 500;
  font-size: 0.7rem;
  color: black;
}

.mega-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 7px;
  background-color: #dadada;
}

.mega-link:hover::after {
  width: 100%;
}

.column-num {
  position: absolute;
  font-size: 8rem; /* Adjust for responsiveness below */
  margin-left: 10px;
  color: #00000027;
  top: -30%;
  font-weight: bold;
  font-family: var(--font-family-1);
}

/* Left Side Line for Columns */
.column-line {
  position: absolute;
  left: -5%;
  width: 2px;
  background-color: #dadada;
  opacity: 0.1;
}

.mega-column:nth-child(1) .column-line {
  height: 85%;
  top: 10%;
}
.mega-column:nth-child(2) .column-line {
  top: 10%;
  height: 65%;
}
.mega-column:nth-child(3) .column-line {
  top: 7%;
  height: 70%;
}

/* Show Mega Menu and Background on Hover */
.mega-menu:hover .mega-content,
.mega-menu:hover .mega-bg {
  opacity: 1;
  visibility: visible;
}

/* Button Container Styles */
.but-container { 
  display: flex;
  gap: 10px;
  border: 2px solid #515151;
  border-radius: 100px;
  width: 330px; /* Adjust for responsiveness below */
  justify-content: center;
  align-items: center;
  height: 45px;
  transition: border 1s ease;
}

.but-container:hover {
  border: 2px solid rgb(131, 129, 129);
}

.roll-btn {
  display: inline-block;
  width: 150px; /* Adjust for responsiveness below */
  height: 35px; /* Adjust for responsiveness below */
  background-color: transparent;
  color: #8d8d8d;
  text-decoration: none;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid #515151;
  font-family: Arial, sans-serif;
  font-size: 0.9rem; /* Adjust for responsiveness below */
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-buttons .but-container .no-back {
  transition: border 1s ease;
}

.nav-buttons .but-container .no-back:hover {
  border: 2px solid rgb(131, 129, 129);
}

.primary-btn {
  background: linear-gradient(to right, #ffbc12, #ff7d03);
  border: none;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-text-container {
  display: flex;
  flex-direction: column;
  height: 1.2em;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.btn-text-container span {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  font-family: var(--font-family-3);
}

/* Initial state */
.btn-text-container span:nth-child(1) {
  transform: translateY(0);
}

.btn-text-container span:nth-child(2) {
  transform: translateY(100%);
}

/* Hover effect applied to both button and link */
.roll-btn:hover .btn-text-container span:nth-child(1),
.primary-btn:hover .btn-text-container span:nth-child(1) {
  transform: translateY(-100%);
}

.roll-btn:hover .btn-text-container span:nth-child(2),
.primary-btn:hover .btn-text-container span:nth-child(2) {
  transform: translateY(-100%);
}

.menu-btn-icon {
  width: 30px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  opacity: 0.7;
  margin-left: 50px;
}

.menu-btn-icon:hover {
  animation: vibrate 0.3s ease alternate;
}

@keyframes vibrate {
  0% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-2px);
  }
  20% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(2px);
  }
  40% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-2px);
  }
  60% {
    transform: translateX(0);
  }
  70% {
    transform: translateX(2px);
  }
  80% {
    transform: translateX(0);
  }
  90% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

.language-dropdown {
  display: flex;
  gap: 10px;
  border-radius: 100px;
  width: 25px;
  justify-content: center;
  align-items: center;
}
.lang-btn {
  border: none;
}

/* --- Responsive Styles --- */

/* Large Desktops / Full HD Screens (1920px and above) - Base styles apply, no changes needed here unless specific overrides are desired */

@media (max-width: 1600px) {
  .navbar {
    height: 70px;
    padding: 0 15px;
  }

  .logo {
    margin-left: 20px;
  }

  .logo a img {
    width: 130px;
  }

  .container {
    margin-right: 20px;
  }

  .nav-right-box {
    gap: 100px; /* Reduced gap */
  }

  .a-links {
    gap: 80px; /* Reduced gap */
  }

  .a-links a {
    font-size: 0.85rem;
  }

  .nav-buttons {
    gap: 30px; /* Reduced gap */
  }

  .but-container {
    width: 300px; /* Slightly smaller button container */
    height: 40px;
  }

  .roll-btn {
    width: 140px; /* Slightly smaller buttons */
    height: 30px;
    font-size: 0.8rem;
  }

  /* Mega Menu adjustments for slightly smaller screens */
  .mega-bg,
  .mega-content {
    width: 600px; /* Even smaller width */
    height: 300px;
    border-radius: 50px; /* Adjust border radius */
  }

  .mega-content h1 {
    font-size: 1.8rem;
  }

  .mega-content-body {
    gap: 10px; /* Reduced gap between columns */
  }

  .mega-link {
    font-size: 0.65rem;
  }

  .column-num {
    font-size: 7rem;
    top: -25%;
  }
}

/* Medium Laptops / Large Tablets (1200px) */
@media (max-width: 1200px) {
  .navbar {
    height: 65px;
    padding: 0 10px;
  }

  .logo {
    margin-left: 15px;
  }

  .logo a img {
    width: 120px;
  }

  .container {
    margin-right: 15px;
  }

  .nav-right-box {
    gap: 60px; /* Further reduced gap */
  }

  .a-links {
    gap: 50px; /* Further reduced gap */
  }

  .a-links a {
    font-size: 0.8rem;
  }

  .nav-buttons {
    gap: 20px;
  }

  .but-container {
    width: 280px;
    height: 38px;
  }

  .roll-btn {
    width: 130px;
    height: 28px;
    font-size: 0.75rem;
  }

  /* Mega Menu adjustments */
  .mega-bg,
  .mega-content {
    width: 500px; /* Even smaller width */
    height: 300px;
    border-radius: 40px;
  }

  .mega-content h1 {
    font-size: 1.2rem;
  }

  .mega-content-body {
    gap: 10px;
  }

  .column-num {
    font-size: 5rem;
    top: -20%;
  }

  .mega-column .mega-link {
    font-size: 0.6rem;
    letter-spacing: normal;
  }
}

@media (max-width: 1024px) {
  .a-links,
  .nav-buttons {
    display: none;
  }

  .menu-btn-icon {
    display: block;
  }
}

