/* === GLOBAL STYLES === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #f6eabe 0%, #fff9f0 100%);
  font-family: 'Quicksand', sans-serif;
  color: #0f5138;
  line-height: 1.8;
  overflow-x: hidden;
  padding-top: 100px;
  transition: padding-top 0.3s ease;
}

body:has(.navbar.scrolled) {
  padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Alice', serif;
  color: #0f5138;
  font-weight: 600;
  letter-spacing: 0.5px;
}

a {
  color: #0f5138;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #b06b34;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: #b06b34;
}

/* === NAVBAR === */
.navbar {
  padding: 1.2rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand .logo {
  width: 200px;
  transition: transform 0.4s ease;
}

.navbar-brand:hover .logo {
  transform: scale(1.08) rotate(1deg);
}

.navbar-nav .nav-link {
  font-family: 'Alice', serif;
  color: #0f5138 !important;
  font-size: 1.35rem;
  padding: 0.6rem 1.2rem !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #b06b34 !important;
}

.navbar-collapse {
  justify-content: flex-end !important;
}

.bg-custom {
  background-color: white !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* === BUTTONS === */
.btn-primary {
  background: linear-gradient(135deg, #0f5138 0%, #1a6b4a 100%);
  border: none;
  font-family: 'Alice', serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(15, 81, 56, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #b06b34 0%, #d68a5b 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(176, 107, 52, 0.4);
}

/* === CARDS === */
.card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: all 0.4s ease;
  background: white;
  position: relative;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.card-img-top {
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.08);
}

.card-title {
  font-size: 1.8rem;
  margin: 1.2rem 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-text {
  font-size: 1.1rem;
  color: #333;
}

/* === HERO CAROUSEL - SMALLER & CLEAN === */
.hero-img, .carousel-item img {
  height: 70vh !important;
  min-height: 400px;
  max-height: 600px;
  object-fit: cover;
  filter: brightness(0.7);
}

.carousel-caption {
  display: none !important;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

/* === SERVICE CARD IMAGE ZOOM LIGHTBOX === */
.card-img-top-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 10;
  cursor: zoom-in;
  backdrop-filter: blur(4px);
}

.card-img-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.85);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.card:hover .card-img-overlay {
  opacity: 1;
  visibility: visible;
}

.card:hover .card-img-overlay img {
  transform: scale(1);
}

/* === SECTIONS === */
.section-heading {
  font-size: 3rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: #b06b34;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.lead {
  font-size: 1.35rem;
  color: #0f5138;
  max-width: 800px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  background: white;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  border-top: 1px solid #ea9f7c33;
}

.footer h5 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer a {
  font-size: 1.9rem;
  margin: 0 1rem;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #b06b34;
  transform: translateY(-3px);
}

/* === FORM === */
.form-control {
  background-color: #fff9f0;
  border: 1.5px solid #ea9f7c66;
  border-radius: 12px;
  padding: 0.9rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0f5138;
  box-shadow: 0 0 0 0.25rem rgba(15, 81, 56, 0.2);
  background-color: white;
}

.form-label {
  color: #0f5138;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
}

/* === SKILL BADGES === */
.skill-badge {
  background: white;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.skill-badge:hover {
  background: #0f5138;
  color: white;
  transform: translateY(-5px);
}

.skill-badge i {
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

.skill-badge:hover i {
  color: #b06b34;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === UTILITIES === */
.text-accent { color: #b06b34; }
.shadow-soft { box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

/* === LIGHTBOX PORTFOLIO (SERVICES PAGE) === */
#lightboxModal .modal-dialog {
  max-width: 95vw;
  max-height: 95vh;
  margin: auto;
}

#lightboxModal .modal-content {
  background: transparent;
  border: 0;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightboxModal img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: .75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

/* Portfolio grid images */
.portfolio-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  transition: transform .2s;
  border-radius: .5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.portfolio-img:hover {
  transform: scale(1.03);
}

.portfolio-col {
  margin-bottom: 1.5rem;
}