/* ===== CSS Custom Properties ===== */
:root {
  --primary: #0072ce;
  --primary-dark: #005fa3;
  --accent: #00b4d8;
  --dark: #1a1a2e;
  --text: #2d3748;
  --text-light: #64748b;
  --white: #ffffff;
  --off-white: #f8fafc;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, #0072ce 0%, #005fa3 40%, #003d6b 100%);
  color: white;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
}

.hero-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  animation: floatBg 20s ease-in-out infinite;
}

@keyframes floatBg {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(1deg); }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  position: relative;
}

.logo img {
  height: 80px;
  transition: transform var(--transition);
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
  transition: opacity var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 4;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== Hero Content ===== */
.hero-content {
  text-align: center;
  padding: 4rem 1rem;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -1px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 400;
}

/* ===== Contact Section ===== */
.kontakt-sekcija {
  padding: 80px 1rem;
  background-color: var(--off-white);
  min-height: 50vh;
}

.kontejner {
  max-width: 1200px;
  margin: 0 auto;
}

.kontakt-naslov {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.kontakt-sadrzaj {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.info-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 114, 206, 0.12);
}

.info-ikonica {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 114, 206, 0.08);
  border-radius: var(--radius-md);
}

.info-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.info-item p,
.info-item a {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.6;
}

.info-item a:hover {
  color: var(--primary);
}

/* ===== Footer ===== */
.futer {
  background: var(--dark);
  padding-top: 3rem;
}

.futer-okvir {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding: 0 1.5rem;
}

.futer-logo-blok {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.futer-logo {
  height: 55px;
}

.futer-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.futer-sekcija {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.futer-naslov {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.futer-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.futer-lista a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
}

.futer-lista a:hover {
  color: var(--white);
  padding-left: 4px;
}

.futer-mreze {
  display: flex;
  gap: 1rem;
}

.mreza-ikonica {
  width: 28px;
  height: 28px;
  transition: transform var(--transition), opacity var(--transition);
}

.mreza-ikonica:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

.futer-dno {
  margin-top: 2.5rem;
  padding: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .kontakt-sadrzaj {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 95, 163, 0.95);
    backdrop-filter: blur(12px);
    position: absolute;
    top: 90px;
    right: 1rem;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    z-index: 3;
    width: 200px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .kontakt-sadrzaj {
    grid-template-columns: 1fr;
  }

  .futer-okvir {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .futer-logo-blok {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
}
