html, body, * {
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: #111; /* Black for yellow/white/black theme */
  color: #ffd600;
  padding-top: 70px; /* Prevent content under header */
}

/* Scope the Header Section */
.custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(90deg, #111 30%, #222 100%);
  color: #ffd600;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
  animation: fadeInDown 1s;
  height: 70px;
  box-shadow: 0 2px 6px #ffd60022;
}

.custom-header.scrolled {
  background: linear-gradient(90deg, #000 20%, #111 100%);
  box-shadow: 0 4px 10px #ffd60022;
}

/* Logo Section */
.custom-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInLeft 1s;
}

.custom-header .logo img {
  height: 50px;
}

.custom-header .company-name {
  font-size: 24px;
  font-weight: bold;
  color: #ffd600;
  transition: color 0.3s;
}

.custom-header .company-name:hover {
  color: #fff;
}

/* Navigation Menu */
.custom-header .nav-menu {
  display: flex;
  animation: slideInRight 1s;
}

.custom-header .nav-menu ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-header .nav-menu li {
  margin: 0 15px;
  position: relative;
}

.custom-header .nav-menu a {
  color: #ffd600;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding: 2px 0;
}

.custom-header .nav-menu a:hover {
  color: #fff;
}

/* Hover Gradient Underline Animation */
.custom-header .nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd600, #fff);
  transition: width 0.3s, left 0.3s;
  border-radius: 2px;
}

.custom-header .nav-menu a:hover::after {
  width: 100%;
  left: 0;
}

/* Hamburger Menu */
.custom-header .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s;
}

.custom-header .hamburger.active {
  transform: rotate(90deg);
}

.custom-header .hamburger span {
  background: #ffd600;
  height: 3px;
  width: 25px;
  margin: 3px 0;
  transition: all 0.3s;
  display: block;
  border-radius: 2px;
}

.custom-header .hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.custom-header .hamburger.active span:nth-child(2) {
  opacity: 0;
}

.custom-header .hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .custom-header {
    padding: 10px 14px;
  }

  .custom-header .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 18px;
    background: #111;
    padding: 15px 22px 15px 22px;
    border-radius: 5px;
    box-shadow: 0 4px 14px #ffd60022;
    animation: slideIn 0.5s;
    min-width: 160px;
  }

  .custom-header .nav-menu.active {
    display: flex;
  }

  .custom-header .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-header .nav-menu li {
    margin: 12px 0;
  }

  .custom-header .hamburger {
    display: flex;
  }
}

/* Scroll Progress Indicator */
.custom-header .scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #ffd600, #fff 99%);
  width: 0%;
  z-index: 999;
  transition: width 0.25s;
}

/* Padding Adjustment for Content */
body {
  padding-top: 70px;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}