/* ===================================
   PROYECTOS PAGE - PREMIUM DESIGN
   =================================== */

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

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 50vh; /* Slightly shorter for internal pages */
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-section p.lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    font-style: italic;
}




/* PREMIUM PROJECT CARDS */
.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(10, 36, 99, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(10, 36, 99, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(10, 36, 99, 0.12);
}

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

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

.project-card:hover .project-image img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

/* Category Badge on Image */
.category-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.project-card:hover .category-badge {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 36, 99, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.view-project-btn {
    background: var(--white);
    color: var(--primary-blue);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .view-project-btn {
    transform: scale(1);
}

.project-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h5 {
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.2;
}

.project-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Stats section refinement */
.stats-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #051433 0%, #0A2463 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
}

.stat-item {
  position: relative;
  z-index: 1;
}

.stat-item h2 {
  font-size: 4.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-gold), var(--bright-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-item p {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
}



/* RESPONSIVE */
@media (max-width: 991px) {
  .hero-section h1 { font-size: 3rem; }
  .stat-item h2 { font-size: 3.5rem; }
}

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

}
