/* Global reset & font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

/* Navbar */
.navbar {
  width: 100%;
  height: 50px;
  background-color: black;
  position: fixed;
  top: 0;
  z-index: 10;
}
.navbar-container {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 100%;
  color: #fff;
}
.logo-container {
  flex: 1;
  display: grid;
  align-items: center;
}
.logo {
  width: 100px;
  height: 30px;
  cursor: pointer;
}
.profile-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.profile-text {
  font-size: 16px;
  font-weight: bold;
}
.profile-picture {
  width: 30px;
  height: 30px;
  cursor: pointer;
  object-fit: cover; /* Square appearance */
  transition: all 0.3s ease-in-out;
}
.profile-picture:hover {
  transform: scale(1.05);
}

/* Main Container */
.container {
  background-color: #151515;
  min-height: 100vh;
  color: #fff;
  margin-top: 50px; /* Offset for navbar */
}

/* Featured Content (Hero Banner) */
.featured-content {
  height: calc(100vh - 50px); /* Full height minus navbar */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.featured-title {
  width: 80%;
  max-width: 600px;
  line-height: 1.2;
  color: #fff;
  font-size: 45px;
  margin-bottom: 15px;
}
.featured-desc {
  color: #fff;
  font-size: 25px;
  margin-bottom: 25px;
}
.featured-button {
  background-color: #f40612;
  color: #fff;
  font-size: 20px;
  padding: 15px 30px;
  border-radius: 10px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.featured-button:hover {
  transform: scale(0.9);
}
.btn-icon {
  margin-left: 0;
}

/* Email Form */
.email-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.email-input {
  padding: 12px 15px;
  border-radius: 5px;
  border: none;
  width: 250px;
  font-size: 1rem;
  outline: none;
}

/* Responsive Mobile Friendly */
@media screen and (max-width: 600px) {
  .navbar-container {
    padding: 0 15px;
    justify-content: space-between;
  }
  .profile-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between "Teshrij" and the profile icon */
  }
  .profile-text {
    font-size: 14px;
    font-weight: 500;
  }
  .profile-picture {
    width: 25px; /* Slightly smaller on mobile */
    height: 25px;
  }
  .container {
    margin-top: 50px; /* Maintain navbar offset */
  }
  .featured-content {
    height: 60vh;
  }
  .featured-title {
    font-size: 1.8rem;
  }
  .featured-desc {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  .featured-button {
    font-size: 16px;
    padding: 12px 20px;
  }
}

/* Loading Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px; /* Spacing between spinner and text */
}

/* Spinner Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }}


/* Submit Button */
button {
  background-color: #f40612; /* Default red */
  color: #fff;
  font-size: 20px;
  padding: 15px 30px;
  border-radius: 10px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:disabled {
  background-color: #d90410; /* Slightly darker red */
  cursor: not-allowed;
}

/* Custom Alert Box */
#alert-box {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 15px 20px;
  background-color: #e0e0e0; /* Subtle gray */
  color: #333; /* Calm dark text */
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
  text-align: center;
  display: none; /* Hidden by default */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc; /* Optional subtle border */
  animation: fadeIn 0.3s ease-in-out, fadeOut 0.3s ease-in-out 2.7s;
}

/* Alert Fade Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}
