:root {
  --primary-blue: #007bff;
  --dark-blue: #045aaf;
  --success-green: #4caf50;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #333;
  --text-light: #666;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: #f4f8ff;
  color: #333;
}

.logo {
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.5px;
}

.logo-bachelor {
  color: #fff;
}

.logo-life {
  color: #fff;
}

header {
  background: #008cff;
  color: white;
  padding: 15px;
  text-align: center;
  animation: slideIn 0.8s ease-out both;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 700;
  transition: 0.3s;
}

nav a:hover {
  text-decoration: none;
}

.contact {
  padding: 30px;
  max-width: 800px;
  margin: 40px auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out both;
}

.contact h2 {
  color: #008cff;
  text-align: center;
  margin-bottom: 10px;
}

.contact p {
  text-align: center;
  font-size: 16px;
  margin-bottom: 25px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: bold;
  margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  animation: fadeInUp 0.9s ease-out both;
}

.contact-form textarea {
  resize: none;
}

button {
  margin-top: 20px;
  background: #008cff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
  animation: fadeInUp 1.1s ease-out both;
}

button:hover {
  background: #006fd1;
}

.contact-info {
  margin-top: 25px;
  text-align: center;
  font-size: 15px;
  animation: fadeInUp 1.2s ease-out both;
}

.contact-info a {
  color: #008cff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 15px;
  background: var(--primary-blue);
  color: white;
  animation: fadeInUp 1.2s ease-in both;
}

footer a:hover {
  color: var(--success-green);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Tablet Devices (max-width: 1024px) --- */
@media (max-width: 1024px) {

  /* General Spacing */
  .container,
  nav,
  .navbar,
  header {
    padding: 15px 30px !important;
  }

  /* Post Room & Room Detail Content */
  .content-wrapper,
  .form-grid {
    gap: 20px;
  }

  .room-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
  }
}

/* --- Mobile Devices (max-width: 768px) --- */
@media (max-width: 768px) {

  /* Navbar Adjustments */
  nav,
  .navbar,
  header,
  .navbar-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    height: auto !important;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-links a {
    margin-left: 10px !important;
    margin-right: 10px !important;
    font-size: 14px;
  }

  /* Hero & Titles */
  .hero-section h1,
  .form-title {
    font-size: 26px !important;
  }

  /* Forms (Login, Signup, Contact, Post Room) */
  .login-box,
  .form-card,
  .contact {
    width: 95% !important;
    max-width: none !important;
    padding: 25px !important;
    margin: 20px auto !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    /* Single column */
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Room Detail Page */
  .content-wrapper {
    flex-direction: column;
  }

  .room-details-section,
  .room-owner-section {
    flex: none !important;
    width: 100%;
  }

  .property-features {
    flex-direction: column;
    gap: 10px;
  }

  .google-map-section {
    height: 200px;
    font-size: 1.2em;
  }

  /* Home Page Grid */
  .room-container {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }

  .filter-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .input-group,
  .budget-slider,
  .apply-filters-btn {
    width: 100% !important;
    min-width: unset !important;
  }
}

/* --- Small Phones (max-width: 480px) --- */
@media (max-width: 480px) {

  .container,
  nav,
  .navbar,
  header {
    padding: 15px 15px !important;
  }

  .nav-links a {
    font-size: 12px;
    margin: 5px !important;
  }

  .login-box h2,
  .form-header h1 {
    font-size: 20px !important;
  }

  .amenities-grid {
    grid-template-columns: 1fr !important;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-submit,
  .btn-cancel {
    width: 100%;
  }
}