/* ─── Custom Properties ─── */
:root {
  --midnight: #0A2540;
  --midnight-light: #123A5E;
  --mint: #A8E6CF;
  --mint-dark: #5FB89A;
  --mint-pale: #EEF8F1;
  --cream: #FDF8F4;
  --sand: #F5EDE6;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--midnight);
  background-color: var(--cream);
  overflow-x: hidden;
}

::selection {
  background: var(--mint);
  color: var(--midnight);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--mint);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--mint-dark);
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--midnight);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--midnight);
}
.btn-primary:hover {
  background: transparent;
  color: var(--midnight);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 37, 64, 0.15);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--midnight);
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid var(--midnight);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
  background: var(--midnight);
  color: #fff;
  transform: translateY(-2px);
}

/* ─── Section Elements ─── */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint-dark);
  background: var(--mint-pale);
  padding: 0.5rem 1rem;
  border-radius: 100px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--midnight);
}
.section-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--midnight)/0.65;
  font-weight: 300;
}
.mint-dark {
  color: var(--mint-dark);
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
  backdrop-filter: none;
}
#navbar.scrolled {
  background: rgba(253, 248, 244, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.06);
}
.nav-logo-text {
  transition: color 0.3s;
}
#navbar:not(.scrolled) .nav-logo-text {
  color: var(--midnight);
}
#navbar.scrolled .nav-logo-text {
  color: var(--midnight);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--mint-dark);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after {
  width: 100%;
}

/* ─── Mobile Menu ─── */
.mobile-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-toggle.active .mobile-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobile-toggle.active .mobile-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#mobile-toggle.active .mobile-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.5rem;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  transition: all 0.3s;
}
.mobile-link:hover {
  transform: scale(1.05);
}

/* ─── Hero ─── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 37, 64, 0.72) 0%,
    rgba(10, 37, 64, 0.45) 50%,
    rgba(10, 37, 64, 0.30) 100%
  );
}
.hero-bg img {
  transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-bg:hover img {
  transform: scale(1.03);
}
.hero-tagline {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-headline {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero-subtext {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.7s forwards;
}
.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.9s forwards;
}
.hero-scroll {
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}
.scroll-indicator {
  animation: bounce 2s infinite;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ─── Service Cards ─── */
.service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-icon {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-title {
  font-family: var(--font-serif);
  font-weight: 500;
}
.service-desc {
  color: rgba(10, 37, 64, 0.65);
}
.service-link {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s;
}
.service-card:hover .service-link {
  opacity: 1;
  transform: translateX(0);
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* ─── About ─── */
.about-img-wrap {
  box-shadow: 0 32px 64px rgba(10, 37, 64, 0.12);
}
.about-floating-card {
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.about-stat {
  border-left: 2px solid var(--mint);
  padding-left: 1rem;
}

/* ─── Gallery ─── */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 16px;
}
.gallery-item:hover::after {
  opacity: 1;
}
.gallery-img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* ─── Contact Form ─── */
.input-field {
  border: 1.5px solid rgba(10, 37, 64, 0.12);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--midnight);
  background: var(--cream);
  transition: all 0.3s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.input-field::placeholder {
  color: rgba(10, 37, 64, 0.3);
}
.input-field:focus {
  border-color: var(--mint-dark);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(168, 230, 207, 0.2);
}
.input-field:hover:not(:focus) {
  border-color: rgba(10, 37, 64, 0.25);
}

/* ─── Contact Info ─── */
.contact-icon {
  transition: transform 0.3s;
}
.contact-info-item:hover .contact-icon {
  transform: scale(1.1);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .about-floating-card {
    display: none;
  }
  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

@media (max-width: 640px) {
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
