:root {
  --bg: #0b0d10;
  --gold: #c8a45d;
  --muted: #a7adb7;
  --white: #f7f7f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
}

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

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    linear-gradient(110deg, rgba(5, 6, 8, .93), rgba(5, 6, 8, .58)),
    url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?q=80&w=1600&auto=format&fit=crop') center/cover;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6vw;
  background: linear-gradient(#08090c, rgba(8, 9, 12, .52), transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand img {
  width: 62px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
}

.brand strong {
  display: block;
  font-weight: 900;
  letter-spacing: .18em;
}

.brand span {
  color: var(--gold);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  letter-spacing: .32em;
  font-size: 11px;
}

.links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.links a {
  position: relative;
  transition: color .18s ease;
}

.links a:hover,
.links a.active {
  color: var(--gold);
}

.links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(200, 164, 93, .55);
}

.lang {
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 800;
}

.lang.active {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}

.hero-inner {
  max-width: 1120px;
  width: 100%;
  padding-top: 90px;
}

.hero-logo {
  width: min(360px, 72vw);
  height: auto;
  display: block;
  margin: 0 0 28px -18px;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, .60));
}

.eyebrow {
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 92px);
  line-height: .95;
  margin: 18px 0 20px;
  letter-spacing: -.06em;
}

.hero p {
  max-width: 680px;
  font-size: 20px;
  line-height: 1.6;
  color: #d6d9df;
}

.btns {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: white;
  font-weight: 800;
}

.btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}

.section {
  padding: 88px 6vw;
}

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

.card {
  background: linear-gradient(180deg, #151a22, #0f1319);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 26px;
  padding: 26px;
  min-height: 170px;
}

.card b {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
}

.title {
  font-size: 42px;
  margin: 0 0 18px;
  letter-spacing: -.04em;
}

.lead {
  color: var(--muted);
  max-width: 900px;
  line-height: 1.7;
}

.services {
  grid-template-columns: repeat(3, 1fr);
}

.project {
  min-height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.project:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .84));
}

.project div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
}

.project small {
  display: inline-block;
  margin-top: 8px;
  color: #111;
  background: var(--gold);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.reference-item {
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(180deg, #151a22, #0f1319);
  border-radius: 18px;
  padding: 16px 18px;
  color: #f7f3ea;
  font-weight: 800;
  line-height: 1.35;
}

.reference-item:hover {
  border-color: rgba(200, 164, 93, .45);
  color: var(--gold);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 22px;
}

.stat strong {
  font-size: 54px;
  color: var(--gold);
}

.cta {
  margin: 40px 6vw 80px;
  border-radius: 34px;
  padding: 58px;
  background: linear-gradient(135deg, #171d26, #0b0d10);
  border: 1px solid rgba(200, 164, 93, .25);
}

.contact-form {
  margin-top: 34px;
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #d6d9df;
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(15, 19, 25, .92);
  color: #fff;
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, .38);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(200, 164, 93, .7);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-submit {
  width: fit-content;
  cursor: pointer;
  margin-top: 4px;
}

.captcha-box {
  display: flex;
  align-items: center;
  min-height: 72px;
  margin-top: 2px;
}

.captcha-box iframe {
  max-width: 100%;
}

.contact-form-sent .captcha-box {
  display: none;
}


.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 6vw;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

footer img {
  width: 70px;
  height: 46px;
  object-fit: contain;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

footer a {
  color: var(--gold);
  font-weight: 800;
}

@media(max-width: 900px) {
  .grid,
  .services,
  .stats,
  .references-grid {
    grid-template-columns: 1fr;
  }

  .links {
    display: none;
  }

  .hero h1 {
    font-size: 54px;
  }

  .section {
    padding: 62px 24px;
  }

  .cta {
    margin: 24px;
    padding: 34px;
  }

  .nav {
    padding: 14px 20px;
  }

  .brand img {
    width: 54px;
    height: 40px;
  }

  .brand strong {
    letter-spacing: .1em;
    font-size: 13px;
  }

  .hero-logo {
    width: 260px;
    margin-left: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
    text-align: center;
  }

  footer {
    display: grid;
  }
}
.form-status {
  margin: 0 0 24px;
  padding: 22px 24px;
  border-radius: 20px;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.form-status:focus {
  outline: 2px solid rgba(200, 164, 93, .6);
  outline-offset: 4px;
}

.form-status-title {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  margin-bottom: 10px;
}

.form-status-text {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  max-width: 760px;
}

.form-status.success {
  background: linear-gradient(135deg, rgba(46, 160, 67, .22), rgba(18, 28, 22, .95));
  border: 1px solid rgba(46, 160, 67, .55);
  color: #9cf2aa;
}

.form-status.error {
  background: rgba(180, 40, 50, .16);
  border: 1px solid rgba(180, 40, 50, .35);
  color: #ff9aa2;
}

.form-status.error .form-status-text {
  color: #ffd0d4;
}

.form-reset {
  margin-top: 18px;
}

.contact-form-sent .form-row,
.contact-form-sent > label,
.contact-form-sent .contact-submit,
.contact-form-sent .form-note {
  display: none;
}

.contact-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}
/* Pocetna animacija velikog loga */
.hero-logo {
  opacity: 0;
  transform: translateY(22px) scale(.94);
  animation:
    logoIntro 1.15s cubic-bezier(.2, .9, .2, 1) .15s forwards,
    logoFloat 5.5s ease-in-out 1.45s infinite;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(.90);
    filter: blur(10px) drop-shadow(0 0 0 rgba(200, 164, 93, 0));
  }

  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.035);
    filter: blur(0) drop-shadow(0 0 28px rgba(200, 164, 93, .22));
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) drop-shadow(0 28px 55px rgba(0, 0, 0, .60));
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 28px 55px rgba(0, 0, 0, .60));
  }

  50% {
    transform: translateY(-8px) scale(1.015);
    filter: drop-shadow(0 32px 62px rgba(200, 164, 93, .18));
  }
}

/* Postovanje accessibility opcije za korisnike koji ne zele animacije */
@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
.visit-counter {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(17, 23, 34, .55);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.admin-stat-card {
  background: #111722;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  padding: 22px;
}

.admin-stat-card strong {
  display: block;
  font-size: 38px;
  color: #c8a45d;
  margin-bottom: 6px;
}

.admin-stat-card span {
  color: #aeb4bf;
  font-weight: 800;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  background: #111722;
  border-radius: 20px;
  overflow: hidden;
}

.analytics-table th,
.analytics-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
}

.analytics-table th {
  color: #c8a45d;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.analytics-table td {
  color: #f7f3ea;
}

@media(max-width: 900px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .visit-counter {
    width: fit-content;
  }
}
/* Project gallery / album */
.project-card {
  width: 100%;
  text-align: left;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, .08);
  cursor: pointer;
  font: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 93, .45);
  box-shadow: 0 22px 65px rgba(0, 0, 0, .32);
}

.gallery-badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  color: #111;
  background: var(--gold);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
}

body.gallery-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.gallery-modal.open {
  display: flex;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
}

.gallery-dialog {
  position: relative;
  z-index: 2;
  width: min(1120px, 96vw);
  max-height: 92vh;
  background: #0f1319;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .65);
  overflow: hidden;
}

.gallery-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.gallery-photo-wrap {
  position: relative;
  background: #07090c;
  display: grid;
  place-items: center;
  min-height: 360px;
  max-height: 68vh;
}

.gallery-photo-wrap img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .52);
  color: #fff;
  font-size: 48px;
  line-height: .8;
  cursor: pointer;
}

.gallery-nav.prev {
  left: 18px;
}

.gallery-nav.next {
  right: 18px;
}

.gallery-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 12px;
}

.gallery-info h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.gallery-info p {
  margin: 0;
  color: var(--muted);
}

.gallery-info strong {
  color: var(--gold);
  white-space: nowrap;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 0 22px 22px;
  overflow-x: auto;
}

.gallery-thumb {
  flex: 0 0 84px;
  width: 84px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #141923;
  cursor: pointer;
  opacity: .72;
}

.gallery-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media(max-width: 700px) {
  .gallery-modal {
    padding: 10px;
  }

  .gallery-dialog {
    border-radius: 20px;
  }

  .gallery-photo-wrap {
    min-height: 260px;
  }

  .gallery-nav {
    width: 38px;
    height: 52px;
    font-size: 40px;
  }

  .gallery-nav.prev {
    left: 8px;
  }

  .gallery-nav.next {
    right: 8px;
  }

  .gallery-info {
    align-items: flex-start;
    flex-direction: column;
  }
}
