/* ========== BASE & RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(20, 184, 166, 0.2);
  color: #0C4A6E;
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(12, 74, 110, 0.08);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#navbar.scrolled .nav-link {
  color: #1e4774;
}

.nav-link:hover {
  color: #5eead4;
}

#navbar.scrolled .nav-link:hover {
  color: #14b8a6;
}

.nav-link.active {
  color: #5eead4;
}

#navbar.scrolled .nav-link.active {
  color: #14b8a6;
}

#navbar.scrolled .nav-logo-text,
#navbar.scrolled .nav-logo-sub {
  color: #0C4A6E;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
}

.btn-primary-glow {
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.3);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(45, 212, 191, 0.5);
  background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 100%);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ========== HERO ========== */
.hero-eyebrow {
  opacity: 1;
  animation: fadeInDown 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff;
  margin-top: 1.5rem;
  opacity: 1;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 540px;
  opacity: 1;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-ctas {
  opacity: 1;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== SECTION HEADERS ========== */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: #0C4A6E;
}

.section-desc {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.7;
  margin-top: 1rem;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  perspective: 1000px;
}

.service-card .card-inner {
  background: #ffffff;
  border: 1px solid rgba(20, 184, 166, 0.1);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card .card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #5eead4, #14b8a6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover .card-inner {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(12, 74, 110, 0.1);
  border-color: rgba(20, 184, 166, 0.2);
}

.service-card:hover .card-inner::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(94, 234, 212, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #14b8a6;
  margin-bottom: 1.25rem;
  transition: all 0.4s ease;
}

.service-card:hover .card-icon {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff;
  transform: scale(1.05);
}

.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0C4A6E;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #14b8a6;
  transition: all 0.3s ease;
}

.service-card:hover .card-link {
  gap: 0.7rem;
  color: #0d9488;
}

/* ========== ABOUT ========== */
.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(8, 41, 64, 0.25);
}

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

.about-image-frame:hover .about-image {
  transform: scale(1.03);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(20, 184, 166, 0.3);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #14b8a6;
  flex-shrink: 0;
}

.about-feature-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* ========== GALLERY ========== */
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 74, 110, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}

.gallery-item:hover::after {
  opacity: 1;
}

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

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(20, 184, 166, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(12, 74, 110, 0.08);
  border-color: rgba(20, 184, 166, 0.2);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.testimonial-text {
  font-size: 1rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(94, 234, 212, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #14b8a6;
  flex-shrink: 0;
}

.testimonial-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0C4A6E;
}

.testimonial-location {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

/* ========== CTA ========== */
.cta-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
}

.cta-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  opacity: 1;
}

/* ========== CONTACT ========== */
.contact-info-card {
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(94, 234, 212, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #14b8a6;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  color: #0C4A6E;
  line-height: 1.6;
}

.map-link {
  transition: all 0.3s ease;
}

.map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(12, 74, 110, 0.2);
}

.contact-form-card {
  height: 100%;
}

/* ========== FORMS ========== */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #0C4A6E;
  background: #ffffff;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
  color: #0C4A6E;
}

#navbar:not(.scrolled) #mobile-menu {
  color: #ffffff;
}

#navbar:not(.scrolled) .hamburger-line {
  background: #ffffff;
}

#navbar.scrolled .hamburger-line {
  background: #0C4A6E;
}

.mobile-link {
  opacity: 1;
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #14b8a6;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .about-badge {
    right: 10px;
    bottom: -15px;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .gallery-item.col-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .grid-cols-2.gap-4 {
    grid-template-columns: 1fr;
  }
}
