/**
 * Projects page styles for Yellow Stone Infra website
 */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #2e8b57 0%, #3cb371 50%, #228b22 100%);
  min-height: 60vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Animation Keyframes */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes ping {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}

/* Floating Circles */
.floating-circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(144, 238, 144, 0.25);
  z-index: 0;
}

.circle-1 {
  width: 150px;
  height: 150px;
  top: -30px;
  left: 10%;
  animation: bounce 8s infinite alternate;
}

.circle-2 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  right: 15%;
  animation: pulse 6s infinite;
}

.circle-3 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 20%;
  animation: ping 10s infinite;
}

.circle-4 {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 5%;
  animation: bounce 7s infinite alternate-reverse;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-content .signature-title {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  background: rgba(255,255,255,0.85) !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  padding: 0.25em 0.75em;
  border-radius: 12px;
  display: inline-block;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  letter-spacing: -1px;
}

.premium-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #fff;
  color: #2e8b57;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Projects Section */
.section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.perfect-home {
  background: linear-gradient(135deg, #3cb371 0%, #2e8b57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 128, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.badge-fast {
  background: rgba(255, 107, 53, 0.9);
  color: #fff;
}

.badge-approved {
  background: rgba(76, 175, 80, 0.9);
  color: #fff;
}

.badge-premium {
  background: rgba(255, 193, 7, 0.9);
  color: #fff;
}

.location-pill {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  z-index: 2;
}

.project-content {
  padding: 2rem;
  text-align: left;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.project-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.explore-btn {
  color: #2e8b57;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.details-btn {
  color: #6c757d;
  text-decoration: none;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #2e8b57 0%, #3cb371 100%);
  padding: 6rem 2rem;
  text-align: center;
  color: #fff;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-btn {
  background: #fff;
  color: #2e8b57;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animations */
.floating-circle.one {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 15%;
}

.floating-circle.two {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 20%;
}

.floating-circle.three {
  width: 100px;
  height: 100px;
  bottom: 15%;
  left: 25%;
}

.floating-circle.four {
  width: 60px;
  height: 60px;
  bottom: 20%;
  right: 15%;
}

/* Glass morphism badge */
.premium-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
  position: relative;
}

/* Gradient text with clip-path for hero heading */
.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #ff6b35, #f7931e, #ff4757);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* Hover animations */
.project-card:hover {
  transform: translateY(-16px) rotate(1deg);
  box-shadow: 0 15px 40px rgba(46, 139, 87, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
}

.project-image img {
  transition: transform 0.7s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.25);
}

.explore-btn i {
  display: inline-block;
  transition: transform 0.3s ease;
}

.explore-btn:hover i {
  transform: translateX(8px);
}

.explore-btn:hover {
  color: #3cb371;
  transition: color 0.3s ease;
}

.details-btn:hover {
  color: #3cb371;
  transition: color 0.3s ease;
}

/* Button scaling */
.btn:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Gradient shifts */
.btn-primary:hover {
  background: linear-gradient(45deg, #2e8b57, #3cb371);
  color: #fff;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 60px 20px;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-title {
    font-size: 1.3rem;
  }
}