/* Üldine */
* { 
  box-sizing: border-box; 
  scroll-behavior: smooth; 
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #F5FBFF;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: #0a3d62;
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 2rem; 
  z-index: 1000;
  padding: 0 2rem;
}

/* Logo animatsioon */
.logo-link {
  transform: translateX(-200%);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}

.navbar.loaded .logo-link {
  transform: translateX(0);
  opacity: 1;
}

/* Logo */
.logo {
  height: 200px;
  width: auto;
}

/* Nav linkide animatsioon */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  transform: translateX(200%); 
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}

.navbar.loaded .nav-links li {
  transform: translateX(0); 
  opacity: 1;
}

.navbar.loaded .nav-links li:nth-child(1) { transition-delay: 0.2s; }
.navbar.loaded .nav-links li:nth-child(2) { transition-delay: 0.4s; }
.navbar.loaded .nav-links li:nth-child(3) { transition-delay: 0.6s; }
.navbar.loaded .nav-links li:nth-child(4) { transition-delay: 0.8s; }

/* Lingid */
.nav-links li a {
  color: #F0F8FF;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}
.nav-links li a:hover {
  color: #F5FBFF;
}

/* Intro / Tutvustus */
#intro {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #F0F8FF;
  padding-top: 220px; 
}

#intro h1 {
  font-size: 2rem;
  color: #0a3d62;
  margin-bottom: 1rem;
}

#intro p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  color: #0a3d62;
  background: #f5c518;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.cta-button:hover {
  background: #ffd93b;
}

/* Sektsioonid */
section { 
  padding: 0.5rem 1rem; 
  text-align: left; 
}

.container { 
  max-width: 1000px; 
  margin: auto; 
}

.section-title {
  font-size: 1.5rem;
  color: #0a3d62;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;

}

/* Kaardid */
.cards { 
  display: block; 
  flex-wrap: column; 
  gap: 1rem; 
}

.card {
  background: white;
  border-radius: 3px;
  margin: 1px;
  text-align: left;
  font-size: 15px;
  width: 60rem;
  padding: 0.5rem;
  flex: 1 1 300px; 
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 12px 24px rgba(0,0,0,0.2); 
}

/* Sektsiooni divider */
.section-divider {
  width: 100%;
  height: 4px;
  margin: 2rem 0;
  border-radius: 2px;
}

/* Footer */
footer { 
  background: #0a3d62; 
  color: white; 
  text-align: center; 
  padding: 1rem; 
  font-size: 0.9rem; 
}

/* Lingid */
a { 
  color: #0a3d62; 
  text-decoration: none; 
}

a:hover { 
  text-decoration: underline; 
}

/* Sektsioonide tausta vaheldus */
section:nth-of-type(even) { 
  background: #F0F8FF; 
}

section:nth-of-type(odd) { 
  background: #F0F8FF; 
}
