/* Header Styles */
header {
  background-color: var(--background-color);
  padding: 1rem 5%;
  box-shadow: 0 2px 15px rgba(255, 105, 180, 0.2);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo Styles */
.logo {
  cursor: pointer;
}

.logo a {
  text-decoration: none;
}

.logo-text {
  position: relative;
}

.logo-main {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  position: relative;
}

/* Nav Styles */
nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #FF69B4, #8A2BE2);
  transition: width 0.3s ease;
}

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

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

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 150px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  animation: dropdown-fade 0.3s ease;
  transform-origin: top center;
  z-index: 1001;
}

@keyframes dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 105, 180, 0.1);
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Email Capture Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 1001;
  display: none;
}

.modal-content {
  position: relative;
  background-color: var(--background-color, #ffffff);
  margin: 10% auto;
  padding: 2rem;
  width: 80%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(255, 105, 180, 0.3);
  animation: modal-fade 0.3s ease;
}

@keyframes modal-fade {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color, #333);
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--primary-color, #FF69B4);
}

.modal-content h2 {
  color: var(--primary-color, #FF69B4);
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.modal-content p {
  margin-bottom: 1.5rem;
  color: var(--text-color, #333);
}

.highlight-text {
  color: var(--primary-color, #FF69B4) !important;
  font-weight: 600;
  font-style: italic;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color, #333);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(255, 105, 180, 0.2);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background-color: var(--input-bg, #fff);
  color: var(--text-color, #333);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color, #FF69B4);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.modal .btn-primary {
  background: linear-gradient(to right, #FF69B4, #8A2BE2);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.error-message {
  color: #e74c3c;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 6px;
  border-left: 3px solid #e74c3c;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .logo {
    margin-bottom: 0;
  }
  
  .search-bar {
    order: 3;
    width: 100%;
    margin: 10px 0 0 0;
    max-width: none;
  }
  
  nav {
    order: 2;
  }
  
  nav ul {
    margin-top: 0;
  }
  
  .logo-main {
    font-size: 1.6rem;
  }
  
  nav ul li {
    margin-left: 1rem;
  }
  
  /* Modal responsive adjustments */
  .modal-content {
    width: 90%;
    padding: 1.5rem;
    margin: 15% auto;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.8rem 4%;
  }

  .header-content {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
  }
  
  .logo {
    margin-bottom: 0;
  }
  
  nav {
    margin-left: auto;
  }
  
  nav ul {
    justify-content: flex-end;
  }
  
  nav ul li {
    margin-left: 0.8rem;
  }
  
  nav ul li a.btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .search-bar {
    margin-top: 0.8rem;
  }
  
  .search-bar input[type="text"] {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .search-bar button {
    padding: 8px 15px;
  }
  
  /* Modal responsive adjustments */
  .modal-content {
    width: 95%;
    padding: 1.2rem;
    margin: 20% auto;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.9rem;
  }
  
  .modal .btn-primary {
    padding: 0.7rem 1.2rem;
    width: 100%;
  }
  
  :root {
    --header-height: 130px; /* Adjusted for the wrapped search bar */
  }
}