
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #0b1d2a;
  color: #e0f7ff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo { font-size: 1.8rem; font-weight: bold; }

header nav a {
  margin: 0 1rem;
  color: #00d1ff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

header nav a:hover {
  color: #4fc3f7;
  transform: translateY(-3px);
}

header .cta {
  background: #00d1ff;
  color: #0b1d2a;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

header .cta:hover {
  background: #4fc3f7;
  transform: scale(1.08) translateY(-3px);
}

.hero {
  position: relative;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero .overlay {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0, 0, 0, 0.6);
}

.hero .hero-content {
  position: relative;
  text-align: center;
  color: white;
}

.hero .hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero .hero-content p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.hero-buttons button {
  margin: 0.5rem;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #00d1ff;
  color: #0b1d2a;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.hero-buttons button:hover {
  background: #4fc3f7;
  transform: scale(1.1) translateY(-5px);
}

.tools-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

.tool-card {
  background: #122b3c;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  transform: scale(1.15) translateY(-8px);
  background: #4fc3f7;
  color: #0b1d2a;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.tool-card:active {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.tool-card h3,
.tool-card p {
  transition: color 0.3s ease;
  color: inherit;
}

.tool-card:hover h3,
.tool-card:hover p {
  color: #0b1d2a;
}

footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 1rem;
  color: #cdeeff;
}

@keyframes fillHighlight {
  0% { background-color: #122b3c; }
  50% { background-color: #00d1ff; }
  100% { background-color: #122b3c; }
}

.tool-card.highlight {
  animation: fillHighlight 1s ease-in-out;
}

/* Responsive Styling */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  header nav a {
    display: inline-block;
    margin: 0.25rem;
    font-size: 1rem;
  }

  .hero .hero-content h1 {
    font-size: 2rem;
  }

  .hero .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons button {
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
  }

  input, select, button {
    width: 100%;
    box-sizing: border-box;
  }

  .tools-section {
    padding: 1rem;
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 1rem;
  }

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


/* Dodatno: kompaktnejši sticky header za mobilne naprave */
@media (max-width: 600px) {
  header {
    padding: 0.4rem 1rem;
  }

  header .logo {
    font-size: 1.2rem;
  }

  header nav {
    gap: 0.3rem;
  }

  header nav a {
    font-size: 0.9rem;
    margin: 0.2rem;
  }

  header .cta {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
  }
}
