/* style.css */

body {
  font-family: 'Roboto', sans-serif;
}

/* Hero Section */
.hero-image {
  height: 80vh;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0, 77, 122, 0.8), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-text {
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-text.text-shadow {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

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

/* Section Headings */
section h2 {
  font-weight: 700;
  color: #004d7a;
  border-bottom: 3px solid #007bff;
  padding-bottom: .5rem;
  margin-bottom: 2rem;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #004d7a);
}

/* Project Gallery - Masonry Layout */
.projects-gallery-container {
  width: 100%;
}

#projectsGallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

/* Responsive breakpoints */
@media (max-width: 575.99px) {
  #projectsGallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
  }
}

@media (min-width: 576px) and (max-width: 767.99px) {
  #projectsGallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 991.99px) {
  #projectsGallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 992px) {
  #projectsGallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Gallery item wrapper */
.gallery-item-wrapper {
  position: relative;
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-image:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 77, 122, 0.25);
  border-color: #007bff;
}

.project-image.loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Gallery item animations - applied via JavaScript */
.gallery-item-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-wrapper.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Clients Section */
.cliente-categoria {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #007bff;
  transition: all 0.3s ease;
}

.cliente-categoria:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.cliente-categoria h5 {
  color: #004d7a;
  margin-bottom: 1rem;
  font-weight: 600;
}

.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Cards */
.card-img-top {
  object-fit: cover;
  height: 250px;
  transition: transform 0.3s ease;
}

.card-img-top:hover {
  transform: scale(1.05);
}

.card h5 {
  color: #004d7a;
}

/* Navigation */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #007bff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #007bff !important;
}

/* Scroll to Top Button */
#scrollToTopBtn {
  transition: all 0.3s ease;
  opacity: 0.8;
}

#scrollToTopBtn:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Footer */
footer {
  font-size: 0.9rem;
  background: linear-gradient(135deg, #212529, #343a40);
}

/* Lists */
ul {
  padding-left: 1.2rem;
}

/* Smooth animations */
* {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive improvements */
@media (max-width: 767.99px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text .lead {
    font-size: 1.1rem;
  }

  section {
    padding: 2rem 0;
  }

  .cliente-categoria {
    padding: 1rem;
  }
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-text .lead {
    font-size: 1.25rem;
  }
}
