/* Tailwind is loaded via CDN; this file adds custom theme + overrides */

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "DM Sans",
    "Segoe UI", sans-serif;
}

.nav-link,
.nav-link-active {
  @apply text-slate-700 hover:text-sky-600 transition-colors duration-150;
}

.nav-link-active {
  @apply text-sky-600 font-semibold;
}

.glass-panel {
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.8),
      rgba(15, 23, 42, 0.95)
    );
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(26px);
}

.glass-card {
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  padding: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.glass-card.dark {
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.16),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.4);
}

.section-kicker {
  @apply text-xs uppercase tracking-[0.25em] text-sky-700 mb-2;
}

.section-title {
  @apply text-2xl md:text-3xl font-semibold text-slate-900 leading-tight;
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

/* Line clamp utility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal enhancements */
.modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  position: relative;
}

.modal-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.project-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
}

.project-thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
}

.badge-light {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.85);
  color: #e5f2ff;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.timeline-step {
  position: relative;
  padding: 1.6rem 1.3rem;
  border-radius: 1.5rem;
  background: linear-gradient(
      135deg,
      rgba(241, 245, 249, 0.95),
      rgba(248, 250, 252, 1)
    );
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.timeline-step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: rgb(15, 23, 42);
}

.timeline-step p {
  font-size: 0.8rem;
  color: rgb(100, 116, 139);
}

.timeline-badge {
  position: absolute;
  top: -0.95rem;
  left: 1.4rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgb(56, 189, 248),
    rgb(59, 130, 246),
    rgb(16, 185, 129)
  );
  color: white;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.45);
}

.field-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.3rem;
}

.field-input {
  width: 100%;
  border-radius: 0.9rem;
  border-width: 1px;
  border-color: rgba(148, 163, 184, 0.7);
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  color: rgb(15, 23, 42);
  background-color: rgba(255, 255, 255, 0.96);
}

.field-input:focus {
  outline: none;
  border-color: rgb(56, 189, 248);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.field-input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

/* Dark form inputs styling */
input.field-input[class*="bg-slate-900"],
textarea.field-input[class*="bg-slate-900"],
select.field-input[class*="bg-slate-900"] {
  color: rgb(226, 232, 240) !important;
}

input.field-input[class*="bg-slate-900"]::placeholder,
textarea.field-input[class*="bg-slate-900"]::placeholder {
  color: rgba(148, 163, 184, 0.5) !important;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(148, 163, 184);
  margin-bottom: 0.8rem;
}

.footer-list li {
  margin-bottom: 0.35rem;
}

.footer-list a {
  color: rgb(148, 163, 184);
  text-decoration: none;
  font-size: 0.78rem;
}

.footer-list a:hover {
  color: rgb(56, 189, 248);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: rgb(148, 163, 184);
  font-size: 0.95rem;
}

.social-icon:hover {
  border-color: rgb(56, 189, 248);
  color: rgb(56, 189, 248);
}

.whatsapp-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.back-to-top.show {
  display: inline-flex !important;
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-up {
  animation: fadeUp 0.7s ease-out both;
}

.animate-fade-left {
  animation: fadeLeft 0.8s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Project imagery sizing */
.project-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

@media (min-width: 1024px) {
  .project-card-thumb {
    height: 200px;
  }
}

.project-detail-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

@media (min-width: 1024px) {
  .project-detail-img {
    height: 400px;
  }
}

/* Hero Carousel Styles */
#heroCarousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#heroCarousel .carousel-inner {
  height: 100%;
}

#heroCarousel .carousel-item {
  height: 100%;
  transition: opacity 1.5s ease-in-out;
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  display: none; /* Hide controls for background carousel */
}

#heroCarousel .carousel-indicators {
  display: none; /* Hide indicators for background carousel */
}


