/* Basic reset for links and lists */
/* * {
  box-sizing: border-box;
  
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
} */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}
/* body {
  font-family: Arial, sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  min-height: 100vh;
} */

a,
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Navbar layout */
.navbar {
  width: 100%;
  background: #000;
  border-bottom: 1px solid #e6e6e6;
  position: relative;
  z-index: 1000;
  top: 0;
  position: fixed;
  font-family: Arial, sans-serif;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo {
  height: 83px;
  width: 83px;
  display: block;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}
.brand-text:hover {
  color: #1abc9c;
  transform: scale(1.1);
  /* transition-duration: ease-in 1s; */
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}
.hamburger::after {
  top: 7px;
}

/* When expanded -> transform into X */
.nav-toggle.open .hamburger {
  background: transparent;
}
.nav-toggle.open .hamburger::before {
  transform: rotate(45deg) translate(4px, 4px);
  top: 0;
}
.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg) translate(4px, -4px);
  top: 0;
}

/* Nav links - desktop */
.nav-link {
  position: relative;
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Create underline effect */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background-color: #34d399;
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: #fff;
  padding: 8px 6px;
  border-radius: 4px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link.active {
  text-decoration: none;
  color: #0b66ff;
}

.nav-link:hover,
.dropdown-link:hover {
  color: #34d399;
}

/* Dropdown (desktop style) */
.services {
  position: relative;
}
.dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(12, 20, 30, 0.06);
  border-radius: 6px;
  padding: 8px 6px;
  display: none;
}
/* hiiii----------- */
/* ====== Services Main Link ====== */
.navbar .nav-link.services {
  position: relative;
  transition: color 0.3s ease;
}

/* Underline effect */
.navbar .nav-link.services::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background-color: #28a745; /* green underline */
  transition: width 0.3s ease;
}

/* Active (clicked) state */
.navbar .nav-link.services.active {
  color: #28a745; /* green text */
}

.navbar .nav-link.services.active::after {
  width: 100%;
}

/* ====== Dropdown Items ====== */
.dropdown-menu a {
  position: relative;
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover effect */
.dropdown-menu a:hover {
  color: #28a745;
}

/* individual dropdown links */
.dropdown li {
  margin: 4px 0;
}
.dropdown-link {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 4px;
  color: #111;
}

/* --- FIX for dropdown vanish on hover --- */
@media (min-width: 900px) {
  .services {
    position: relative;
  }

  .dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
  }

  /* Keep dropdown visible while hovering over parent OR dropdown */
  .services:hover > .dropdown,
  .services:focus-within > .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* MOBILE / tablet: stack */
@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 16px;
    left: 16px;
    top: 64px;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(12, 20, 30, 0.08);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-links > li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 12px 8px;
    width: 100%;
    color: #000;
    text-align: left;
  }

  /* For mobile: dropdown becomes accordion inside the stacked menu */
  .dropdown {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    padding-left: 12px;
    padding-right: 12px;
    display: none;
  }

  .dropdown.open {
    display: block;
  }

  .service-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
  }

  .caret {
    transition: transform 0.2s ease;
  }
  .service-toggle[aria-expanded="true"] .caret {
    transform: rotate(180deg);
  }
}

/* About section */
.about-section {
  max-width: 1000px;
  margin: auto;
  margin-top: 50px;
  text-align: center;
  padding: 30px 20px;
}

.about-section h2 {
  color: black;
  font-size: 2rem;
  margin-bottom: 15px;
}

.about-section p {
  margin-bottom: 25px;
  color: #374151;
  font-size: 1.2rem;
}

/* Skills section */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.skill-box {
  background: #559571;
  border: 3px solid goldenrod;
  border-radius: 10px;
  width: 200px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 2px 6px 12px black;
}

.skill-box h3 {
  color: white;
  font-size: 1.6rem;
}

.skill-box p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: black;
  font-weight: 500;
}

/* Founder box */
.founder-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
  background-color: white;
  overflow: hidden;
  padding: 20px;
}

/* Founder box */
.founder-box {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: floatBox 6s ease-in-out infinite;
  transition: all 0.4s ease;
}

/* Floating infinite animation */
@keyframes floatBox {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Hover animation */
.founder-box:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 20px 40px rgba(0, 128, 255, 0.3);
  background: linear-gradient(145deg, #ffffff, #f0f8ff);
}

/* Image styling */
.founder-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #007bff;
  margin-bottom: 15px;
  transition: transform 0.5s ease;
}

/* Image hover rotate effect */
.founder-box:hover .founder-img {
  transform: scale(1.1);
  box-shadow: 0 5px 20px #34d399;
}

.founder-box:hover .founder-role {
  color: #34d399;
}

/* Text styling */
.founder-name {
  font-size: 1.3rem;
  color: #007bff;
  margin: 8px 0 5px;
  font-weight: 500;
}

.founder-role {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
}

.founder-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .founder-box {
    max-width: 90%;
    padding: 30px 20px;
  }

  .founder-img {
    width: 100px;
    height: 100px;
  }

  .founder-name {
    font-size: 1.1rem;
  }

  .founder-quote {
    font-size: 0.9rem;
  }
}

/* Founder box */

/* 🌐 Responsive Design */
@media (max-width: 768px) {
  .about-section {
    padding: 20px;
  }

  .skills-container {
    flex-direction: column;
    align-items: center;
  }

  .skill-box {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .about-section h2 {
    font-size: 1.6rem;
  }

  .skill-box h3 {
    font-size: 1.3rem;
  }

  .founder-box {
    width: 90%;
    padding: 20px;
  }
}

/* Boxes grid */
.box-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Each box */
.about-box {
  background: #eeebeb;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: left;
}

.about-box:hover {
  transform: translateY(-5px);
  background: rgb(156, 234, 192);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Icon */
.about-box .icon {
  color: #212121;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Title and Text */
.about-box h3 {
  /* color: #2563eb; */
  color: #212121;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.about-box p {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.5;
}

/* 🌐 Responsive Design */
@media (max-width: 992px) {
  .box-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .box-container {
    grid-template-columns: 1fr;
  }

  .about-box {
    text-align: center;
  }
}

/* footer part ------*/
.footer {
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #222; /* Dark background color (close to the image) */
  padding-top: 40px;
  margin-top: 40px; /* Top padding for the main section */
}

.footer a {
  color: #ccc; /* Slightly lighter white for links */
  text-decoration: none; /* Remove underline */
  transition: color 0.3s ease; /* Smooth hover effect */
}

.footer a:hover {
  color: #fff; /* White on hover */
}

.footer ul {
  list-style: none; /* Remove bullet points */
  padding: 0;
  margin: 0;
}

/* --- Footer Top Section Layout (Uses Flexbox) --- */
.footer-top {
  display: flex;
  justify-content: space-between; /* Puts space between the logo and link columns */
  max-width: 1200px; /* Max width for content (adjust as needed) */
  margin: 0 auto; /* Center the content */
  padding: 0 20px 40px; /* Horizontal padding and bottom padding */
  border-bottom: 1px solid #333; /* Separator line from the image */
}

/* --- Logo Styling --- */
.footer-logo {
  display: flex;
  align-items: center; /* Vertically align logo image and text */
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}

.logo-img {
  height: 85px; /* Adjust size as needed */
  width: 85px;
  margin-right: 8px;
  /* You would need to ensure the path/to/byteiq-logo.png exists or replace with an SVG/text logo */
}

/* --- Footer Links Columns Container --- */
.footer-links-container {
  display: flex;
  gap: 80px; /* Space between the link columns */
}

.column-title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
  text-transform: uppercase;
}

.footer-column li {
  margin-bottom: 8px; /* Space between list items */
}

/* --- Footer Bottom (Copyright Bar) --- */
.footer-bottom {
  background-color: #1a1a1a; /* Slightly darker or same as top, based on image */
  text-align: center;
  padding: 15px 20px;
  font-size: 0.9em;
  color: #aaa; /* Lighter color for copyright text */
}

/* --- Responsiveness: Mobile/Tablet View --- */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column; /* Stacks logo and links vertically */
    padding-bottom: 30px;
  }

  .footer-links-container {
    flex-direction: column; /* Stacks the three link columns vertically */
    gap: 0; /* Remove horizontal gap */
    margin-top: 30px; /* Space between logo and first column */
  }

  .footer-logo {
    margin-bottom: 20px; /* Space below the logo */
  }

  .footer-column {
    margin-bottom: 20px; /* Space between stacked columns */
  }
}

/* --- Responsiveness: Small Mobile View (optional) --- */
@media (max-width: 480px) {
  .footer-top {
    padding: 0 15px 30px;
  }
}
