/* === Base & Utilities === */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

::selection {
  background: #B5F1D5;
  color: #0A1628;
}

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #0A1628;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid #0A1628;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: transparent;
  color: #0A1628;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 22, 40, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #0A1628;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid rgba(10, 22, 40, 0.2);
  letter-spacing: 0.01em;
}

.btn-secondary:hover {
  border-color: #0A1628;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 22, 40, 0.08);
}

/* === Navigation === */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #2AB878;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* === Scroll Reveal === */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* === Floating Animations === */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-delay 8s ease-in-out infinite;
  animation-delay: 1s;
}

/* === Scroll Line === */
@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

.animate-scroll-line {
  animation: scroll-line 2s ease-in-out infinite;
}

/* === Input Focus === */
input:focus, textarea:focus {
  border-color: #7DE3B3 !important;
  box-shadow: 0 0 0 4px rgba(125, 227, 179, 0.15) !important;
}

/* === Image hover container === */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* === Mobile menu animation === */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* === Responsive tweaks === */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.2;
  }
}
