/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4.5rem;

  /*========== Colors ==========*/
  /* Color mode HSL(hue, saturation, lightness) */
  --primary-color: hsl(172, 45%, 51%);
  /* Teal #4ABAAA */
  --primary-color-dark: hsl(172, 45%, 41%);
  /* Darker teal */
  --primary-color-light: hsl(172, 45%, 61%);
  /* Lighter teal */
  --secondary-color: hsl(220, 16%, 26%);
  /* Dark gray #3A4454 */
  --secondary-color-dark: hsl(220, 16%, 16%);
  /* Darker gray */
  --secondary-color-light: hsl(220, 16%, 36%);
  /* Lighter gray */
  --text-color: hsl(220, 16%, 20%);
  --text-color-light: hsl(220, 8%, 50%);
  --white-color: hsl(0, 0%, 100%);
  --body-color: hsl(220, 20%, 97%);
  --container-color: hsl(0, 0%, 100%);
  --shadow-color: hsla(220, 16%, 26%, 0.1);
  --gradient-bg: linear-gradient(135deg, hsl(172, 45%, 51%) 0%, hsl(220, 16%, 26%) 100%);

  /*========== Font and typography ==========*/
  --body-font: 'Inter', sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /*========== Transitions ==========*/
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* Responsive typography */
@media screen and (max-width: 1024px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--secondary-color);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--body-font);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0 3rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-bg);
  color: var(--white-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: var(--font-semi-bold);
  font-size: var(--normal-font-size);
  transition: var(--transition-fast);
  box-shadow: 0 8px 24px hsla(172, 45%, 51%, 0.3);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition-medium);
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px hsla(172, 45%, 51%, 0.4);
}

.button--secondary {
  background: var(--white-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 16px var(--shadow-color);
}

.button--secondary:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 16px var(--shadow-color);
  z-index: var(--z-fixed);
  transition: var(--transition-fast);
}

.header.scroll-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px var(--shadow-color);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  width: 180px;
  height: auto;
  transition: var(--transition-fast);
}

.nav__logo-img:hover {
  transform: scale(1.05);
}

.nav__list {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__link {
  color: var(--secondary-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--normal-font-size);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-color);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link--external {
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
}

.nav__external-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.nav__toggle,
.nav__close {
  display: none;
  cursor: pointer;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: var(--white-color);
    width: 80%;
    height: 100vh;
    padding: 6rem 2rem 2rem;
    box-shadow: -2px 0 16px var(--shadow-color);
    transition: var(--transition-medium);
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .nav__toggle,
  .nav__close {
    display: flex;
    color: var(--secondary-color);
  }

  .nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .nav__logo-img {
    width: 140px;
  }
}

/*=============== HERO SECTION ===============*/
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: var(--gradient-bg);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero__content {
  color: var(--white-color);
}

.hero__subtitle {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero__title {
  font-size: var(--biggest-font-size);
  color: var(--white-color);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__description {
  font-size: var(--normal-font-size);
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
}

.hero__img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@media screen and (max-width: 968px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }
}

/*=============== CARDS ===============*/
.card {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 24px var(--shadow-color);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-bg);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-fast);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 32px var(--shadow-color);
}

.card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white-color);
}

.card__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.card__description {
  color: var(--text-color-light);
  line-height: 1.8;
}

/*=============== GLASSMORPHISM EFFECT ===============*/
.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/*=============== GRID LAYOUTS ===============*/
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 968px) {

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 576px) and (max-width: 968px) {

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*=============== GALLERY ===============*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 24px var(--shadow-color);
  aspect-ratio: 4/3;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.gallery__item:hover .gallery__img {
  transform: scale(1.1);
}

.gallery__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition-fast);
}

.gallery__item:hover .gallery__overlay {
  transform: translateY(0);
}

.gallery__title {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 4rem 0 2rem;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__title {
  font-size: var(--h2-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
}

.footer__subtitle {
  font-size: var(--h3-font-size);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: var(--font-semi-bold);
}

.footer__description {
  opacity: 0.8;
  line-height: 1.8;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__list--simple {
  gap: 0.75rem;
}

.footer__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0.9;
}

.footer__icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
  stroke: var(--primary-color);
}

.footer__link {
  color: var(--white-color);
  transition: var(--transition-fast);
}

.footer__link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
  display: inline-block;
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__copy {
  opacity: 0.7;
  font-size: var(--small-font-size);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(220, 8%, 76%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(220, 8%, 64%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color);
}

/*=============== ANIMATIONS ===============*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/*=============== UTILITIES ===============*/
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}