* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary-color: #0ea5e9;
  --accent-color: #f59e0b;
  --text-dark: #0f172a;
  --text-gray: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-blue: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
}

body {
  font-family: 'Poppins';
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg-white);
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
  z-index: -1;
}

@keyframes float-shape {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: 68px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-dark);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-accent {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--primary-color);
}

.title-gradient {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 540px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 16px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  margin-bottom: 48px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.search-box:focus-within {
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.2);
  border-color: var(--primary-color);
}

.search-icon {
  color: var(--text-light);
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 14px 0;
  font-size: 16px;
  outline: none;
  color: var(--text-dark);
  font-weight: 500;
}

.search-box input::placeholder {
  color: var(--text-light);
}

.btn-search {
  background: var(--gradient-blue);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-search:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-item {
  position: relative;
  padding-left: 20px;
}

.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 40px;
  background: var(--gradient-blue);
  border-radius: 4px;
}

.stat-item h3 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

.hero-image {
  animation: fadeInRight 1s ease-out 0.4s both;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  animation: float-image 6s ease-in-out infinite;
}

@keyframes float-image {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(1deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
  75% {
    transform: translateY(-15px) rotate(0.5deg);
  }
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

.property-card-float {
  position: absolute;
  bottom: 32px;
  right: 32px;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-2xl);
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  animation: slide-in-bottom 1s ease-out 1.2s both;
}

@keyframes slide-in-bottom {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-card-icon {
  font-size: 32px;
}

.property-card-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.property-card-content p {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
}

.property-card-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--accent-color);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.partners {
  padding: 80px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.partners-content {
  text-align: center;
}

.partners-label {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 40px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  align-items: center;
}

.partner-logo {
  opacity: 0.4;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.partner-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  fill: var(--text-dark);
}

.residences {
  padding: 120px 0;
  background: var(--bg-light);
}

.section-header {
  margin-bottom: 60px;
}

.section-header-content {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.label-line {
  width: 32px;
  height: 2px;
  background: var(--primary-color);
}

.section-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-description {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid var(--border-color);
  background: white;
  color: var(--text-gray);
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.residences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.residence-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.residence-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-light);
}

.residence-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.residence-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.residence-card:hover .residence-image img {
  transform: scale(1.15);
}

.residence-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: white;
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.residence-badge.special {
  background: var(--accent-color);
  color: white;
}

.residence-favorite {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  z-index: 2;
  color: var(--text-gray);
}

.residence-favorite:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.residence-favorite:active {
  transform: scale(0.95);
}

.residence-info {
  padding: 28px;
}

.residence-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.residence-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.residence-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.residence-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
}

.residence-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.residence-location svg {
  flex-shrink: 0;
  color: var(--text-light);
}

.residence-features {
  display: flex;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
}

.feature svg {
  color: var(--text-light);
}

.view-all-container {
  text-align: center;
}

.btn-view-all {
  padding: 16px 40px;
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-view-all:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.value-section {
  padding: 120px 0;
  background: var(--bg-white);
}

.value-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.value-image-wrapper {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.value-image-wrapper img {
  width: 100%;
  border-radius: 32px;
  display: block;
}

.value-decoration {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.decoration-1 {
  width: 200px;
  height: 200px;
  background: var(--gradient-blue);
  opacity: 0.1;
  top: -50px;
  right: -50px;
  animation: pulse-decoration 4s ease-in-out infinite;
}

.decoration-2 {
  width: 150px;
  height: 150px;
  background: var(--accent-color);
  opacity: 0.1;
  bottom: -40px;
  left: -40px;
  animation: pulse-decoration 4s ease-in-out infinite 2s;
}

@keyframes pulse-decoration {
  0%, 100% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
}

.value-text {
  text-align: left;
}

.value-description {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.value-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-item {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.value-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.value-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  cursor: pointer;
  user-select: none;
}

.value-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.value-item:hover .value-icon {
  background: var(--primary-color);
  color: white;
  transform: rotate(5deg) scale(1.05);
}

.value-item-header h4 {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.value-toggle {
  width: 36px;
  height: 36px;
  background: var(--bg-light);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-gray);
  flex-shrink: 0;
}

.value-toggle:hover {
  background: var(--primary-color);
  color: white;
}

.value-item.active .value-toggle {
  background: var(--primary-color);
  color: white;
  transform: rotate(180deg);
}

.value-item-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  padding: 0 24px;
}

.value-item.active .value-item-content {
  max-height: 200px;
  padding: 0 24px 24px 96px;
}

.value-item-content p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.8;
}

.testimonials {
  padding: 120px 0;
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
}

.testimonial-card {
  background: white;
  padding: 36px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.testimonial-rating {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--accent-color);
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.testimonial-author h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.testimonial-author p {
  font-size: 14px;
  color: var(--text-light);
}

.contact-section {
  padding: 120px 0;
  background: var(--bg-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.contact-image-wrapper {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.contact-image-wrapper img {
  width: 100%;
  border-radius: 32px;
  display: block;
}

.contact-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
}

.contact-description {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-method {
  background: var(--bg-light);
  padding: 28px;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-method:hover {
  background: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-method-icon {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.contact-method:hover .contact-method-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.contact-method-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-method-info p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 16px;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-blue);
  z-index: -1;
}

.cta-background::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: float-shape 15s ease-in-out infinite;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 48px;
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-form {
  display: flex;            /* keep using flex */
  flex-direction: column;   /* stack items vertically */
  align-items: stretch;     /* make children stretch full width */
  gap: 16px;                /* keep your existing gap */
  max-width: 560px;         /* keep your max-width (unchanged) */
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 18px 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  outline: none;
  transition: all 0.3s ease;
}

.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cta-form input:focus {
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
  background: white;
  color: var(--primary-color);
  white-space: nowrap;
}

.btn-large:hover {
  background: var(--bg-light);
  transform: translateY(-2px) scale(1.02);
}


@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .subscribe-btn {
    display: none;
  }

  .hero-content,
  .value-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-title {
    font-size: 52px;
  }

  .section-title {
    font-size: 38px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 42px;
  }

  .section-title {
    font-size: 32px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-methods,
  .filter-buttons {
    grid-template-columns: 1fr;
  }

  .residences-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 36px;
  }

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

  .search-box {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }
}
