/* =====================================
   Portfolio Styles
   (portfolio.css)
   ===================================== */

/* Hero Section */
.portfolio-hero {
  height: 300px;
  background: url('../imgs/portfolio.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.portfolio-hero h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.portfolio-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

/* Main Section */
.portfolio-section {
  padding: 80px 20px;
  background-color: #f5f9ff;
  text-align: center;
}

.portfolio-section h2 {
  color: #007bff;
  font-size: 34px;
  margin-bottom: 48px;
}

/* Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

/* Overlay */
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
  color: #ffffff;
  padding: 20px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-overlay h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-overlay p {
  font-size: 15px;
  line-height: 1.4;
}

/* Fade-in Trigger (em conjunto com script.js) */
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .portfolio-hero h1 {
    font-size: 36px;
  }

  .portfolio-section h2 {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .additional-contact {
    flex-direction: column;
    gap: 2rem;
  }
  .additional-contact a i {
    font-size: 2.5rem;
  }
  .additional-contact a span {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .portfolio-hero {
    height: 200px;
  }

  .portfolio-hero h1 {
    font-size: 28px;
  }

  .portfolio-section h2 {
    font-size: 24px;
  }
}
