@tailwind base;
@tailwind components;
@tailwind utilities;

html,
body {
  scroll-behavior: smooth;
  scroll-margin-top: 300px;
  font-family: 'Open Sans', sans-serif;
  color: #212529;
  background-color: #ebf3f7;
}

section,
form {
  scroll-behavior: smooth;
  scroll-margin-top: 100px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-style: Medium;
  font-size: 28.8px;
  line-height: 34.56px;
  letter-spacing: -0.8px;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-style: Bold;
  font-size: 22px;
  line-height: 26.4px;
  letter-spacing: 0%;
}

h3 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-style: Bold;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0%;
}

p {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 14.4px;
  line-height: 21.6px;
  letter-spacing: 0%;
}

@media (min-width: 768px) {
  h1 {
    font-size: 43px;
    line-height: 51.6px;
  }

  h2 {
    font-size: 28.8px;
    line-height: 34.56px;
  }

  h3 {
    font-size: 24px;
    line-height: 28.8px;
  }

  p {
    font-size: 18.4px;
    line-height: 27.6px;
  }
}

@media (min-width: 1280px) {
  h1 {
    font-size: 44.8px;
    line-height: 53.76px;
  }
}

.navbar-container {
  transition: box-shadow 0.3s ease-in-out;
}

.logo-large {
  height: 23px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-small {
  height: 23px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .logo-large {
    height: 74px;
  }

  .logo-small {
    height: 32px;
  }
}

.nav-section {
  max-height: 60px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

.nav-section-hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease-in,
    transform 0.3s ease-in;
}

.nav-links {
  transition: all 0.3s ease-out;
}

.nav-links.hiding {
  transform: translateY(-5px);
  opacity: 0;
}

.nav-links.showing {
  transform: translateY(0);
  opacity: 1;
}

.breathe-animation {
  animation: breathe 2s infinite;
}

@keyframes breathe {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
