:root {
  --bg: #020617;
  --card: rgba(15,23,42,0.65);
  --border: rgba(255,255,255,0.08);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --radius: 24px;
}

/* ===== GLOBAL ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}


/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* ===== NAVBAR ===== */
/* ===== NAVBAR ===== */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;

  padding: 1rem 2rem;
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

.nav.scrolled {
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
   margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav a { color: var(--text); margin-left: 1.5rem; text-decoration: none; font-weight: 500; }
.nav a{
 position:relative;
}

.nav a::after{
 content:"";
 position:absolute;
 left:0;
 bottom:-6px;
 width:0;
 height:2px;
 background:var(--primary);
 transition:.3s;
}

.nav a:hover::after{
 width:100%;
}
.nav-cta { padding: .45rem .8rem; border-radius: 8px; background: var(--primary); color: white; }
#themeToggle { background:none; border:none; color:var(--text); cursor:pointer; }

.work-header .work-sub {
  text-align: center;
  max-width: 720px; /* opcionalno da ne bude preširoko */
  margin: 0 auto 1.5rem auto; /* centrirano i s donjim marginom */
  color: var(--muted); /* da ostane u tonu s drugim tekstom */
  font-size: 1rem; /* po želji */
}

.work-wrap {
  position: relative;
}

.work-btn {
  position: absolute;
  top: 40%;
  background: var(--card);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.work-btn:hover {
  background: var(--primary);
  color: white;
}

.work-btn.prev { left: -15px; }
.work-btn.next { right: -15px; }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: grid; place-items: center; padding: 2rem; text-align:center; }
.hero-card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 4rem;
  max-width: 820px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(96,165,250,0.35),
    rgba(34,211,238,0.25),
    transparent
  );
  filter: blur(30px);
  z-index: -1;
}

.hero-card {
  position: relative;
}


.badge { display:inline-block; padding:.45rem .9rem; font-size:.75rem; font-weight:600; border-radius:999px; background: rgba(96,165,250,.1); color: var(--primary); margin-bottom:1.25rem; }
.headline { font-size: clamp(2.6rem,5vw,3.4rem); margin-bottom:1rem; }
.headline span { color: var(--primary); }
.subheadline { margin-bottom:2.2rem; color:var(--muted); }
.headline1 { font-size: clamp(2.6rem,5vw,3.4rem); margin-bottom:1rem; margin-top: 40px; }
.brand-logo img{ height:44px; }

/* ===== CTA ===== */
.cta-group { display:flex; justify-content:center; gap:1rem; }
.btn { padding:.9rem 1.4rem; border-radius:12px; font-weight:600; text-decoration:none; transition: transform .25s ease; }
.btn.primary { background: var(--primary); color:white; }

/* ===== PROOF ===== */
.proof { display:grid; grid-template-columns: repeat(3,1fr); gap:2rem; margin-top:2rem; }
.proof div { display:flex; flex-direction:column; align-items:center; }
.proof strong { font-size:1.35rem; }
.proof span { color: var(--muted); font-size:.8rem; }

/* ===== SECTIONS ===== */
.section { padding:6rem 2rem; max-width:1100px; margin:0 auto; }
.section-title { font-size:2.1rem; margin-bottom:3rem; text-align:center; }

/* ===== SERVICES ===== */
.service-grid { display:flex; gap:2rem; flex-wrap: wrap; justify-content:center; }
.service-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding:2.5rem;
  min-width:250px;
  transition: transform .4s ease, box-shadow .4s ease;
}
.service-card:hover { transform: translateY(-10px); box-shadow:0 20px 40px rgba(34,211,238,.25); }

/* ===== PROCESS ===== */
.process-steps { display:flex; gap:2rem; overflow-x:auto; scroll-snap-type:x mandatory; justify-content:center; }
.step {
  background: var(--card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding:2rem;
  min-width:220px;
  text-align:center;
  scroll-snap-align:start;
  transition: transform .4s ease, box-shadow .4s ease;
}
.step:hover { transform: translateY(-8px); box-shadow:0 15px 35px rgba(34,211,238,.25); }
.step .icon { font-size:2rem; margin-bottom:0.5rem; }

/* ===== WHY SITECRAFT ===== */
.why-grid { display:flex; gap:2rem; justify-content:center; flex-wrap:wrap; }
.why-grid div {
  background: var(--card);
  backdrop-filter: blur(16px);
  border-radius:28px;
  padding:2rem;
  text-align:center;
  min-width:220px;
  transition: transform .4s ease, box-shadow .4s ease;
}
.why-grid div:hover { transform: translateY(-8px); box-shadow:0 15px 35px rgba(96,165,250,.25); }
.why-grid .icon { font-size:2rem; margin-bottom:.6rem; }

/*work*/

/* ===== WORK SLIDER ===== */
.work-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 0;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

}

.work-slider::-webkit-scrollbar {
  display: none;
}
@media (max-width: 480px) {
  .work-btn {
    display: none;
  }
}


.work-slide {
  flex: 0 0 300px;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.work-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(96,165,250,0.25);
}

.work-visual {
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  min-height: 200px;
}

.work-visual img {
  width: 100%;
  display: block;
}

.work-placeholder {
  height: 200px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(34,211,238,0.08));
  border-radius: 24px;
}

.work-meta {
  padding: 1rem 0;
}

.work-meta span {
  font-size: 0.7rem;
  color: var(--primary);
}

.work-meta h3 {
  margin: 0.3rem 0;
  font-size: 1.1rem;
}

.work-meta p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* MOBILE */
@media (max-width: 768px) {
  .work-slide {
    flex: 0 0 80%;
  }
}
.contact-card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  max-width: 650px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(96,165,250,0.35);
}

.contact-form button {
  display: inline-block;
  margin-top: 0.5rem;
}

.contact-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.contact-hero h1 {
  font-size: clamp(2.5rem,5vw,3.5rem);
  margin-bottom: 1rem;
}

.contact-hero p.sub {
  color: var(--muted);
  font-size: 1.05rem;
}


.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.contact-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  background: var(--card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(96,165,250,0.2);
}

.contact-item .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tiny {
  font-size: 0.85rem;
  color: var(--muted);
}
.contact-container {
  display: flex;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-left, .contact-right {
  flex: 1;
  min-width: 320px;
}

.contact-left .contact-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  background: var(--card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(96,165,250,0.2);
}

.contact-right.contact-card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
}


/* Responsive */
@media (max-width: 768px) {
  .contact-card {
    padding: 2rem 1rem;
  }
}


.btn-large {
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  border-radius: 12px;
}

.home-cta {
  text-align: center;
  padding: 6rem 2rem;
}

.home-cta h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.home-cta p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== FULLSCREEN MODAL ===== */
.fullscreen-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.95); align-items:center; justify-content:center; z-index:9999; }
.fullscreen-modal iframe { width:90%; height:90%; border:none; }
.fullscreen-modal .close { position:absolute; top:1rem; right:2rem; font-size:2rem; color:white; cursor:pointer; }

/* ===== FOOTER ===== */
.footer { text-align:center; padding:2rem; color:var(--muted); }

/* ===== THEME SYSTEM ===== */

body.light {
  --bg: #dee9f5;
  --card: rgba(255,255,255,0.75);
  --border: rgba(0,0,0,0.08);
  --text: #020617;
  --muted: #475569;
  --primary: #2563eb;
}

/* ===== WHY TIMELINE ===== */
.why-timeline {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.why-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--card);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  border-left: 3px solid var(--primary);
}

.why-index {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  min-width: 40px;
}


@media (max-width: 768px) {
  .service-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }

  .service-card {
    min-width: 80%;
    scroll-snap-align: start;
  }
}


@media (max-width: 768px) {
  .process-steps {
    justify-content: flex-start;
    padding-bottom: 1rem;
  }

  .step {
    min-width: 75%;
  }
}

@media (max-width: 768px) {
  .why-timeline {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .why-item {
    min-width: 85%;
    scroll-snap-align: start;
    border-left: none;
    border-top: 3px solid var(--primary);
  }
}

* {
  -webkit-overflow-scrolling: touch;
}



/* ================= RESPONSIVE WORK SLIDER ================= */

/* Large screens (desktop) */
@media (min-width: 1200px) {
  .work-slide {
    flex: 0 0 320px;
  }
}

/* Laptops / tablets */
@media (max-width: 1199px) and (min-width: 769px) {
  .work-slide {
    flex: 0 0 280px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  .work-wrap {
    padding: 0 1rem;
  }

  .work-slide {
    flex: 0 0 85%;
  }

  .work-btn {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
    top: 45%;
  }

  .work-btn.prev {
    left: -6px;
  }

  .work-btn.next {
    right: -6px;
  }

  .work-meta h3 {
    font-size: 1rem;
  }

  .work-meta p {
    font-size: 0.8rem;
  }
}
