/* --- HERO --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #f8fafc;
  padding: 100px 0;
}

.hero-content {
  padding-right: 40px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hero-content p {
  color: #475569;
  margin-top: 18px;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 540px;
}

.hero-buttons {
  margin-top: 28px;
}

.btn-outline {
  padding: 12px 24px;
  border: 2px solid #2563eb;
  border-radius: 8px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #2563eb;
  color: #fff;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* --- SERVICES --- */
.services {
  padding: 100px 0;
  text-align: center;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: #0f172a;
}

.section-header p {
  color: #64748b;
  font-size: 1rem;
  margin-top: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: #1e293b;
  margin-bottom: 10px;
}

.service-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- PORTFOLIO --- */
.portfolio {
  background: #f1f5f9;
  padding: 100px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.85), transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.overlay p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-image {
    margin-top: 40px;
  }
}
