/* Entrance Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Landing Section */
.landing {
  background-color: #E8E6F0;
  padding: 40px 20px; /* Reduced from 60px */
  position: relative;
  min-height: auto; /* Changed from 100vh */
}

.landing-content {
  display: grid;
  grid-template-columns: 1fr 1.1fr; /* Give slightly more space to image */
  gap: 40px; /* Added gap for better spacing */
  max-width: 1400px; /* Add max width */
  margin: 0 auto; /* Center the content */
  align-items: center;
  padding: 40px 0; /* Reduced vertical padding */
}

.landing-text h1 {
  color: #981666;
  font-size: 42px; /* Reduced from 56px */
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}

.landing-text h1 span {
  color: #4B1E4F;
  animation: fadeInUp 1s ease;
}

.landing-text p {
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #555555;
  margin-bottom: 30px; /* Reduced from 50px */
  line-height: 1.6;
  max-width: 500px; /* Limit text width for readability */
  animation: fadeInUp 1s ease;
}

.cta-button {
  background-color: #6B0544;
  margin-top: 20px;
  color: white;
  padding: 12px 35px; /* Slightly reduced */
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
  background-color: #7a1f63;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(139, 0, 139, 0.4);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  color: #722F6E;
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
    background: #722F6E;
    color: white;
}

.landing-image {
  position: relative;
  height: 550px; /* Changed from 100vh - much more reasonable */
  overflow: hidden;
  background-color: #4B1E4F;
  border-radius: 25px;
  animation: fadeInRight 1s ease;

}

.landing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-overlay-text {
  position: absolute;
  bottom: 5%;
  left: 5%;
  right: 5%;
  color: white;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 15px;
}

.landing-overlay-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Features Section */
.features {
    padding: 80px 40px; /* Reduced from 80px */
    background: #fff;
    min-height: 50vh; /* Changed from 100vh */
}

.features .container {
    max-width: 1400px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 36px; /* Reduced from 42px */
    color: #722F6E;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 50px; /* Reduced from 60px */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; /* Reduced from 30px */
}

.feature-card {
    background: #F5F4F8;
    padding: 35px 25px; /* Reduced padding */
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease;
    animation-fill-mode: both;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(43, 43, 43, 0.15);
}

.feature-icon {
    font-size: 42px; /* Reduced from 48px */
    color: #722F6E;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px; /* Reduced from 20px */
    color: #333;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Residents Section */
.residents {
    padding: 60px 40px; /* Reduced from 80px 0 */
    background: linear-gradient(rgba(114, 47, 110, 0.8), rgba(114, 47, 110, 0.8)), 
                url('assets/landingpage3.jpg') center/cover;
    color: white;
}

.residents .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.residents h2 {
    text-align: center;
    font-size: 36px; /* Reduced from 56px - way too large */
    margin-bottom: 10px;
}

.residents .subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 16px; /* Reduced from 18px */
    margin-bottom: 40px;
}

.residents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* Increased from 20px */
}

.residents-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333;
    animation: fadeInUp 0.8s ease;
    animation-fill-mode: both;
}

.residents-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.stars i {
    color: #FFD700;
    font-size: 18px; /* Reduced from 20px */
}

.residents-text {
    font-size: 14px; /* Reduced from 15px */
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.residents-author {
    font-weight: 600; /* Changed from normal to bold */
    font-size: 15px; /* Reduced from 16px */
    color: #333;
    margin-bottom: 5px;
}

.residents-date {
    font-size: 13px; /* Reduced from 14px */
    color: #999;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .landing-text h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .landing-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .landing-image {
        height: 400px; /* Reduced for mobile */
    }

    .landing-text h1 {
        font-size: 32px;
    }
    
    .landing-text p {
        max-width: 100%;
    }

    .residents-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .landing-text h1 {
        font-size: 28px;
    }
    
    .landing-image {
        height: 350px;
    }
}