/* ===== OSNOVNE BOJE I PODEŠAVANJA =====
   Ako hoćeš drugu boju sajta, promijeni samo --accent ispod. */
:root {
  --bg: #0b0d12;
  --card: rgba(21, 25, 34, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf0;
  --muted: #9aa3b2;
  --accent: #4f8cff;
  --radius: 14px;
  --mono: "JetBrains Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 64px 24px;
}

h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }

/* Naslov sekcije: mali "komentar" iznad velikog naslova */
.section-head { margin-bottom: 32px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ===== POZADINA (svjetlosti + sjenke sajtova) ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;          /* stoji iza svega */
  overflow: hidden;
  pointer-events: none; /* ne smeta klikovima */
}

/* Obojene mrlje svjetlosti */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite alternate;
}
.g1 { width: 520px; height: 520px; background: #4f8cff; top: -120px; left: -100px; }
.g2 { width: 460px; height: 460px; background: #8b5cf6; top: 35%; right: -140px; animation-delay: -6s; }
.g3 { width: 400px; height: 400px; background: #06b6d4; bottom: -140px; left: 25%; opacity: 0.22; animation-delay: -12s; }

/* Providni "prozori" sajtova */
.ghost {
  position: absolute;
  width: 360px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 34px 22px 22px;
  opacity: 0.7;
  animation: drift 22s ease-in-out infinite alternate;
}
.ghost i {
  position: absolute;
  top: 12px; left: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 14px 0 rgba(255, 255, 255, 0.15), 28px 0 rgba(255, 255, 255, 0.15);
}
.ghost b {
  display: block;
  height: 14px;
  width: 70%;
  margin-bottom: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.ghost b.short { width: 45%; margin-bottom: 18px; }
.ghost span {
  display: inline-block;
  width: 29%;
  height: 70px;
  margin-right: 3%;
  border-radius: 6px;
  background: rgba(79, 140, 255, 0.09);
}
.w1 { top: 55%; left: -80px; transform: rotate(-8deg); width: 300px; height: 200px; }
.w2 { top: 8%;  left: 38%;  transform: rotate(4deg); width: 240px; height: 160px; opacity: 0.4; animation-delay: -7s; }
.w3 { bottom: 4%; right: 6%; transform: rotate(-5deg); animation-delay: -14s; }

@keyframes float { to { transform: translate(60px, 40px) scale(1.1); } }
@keyframes drift { to { translate: 0 -30px; } }

/* ===== NAVIGACIJA ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
/* meni ide preko cijele širine: lijevo logo, sredina terminal, desno linkovi */
.nav-inner {
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* lijevo logo, sredina status, desno meni */
  align-items: center;
  gap: 20px;
}
.nav-inner nav { justify-self: end; }
.nav-status {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.nav-status .prompt { color: var(--accent); }
.nav-status span:nth-child(2) { color: var(--text); }
.logo { font-weight: 800; font-size: 1.4rem; }
.logo span { color: var(--accent); }
.nav nav { display: flex; gap: 24px; align-items: center; }
.nav nav a { color: var(--muted); font-weight: 500; }
.nav nav a:hover { color: var(--text); }

/* ===== DUGMAD ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.35);
}
.btn-small { padding: 8px 18px; }
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2b3245;
}

/* ===== HERO: dvije kolone ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 60px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}
/* "Hi, I'm Igor Popadić" — mala slova, ime malo deblje */
.hero h1.hello {
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  margin-bottom: 14px;
}
.hello strong {
  font-weight: 700;
  color: var(--text);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== EDITOR PROZOR (kao VS Code) ===== */
.editor {
  background: rgba(15, 18, 26, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg);
}
.editor-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.file {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.editor pre {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
  color: #d4d8e2;
}
.ln { display: inline-block; width: 26px; color: #4a5162; user-select: none; }
.t { color: #7aa2f7; }   /* tagovi */
.a { color: #bb9af7; }   /* atributi */
.s { color: #9ece6a; }   /* tekst u navodnicima */
.c { color: #565f89; font-style: italic; } /* komentar */
.k { color: #f7768e; }   /* ključna riječ */
.f { color: #7dcfff; }   /* funkcija */
.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== TRAKA S TEHNOLOGIJAMA ===== */
.stack {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.stack span {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* ===== KARTICE ===== */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card p { color: var(--muted); font-size: 0.95rem; }
.icon {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ===== PROCES (4 koraka) ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: none;
}
.steps li {
  position: relative;
  padding-top: 18px;
  border-top: 2px solid var(--border);
}
.steps li:first-child { border-top-color: var(--accent); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(79, 140, 255, 0.12);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
  margin-bottom: 12px;
}
.steps p { color: var(--muted); font-size: 0.95rem; }

/* ===== PROJEKTI ===== */
.project-preview {
  height: 140px;
  border-radius: 10px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.p1 { background: linear-gradient(135deg, #f97316, #b91c1c); }
/* pravi projekat: slika sajta koja se malo uveća na hover */
.project-preview.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project:hover .project-preview.shot img { transform: scale(1.08); }
.p2 { background: linear-gradient(135deg, #ec4899, #7c3aed); }
.p3 { background: linear-gradient(135deg, #22c55e, #0e7490); }

/* mali "sajt" unutar slike projekta */
.mini {
  position: relative;
  width: 78%;
  height: 100px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px 8px 0 0;
  padding: 26px 14px 0;
}
.mini i {
  position: absolute;
  top: 9px; left: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ccc;
  box-shadow: 10px 0 #ccc, 20px 0 #ccc;
}
.mini b {
  display: block;
  height: 9px;
  width: 65%;
  border-radius: 3px;
  background: #222;
  margin-bottom: 7px;
}
.mini b.short { width: 40%; background: #bbb; }

.card p.note {
  margin-top: 10px;
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.7;
}

.soon {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}

/* ===== KONTAKT ===== */
.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.15), rgba(139, 92, 246, 0.12));
  backdrop-filter: blur(12px);
}
.contact-box p:not(.eyebrow) { color: var(--muted); margin-top: 8px; }

footer {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 26px 24px 36px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

/* ===== TABLET ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .editor { transform: none; }
  .nav-status { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ===== TELEFON ===== */
@media (max-width: 600px) {
  .nav-inner { padding: 12px 18px; }
  .nav nav { gap: 14px; }
  .nav nav a:not(.btn) { display: none; }
  section { padding: 48px 18px; }
  .grid-4, .grid-3, .steps { grid-template-columns: 1fr; }
  .contact-box { padding: 28px; }
  footer { flex-direction: column; gap: 6px; }
}
