/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  background: #0b0d12;
}

html, body {
  overscroll-behavior: none;
}

body {
  min-height: 100dvh;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(
    180deg,
    #0f1115 0%,
    #0b0d12 100%
  );
  color: #fff;
  overflow-x: hidden;
}

/* ===== HERO ===== */

.services-hero {
  position: relative;
  text-align: center;
  padding: 140px 20px 100px;
  overflow: hidden;
  
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: url("/pozadina.png") center 45% / cover no-repeat;

  opacity: 0.45;
  z-index: 0;
}


.services-hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(15,17,21,0.4) 0%,
    rgba(11,13,18,0.7) 100%
  );

  z-index: -1;
}




.services-hero h1 {
  position: relative;
  font-size: 64px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;

  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #e0e7ff 30%,
    #c4b5fd 60%,
    #60a5fa 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 8px 30px rgba(0,0,0,0.8),
    0 0 60px rgba(59,130,246,0.25);
}

.services-hero h1::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  width: 600px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(96,165,250,0.25), transparent 70%);
  z-index: -1;
}

.services-hero p {
  font-size: 18px;
  max-width: 650px;
  margin: 25px auto 0;
  opacity: 0.9;
  line-height: 1.7;
  color: #f3f4f6;
}

.service-card.active {
  border: 1px solid rgba(168,85,247,0.6);
  box-shadow: 
    0 0 40px rgba(168,85,247,0.4),
    0 20px 60px rgba(0,0,0,0.6);
    background: #140b2e; 
    opacity: 1 !important;
    z-index: 100;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 30px;
  padding: 12px 28px;

  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;

  color: #ffffff;

  background: linear-gradient(
    90deg,
    rgba(59,130,246,0.25),
    rgba(255,255,255,0.08)
  );

  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;

  box-shadow:
    0 0 40px rgba(59,130,246,0.4),
    inset 0 0 20px rgba(255,255,255,0.05);
}



/* ===== SERVICES GRID ===== */
.services-grid {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  overflow-y: visible;
}
.services-grid::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 70%);
  z-index: -1;
}

.service-card {
  position: absolute;
  overflow: hidden;
  width: 340px;
  height: 460px;
  padding: 50px 40px;
  border-radius: 30px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.08) 0%,
      rgba(255,255,255,0.04) 60%,
      rgba(0,0,0,0.4) 100%
    ),
    radial-gradient(circle at top left, rgba(168,85,247,0.25), transparent 40%);

  border: 1px solid rgba(255,255,255,0.12);

  backdrop-filter: blur(30px);

  box-shadow:
    0 50px 120px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 55px 45px;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;

  background: linear-gradient(
    90deg,
    #a855f7,
    #6366f1
  );

  border-radius: 10px;

  box-shadow: 0 0 20px rgba(168,85,247,0.4);
}


.service-card:nth-child(1) {
  z-index: 10;
}

.service-card:nth-child(n+2) {
  z-index: 1;
  visibility: hidden;
}

.service-card h3 {
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 22px;
  letter-spacing: -0.5px;

  color: #f9fafb;

  text-shadow:
    0 6px 20px rgba(0,0,0,0.9),
    0 0 40px rgba(59,130,246,0.3);
  margin-bottom: 25px;
}


.service-card p {
  text-align: center;
  margin-bottom: 25px;
  opacity: 0.85;
  color: #d1d5db;
  margin-bottom: 30px;
}
.service-card p::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 25px 0;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: center;
}

.service-card ul li {
  margin: 8px 0;
  opacity: 0.8;
  color: #cbd5e1;
}


/* ===== PRICING ===== */

.pricing {
  position: relative;
  isolation: isolate;
  padding: 140px 10%;
  text-align: center;

  background: radial-gradient(
    circle at 50% 10%,
    rgba(120, 0, 0, 0.15),
    transparent 60%
  );
}



.pricing h2 {
  font-size: 36px;
  margin-bottom: 60px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.price-card {
  background: rgba(255,255,255,0.05);
  padding: 60px 40px;
  border-radius: 30px;
  backdrop-filter: blur(25px);
  transition: all 0.4s ease;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  transition: all 0.4s ease cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05);
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price-card.pro {
  text-shadow:
    0 6px 25px rgba(0,0,0,0.9),
    0 0 30px rgba(120,0,0,0.4);
  background: linear-gradient(
    180deg,
    rgba(40, 0, 0, 0.85),
    rgba(15, 0, 0, 0.95)
  );

  border: 1px solid rgba(120, 0, 0, 0.4);
  text-shadow:
    0 8px 30px rgba(0,0,0,0.9);
}

.price-card.starter {
 background: rgba(59,130,246,0.07);
}
.price-card.business {
  background: rgba(168,85,247,0.07);
}
.price-card.pro {
  background: rgba(120,0,0,0.08);
}
.price-card.starter:hover {
  background: rgba(59,130,246,0.18);
}

.price-card.business:hover {
  background: rgba(168,85,247,0.2);
}

.price-card.pro:hover {
  background: rgba(150,0,0,0.22);
}

.price-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(59,130,246,0.3);
}

.price-card.featured {
  border: 2px solid #a855f7;
  box-shadow:
    0 30px 80px rgba(168,85,247,0.3);
    padding: 70px 40px;
}

.price-card.pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255,0,0,0.25),
    transparent 70%
  );
  opacity: 0;
  transition: 0.4s ease;
}

.price-card.pro:hover::before {
  opacity: 1;
}
.price-card.pro .price {
  color: #ffffff;
  -webkit-text-fill-color: unset;
  font-weight: 900;
}


.price-card.pro button {
  background: #1f1f1f;
  border: 1px solid rgba(255,255,255,0.2);
}

.price-card.pro button:hover {
  background: #2a2a2a;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}


.price-card.starter button {
  background: linear-gradient(90deg,#2563eb,#3b82f6);
}
.price-card.business button {
  background: linear-gradient(90deg,#9333ea,#a855f7);
}
.price-card.pro h3 {
  font-weight: 900;
  letter-spacing: -1px;
}
.price-card.pro ul li::before {
  color: #ffffff;
}


.price-card h3 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: #f9fafb;

  text-shadow:
    0 4px 20px rgba(0,0,0,0.6);
}
.price-card.pro h3 {
  color: #ffffff;
  text-shadow:
    0 6px 25px rgba(120,0,0,0.6);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 35px 0 45px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.price-card ul li {
  position: relative;
  padding-left: 26px;
  margin: 14px 0;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 700;
  color: #a855f7;
}
.price-card.pro ul li::before {
  color: #ff4d4d;
}
.price-card p {
  opacity: 0.85;
  margin-bottom: 20px;
  font-weight: 500;
  color: #e5e7eb;
}

.badge {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg,#a855f7,#3b82f6);
  padding: 5px 15px;
  font-size: 12px;
  border-radius: 20px;
}

.price {
  display: block;
  font-size: 40px;
  font-weight: 900px;

  margin: 20px 0 10px;
  background: linear-gradient(90deg,#a855f7,#3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
   text-shadow:
    0 10px 30px rgba(0,0,0,0.7);
}

button {
  margin-top: 25px;
  padding: 12px 25px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(90deg,#a855f7,#3b82f6);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.price-card button {
  width: auto;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;

  align-self: center;

  box-shadow: 0 10px 30px rgba(0,0,0,0.5);

  transition: all 0.3s ease;
}

button::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(255,255,255,0.2);
  transition: 0.4s;
}

button:hover::before {
  width: 100%;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(168,85,247,0.5);
}
.price-card.starter button {
  background: linear-gradient(90deg,#2563eb,#3b82f6);
}
.price-card.business button {
  background: linear-gradient(90deg,#7c3aed,#a855f7);
}
.price-card.pro button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
}
.price-card.pro button:hover {
  background: rgba(255,255,255,0.08);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-box {
  background: linear-gradient(
    180deg,
    #141414,
    #0d0d0d
  );

  border-radius: 30px;
  padding: 60px 50px;
  width: 90%;
  max-width: 520px;

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 40px 100px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.05);

  position: relative;
}
.modal-box h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

#selected-package {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 30px;
}


.modal-box input,
.modal-box textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 18px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);

  background: #1a1a1a;
  color: #ffffff;

  font-size: 14px;

  transition: all 0.25s ease;
}
.modal-box input:focus,
.modal-box textarea:focus {
  outline: none;
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.modal-box button {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;

  transition: all 0.3s ease;
}
.modal-overlay.starter .modal-box button {
  background: linear-gradient(90deg,#2563eb,#3b82f6);
}
.modal-overlay.business .modal-box button {
  background: linear-gradient(90deg,#7c3aed,#a855f7);
}
.modal-overlay.pro .modal-box button {
  background: linear-gradient(
    90deg,
    #5c0000,
    #7a0000
  );
  border: none;
  color: #ffffff;
}

.modal-overlay.pro .modal-box button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(120,0,0,0.6);
}


.modal-box button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(168,85,247,0.4);
}
.modal-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: radial-gradient(
    circle at top,
    rgba(168,85,247,0.1),
    transparent 70%
  );
  pointer-events: none;
}


.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 22px;
  opacity: 0.6;
  transition: 0.2s ease;
  cursor: pointer;
}

.close-modal:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-overlay.starter input:focus,
.modal-overlay.starter textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.modal-overlay.business input:focus,
.modal-overlay.business textarea:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.2);
}

.modal-overlay.pro input:focus,
.modal-overlay.pro textarea:focus {
  border-color: #8b0000;
  box-shadow: 0 0 0 3px rgba(139,0,0,0.25);
}
.modal-overlay.pro .modal-box {
  border: 1px solid rgba(120,0,0,0.4);
}
.modal-overlay.pro h3 {
  letter-spacing: -0.5px;
}

.back-home {
  text-align: center;
  margin: 90px 0 40px;
  position: relative;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 14px 32px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;

  text-decoration: none;
  color: #ffffff;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);

  backdrop-filter: blur(10px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);

  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}

.back-btn:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.7);
}
.back-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(168,85,247,0.15), transparent 70%);
  opacity: 0;
  transition: 0.4s ease;
  pointer-events: none;
}

.back-btn:hover::after {
  opacity: 1;
}
@media (max-width: 900px) {
  .services-grid,
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card,
.price-card {
  width: 100% !important;
  transform: none !important;
  flex: none !important;
}
.service-card,
.price-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.service-card:active,
.price-card:active {
  transform: scale(0.98);
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}
  .services-grid {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .service-card {
    position: relative !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto;
  }
    .service-card {
    transition: all 0.35s ease;
  }

  .service-card.active {
    transform: scale(1.03);
    box-shadow: 0 25px 60px rgba(168,85,247,0.35);
  }
}