/* Global styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #165a9e;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  cursor: default;
}

input[type="text"], input[type="email"], input[type="password"], textarea {
  cursor: text;
}

/* Navbar */
.navbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: fixed;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 170px;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.logo-circle {
  position: relative;
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 8px 8px;
  margin-right: 10px;
  border-radius: 0px;
  overflow: hidden;
  z-index: 1;
}

.logo-circle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: -1;
  animation: rotate 2s linear infinite;
  transform-origin: center;
}

.logo-text {
  font-weight: bold;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-item {
  padding: 10px 20px;
  border-radius: 20px;
  color: white; /* Default color */
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  font-weight: bold;
}

.nav-item:hover,
.nav-item.active {
  background: #2f62ff;
}

/* Color change when scrolled */
.navbar.scrolled .nav-item {
  color: black;
}

/* Main Section */
.main-content {
  text-align: center;
  padding: 100px 170px 60px; /* Top padding to offset fixed navbar */
  flex: 1;
}

/* Mims Section */
.mims-section {
  margin-top: 30px;
}

.mims-container {
  width: 100%;
  max-width: 600px;
  height: 300px;
  margin: 0 auto 2rem;
  position: relative;
  perspective: 800px;
}

.mims-container .strip {
  width: 100%;
  height: 4px;
  overflow: hidden;
  position: absolute;
  left: 0;
  animation: rotateMIMS 20s infinite;
  backface-visibility: hidden;
}

.mims-container .strip img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
}

@keyframes rotateMIMS {
  0%, 10%, 100% {
    transform: rotateY(0deg);
  }
  50%, 60% {
    transform: rotateY(360deg);
  }
}

/* Search Section */
.search-section {
  margin-top: 40px;
}

.search-section h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.search-section p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.input-group label {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 6px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 20px;
  padding: 5px 10px;
  gap: 8px;
}

.input-wrapper input {
  border: none;
  padding: 10px;
  border-radius: 20px;
  outline: none;
  flex: 1;
}

.dropdown-btn {
  background: #2f62ff;
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.search-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(to right, #2f62ff, #3a7eff);
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  padding: 0;
  margin-top: 22px;
}

/* Howto Section */
.howto-container {
  max-width: 890px;
  margin: auto;
  padding: 40px;
  background: #165a9e;
  color: white;
}

.howto-container h1 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 10px;
}

.howto-container p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* Contact Section */
.contact-container {
  max-width: 890px;
  margin: auto;
  padding: 40px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  background: #cfd3ee;
  color: black;
}

.contact-container h1 {
  color: #000;
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-container p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.content-columns {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.left-column, .right-column {
  flex: 1 1 300px;
}

.subscribe {
  color: #2f62ff;
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-block,
.subscription-block {
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 15px;
}

a .email {
  color: #2f62ff;
  text-decoration: none;
}

a .email:hover {
  text-decoration: underline;
}

.table-image {
  width: 850px;
  display: block;
  margin: 0 auto;
}
