/* Header and Navigation Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #f39c12;
  --text-color: #333333;
  --light-bg: #f8f9fa;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensuring the body fills the whole height */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 30px;
  background-color: rgba(44, 62, 80, 0.95);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  margin-right: 15px;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

.logo h1 {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  margin: 0;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
}

.navigation {
  display: flex;
  margin-right: 20px;
}

nav ul li {
  margin: 0 15px;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--accent-color);
}

nav ul li a:hover::after {
  width: 100%;
}

button.button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button.button:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.25);
}

.search-container {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.search-input {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 3px 0 0 3px;
  font-size: 1rem;
}

.search-button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-left: none;
  background-color: #333;
  color: white;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
}

.search-button i {
  font-size: 0.9rem;
}

.search-highlight {
  background-color: #fffb91;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: bold;
}


/* Mobile menu icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
  }
  
  .navigation {
    flex-direction: column;
    margin-right: 0;
    width: 100%;
  }
  
  nav ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 10px;
  }
  
  button.button {
    margin-top: 15px;
    width: 80%;
    max-width: 200px;
  }
}
