/* --- DESIGN TOKENS --- */
:root {
  --bg-color: #ffffff;
  --text-main: #000000;
  --text-secondary: #666666;
  /* Apple SF Pro Font Stack */
  --font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  --max-width: 800px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 100px; /* Razmak zbog fiksne navigacije */
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- APPLE GLASS NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 30px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
}

header.scrolled {
  padding: 15px 0;
  /* Apple-style glass: blago providno + zasićenje boja ispod */
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.8px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.6;
}

/* --- HERO SECTION --- */
.hero {
  text-align: center;
  padding: 60px 0 20px 0;
}

h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto 50px auto;
  line-height: 1.4;
}

/* --- SHAPES: Center Aligned & Larger --- */
.shapes-container {
  display: flex;
  justify-content: center;
  align-items: center; /* Vertikalno i horizontalno centriranje */
  gap: 25px;
  margin: 40px auto 80px auto;
  max-width: 900px;
  min-height: 300px;
}

.shape {
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.shape:hover {
  transform: scale(1.03);
}

/* Dimenzije prema Desktop.jpg dizajnu */
.shape-1 {
  width: 124px;
  height: 180px;
} /* Kvadrat */
.shape-2 {
  width: 140px;
} /* Visoki stub */
.shape-3 {
  width: 140px;
} /* Kraći stub */
.shape-4 {
  width: 165px;
} /* Krug */

/* --- CONTENT SECTIONS --- */
.content-section {
  padding: 60px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 32px;
  text-transform: uppercase;
  color: var(--text-main);
}

.italic-text {
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
}

/* --- EXPERIENCE LIST --- */
.experience-item {
  display: flex;
  margin-bottom: 48px;
  gap: 60px;
}

.year {
  min-width: 120px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding-top: 4px;
}

.details h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.details p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

/* --- CONTACT --- */
.contact-row {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid #eeeeee;
}

.contact-row span {
  font-weight: 500;
}

.contact-row a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: opacity 0.2s;
}

.contact-row a:hover {
  opacity: 0.6;
}

/* --- FOOTER BUTTON --- */
.footer-btn {
  width: 100%;
  background: linear-gradient(90deg, #0052d4 0%, #4364f7 50%, #6fb1fc 100%);
  color: white;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  margin: 80px 0 100px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: default;
}

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  .container {
    padding: 0 24px;
  }

  h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .shapes-container {
    gap: 10px;
    min-height: auto;
    margin-bottom: 40px;
  }

  /* Skaliranje oblika za male ekrane */
  .shape-1 {
    width: 23%;
    height: 40%;
  }
  .shape-2 {
    width: 19%;
  }
  .shape-3 {
    width: 19%;
  }
  .shape-4 {
    width: 22%;
  }

  .experience-item {
    flex-direction: column;
    gap: 10px;
  }

  .year {
    min-width: auto;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 24px;
  }
}
