/* --- Global Styles --- */
body {
  background: 
    radial-gradient(at 15% 30%, rgba(0, 120, 255, 0.15), transparent 60%),
    radial-gradient(at 80% 70%, rgba(0, 255, 180, 0.1), transparent 60%),
    #0b0f16;
  background-attachment: fixed;
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #ccc;
}

/* Links & Headings */
a { text-decoration: none; color: #58a6ff; transition: 0.2s; }
a:hover { color: #79b8ff; }
h1, h2, h3 { margin: 0 0 15px; color: #f5f5f5; }
p { margin: 0 0 20px; color: #ccc; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Hero Section --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  color: #e0e0e0;
  padding: 0 20px;
  background: transparent; /* važno: transparentno da se vidi aurora efekt */
}

.hero h1 {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #58a6ff;
  text-shadow: 0 0 15px rgba(88,166,255,0.4);
}

.hero p {
  font-size: 1.3em;
  max-width: 700px;
  margin-bottom: 40px;
  color: #9ba3af;
}

.cta {
  background: linear-gradient(90deg, #007bff, #00c6ff);
  color: #fff;
  padding: 14px 45px;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

.cta:hover {
  background: linear-gradient(90deg, #00c6ff, #007bff);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.6);
  cursor: pointer;
}

/* --- Section Styles --- */
section {
  padding: 100px 0;
  background: rgba(15, 20, 26, 0.5); /* poluprozirno da aurora probija kroz sekcije */
  border-top: 1px solid rgba(255,255,255,0.05);
}

section.alt {
  background: rgba(17, 24, 32, 0.5); /* poluprozirno */
}

/* --- Section Headings --- */
section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.4em;
  color: #58a6ff;
  text-shadow: 0 0 10px rgba(88,166,255,0.4);
}

section h3 {
  text-align: center;
  margin-bottom: 35px;
  font-size: 1.6em;
  color: #9ecbff;
  text-shadow: 0 0 8px rgba(88,166,255,0.25);
}



/* --- Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Power BI Iframe Wrapper --- */
.iframe-box {
  position: relative;
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  background: rgba(15, 20, 26, 0.9);
  border-radius: 12px;

  /* ✨ Subtle border + inner glow */
  border: 1px solid rgba(88, 166, 255, 0.25);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5),
              0 0 15px rgba(88, 166, 255, 0.08) inset;

  backdrop-filter: blur(8px);
  overflow: hidden;

  /* ✅ Smooth transition for hover effect */
  transition: transform 0.4s ease, box-shadow 0.4s ease;

  /* Add vertical spacing between widgets */
  margin: 35px 0;
}

/* ✨ Hover Zoom Effect (does not affect cropping) */
.iframe-box:hover {
  transform: scale(1.05); /* very subtle zoom-in */
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.55),
              0 0 20px rgba(88, 166, 255, 0.1) inset;
  cursor: pointer;
}

/* --- Responsive cropping --- */
.iframe-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%; /* extra vertical area so bottom can be cropped */
  transform: translateY(-5%); /* moves frame up to hide Power BI ribbon */
  border: none;
  display: block;
  background-color: #0b0f16;
}

/* --- Responsive adjustment for smaller screens --- */
@media (max-width: 1024px) {
  .iframe-box {
    aspect-ratio: 16 / 9; /* still 16:9 */
  }

  .iframe-box iframe {
    height: 112%;     /* ribbon can look taller on mobile, so add a bit more */
    transform: translateY(-6%);
  }
}

@media (max-width: 600px) {
  .iframe-box iframe {
    height: 115%;
    transform: translateY(-7%);
  }
}

/* --- Mobile responsiveness --- */
@media (max-width: 1024px) {
  .iframe-box iframe {
    height: calc((9 / 16) * 100vw);
    max-height: 700px;
  }
}

/* --- Spacing adjustments for headings and paragraphs --- */
section h2,
section p {
  margin-bottom: 30px; /* adds breathing room below headings and paragraphs */
}

/* --- Pricing Cards --- */
.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px 25px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(6px);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0,198,255,0.3);
}

.pricing-card h3 {
  margin-bottom: 15px;
  font-size: 1.6em;
  color: #fff;
}

.pricing-card .price {
  font-size: 2em;
  font-weight: 700;
  color: #58a6ff;
  margin: 25px 0;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.pricing-card ul li {
  margin-bottom: 10px;
  color: #b0b0b0;
}

.pricing-card .cta {
  margin-top: auto;
}

/* Featured Card */
.pricing-card.featured {
  border: 1px solid #00c6ff;
  background: rgba(0, 198, 255, 0.1);
}

/* --- Kalkulator Section --- */
#calc {
  max-width: 700px;
  margin: 0 auto;
}

.calc-box {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 15px;
  backdrop-filter: blur(5px);
}

.calc-box input {
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1em;
}

.calc-box button {
  padding: 12px 20px;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.calc-box button:hover {
  background: linear-gradient(90deg, #00c6ff, #007bff);
  transform: translateY(-2px);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 60px 20px;
  background: rgba(10, 15, 20, 0.5); /* poluprozirno da aurora probija kroz footer */
  color: #9ba3af;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Small Iframes Grid (2 per row) --- */
.grid-small {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.iframe-card {
  width: 48%; /* 2 per row */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.small-iframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(15, 20, 26, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(88, 166, 255, 0.25);
  box-shadow: 0 0 25px rgba(0,0,0,0.5), 0 0 15px rgba(88,166,255,0.08) inset;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.small-iframe iframe {
  position: absolute;
  top: -5%;         /* keep top cropping as before */
  left: 50%;        /* start from center */
  width: 106%;      /* slightly wider for side crop */
  height: 122%;     /* slightly taller for bottom crop */
  transform: translateX(-50%) translateY(0); /* center horizontally */
  border: none;
  display: block;
  background-color: #0b0f16;
  transition: transform 0.4s ease;
}

/* Hover zoom */
.small-iframe:hover iframe {
  transform: translateX(-50%) translateY(0) scale(1.02);
}




/* Description text under iframe */
.iframe-desc {
  margin-top: 10px;
  color: #ccc;
  text-align: center;
  font-size: 0.95em;
  max-width: 90%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .iframe-card { width: 100%; } /* stack on tablets */
  .small-iframe iframe { 
    height: 112%;    /* same as large iframe at this breakpoint */
    transform: translateY(-6%);
  }
}

@media (max-width: 600px) {
  .small-iframe iframe { 
    height: 115%; 
    transform: translateY(-7%);
  }
}

.iframe-box.no-crop {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9; /* keep same aspect ratio as other iframes */
  border-radius: 12px;
  border: 1px solid rgba(88, 166, 255, 0.25);
  box-shadow: 0 0 25px rgba(0,0,0,0.5), 0 0 15px rgba(88,166,255,0.08) inset;
}

/* Make image fill the container and crop as needed */
.iframe-box.no-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* fills the box while preserving aspect ratio */
  object-position: center; /* centers image */
  display: block;
  transition: transform 0.4s ease;
  transform-origin: center;
}

/* Hover zoom effect */
.iframe-box.no-crop:hover img {
  transform: scale(1.08);
}

.iframe-box.no-crop img {
  transition: transform 0.4s ease;
  transform-origin: center;
}

.iframe-box.no-crop:hover img {
  transform: scale(1.08);
}


/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* MODAL BOX */
.modal-box {
  background: #12161e;
  border: 1px solid rgba(88,166,255,0.25);
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  padding: 25px 30px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
}

.modal-box h2 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.modal-box p {
  color: #ccc;
  margin-bottom: 20px;
}

/* BUTTONS */
.modal-buttons {
  display: flex;
  justify-content: space-between;
}

.btn-primary {
  padding: 10px 18px;
  background: #2b7cff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.btn-secondary {
  padding: 10px 18px;
  background: #444;
  color: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* --- Kontakt Forma Accordion --- */
.contact-form-section {
  background: rgba(15, 20, 26, 0.85);
  padding: 40px 25px;
  border-radius: 12px;
  border: 1px solid rgba(88, 166, 255, 0.25);
  box-shadow: 0 0 25px rgba(0,0,0,0.5), 0 0 15px rgba(88,166,255,0.08) inset;
  backdrop-filter: blur(8px);
  max-width: 700px;
  margin: 30px auto 0 auto;
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
  overflow: hidden;
}

/* Form Elements */
.contact-form-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form-section label {
  color: #9ba3af;
  font-weight: 600;
}

.contact-form-section input,
.contact-form-section select,
.contact-form-section textarea,
.contact-form-section button {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(88,166,255,0.25);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1em;
  transition: 0.3s;
}

/* Fokus za sve elemente */
.contact-form-section input:focus,
.contact-form-section select:focus,
.contact-form-section textarea:focus {
  outline: none;
  border-color: #00c6ff;
  box-shadow: 0 0 10px rgba(0,198,255,0.4);
  background: rgba(255,255,255,0.08);
}

/* Posebno za textarea */
.contact-form-section textarea {
  resize: vertical; /* korisnik može mijenjati visinu */
  min-height: 80px; /* početna visina */
}

/* Select dropdown opcije */
.contact-form-section select option {
  background: #12161e; /* tamna pozadina */
  color: #fff;         /* bijeli tekst */
}

/* Button */
.contact-form-section button {
  background: linear-gradient(90deg, #007bff, #00c6ff);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 0 15px rgba(0,198,255,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form-section button:hover {
  background: linear-gradient(90deg, #00c6ff, #007bff);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0,198,255,0.6);
}

/* Poruka nakon slanja */
#formMessage {
  color: #58a6ff;
  font-weight: 600;
  text-align: center;
  margin-top: 15px;
}

/* Smooth slide-down effect (JS kontrolira display) */
.contact-form-section.show {
  display: block; /* koristi JS za toggle */
  opacity: 1;
  max-height: 1000px; /* dovoljno visoko da pokrije formu */
  padding: 40px 25px;
}

.contact-form-section.hide {
  opacity: 0;
  max-height: 0;
  padding: 0 25px;
}
