:root {
  --bg-body: #020617;
  --bg-section: #020617;
  --bg-section-light: #050816;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #22c55e;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.7);
  --max-width: 1100px;
}

/* GLOBAL RESET */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 60%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

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

/* LAYOUT */

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* BRAND */

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

.logo-img {
  height: 52px;           /* fiksna visina, širina ide proporcionalno */
  width: auto;
  border-radius: 14px;    /* blago zaobljen ram umesto kruga */
  background: rgba(15, 23, 42, 0.95);
  padding: 4px 8px;
  object-fit: contain;    /* ništa se ne seče */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* NAVIGATION */

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  padding-bottom: 2px;
  color: #cbd5f5;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* NAV BUTTON */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.7);
}

.btn-outline {
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.7);
}

.btn-nav {
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  color: #e5e7eb;
}

/* MOBILE NAV TOGGLE */

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

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* HERO */

.hero {
  padding: 80px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(2.1rem, 3.2vw, 2.8rem);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.hero-text p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 360px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left,
              rgba(56, 189, 248, 0.20), transparent 60%);
}

.hero-monitor-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.96;
  transform: scale(1.02);
}

/* SECTIONS */

.section {
  padding: 70px 0;
  background: var(--bg-section);
}

.section-light {
  background: var(--bg-section-light);
}

.section-title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.8rem;
  margin: 0 0 12px;
}

.section-text {
  font-size: 0.98rem;
  max-width: 620px;
  color: var(--text-muted);
}

/* ABOUT */

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  width: 100%;
  max-height: 380px;    /* bilo 260px – sada znatno veće */
}


/* GRID / CARDS */

.grid {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.9);
  border-color: rgba(37, 99, 235, 0.7);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* CONSULTING */

.consulting-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.consulting-image img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  height: 100%;
  max-height: 380px;
}

/* CONTACT */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  padding: 20px 18px 22px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #e5e7eb;
}

input,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 9px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  background: #020617;
}

textarea {
  resize: vertical;
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: #020617;
  padding: 18px 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner,
  .about-inner,
  .consulting-inner,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    min-height: 220px;
  }

  .about-image img,
  .consulting-image img {
    max-height: 240px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 60px;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 5%;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.2s ease, opacity 0.2s ease;
  }

  .nav.open {
    max-height: 200px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .btn-nav {
    align-self: stretch;
    justify-content: center;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }
}

@media (max-width: 600px) {
  .container {
    width: 93%;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .logo-img {
    width: 40px;
    height: 40px;
    padding: 4px;
  }

  .brand-title {
    font-size: 1rem;
  }
}

/* Manji logo na mobilnom */
@media (max-width: 600px) {
  .logo-img {
    height: 38px;
    padding: 3px 6px;
  }
}

  .hero {
    padding: 60px 0 55px;
  }

  .section {
    padding: 55px 0;
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}
