:root {
  --primary-color: #0a1c2e; 
  --secondary-color: #06121f;
  --text-c-highlight: #3399ff;  
}
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin-top: 40px;
  font-family: "Inter", sans-serif;
  background: #fff6ec;
  color: #333;
  min-height: 100vh;
  padding: 50px 20px;
  overflow-x: hidden;
}

.houses-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .houses-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .houses-container {
    grid-template-columns: 1fr;
  }
}

.house-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.house-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.house-card h2 {
  font-family: "Montserrat", serif;
  font-size: 2.2rem;
  margin-bottom: 10px;
  white-space: nowrap;
}

.red-title {
  color: #c62f31;
}
.blue-title {
  color: #355fb3;
}
.green-title {
  color: #2e8b57;
}
.yellow-title {
  color: #f6ae2d;
}

.house-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: justify;
}

.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

.points {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  color: #fff;
  align-items: center;
}

.points-red {
  background: #c62f31;
}
.points-blue {
  background: #355fb3;
}
.points-green {
  background: #2e8b57;
}
.points-yellow {
  background: #f6ae2d;
  color: #333;
}

/* Ultra small phones (300px - 350px) */
@media (max-width: 350px) {
  body {
    padding: 30px 10px;
  }

  h1 {
    font-size: 2.3rem;
    margin-bottom: 35px;
  }

  .circle {
    width: 90px;
    height: 90px;
    margin-bottom: 16px;
  }

  .house-card h2 {
    font-size: 1.7rem;
  }

  .house-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .points {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--text-c-highlight)
  );
  border-radius: 2px;
}

/* CSS for section title */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1.45rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
}

/* Scroll Animation for reveal effect */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
