:root {
    --primary-color: #2E5BFF;
    --accent-color: #09274A;
    --text-color: #333333;
    --bg-main: #ffffff;
    --bg-secondary: #fafafa;
    --bg-third: #f5f5f5;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 50%, #e8fdf1 100%);
}

/*###################################
  #             Header              #
  ###################################*/
header {
  /* background: white; */
  padding: 15px 20px;
  color: black;
  z-index: 1000;
}

.header-size {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}

.logo img {
  height: 40px;
  cursor: pointer;
  align-items: center; 
}

/* Kairė grupė = logo + converters */
.left-group {
  display: flex;
  align-items: center;
  gap: 30px; /* tarpelis tarp logo ir Converters */
}

/* Nav links */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s, letter-spacing 0.2s;
}

nav a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);   /* subtilus pakilimas */
  letter-spacing: 0.5px;         /* truputį daugiau oro */
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.dropdown:hover .chevron {
  transform: rotate(180deg); /* chevron-up */
}

/* Mobile (kai aktyvus meniu) */
.dropdown.open .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  z-index: 2000;
  background: white;
  top: 100%;
  left: 0;
  padding: 15px;
  min-width: 420px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
  border-radius: 6px;
  z-index: 1000;

  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Desktop hover */
.dropdown:hover .dropdown-menu {
  display: grid;
}

/* Mobile styles */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.submenu-title {
  font-size: 12px;
  font-weight: 600;
  color: #777;
  /* margin-top: 6px; */
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* Mobile styles */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .header-size {
    display: flex;
    align-items: center;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 0;
    width: 240px;
    padding: 10px;
    z-index: 2000; /* iškeliam virš hero */
  }
  nav ul.show {
    display: flex;
  }

  /* dropdown menu mobile */
  .dropdown-menu {
    display: none;
    position: static;
    border: none;
    padding: 10px 0;
    min-width: auto;
    box-shadow: none;
    border-radius: 0;
    grid-template-columns: 1fr; /* <-- mobile vienas stulpelis */
  }

  .dropdown.open .dropdown-menu {
    display: grid; /* atsidaro tik su JS toggle */
  }

  .menu-toggle {
    display: block;
  }

  .nav-left ul {
    position: absolute;
    top: 150px;   /* po header */
    right: 0;
  }

  .nav-right ul {
    position: absolute;
    top: 60px;  /* dar žemiau nei .nav-left */
    right: 0;
  }
}

main {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

h1 {
    color: var(--primary-color);
}

.intro-text {
    max-width: 600px;
}

/* Hero mažesniems puslapiams */
.hero-small {
  text-align: center;
  padding: 60px 20px;
  color: black;
  border-radius: 12px;
  margin-bottom: 40px;
}

.hero-small h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-small p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Sekcijos turiniui */
.info-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.info-section h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #09274A;
}

.info-section p {
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Email link stilius */
.info-section a {
  color: #2E5BFF;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-section a:hover {
  color: #1a3fcc;
}

footer {
    
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 300px;
}
