/* ✅ Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f9fc;
  color: #333;
  line-height: 1.6;
}

/* ✅ Header */
.header {
  background: #333a56;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* ✅ Navigation */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navbar ul li a {
  font-weight: 500;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #f0c040;
}

/* ✅ Housing Section */
.housing-section {
  padding: 80px 20px;
  background-color: #fff;
}

.housing-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.housing-image {
  flex: 1;
  animation: fadeInUp 1.2s ease forwards;
  transform: translateY(40px);
  opacity: 0;
}

.housing-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}

.housing-image img:hover {
  transform: scale(1.03);
}

.housing-content {
  flex: 1;
  min-width: 300px;
  animation: slideInRight 1.2s ease forwards;
  transform: translateX(60px);
  opacity: 0;
}

.housing-content h1 {
  font-size: 3rem;
  margin-bottom: 25px;
  color: #1a1a1a;
  position: relative;
}

.housing-content h1::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #f0c040;
  position: absolute;
  left: 0;
  bottom: -10px;
  border-radius: 2px;
}

.housing-content p {
  font-size: 1.1rem;
  color: #4b4b4b;
  margin-bottom: 20px;
  line-height: 1.8;
  transition: all 0.3s ease;
}

/* ✅ Stylish Back Button */
.back-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #f0c040, #e2a13b);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(240, 192, 64, 0.25);
  transition: all 0.3s ease;
}

.back-button:hover {
  background: linear-gradient(135deg, #e2a13b, #d88f2d);
  box-shadow: 0 12px 24px rgba(240, 192, 64, 0.4);
  transform: translateY(-2px);
}
/* ✅ Footer */
.footer {
  background-color: #333a56;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
}

/* ✅ Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .housing-container {
    flex-direction: column;
    text-align: center;
  }

  .housing-content h1 {
    font-size: 2.2rem;
  }

  .navbar ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
