/* ---------------------------
   Base / Fonts / Reset
   --------------------------- */
:root{
  --bg-dark: #1C1C1C; 
  --accent: #FF6000;
  --muted: #bdbdbd;
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(255,255,255,0.03);
}

* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg-dark);
  color: #fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.45;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

/* logo */
.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 240%;
  letter-spacing: -0.02em;
}
.logo .accent { color: var(--accent); }

/* desktop nav */
.nav-desktop {
  display:flex;
  align-items:center;
  gap: 18px;
  margin-top: 1%;
}
.nav-desktop a {
  color: #fff;
  text-decoration:none;
  font-weight:600;
  font-size:100%;
  opacity: 0.95;
  transition: color .18s, transform .12s, opacity .12s;
}
.nav-desktop a:hover { color: var(--accent); transform: translateY(-2px); }

/* notif icon */
.notif-icon {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.05rem;
  margin-left: 6px;
  cursor: pointer;
  position: relative;
}
.notif-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ff3b3b;
  color: white;
  border-radius: 999px;
  font-size: 0.65rem;
  padding: 2px 6px;
}
.notif-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  text-align:center;
}

.notif-modal-content {
    background: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(50, 50, 50,1));
  width: 400px;
  max-width: 90%;
  margin: 100px auto;
  padding: 20px;
  border-radius: 10px;
  max-height: 70%;
  overflow-y: auto;
  position: relative;
  border: 1px solid white;
}
.notif-modal-content h3{
    color: #FF6600;
    font-size: 180%;
      margin: 1rem;
}

.notif-modal-content button{
      background-color: #FF6600;
  color: white;
  padding:0.7rem;
  margin: 1rem;
  border: none;
  border-radius: 15px;
  font-size: 110%;
  cursor: pointer;
}

.notif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #ccc;
}

.notif-item a {
  flex: 1;
  text-decoration: none;
  color: #000;
    margin: 1rem;
    color: white;
}

.notif-item button {
  background: transparent;
  border: none;
  color: red;
  font-weight: bold;
  cursor: pointer;
}
.nav-mobile .notifications-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* burger (mobile) */
.burger {
  display: none;
  width: 44px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  margin-top: 1%;
}
.burger span { display:block; height:3px; width:22px; background:#fff; margin:5px auto; border-radius:3px; transition: transform .25s, opacity .2s; }
.burger.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display:none;
  position: fixed;
  flex-direction: column;
  right: 18px;
  top: 68px;
  background: linear-gradient(180deg, rgba(10,10,10,0.95), rgba(8,8,8,0.92));
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  z-index: 1300;
  width: 260px;
  transition: transform .28s ease, opacity .2s;
  transform-origin: top right;
  transform: scale(.98);
}
.mobile-menu.open { display:flex; flex-direction:column; gap:12px; transform: scale(1); }
.mobile-menu a { color:#fff; text-decoration:none; font-weight:600; padding:8px 6px; border-radius:6px; }
.mobile-menu a:hover { background: rgba(255,255,255,0.02); color: var(--accent); }


/* HERO */
.hero-3d {
  width: 100%;
  min-height: 100vh; /* omogoča scroll !!! */
  position: relative;
  background: #1C1C1C;
  overflow: visible; /* POMEMBNO – da elementi lahko segajo ven */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 180px; /* prostor za slider */
}

/* Diagonalne oranžne linije */
.line {
  position: fixed;
  top: -20%;
  height: 140%;
  width: 3px;
  background: #FF6000;
  opacity: 0.35;
  box-shadow: 0 0 20px #FF6000;
  transform: rotate(-25deg);
  z-index: 1;
  pointer-events: none; /* ne blokirajo klikov */
}

.line1 { left: 8%; }
.line2 { left: 28%; }
.line3 { left: 75%; }

.hero-content {
  position: relative;
  text-align: center;
  margin-top: 80px; /* višina pod headerjem */
  z-index: 5;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin: 0;
}
.hero-subtitle {
  font-size: 1.4rem;
  color: #ddd;
  margin-top: 8px;
}

.model-container {
    margin-top: -15%;
    margin-bottom: -25%;
  width: 90vw;
  height: 105vh;
  z-index: 5;
}
model-viewer {
  width: 100%;
  height: 100%;
  outline: none;
}



/* SLIDER POD MODELOM */
.slider-wrapper {
  position: absolute;
  bottom: 5px;
  width: 80%;
  display: flex;
  align-items: center;
  z-index: 10;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar {
  display: none; /* Chrome */
}
.slider img {
  width: auto;
  height: 140px;
  border-radius: 10px;
   box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  background: #222;
  transition: transform .25s ease, box-shadow .25s ease;
}
.slider img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 6px 18px rgba(255, 96, 0, 0.55),
    0 0 30px rgba(255, 96, 0, 0.35);
}
.slide-btn {
  background: #FF6000;
  color: #fff;
  padding: 12px 18px;
  font-size: 22px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin: 0 10px;
  box-shadow: 0 0 10px #FF6000;
}
.slide-btn:hover {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .hero-content {
    margin-top: 110px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .model-container {
      margin-top: -65%;
      margin-bottom: -45%;
      z-index: 1;
  }
  .slider-wrapper {
    
    bottom: 100px;
    width: 92%;
    margin-top: 0;
  }
  .slider img{
      height: 100px;
  }
  .slide-btn {
    padding: 8px 14px;
    font-size: 18px;
  }

  /* manj črt na telefonu */
  .line1, .line3 { display: none; }
  .line2 { opacity: 0.25; left: 50%; }
}
@media (max-width: 900px) {
  .nav-desktop { display:none; }
  .burger { display:block; }
  .content-section { padding: 40px 6%; flex-direction:column; gap:16px; }
  .notif-icon{
    margin-left: -80%;
  }
  .notif-count{
    position: relative;
    margin-left: -5%;
  }
}

/* small screens */
@media (max-width: 480px) {
  .header-inner { padding: 10px 14px; }
  .hero { min-height: 60vh; }
  .hero-text h1 { font-size: 1.9rem; }
  .counter { font-size: 1.45rem; }
  .mobile-menu { width: 88%; right: 6%; top: 64px; }
}
.cards-grid {
  background: #1C1C1C;
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 90%;
  max-width: 1400px;
}

/* osnovni kvadrati (isti efekti kot prej) */
.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: #fff;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

/* mobilna prilagoditev */
@media (max-width: 900px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 200px;
  }
}
.card:hover {
  flex: 1.15;
  transform: scale(1.03);
}

/* 🔸 Posodobljeni barvni prelivi — bolj prosojni */
.card-orange {
  background: linear-gradient(135deg, rgba(255,96,0,0.35), rgba(255,96,0,0.15));
  border-right: 1px solid rgba(255,255,255,0.15);
}

.card-white {
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(230,230,230,0.1));
  color: white;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.card-dark {
  background: linear-gradient(135deg, rgba(28,28,28,0.45), rgba(10,10,10,0.25));
}


.card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.card p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}

.card:hover .card-content {
  transform: translateY(-5px);
}


/* Background glow animation */
@keyframes floatGlow {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

.card-bg::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
  top: 20%;
  left: 30%;
  animation: floatGlow 6s ease-in-out infinite;
}

a{
    color: white;
    text-decoration: none;
    font-weight: bold;
}
.content-section {
  display:flex;
  gap: 32px;
  align-items:center;
  justify-content:space-between;
  padding: 72px 8%;
  max-width: 1200px;
  margin: 0 auto;
}
.content-section.reverse { flex-direction: row-reverse; }
.content-section .text { flex:1; }
.content-section .image { flex:1; display:flex; justify-content:center; }
.content-section img { width:100%; max-width:560px; border-radius: 12px; }
.content-section a{
    text-decoration: none;
    color: #FF6000;
}
.content-section h2{
    color: #FF6000;
    font-size: 200%;
}
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #bbb;
}
.terms-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.terms-card {
  max-width: 900px;
  width: 100%;
  background: rgba(10,10,10,0.85);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  overflow-y: auto;
  max-height: 85vh;
}

.terms-card h2 {
  color: #FF6600;
  margin-top: 0;
}

.terms-card p { line-height: 1.5; color: #eee; }

.terms-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.terms-btn {
  background: #FF6600;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.terms-btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}