/* ============================================================
   DevArch – Custom Stylesheet
   Uses Bootstrap 5 as base; only adds/overrides where needed
   ============================================================ */

/* ── Typography & Base ──────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  scroll-behavior: smooth;
}

/* ── Utility helpers ────────────────────────────────────── */
.section-padding {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0d6efd;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* ── Navbar ─────────────────────────────────────────────── */
#mainNav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#mainNav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  transition: color 0.2s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #0d6efd !important;
}

/* ── Hero Section ───────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background-image: url('https://picsum.photos/seed/devarch-hero/1600/900');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.75) 0%, rgba(10, 10, 30, 0.85) 100%);
}

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

/* ── Stats strip ────────────────────────────────────────── */
.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* ── About section image ────────────────────────────────── */
#about img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#about img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15) !important;
}

/* ── Project images ─────────────────────────────────────── */
#projects img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#projects img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15) !important;
}

/* ── Service cards ──────────────────────────────────────── */
.service-card {
  border: 1px solid 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 16px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
  line-height: 1;
}

/* ── Team cards ─────────────────────────────────────────── */
.team-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1) !important;
}

.team-avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 3px solid #0d6efd;
}

/* ── Testimonial carousel ───────────────────────────────── */
#testimonialCarousel .carousel-item {
  padding: 0 1rem;
}

/* ── Contact form ───────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.contact-list a:hover {
  color: #0d6efd !important;
}

/* ── Footer links ───────────────────────────────────────── */
.footer-link:hover {
  color: #fff !important;
}

/* ── Back-to-top button ─────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  z-index: 1050;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 64px 0;
  }

  .hero-section {
    min-height: 80vh;
  }

  .stat-number {
    font-size: 1.75rem;
  }
}
