/* BASE */
body {
  font-family: 'Inter', sans-serif;
  background-color: #0F172A;
  color: #F8FAFC;
  padding-top: 80px; /* malo više zbog headera */
}

/* SEKCIJE */
section {
  position: relative;
  padding: 100px 0;
  margin: 40px 0;
}

/* GLASS BOX */
.section-box {
  position: relative;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 60px 30px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Subtle glow */
.section-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(59,130,246,0.08);
  pointer-events: none;
}

/* Divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(148,163,184,0.3), transparent);
  margin: 60px 0;
}

/* Overlap */
.overlap {
  margin-top: -80px;
}

/* Hero */
header {
  position: relative;
  z-index: 2;
}

/* TEXT */
.text-secondary-custom {
  color: #94A3B8;
}

/* CTA */
.btn-accent {
  background-color: #3B82F6;
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59,130,246,0.3);
}

/* CARDS */
.card {
  position: relative;
  background-color: #1E293B;
  color: #F8FAFC;
  border: none;
  border-radius: 12px;
  max-height: 180px;
  transition: all 0.3s ease;
  z-index: 1;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(270deg, #3B82F6, #10B981, #3B82F6);
  background-size: 400% 400%;
  animation: glowMove 6s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(59,130,246,0.25);
}

@keyframes glowMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* TECH STACK */
.tech-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
  max-height: 50px;
  height: 50px;
}

.tech-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* CALENDLY */
iframe {
  border-radius: 12px;
}

/* FADE */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.2s; }
.fade-in-delay-2 { transition-delay: 0.4s; }
.fade-in-delay-3 { transition-delay: 0.6s; }

/* BACKGROUND ORBS */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.orb-1 {
  background: #3B82F6;
  top: 10%;
  left: 10%;
  animation: moveOrb1 18s ease-in-out infinite alternate;
}

.orb-2 {
  background: #10B981;
  bottom: 10%;
  right: 10%;
  animation: moveOrb2 22s ease-in-out infinite alternate;
}

@keyframes moveOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(150px, 100px) scale(1.2); }
}

@keyframes moveOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-120px, -80px) scale(1.3); }
}

/* SEKCIJE */
.section-solid {
  background-color: rgba(2, 6, 23, 0.6);
}

.section-gradient {
  background:
    linear-gradient(rgba(15,23,42,0.6), rgba(15,23,42,0.6)),
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.25), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(16,185,129,0.2), transparent 60%);
}

/* 🔥 TOP BAR FIX */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148,163,184,0.1);
}

/* INNER CONTAINER */
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 5px;
}

/* Logo */
.top-logo {
  height: 50px;
}

/* Dugme */
.top-bar .btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
}

.top-bar .btn:hover {
  box-shadow: 0 0 20px rgba(59,130,246,0.4);
}