@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --teal: #4CC2C0;
  --dark: #201E22;
  --magenta: #92278F;
  --card-bg: #2A2830;
  --card-border: rgba(76, 194, 192, 0.15);
  --text: #FFFFFF;
  --text-muted: #9B9B9B;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  z-index: 200;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(32, 30, 34, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(76, 194, 192, 0.15);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-center a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-center a:hover {
  color: var(--teal);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-instagram,
.nav-facebook {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-instagram:hover,
.nav-facebook:hover {
  color: var(--teal);
}

.nav-instagram svg,
.nav-facebook svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  transform-origin: center;
}

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

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

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

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(32, 30, 34, 0.98);
  backdrop-filter: blur(12px);
  padding: 2rem 3rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 190;
  border-bottom: 1px solid var(--card-border);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-drawer a:hover {
  color: var(--teal);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(32,30,34,0.96) 0%, rgba(32,30,34,0.75) 42%, rgba(32,30,34,0.18) 100%);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-diag {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 4px;
  background: linear-gradient(to left, transparent, var(--teal));
  opacity: 0.4;
}

.hero-glow {
  position: absolute;
  right: -8%;
  bottom: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(146, 39, 143, 0.1) 0%, transparent 68%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.8rem;
}

.hero-title span {
  color: var(--teal);
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
  max-width: 560px;
}

.hero-tagline strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--teal);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s, transform 0.25s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.btn:hover {
  background: #62ceca;
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: var(--dark);
  transition: transform 0.25s;
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ── SECTION BASE ── */
section {
  padding: 6rem 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-rule {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--magenta));
  margin: 1.2rem auto 0;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

/* ── SERVICES ── */
#storitve {
  background: rgba(0, 0, 0, 0.18);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  padding: 2rem 1.75rem;
  border-top: 3px solid var(--teal);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--magenta);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:nth-child(even) {
  border-top-color: var(--magenta);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(146, 39, 143, 0.28);
}

.service-card:hover::after {
  opacity: 0.06;
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

/* ── GALLERY ── */
#galerija {
  background: var(--dark);
}

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
  max-width: 1140px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 194, 192, 0.2), rgba(146, 39, 143, 0.3));
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-overlay svg {
  width: 44px;
  height: 44px;
  fill: white;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.25s;
  padding: 0.25rem;
}

.lightbox-close:hover {
  color: var(--teal);
}

/* ── INSTAGRAM FEED ── */
#instagram {
  background: rgba(0, 0, 0, 0.18);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  max-width: 1140px;
  margin: 0 auto;
}

.ig-item {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 1;
  text-decoration: none;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 194, 192, 0.2), rgba(146, 39, 143, 0.3));
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  gap: 0.5rem;
}

.ig-item:hover img {
  transform: scale(1.08);
}

.ig-item:hover .ig-overlay {
  opacity: 1;
}

.ig-caption {
  font-size: 0.72rem;
  color: white;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-video-badge {
  font-size: 1.4rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.ig-skeleton {
  aspect-ratio: 1;
  background: var(--card-bg);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.ig-error {
  display: none;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.9rem;
}

.ig-follow {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── CONTACT ── */
#kontakt {
  background: rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}

#kontakt::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(146, 39, 143, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.contact-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.contact-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
  line-height: 1.7;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(155, 155, 155, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-message {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  text-align: center;
  display: none;
  letter-spacing: 0.02em;
}

.form-message.success {
  color: var(--teal);
  border: 1px solid rgba(76, 194, 192, 0.3);
  background: rgba(76, 194, 192, 0.05);
}

.form-message.error {
  color: #ff7070;
  border: 1px solid rgba(255, 112, 112, 0.3);
  background: rgba(255, 112, 112, 0.05);
}

/* ── FOOTER ── */
footer {
  padding: 2rem 3rem;
  border-top: none;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal) 30%, var(--magenta) 70%, transparent);
  opacity: 0.5;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
}

footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--teal);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 0 2rem;
  }

  .nav-center {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .gallery-grid {
    columns: 2;
  }

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

  section {
    padding: 5rem 2rem;
  }

  #hero {
    padding: calc(var(--nav-h) + 1.5rem) 2rem 3rem;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0 1.5rem;
  }

  .nav-drawer {
    padding: 1.5rem;
  }

  .gallery-grid {
    columns: 1;
  }

  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  footer {
    padding: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  section {
    padding: 4rem 1.5rem;
  }

  #hero {
    padding: calc(var(--nav-h) + 1rem) 1.5rem 2.5rem;
  }
}
