/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BACKGROUND ===== */
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: linear-gradient(135deg, #0a0a0a, #bfa34a, #5a2a80);
  color: white;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden; /* <-- DODANO */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* ===== NAVBAR ===== */
.main-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(6px);
}

.main-nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* LOGO CENTERED */
.logo-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Audiowide", cursive;
  font-size: 32px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-247 {
  font-size: 16px;
  color: white;
  margin-top: -6px;
  margin-left: 34px;
  animation: logoColorShift 6s ease-in-out infinite;
  animation-delay: 0.8s;
}

.nav-left,
.nav-right {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-left a,
.nav-right a,
.mobile-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-left a,
.nav-right a,
.mobile-nav a {
  padding: 8px 6px;
}

.nav-left a::after,
.nav-right a::after,
.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}

.nav-left a:hover::after,
.nav-right a:hover::after,
.mobile-nav a:hover::after {
  width: 100%;
}

section {
  scroll-margin-top: 90px;
}

/* ===== HERO CAROUSEL ===== */
.hero-slider {
  position: relative;
  height: 56vh;
  padding: 0;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 18px;
}

.hero-slider-inner {
  position: relative;
  height: 100%;
  display: flex;
  transition: transform 0.8s ease;
}

.hero-slider .slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative; /* DODATO */
}

.hero-slider .slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.25)
  );
}

/* ===== HERO TEXT ===== */
.hero-text-box {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 2rem 2.5rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.hero-text-box h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-text-box p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.95;
}

.slider-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.slider-controls button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.slider-dots .dot.active {
  background: #d4af37;
}

/* ===== INTRO SECTION (ABOUT) ===== */
.intro-section {
  margin: auto;
  padding: 3rem 1rem;
  text-align: center;
}

.intro-box {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.intro-box h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #d4af37;
  font-family: "Audiowide", cursive;
}

/* ===== ABOUT COLUMNS ===== */
.about-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.about-column {
  padding: 1rem 1.5rem;
  border-left: 2px solid rgba(212, 175, 55, 0.25);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.about-column.show {
  opacity: 1;
  transform: translateY(0);
}

.about-column h3 {
  font-size: 1.6rem;
  color: #d4af37;
  margin-bottom: 0.8rem;
}

.about-column p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  position: relative;
  padding-bottom: 1.1rem;
}

.about-column p::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(212, 175, 55, 0.35);
}

.about-subheading {
  margin-top: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

/* ===== MARKER SPAN ===== */
.marker {
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #bfa34a;
  padding: 2px 6px;
  z-index: 1;
}

.marker::before {
  content: "";
  position: absolute;
  left: -4px;
  bottom: 2px;
  width: calc(100% + 8px);
  height: 45%;
  background: linear-gradient(
    135deg,
    rgba(191, 163, 74, 0.35),
    rgba(90, 42, 128, 0.35)
  );
  border-radius: 6px;
  z-index: -1;
}

/* ===== WHY CHOOSE US ===== */
.why-choose {
  margin-top: 2rem;
}

.why-choose h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #d4af37;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.choose-card {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 2rem 1.5rem;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

.choose-card > * {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.choose-card h4 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
}

/* ===== PROGRAM SECTION ===== */
.programs-section {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1rem;
  text-align: center;
}

.programs-section h2 {
  font-size: 2.4rem;
  margin-bottom: 3rem;
  color: #fff;
  text-shadow:
    0 0 8px rgba(212, 175, 55, 0.8),
    0 0 18px rgba(212, 175, 55, 0.7),
    0 0 30px rgba(212, 175, 55, 0.6);
  animation: glowPulse 2.8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    text-shadow:
      0 0 6px rgba(212, 175, 55, 0.5),
      0 0 12px rgba(212, 175, 55, 0.4),
      0 0 22px rgba(212, 175, 55, 0.3);
  }
  50% {
    text-shadow:
      0 0 14px rgba(212, 175, 55, 0.9),
      0 0 24px rgba(212, 175, 55, 0.8),
      0 0 38px rgba(212, 175, 55, 0.7);
  }
}

@keyframes logoColorShift {
  0% {
    color: #bfa34a;
    text-shadow: 0 0 8px rgba(191, 163, 74, 0.6);
  }
  40% {
    color: #5a2a80;
    text-shadow: 0 0 10px rgba(90, 42, 128, 0.6);
  }
  70% {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  }
  100% {
    color: #bfa34a;
    text-shadow: 0 0 8px rgba(191, 163, 74, 0.6);
  }
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: rgb(255, 255, 255);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 4px solid transparent;
  transition:
    transform 0.35s ease,
    border-bottom 0.35s ease,
    box-shadow 0.35s ease;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 28px;
  background: rgba(212, 175, 55, 0.35);
  filter: blur(22px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .program-card:hover {
    transform: scale(1.04);
    border-bottom: 4px solid rgba(212, 175, 55, 1);
    box-shadow: 0 0 45px rgba(212, 175, 55, 0.95);
  }

  .program-card:hover::before {
    opacity: 1;
    animation: pulseGlow 1.1s ease-in-out infinite;
  }

  .program-card:hover .card-image {
    transform: scale(1.05);
    transition: transform 0.35s ease;
  }
}

@keyframes pulseGlow {
  0% {
    filter: blur(18px);
    opacity: 0.7;
  }
  50% {
    filter: blur(26px);
    opacity: 1;
  }
  100% {
    filter: blur(18px);
    opacity: 0.7;
  }
}

.card-image {
  position: relative;
  height: 220px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.35)
  );
}

.card-header {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 90px;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  color: white;
  line-height: 1.2;
  max-height: 2.4rem;
  overflow: visible;
}

.card-desc {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  padding: 1rem 1.2rem;
  border-radius: 0 0 18px 18px;
  margin: 0;
  text-align: left;
  line-height: 1.5;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.best-for {
  align-self: flex-start;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c4300;
  background: linear-gradient(135deg, #f7d774, #e6b94e);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(212, 175, 55, 0.35);
}

.program-card.gold .best-for {
  background: linear-gradient(135deg, #ffe08a, #f5c542);
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.55);
}

.program-card:hover .card-image {
  transform: scale(1.05);
  transition: transform 0.35s ease;
}

/* ===== DEVELOPMENT ===== */
.development-section {
  max-width: 1200px;
  margin: auto;
  padding: 0.5rem 1rem;
  text-align: center;
}

.development-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.development-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  transition:
    transform 0.35s ease,
    background 0.35s ease;
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
}

.development-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #d4af37;
}

.development-card p {
  opacity: 0.85;
}

@media (hover: hover) {
  .development-card:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(212, 175, 55, 0.25);
  }
}

.development-title {
  font-size: 2.3rem;
  margin-top: 3rem;
  color: #d4af37;
  font-family: "Audiowide", cursive;
}

/* ===== ABOUT + DEVELOPMENT FRAME ===== */
.about-dev-frame {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ===== CONTACT ===== */
.contact-section {
  max-width: 700px;
  margin: auto;
  padding: 4rem 1rem 5rem;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.3rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  width: 100%;
  max-width: 100%;
}

.contact-form textarea {
  min-height: 140px;
  resize: none;
  max-width: 100%;
  width: 100%;
  overflow: auto;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form button {
  margin-top: 0.5rem;
  padding: 0.9rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #d4af37, #bfa34a);
  color: #000;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* ===== CONTACT INFO + MAP SECTION ===== */
.contact-info-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1rem;
  color: white;
}

.contact-info-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* NEW: separate boxes */
.contact-info-box,
.contact-form-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: 2rem;
}

.contact-form-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-details h2 {
  font-size: 2rem;
  color: #d4af37;
  font-family: "Audiowide", cursive;
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.7rem;
  font-size: 1rem;
  align-items: center;
  flex-wrap: wrap; /* important for mobile */
}

.info-label {
  font-weight: 600;
  color: rgba(212, 175, 55, 0.9);
  min-width: 90px; /* reduced width */
}

.contact-details a {
  color: white;
  text-decoration: none;
  word-break: break-word; /* prevents overflow */
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-map-full {
  margin-top: 2rem;
  width: 100%;
}

.contact-map-full iframe {
  width: 100%;
  height: 380px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* ===== SOCIAL BUTTONS ===== */
.social-buttons {
  margin-top: 1.5rem;
}

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.social-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform 0.2s ease;
}

.social-btn img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.social-btn:hover {
  transform: scale(1.12);
}

/* ===== SUCCESS MODAL ===== */
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.success-modal.active {
  display: flex;
}

.success-box {
  background: rgba(20, 20, 20, 0.95);
  border-radius: 18px;
  padding: 2.2rem;
  max-width: 520px;
  width: 90%;
  position: relative;
  animation: modalIn 0.3s ease;
  text-align: center;
}

.success-box h2 {
  color: #d4af37;
  margin-bottom: 1rem;
}

.success-box p {
  line-height: 1.6;
  opacity: 0.9;
}

.success-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: rgba(20, 20, 20, 0.95);
  border-radius: 18px;
  padding: 2.2rem;
  max-width: 520px;
  width: 90%;
  position: relative;
  animation: modalIn 0.3s ease;
}

.modal-box h2 {
  color: #d4af37;
  margin-bottom: 1rem;
}

.modal-box p {
  line-height: 1.6;
  opacity: 0.9;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #d4af37;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(8px);
  list-style: none;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.mobile-nav.active {
  display: flex;
}

/* X ANIMATION */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-columns {
    grid-template-columns: 1fr;
  }
  .choose-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    height: 320px;
    max-width: 95%;
  }
  .hero-text-box {
    padding: 1.5rem;
    max-width: 90%;
  }
  .hero-text-box h1 {
    font-size: 2.1rem;
  }
  .hero-text-box p {
    font-size: 1rem;
  }

  /* FIXED CONTACT INFO CONTAINER */
  .contact-info-container {
    grid-template-columns: 1fr;
    padding: 1rem; /* reduced padding */
    gap: 1rem; /* reduced gap */
    width: 100%;
  }

  .contact-info-box,
  .contact-form-box {
    padding: 1.2rem; /* reduced padding inside boxes */
    width: 100%;
  }

  .contact-info-section {
    padding: 1.5rem 0.5rem;
  }

  .about-column p {
    padding-bottom: 0.6rem;
  }
}

@media (max-width: 768px) {
  .contact-map-full iframe {
    height: 260px;
  }

  .nav-left,
  .nav-right {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .logo-text {
    position: static;
    transform: none;
    text-align: center; /* DODATO */
  }
}

@media (max-width: 480px) {
  section {
    scroll-margin-top: 60px;
  }

  .hero-slider {
    height: 280px;
    min-height: 260px;
  }

  .hero-text-box {
    padding: 1.2rem;
    max-width: 95%;
    width: 100%;
  }

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

  .hero-text-box p {
    font-size: 0.95rem;
  }

  .contact-form button {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  .contact-info-container {
    padding: 1rem;
    gap: 1rem;
  }
}

@media (max-width: 360px) {
  .hero-slider {
    height: 250px;
  }

  .contact-form button {
    padding: 0.8rem;
  }
}

@media (max-width: 768px) {
  section {
    scroll-margin-top: 70px;
  }
}

@media (min-width: 900px) {
  .social-btn {
    width: 80px;
    height: 80px;
  }
  .social-btn img {
    width: 56px;
    height: 56px;
  }
}

footer {
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
}
