/* ================================
   CROX Modern Pro Styles (2026)
   File: styles.css
   ================================ */

/* ================================
   DESIGN TOKENS – 2 COLOR SYSTEM
   HERO + FOOTER = PRIMARY TEGET
   REST = SECONDARY TEGET
================================ */

/* ---------- Design Tokens ---------- */
:root{
  /* PRIMARY – Hero + Footer (teget) */
  --bg-primary: #0b1020;

  /* SECONDARY – ostatak sajta (mirniji teget) */
  --bg-secondary: #0e152b;

  /* Surfaces */
  --surface: rgba(255,255,255,.05);
  --surface-2: rgba(255,255,255,.08);
  --card: rgba(255,255,255,.07);
  --stroke: rgba(255,255,255,.12);

  /* Text */
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted-2: rgba(255,255,255,.56);

  /* ONE brand color */
  --brand: #4da3ff;

  --danger:#ff4d6d;

  /* Effects */
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow-soft: 0 12px 30px rgba(0,0,0,.25);

  /* Radius */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* Layout */
  --container: 1180px;
  --nav-h: 80px;
}

/* ---------- Base / Reset ---------- */
*{ box-sizing:border-box; }
html, body{ height:100%; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  /* SECONDARY background for whole site */
  background: var(--bg-secondary);
  overflow-x:hidden;
}

/* ---------- Default sections ---------- */
section{
  background: var(--bg-secondary);
}

/* ---------- Cards & blocks ---------- */
.service-card,
.portfolio-item,
.stat-card,
.info-card,
.faq-item,
.contact-form-wrapper{
  background: var(--card);
  border: 1px solid var(--stroke);
}

/* ---------- HERO (PRIMARY TEGET) ---------- */
.hero{
  background:
    radial-gradient(1000px 600px at 15% 10%, rgba(77,163,255,.22), transparent 60%),
    linear-gradient(180deg, #081025 0%, var(--bg-primary) 60%);
}

/* Optional overlay – very subtle */
.hero-overlay{
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.25));
}

/* ---------- FOOTER (PRIMARY TEGET – FIXED) ---------- */
footer{
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(77,163,255,.15), transparent 65%),
    linear-gradient(180deg, var(--bg-primary) 0%, #081025 100%);
}

/* ---------- Accents ---------- */
.section-divider{
  background: var(--brand);
}

/* ✅ FIX: spojeno u jedno (bez duplikata) */
a{
  color: inherit;
  text-decoration: none;
}
a:hover{
  color: var(--brand);
}

/* ---------- Buttons ---------- */
.btn-primary{
  background: var(--brand);
  color:#fff;
}

img{
  max-width:100%;
  display:block;
}

p{ color: var(--muted); line-height:1.7; margin:0; }
h1,h2,h3,h4{ margin:0; font-family:"Montserrat", "Poppins", sans-serif; letter-spacing:.2px; }
h1{ font-size: clamp(2.0rem, 4vw, 3.3rem); line-height:1.05; }
h2{ font-size: clamp(1.65rem, 3vw, 2.4rem); line-height:1.15; }
h3{ font-size: 1.15rem; }
h4{ font-size: 1.0rem; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

/* ---------- Language Switch (CSS only) ---------- */
/* Hide radio buttons */
#lang-en, #lang-de{
  position:absolute;
  width:1px; height:1px;
  margin:-1px; padding:0;
  overflow:hidden;
  clip: rect(0 0 0 0);
  border:0;
}

/* Default: show EN, hide DE */
.content-de{ display:none; }

/* If DE checked: swap */
#lang-de:checked ~ * .content-en{ display:none !important; }
#lang-de:checked ~ * .content-de{ display:inline !important; }

/* For blocks */
#lang-de:checked ~ * .content-de:where(div){ display:block !important; }
#lang-de:checked ~ * .content-de:where(section){ display:block !important; }

#lang-en:checked ~ * .content-en{ display:inline !important; }
#lang-en:checked ~ * .content-de{ display:none !important; }

/* Active label look */
.lang-switch{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  color: var(--muted);
  user-select:none;
}

.lang-label{
  cursor:pointer;
  padding:8px 10px;
  border-radius: 12px;
  border:1px solid transparent;
  transition: .25s ease;
}
.lang-label:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

#lang-en:checked ~ * .lang-en-label{
  color: var(--text);
  background: linear-gradient(135deg, rgba(77,163,255,.25), rgba(124,92,255,.18));
  border-color: rgba(77,163,255,.35);
}
#lang-de:checked ~ * .lang-de-label{
  color: var(--text);
  background: linear-gradient(135deg, rgba(77,163,255,.25), rgba(124,92,255,.18));
  border-color: rgba(77,163,255,.35);
}

/* ---------- Navbar ---------- */
.navbar{
  position:fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 999;
  transition: .25s ease;
  background: rgba(6,10,20,.25);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar.scrolled{
  background: rgba(6,10,20,.72);
  border-bottom-color: rgba(255,255,255,.12);
}

.navbar .container{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

/* LOGO WRAPPER (ako već ne postoji, slobodno dodaj) */
.logo{
  display: flex;
  align-items: center;
}

/* LOGO IMAGE */
.logo img{
  height: 85px; /* povećano sa 44px */
  width: auto;
  display: block; /* uklanja inline razmake */
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}

.nav-menu{
  list-style:none;
  display:flex;
  gap: 18px;
  padding:0;
  margin:0;
  align-items:center;
}

/* Base link */
.nav-menu a{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.78);
  font-weight:600;
  transition: .22s ease;
}

.nav-menu a:hover{
  color: var(--text);
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

/* ---------- Submenu (Legal / Rechtliche Hinweise) ---------- */
.nav-menu .has-submenu{
  position: relative;
}

/* Toggle link (parent item) */
.nav-menu .has-submenu > a{
  cursor: pointer;
}

/* Submenu hidden by default */
.nav-menu .submenu{
  display: none;               /* KEY: hidden until click */
  position: absolute;          /* desktop dropdown */
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  margin: 0;
  list-style: none;
  border-radius: var(--r-lg);
  background: rgba(6,10,20,.92);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  z-index: 1200;
}

/* Show submenu when JS adds .open to li.has-submenu */
.nav-menu .has-submenu.open > .submenu{
  display: block;
}

/* Submenu links */
.nav-menu .submenu a{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  transform: none;             /* prevent "jump" */
}

.nav-menu .submenu a:hover{
  background: rgba(255,255,255,.10);
  transform: none;
}

/* ---------- Hamburger ---------- */
.hamburger{
  width: 44px;
  height: 44px;
  display:none;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  transition: .2s ease;
}

.hamburger:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

.hamburger span{
  position:absolute;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 10px;
  transition: .2s ease;
}

.hamburger span:nth-child(1){ transform: translateY(-6px); }
.hamburger span:nth-child(2){ transform: translateY(0px); }
.hamburger span:nth-child(3){ transform: translateY(6px); }

.hamburger.active span:nth-child(1){ transform: translateY(0) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform: translateY(0) rotate(-45deg); }

/* ---------- Mobile nav behavior ---------- */
@media (max-width: 760px){
  .hamburger{ display:flex; position:relative; }

  .nav-menu{
    position: fixed;
    top: var(--nav-h);
    right: 14px;
    left: 14px;
    display:none;
    flex-direction:column;
    gap: 6px;
    padding: 12px;
    border-radius: var(--r-xl);
    background: rgba(6,10,20,.82);
    border:1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    align-items: stretch;
  }

  .nav-menu.active{ display:flex; }

  .nav-menu a{
    width:100%;
    justify-content:center;
  }

  /* Submenu on mobile: open inline, not absolute dropdown */
  .nav-menu .submenu{
    position: static;
    min-width: unset;
    width: 100%;
    box-shadow: none;
    margin-top: 6px;
    padding: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
  }

  .nav-menu .submenu a{
    justify-content:center;
  }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height: 92vh;
  display:flex;
  align-items:center;
  padding-top: calc(var(--nav-h) + 30px);
  padding-bottom: 70px;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 600px at 15% 30%, rgba(77,163,255,.25), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(124,92,255,.22), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
  pointer-events:none;
}

.hero-content{
  position:relative;
  display:grid;
  grid-template-columns: 1.25fr .9fr;
  align-items:center;
  gap: 40px;
}

.hero-text p{
  margin-top: 14px;
  max-width: 56ch;
}

.hero-buttons{
  margin-top: 22px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing:.2px;
  border: 1px solid transparent;
  transition: .22s ease;
  position:relative;
  isolation:isolate;
}

.btn-primary{
  background: linear-gradient(135deg, rgba(77,163,255,1), rgba(124,92,255,1));
  color: #081022;
  box-shadow: 0 14px 40px rgba(77,163,255,.25);
}

.btn-primary:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.btn-outline{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.btn-outline:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
}

.hero-image{
  display:flex;
  justify-content:flex-end;
}

.floating-card{
  width: min(380px, 100%);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform: translateY(0);
  animation: floaty 4.5s ease-in-out infinite;
}

@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

.card-content{
  padding: 22px;
  display:flex;
  gap: 16px;
  align-items:flex-start;
}

.card-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(53,211,183,.22), rgba(77,163,255,.18));
  border: 1px solid rgba(53,211,183,.25);
}

.card-icon i{ font-size: 24px; color: var(--text); }

.card-text h3{ font-size: 1.15rem; }
.card-text p{ margin-top: 4px; color: var(--muted); }

.scroll-indicator{
  position:absolute;
  left:50%;
  bottom: 18px;
  transform: translateX(-50%);
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-weight:600;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}

.scroll-indicator i{
  font-size: 18px;
  animation: bounce 1.2s infinite;
}

@keyframes bounce{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(4px); }
}

/* ---------- Section Helpers ---------- */
section{
  position:relative;
}

.section-header{
  text-align:center;
  margin-bottom: 28px;
}

.section-subtitle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  font-weight:700;
  margin-bottom: 12px;
}

.section-divider{
  width: 84px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77,163,255,1), rgba(124,92,255,1));
  opacity:.9;
}

/* ---------- About ---------- */
.about-section{
  padding: 80px 0;
}

.about-grid{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items:center;
}

.about-image{
  position:relative;
}

.image-frame{
  border-radius: var(--r-xl);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-soft);
}

.image-frame img{
  width:100%;
  height: 520px;
  object-fit: cover;
  transform: scale(1.02);
}

.experience-badge{
  position:absolute;
  left: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(6,10,20,.65);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  display:flex;
  gap:10px;
  align-items:center;
}

.experience-badge span:first-child{
  font-family:"Montserrat",sans-serif;
  font-weight:900;
  font-size: 1.4rem;
  color: var(--text);
}

.about-description p{ margin-top: 12px; }

.about-stats{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-item{
  padding: 16px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

.stat-item h3{
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(77,163,255,1), rgba(124,92,255,1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.stat-item p{
  margin-top: 6px;
  color: var(--muted);
}

/* ---------- Services ---------- */
.services-section{
  padding: 80px 0;
}
/* ✅ FIX: auto-fit grid so 3 cards center perfectly (About page),
   while still working great for 8 cards (Landing page). */
.services-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  justify-content: center; /* centers grid tracks when there is extra space */
}

.service-card{
  position: relative;
  isolation: isolate; /* ✅ keeps ::before behind content */
  padding: 20px 18px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  transition: .22s ease;
  overflow:hidden;
}

/* ✅ keep glow behind card content (never blocks clicks) */
.service-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(500px 220px at 20% 0%, rgba(77,163,255,.18), transparent 60%),
    radial-gradient(500px 220px at 80% 0%, rgba(124,92,255,.16), transparent 60%);
  opacity:0;
  transition:.25s ease;
  pointer-events:none;
  z-index: 0;
}

/* ✅ bring all content above ::before */
.service-card > *{
  position: relative;
  z-index: 1;
}

.service-card:hover{
  transform: translateY(-4px);
  border-color: rgba(77,163,255,.25);
}

.service-card:hover::before{ opacity:1; }

.service-icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  margin-bottom: 12px;
}

.service-icon i{
  font-size: 24px;
  color: rgba(255,255,255,.9);
}

.service-card h3{ margin-bottom: 8px; }

.service-description p{
  margin-top: 8px;
  color: var(--muted);
  font-size: .95rem;
}

.service-link{
  margin-top: 14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color: rgba(77,163,255,.95);
  padding: 10px 0;
}

.service-link i{ font-size: 18px; transition:.2s ease; }
.service-card:hover .service-link i{ transform: translateX(3px); }

/* ---------- Stats Section ---------- */
.stats-section{
  padding: 34px 0 80px;
}

/* ✅ FIX: same logic as services-grid. Centers when you have 3 cards (About contact CTA),
   and still perfect for 4 cards (Landing stats). */
.stats-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  justify-content: center;
}

.stat-card{
  padding: 18px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  display:flex;
  gap: 14px;
  align-items:center;
  transition:.22s ease;
}

.stat-card:hover{
  transform: translateY(-3px);
  border-color: rgba(53,211,183,.22);
}

.stat-icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(53,211,183,.18), rgba(77,163,255,.16));
  border: 1px solid rgba(255,255,255,.14);
}

.stat-icon i{ font-size: 24px; }

.stat-content h3{
  font-size: 1.35rem;
  font-weight: 900;
}

/* ---------- Portfolio ---------- */
.portfolio-section{
  padding: 20px 0;   /* bilo 80px – smanjeno da se sadržaj podigne */
}

.portfolio-filters{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;     /* kontrolisan razmak ispod naslova */
  margin-bottom: 20px;
}

.filter-btn{
  cursor:pointer;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  transition:.22s ease;
}

.filter-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

.filter-btn.active{
  color:#081022;
  border-color: rgba(77,163,255,.35);
  background: linear-gradient(135deg, rgba(77,163,255,1), rgba(124,92,255,1));
}

.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-item{
  border-radius: var(--r-xl);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  transition:.25s ease;
}
.portfolio-image{
  position: relative;
  display: block;            /* ✅ bitno jer je sada <a> */
  width: 100%;
  height: 280px;             /* ili umesto ovoga može aspect-ratio (vidi dole) */
  overflow: hidden;          /* ✅ da se img ne “preliva” */
}

.portfolio-image img{
  display: block;            /* ✅ uklanja male razmake ispod slike */
  width: 100%;
  height: 100%;
  object-fit: cover;         /* ✅ sve slike iste dimenzije */
  object-position: center;   /* ✅ centriran crop */
  transform: scale(1.02);
  transition: .35s ease;
  filter: saturate(1.05) contrast(1.05);
}

.portfolio-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(6,10,20,.86));
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: .25s ease;
}

.portfolio-content{
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.portfolio-content p{
  color: rgba(255,255,255,.72);
  margin-top: 4px;
}

.portfolio-link{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  transition: .2s ease;
}

.portfolio-item:hover{
  transform: translateY(-4px);
  border-color: rgba(77,163,255,.25);
}

.portfolio-item:hover .portfolio-overlay{ opacity: 1; }
.portfolio-item:hover img{ transform: scale(1.08); }
.portfolio-link:hover{ background: rgba(255,255,255,.12); }

/* ✅ Responsive portfolio */
@media (max-width: 900px){
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .portfolio-grid{ grid-template-columns: 1fr; }
}


/* ---------- Testimonials ---------- */
.testimonials-section{
  padding: 80px 0;
}

.testimonials-slider{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial-card{
  padding: 20px;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
  transition:.22s ease;
}

.testimonial-card:hover{
  transform: translateY(-3px);
  border-color: rgba(124,92,255,.25);
}

.quote-icon{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  margin-bottom: 10px;
}

.testimonial-content p{
  color: rgba(255,255,255,.78);
}

.testimonial-author{
  margin-top: 14px;
  display:flex;
  gap: 12px;
  align-items:center;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.author-image{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
}

.author-image img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.author-info p{ color: rgba(255,255,255,.70); }

/* ✅ Responsive testimonials */
@media (max-width: 900px){
  .testimonials-slider{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .testimonials-slider{ grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-section{
  padding: 80px 0;
}

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items:start;
}

.contact-info{
  display:grid;
  gap: 14px;
}

.info-card{
  padding: 18px;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  display:flex;
  gap: 14px;
  align-items:flex-start;
  transition:.22s ease;
}

.info-card:hover{
  transform: translateY(-2px);
  border-color: rgba(53,211,183,.22);
}

.info-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(53,211,183,.18), rgba(77,163,255,.14));
  border:1px solid rgba(255,255,255,.14);
}

.info-content p{ margin-top: 6px; color: rgba(255,255,255,.72); }

/* ✅ Responsive contact */
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* Form wrapper */
.contact-form-wrapper{
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 46px rgba(0,0,0,.18);
  overflow:hidden;
}

.contact-form{
  padding: 22px;
  display:grid;
  gap: 14px;
}

.form-group{
  display:grid;
  gap: 8px;
}

.form-group label{
  font-weight: 800;
  color: rgba(255,255,255,.82);
  font-size: .92rem;
}

.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(6,10,20,.45);
  color: var(--text);
  outline:none;
  transition:.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder{
  color: rgba(255,255,255,.45);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  border-color: rgba(77,163,255,.55);
  box-shadow: 0 0 0 4px rgba(77,163,255,.15);
}

.form-group textarea{
  resize: vertical;
  min-height: 140px;
}

/* Success message (from JS) */
.success-message{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:grid;
  place-items:center;
  z-index: 100000; /* ✅ always above cookie banner */
  padding: 24px;
}

.success-content{
  width: min(520px, 100%);
  border-radius: var(--r-xl);
  background: rgba(10,14,26,.85);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align:center;
}

.success-content i{
  font-size: 42px;
  color: rgba(53,211,183,.95);
}

.close-message{
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 800;
  cursor:pointer;
  transition:.2s ease;
}

.close-message:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

/* ---------- Map ---------- */
.map-section{
  padding: 0 0 80px;
}

.map-container{
  border-radius: var(--r-xl);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 46px rgba(0,0,0,.18);
}

.map-container iframe{
  display:block;
  width:100%;
  height: 420px;
  border:0;
  filter: saturate(1.05) contrast(1.05);
}

/* ---------- Footer CONTENT (bez dupliranja footer{...} bloka) ---------- */
footer .container{
  position: relative;
  z-index: 1;
}

.footer-content{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 18px;
  align-items:start;
  padding-bottom: 22px;
}

.footer-logo img{
  height: 42px;
  width:auto;
}

.footer-about p{
  margin-top: 10px;
  color: rgba(255,255,255,.72);
}

.social-links{
  margin-top: 14px;
  display:flex;
  gap: 10px;
}

.social-links a{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  transition:.2s ease;
}

.social-links a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  border-color: rgba(77,163,255,.25);
}

.footer-links h3,
.footer-services h3,
.footer-contact h3{
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.footer-links ul,
.footer-services ul,
.footer-contact ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
}

.footer-links a,
.footer-services a{
  color: rgba(255,255,255,.72);
  font-weight:700;
  transition:.2s ease;
}

.footer-links a:hover,
.footer-services a:hover{
  color: var(--text);
}

.footer-contact li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(255,255,255,.74);
}

.footer-contact i{
  font-size: 20px;
  margin-top: 2px;
  color: rgba(255,255,255,.84);
}

/* footer-bottom centriran */
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 16px;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 12px;
  text-align:center;
}

.footer-bottom p{
  color: rgba(255,255,255,.64);
}

.footer-bottom-links{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  justify-content:center;
  width: 100%;
}

.footer-bottom-links a{
  color: rgba(255,255,255,.64);
  font-weight:700;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding: 8px 10px;
  border-radius: 999px;
  transition:.2s ease;
}

.footer-bottom-links a:hover{
  color: var(--text);
  background: rgba(255,255,255,.09);
}

/* tvoje postojeće mobile sitnice */
@media (max-width: 520px){
  .about-stats{ grid-template-columns: 1fr; }
  .scroll-indicator{ display:none; }
}
/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior:auto; }
}

/* ---------- FAQ (safe block) ---------- */
.faq-groups{
  display: grid;
  gap: 36px;
}

.faq-group{
  display: grid;
  gap: 14px;
}

.faq-group-title{
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0 0 6px 0;
}

/* FAQ PAGE ONLY */
#faq .faq-groups{
  justify-items: stretch; /* rastegne na širinu */
}

#faq .faq-item{
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 26px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: .25s ease;
}

#faq .faq-item:hover{
  transform: translateY(-2px);
  border-color: rgba(77,163,255,.28);
}

#faq .faq-summary{
  padding: 18px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:800;
}

#faq .faq-answer{
  padding: 0 24px 18px;
}

/* remove default marker */
.faq-details summary{
  list-style: none;
}
.faq-details summary::-webkit-details-marker{
  display: none;
}

/* summary row */
.faq-summary{
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 800;
  background: transparent;
}

.faq-summary:hover{
  background: rgba(255,255,255,.05);
}

/* icon */
.faq-icon{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

/* open state */
.faq-details[open] .faq-icon{
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(77,163,255,1), rgba(124,92,255,1));
  color: #081022;
  border-color: rgba(77,163,255,.25);
}

.faq-details[open] .faq-summary{
  border-bottom: 1px solid rgba(255,255,255,.10);
}

/* answer */
.faq-answer{
  padding: 0 24px 18px 24px;
}

.faq-answer p{
  margin-top: 10px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: none;
}

/* mobile */
@media (max-width: 600px){
  .faq-summary{
    padding: 16px;
  }
  .faq-answer{
    padding: 0 16px 16px 16px;
  }

  #faq .faq-item{
    max-width: 100%;
  }
}

/* =========================================
   ❌ UKLONJENO IZ OVOG DELA (DUPLIKATI)
   - :root { --bg, --brand-2, --brand-3... }
   - Base/Reset (*, html, body, body background gradient)
   - Language switch + navbar (već postoje gore)
   ========================================= */

/* ---------- Submenu (Legal / Rechtliche Hinweise) ---------- */
.nav-menu .has-submenu{
  position: relative;
}

/* Toggle link (parent item) */
.nav-menu .has-submenu > a{
  cursor: pointer;
}

/* Submenu hidden by default */
.nav-menu .submenu{
  display: none;               /* hidden until click */
  position: absolute;          /* desktop dropdown */
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  margin: 0;
  list-style: none;
  border-radius: var(--r-lg);
  background: rgba(6,10,20,.92);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  z-index: 1200;
}

/* Show submenu when JS adds .open to li.has-submenu */
.nav-menu .has-submenu.open > .submenu{
  display: block;
}

/* Submenu links */
.nav-menu .submenu a{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  transform: none;
}

.nav-menu .submenu a:hover{
  background: rgba(255,255,255,.10);
  transform: none;
}

/* ---------- Hamburger ---------- */
.hamburger{
  width: 44px;
  height: 44px;
  display:none;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  transition: .2s ease;
}

.hamburger:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

.hamburger span{
  position:absolute;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 10px;
  transition: .2s ease;
}

.hamburger span:nth-child(1){ transform: translateY(-6px); }
.hamburger span:nth-child(2){ transform: translateY(0px); }
.hamburger span:nth-child(3){ transform: translateY(6px); }

.hamburger.active span:nth-child(1){ transform: translateY(0) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform: translateY(0) rotate(-45deg); }

/* ---------- Mobile nav behavior ---------- */
@media (max-width: 760px){
  .hamburger{ display:flex; position:relative; }

  .nav-menu{
    position: fixed;
    top: var(--nav-h);
    right: 14px;
    left: 14px;
    display:none;
    flex-direction:column;
    gap: 6px;
    padding: 12px;
    border-radius: var(--r-xl);
    background: rgba(6,10,20,.82);
    border:1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    align-items: stretch;
  }

  .nav-menu.active{ display:flex; }

  .nav-menu a{
    width:100%;
    justify-content:center;
  }

  /* Submenu on mobile: open inline, not absolute dropdown */
  .nav-menu .submenu{
    position: static;
    min-width: unset;
    width: 100%;
    box-shadow: none;
    margin-top: 6px;
    padding: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
  }

  .nav-menu .submenu a{
    justify-content:center;
  }
}

/* ---------- Hero Section (AGB / Legal pages) ---------- */
/* NOTE: this is specific to .hero-section, not the homepage .hero */
.hero-section{
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 30px);
  padding-bottom: 50px;
  overflow: hidden;
}

/* make overlay specific so it doesn't clash with global .hero-overlay */
.hero-section .hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 600px at 15% 30%, rgba(77,163,255,.25), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(124,92,255,.22), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
  pointer-events: none;
  z-index: 0;
}

.hero-section .hero-content{
  position: relative;
  z-index: 1; /* content above overlay */
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  align-items: center;
  gap: 40px;
}

.hero-section .hero-text p{
  margin-top: 14px;
  max-width: 56ch;
}

.hero-section .hero-buttons{
  margin-top: 22px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}
/* ---------- Legal Page ---------- */
.legal-page{
  padding: 60px 0 80px;
}

.agb-content{
  max-width: 900px;
  margin: 0 auto;
}

.agb-section{
  margin-bottom: 24px;
}

.agb-card{
  padding: 24px;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  transition: .22s ease;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.agb-card:hover{
  transform: translateY(-2px);
  border-color: rgba(77,163,255,.25);
}

.agb-icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  flex-shrink: 0;
}

.agb-icon i{
  font-size: 24px;
  color: rgba(255,255,255,.9);
}

.agb-card h3{
  margin-bottom: 8px;
  color: var(--text);
}

.agb-card p{
  margin-top: 8px;
  color: var(--muted);
}

.agb-card ul{
  margin-top: 8px;
  padding-left: 20px;
  color: var(--muted);
}

.agb-card li{
  margin-bottom: 6px;
}

.agb-footer{
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}

/* ---------- CTA Section ---------- */
.cta-section{
  padding: 80px 0;
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.cta-content{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cta-text{
  flex: 1;
}

.cta-text h2{
  margin-bottom: 12px;
}

.cta-text p{
  max-width: 600px;
}

.cta-button{
  flex-shrink: 0;
}

/* ---------- Footer ----------
   VAŽNO: footer NE SME da se ponavlja u fajlu više puta.
   Ovaj blok ostavi samo JEDNOM u celom styles.css.
-------------------------------- */
footer{
  position: relative;
  padding: 54px 0 26px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(6,10,20,.88);
  overflow: hidden;
}

footer::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(77,163,255,.10), transparent 60%),
    radial-gradient(900px 520px at 80% 0%, rgba(124,92,255,.10), transparent 60%);
  pointer-events:none;
}

footer .container{
  position: relative;
  z-index: 1;
}

.footer-content{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 18px;
  align-items:start;
  padding-bottom: 22px;
}

.footer-logo img{
  height: 42px;
  width:auto;
}

.footer-about p{
  margin-top: 10px;
  color: rgba(255,255,255,.72);
}

.social-links{
  margin-top: 14px;
  display:flex;
  gap: 10px;
}

.social-links a{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  transition:.2s ease;
}

.social-links a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  border-color: rgba(77,163,255,.25);
}

.footer-links h3,
.footer-services h3,
.footer-contact h3{
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.footer-links ul,
.footer-services ul,
.footer-contact ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
}

.footer-links a,
.footer-services a{
  color: rgba(255,255,255,.72);
  font-weight:700;
  transition:.2s ease;
}

.footer-links a:hover,
.footer-services a:hover{
  color: var(--text);
}

.footer-contact li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(255,255,255,.74);
}

.footer-contact i{
  font-size: 20px;
  margin-top: 2px;
  color: rgba(255,255,255,.84);
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 16px;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 12px;
  text-align:center;
}

.footer-bottom p{
  color: rgba(255,255,255,.64);
}

.footer-bottom-links{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  justify-content:center;
  width: 100%;
}

.footer-bottom-links a{
  color: rgba(255,255,255,.64);
  font-weight:700;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding: 8px 10px;
  border-radius: 999px;
  transition:.2s ease;
}

.footer-bottom-links a:hover{
  color: var(--text);
  background: rgba(255,255,255,.09);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 900px){
  .hero-content{
    grid-template-columns: 1fr;
  }

  .cta-content{
    flex-direction: column;
    text-align: center;
  }

  .cta-text p{
    max-width: 100%;
  }

  .footer-content{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px){
  .hero-section{
    min-height: 50vh;
  }

  .footer-content{
    grid-template-columns: 1fr;
  }

  .agb-card{
    flex-direction: column;
  }

  .agb-icon{
    width: 100%;
    height: 40px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior:auto; }
}

/* =========================
   LANGUAGE SWITCH (EN / DE / SK)
   OVO ostavi kao JEDINI language blok (ne dupliraj)
========================= */

/* default hide all */
.content-en,
.content-de,
.content-sk{
  display: none !important;
}

/* show selected */
#lang-en:checked ~ * .content-en{ display: initial !important; }
#lang-de:checked ~ * .content-de{ display: initial !important; }
#lang-sk:checked ~ * .content-sk{ display: initial !important; }

/* block elements must remain block */
#lang-en:checked ~ * div.content-en,
#lang-en:checked ~ * p.content-en,
#lang-en:checked ~ * h1.content-en,
#lang-en:checked ~ * h2.content-en,
#lang-en:checked ~ * h3.content-en{ display:block !important; }

#lang-de:checked ~ * div.content-de,
#lang-de:checked ~ * p.content-de,
#lang-de:checked ~ * h1.content-de,
#lang-de:checked ~ * h2.content-de,
#lang-de:checked ~ * h3.content-de{ display:block !important; }

#lang-sk:checked ~ * div.content-sk,
#lang-sk:checked ~ * p.content-sk,
#lang-sk:checked ~ * h1.content-sk,
#lang-sk:checked ~ * h2.content-sk,
#lang-sk:checked ~ * h3.content-sk{ display:block !important; }

/* active labels */
#lang-en:checked ~ * .lang-en-label,
#lang-de:checked ~ * .lang-de-label,
#lang-sk:checked ~ * .lang-sk-label{
  opacity: 1;
  font-weight: 700;
  transform: translateY(-1px);
}

/* ================================
   COOKIE / LEGAL PAGE (CROX) CSS
   (za Cookie-Richtlinie.html / legal stranice)
================================ */

/* =========================================================
   LEGAL HERO (samo na legal stranici)
   Da ne prepisuje .hero na početnoj
========================================================= */
.legal-page .hero-section{
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 60px;
}

.legal-page .hero-section .hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(77,163,255,.22), transparent 60%),
    radial-gradient(1000px 600px at 85% 30%, rgba(124,92,255,.18), transparent 55%),
    rgba(8,16,34,.65);
  pointer-events:none;
}

.legal-page .hero-section .hero-content{
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 26px;
  align-items: center;
}

@media (max-width: 900px){
  .legal-page .hero-section .hero-content{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   LEGAL CONTENT / CARDS (scoped)
========================================================= */
.legal-page{
  padding: 70px 0;
}

.legal-page .agb-content{
  display: grid;
  gap: 18px;
}

.legal-page .agb-section{
  margin: 0;
}

.legal-page .agb-card{
  border-radius: 26px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  padding: 22px 22px;
  transition: .25s ease;
}

.legal-page .agb-card:hover{
  transform: translateY(-2px);
  border-color: rgba(77,163,255,.28);
}

.legal-page .agb-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  margin-bottom: 12px;
}

.legal-page .agb-icon .material-icons{
  font-size: 22px;
}

.legal-page .agb-card h3{
  margin: 0 0 10px 0;
  font-weight: 900;
  letter-spacing: .2px;
}

.legal-page .agb-card p{
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  max-width: 80ch;
}

.legal-page .agb-card p + p{
  margin-top: 8px;
}

.legal-page .agb-card ul{
  margin: 10px 0 0 18px;
  padding: 0;
  color: rgba(255,255,255,.78);
}

.legal-page .agb-card li{
  margin: 8px 0;
  line-height: 1.65;
}

.legal-page .agb-card strong{
  color: rgba(255,255,255,.92);
  font-weight: 800;
}

/* =========================================================
   CTA (scoped, da ne prepisuje globalni .cta-section)
========================================================= */
.legal-page .cta-section{
  padding: 60px 0 80px;
}

.legal-page .cta-content{
  border-radius: 28px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

@media (max-width: 800px){
  .legal-page .cta-content{
    grid-template-columns: 1fr;
  }
  .legal-page .cta-button{
    justify-self: start;
  }
}

.legal-page .cta-text h2{
  margin: 0 0 8px 0;
  font-weight: 900;
}

.legal-page .cta-text p{
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

/* ================================
   SERVICE MODAL (Learn More popup)
   + Portfolio popup ALIAS support
================================ */

/* ✅ ALIAS: isto ponašanje i za #portfolio-popup / #portfolio-modal */
.service-modal,
#portfolio-popup,
#portfolio-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition: opacity .22s ease, visibility .22s ease;
}

/* ✅ ALIAS ACTIVE */
.service-modal.active,
#portfolio-popup.active,
#portfolio-modal.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ✅ sadržaj prozora: podržava .modal-content i .popup-content */
.service-modal .modal-content,
#portfolio-modal .modal-content,
#portfolio-popup .popup-content{
  width: min(720px, 100%);
  max-height: min(78vh, 860px);
  overflow: hidden;

  border-radius: var(--r-xl);
  background: rgba(10,14,26,.88);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);

  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

/* ✅ animacija content-a kad je aktivno */
.service-modal.active .modal-content,
#portfolio-modal.active .modal-content,
#portfolio-popup.active .popup-content{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* HEADER: podržava .modal-header i .popup-header */
.service-modal .modal-header,
#portfolio-modal .modal-header,
#portfolio-popup .popup-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.10);

  background:
    radial-gradient(600px 260px at 20% 0%, rgba(77,163,255,.14), transparent 60%),
    radial-gradient(600px 260px at 80% 0%, rgba(124,92,255,.12), transparent 60%),
    rgba(255,255,255,.02);
}

.service-modal .modal-header h3,
#portfolio-modal .modal-header h3,
#portfolio-popup .popup-header h3{
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .2px;
}

/* CLOSE dugme: podržava .close-modal i #portfolio-popup-close */
.service-modal .close-modal,
#portfolio-modal .close-modal,
#portfolio-popup #portfolio-popup-close{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);

  cursor: pointer;
  transition: .2s ease;
}

.service-modal .close-modal:hover,
#portfolio-modal .close-modal:hover,
#portfolio-popup #portfolio-popup-close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(77,163,255,.25);
}

.service-modal .close-modal i,
#portfolio-popup #portfolio-popup-close i{
  font-size: 22px;
}

/* BODY: podržava .modal-body i #portfolio-popup-body */
.service-modal .modal-body,
#portfolio-modal .modal-body,
#portfolio-popup #portfolio-popup-body{
  padding: 18px 18px 20px;
  overflow: auto;
  max-height: calc(78vh - 70px);
  color: rgba(255,255,255,.85);
}

.service-modal .modal-body p,
#portfolio-popup #portfolio-popup-body p{
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

.service-modal .modal-body p + p,
#portfolio-popup #portfolio-popup-body p + p{
  margin-top: 10px;
}

.service-modal .modal-body ul,
#portfolio-popup #portfolio-popup-body ul{
  margin: 12px 0 0 18px;
  padding: 0;
  color: rgba(255,255,255,.78);
}

.service-modal .modal-body li,
#portfolio-popup #portfolio-popup-body li{
  margin: 8px 0;
  line-height: 1.6;
}

/* Scrollbar */
.service-modal .modal-body::-webkit-scrollbar,
#portfolio-popup #portfolio-popup-body::-webkit-scrollbar{ width: 10px; }

.service-modal .modal-body::-webkit-scrollbar-track,
#portfolio-popup #portfolio-popup-body::-webkit-scrollbar-track{ background: rgba(255,255,255,.04); }

.service-modal .modal-body::-webkit-scrollbar-thumb,
#portfolio-popup #portfolio-popup-body::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

.service-modal .modal-body::-webkit-scrollbar-thumb:hover,
#portfolio-popup #portfolio-popup-body::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.20);
}

/* Mobile */
@media (max-width: 520px){
  .service-modal,
  #portfolio-popup,
  #portfolio-modal{
    padding: 14px;
  }

  .service-modal .modal-content,
  #portfolio-modal .modal-content,
  #portfolio-popup .popup-content{
    max-height: 84vh;
    border-radius: 22px;
  }

  .service-modal .modal-header,
  #portfolio-modal .modal-header,
  #portfolio-popup .popup-header{
    padding: 14px;
  }

  .service-modal .modal-body,
  #portfolio-modal .modal-body,
  #portfolio-popup #portfolio-popup-body{
    padding: 14px;
    max-height: calc(84vh - 62px);
  }
}

@media (prefers-reduced-motion: reduce){
  .service-modal,
  #portfolio-popup,
  #portfolio-modal,
  .service-modal .modal-content,
  #portfolio-modal .modal-content,
  #portfolio-popup .popup-content{
    transition: none !important;
  }
}


/* NOTE: OVO je bilo opasno globalno:
   .hero-overlay{ display:none !important; }
   To gasi overlay i na početnoj.
   Ako baš želiš da ugasiš samo na legal stranici: */
.legal-page .hero-overlay{ display: none !important; }

/* ABOUT tweaks (globalno) */
.about-stats{ margin-top: 1px !important; }
.about-grid{ align-items: start !important; }

.about-image{
  margin-top: 0 !important;
  padding-top: 0 !important;
  align-self: start !important;
}
.about-image .image-frame{ margin-top: 0 !important; }
.about-image{ transform: translateY(-25px) !important; }

/* Services section spacing (globalno) */
.services-section{
  padding-top: 1px;
  padding-bottom: 80px;
}
.services-section .section-header{
  margin-top: 0;
  margin-bottom: 32px;
}
.services-section .section-subtitle{ margin-bottom: 10px; }
.services-section h2{ margin: 0 0 12px; }
.services-section .section-divider{ margin-top: 8px; }

.section-header{ min-height: 170px; }

/* Service cards: uniform alignment (globalno) */
.service-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card .service-description{ flex: 1 1 auto; min-height: 120px; }
.service-card .service-link{
  margin-top: auto;
  align-self: flex-start;
}

/* Contact section spacing (globalno) */
.contact-section{
  padding-top: 40px;
  padding-bottom: 80px;
}
.contact-section .section-header{
  margin-top: 0;
  margin-bottom: 32px;
}
.contact-section h2{ margin: 0 0 12px; }
.contact-section .section-divider{ margin-top: 8px; }

/* ================================
   LEGAL CARDS FIX (END) — scoped
================================ */
.legal-page .container{
  margin-left: auto !important;
  margin-right: auto !important;
}

.legal-page .agb-card{
  display: grid !important;
  grid-template-columns: 56px 1fr;
  column-gap: 18px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.legal-page .agb-card .agb-icon{
  grid-column: 1;
  margin: 0;
}

.legal-page .agb-card > :not(.agb-icon){
  grid-column: 2;
}

.legal-page .agb-card h3{ margin: 0 0 8px 0; }
.legal-page .agb-card h4{ margin: 14px 0 8px 0; }

/* ================================
/* ================================
   COOKIE BANNER (CROX) — CLEAN + WORKING
   Kontrola prikaza ide preko [hidden] atributa
================================ */

/* Hide when hidden (robust: supports either [hidden] or the attribute alone) */
.cookie-banner[hidden],
.cookie-backdrop[hidden],
.cookie-banner[aria-hidden="true"],
.cookie-backdrop[aria-hidden="true"],
[hidden].cookie-banner,
[hidden].cookie-backdrop{
  display: none !important;
}

/* Backdrop */
.cookie-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(4, 15, 73, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;

  pointer-events: auto;
  touch-action: none;
}

/* Banner wrapper */
.cookie-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 99999;
  padding: 0 16px;

  /* ensure it stays above stacking-context elements */
  isolation: isolate;

  /* make sure clicks work even if parent layouts do weird stuff */
  pointer-events: auto;
}

/* Small mobile safe-area help */
@media (max-width: 520px){
  .cookie-banner{
    bottom: 18px; /* fallback */
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    bottom: calc(18px + constant(safe-area-inset-bottom, 0px)); /* older iOS */
  }
}

/* Card */
.cookie-card{
  max-width: 980px;
  margin: 0 auto;
  background: rgba(10, 14, 26, 0.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  padding: 16px 18px;

  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;

  /* stability */
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.cookie-text{ min-width: 0; }

.cookie-title{
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  color: rgba(255,255,255,.92);
}

.cookie-desc{
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.78);
}

.cookie-link{
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  text-decoration: underline;
  color: rgba(255,255,255,.88);
  opacity: .9;
}
.cookie-link:hover{ opacity: 1; }

/* Actions */
.cookie-actions{
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.cookie-actions .btn{
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1;
}

/* Ghost button contrast */
.cookie-actions .btn-ghost{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.cookie-actions .btn-ghost:hover{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.32);
}
.cookie-actions .btn-ghost:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(77,163,255,.25);
  border-color: rgba(77,163,255,.55);
}

/* Primary button */
.cookie-actions .btn-primary{
  color: #081022;
}

.cookie-actions .btn:focus-visible,
.cookie-link:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(77,163,255,.22);
  border-color: rgba(77,163,255,.45);
}

/* Mobile */
@media (max-width: 720px){
  .cookie-card{
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions{
    justify-content: stretch;
  }
  .cookie-actions .btn{
    width: 100%;
  }
}

/* ================================
   THEME OVERRIDE — ONLY FOR LEGAL PAGES
   (da ne ubije cookie/banner na početnoj)
================================ */

/*
  PRAVILO:
  - Ako imaš class na BODY:   <body class="legal-page">  -> koristi body.legal-page
  - Ako imaš wrapper div:     <div class="legal-page">   -> koristi .legal-page (bez body)
*/

/* 1) Ako je class na BODY (preporuka) */
body.legal-page{
  background: var(--bg-secondary) !important;
}

/* 2) Ako je wrapper (fallback) */
.legal-page{
  background: var(--bg-secondary);
}

/* transparent backgrounds inside legal pages */
body.legal-page main,
body.legal-page .main,
body.legal-page .page,
body.legal-page .page-content,
body.legal-page .content,
body.legal-page .container,
body.legal-page .legal,
body.legal-page .legal-content,
body.legal-page .terms,
body.legal-page .agb,
body.legal-page .privacy,
body.legal-page .datenschutz,
body.legal-page .impressum,
/* IMPORTANT: avoid targeting cookie banner classes accidentally */
body.legal-page .cookie-page,
body.legal-page .section,
body.legal-page .section-content,
.legal-page main,
.legal-page .main,
.legal-page .page,
.legal-page .page-content,
.legal-page .content,
.legal-page .container,
.legal-page .legal,
.legal-page .legal-content,
.legal-page .terms,
.legal-page .agb,
.legal-page .privacy,
.legal-page .datenschutz,
.legal-page .impressum,
/* IMPORTANT: avoid targeting cookie banner classes accidentally */
.legal-page .cookie-page,
.legal-page .section,
.legal-page .section-content{
  background: transparent !important;
}

body.legal-page section,
.legal-page section{
  background: var(--bg-secondary) !important;
}

body.legal-page article,
body.legal-page .card,
body.legal-page .panel,
body.legal-page .box,
body.legal-page .content-box,
body.legal-page .legal-box,
.legal-page article,
.legal-page .card,
.legal-page .panel,
.legal-page .box,
.legal-page .content-box,
.legal-page .legal-box{
  background: var(--card) !important;
  border: 1px solid var(--stroke) !important;
}

/* ✅ samo na legal stranici gasimo pseudo-backgrounde */
body.legal-page::before,
body.legal-page::after,
body.legal-page main::before,
body.legal-page main::after,
body.legal-page section::before,
body.legal-page section::after,
body.legal-page .page::before,
body.legal-page .page::after,
.legal-page::before,
.legal-page::after,
.legal-page main::before,
.legal-page main::after,
.legal-page section::before,
.legal-page section::after,
.legal-page .page::before,
.legal-page .page::after{
  display: none !important;
}
.social-links{
  display: none;
}
