/* ──────────────────────────────── */
/* 🔧 Reset and Base Styles */
/* ──────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  font-family: "Segoe UI", "Inter", sans-serif;
  background: linear-gradient(to bottom, #e9ecef, #ced4da);
  color: #333;
  line-height: 1.6;
  background-attachment: fixed;
}

/* ──────────────────────────────── */
/* 🚦 Navigation */
/* ──────────────────────────────── */

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #004080;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.top-nav h1 {
  font-size: 1.6rem;
  font-weight: 600;
}

.top-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.top-nav li {
  display: flex;
  align-items: center;
}

.top-nav li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition:
    background-color 0.2s ease,
    color 0.5s ease;
}

.top-nav li a:hover,
.top-nav li .active {
  background-color: #0066cc;
}

.lang-switch {
  color: #004080;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #fff; /* Explicit white border */
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
/* ──────────────────────────────── */
/* 🖼️ Logo + Title Styling */
/* ──────────────────────────────── */
.logo-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 44px;
  width: auto;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem;
  transition: transform 0.3s ease;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 1100; /* Ensure it's above the dropdown */
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease;
    flex-direction: column;
    background-color: #004080;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 0 2rem;
    z-index: 1000;
  }

  .nav-links.show {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 2rem;
  }
}

/* ──────────────────────────────── */
/* 🏞️ Hero Section */
/* ──────────────────────────────── */
.hero {
  background-image: url("images/spajalice.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInHero 1s ease-in-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 3px rgba(0, 0, 0, 1);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  display: inline-block; /* shrink-wraps to content */
  padding: 0.2rem 1rem; /* small inner spacing */
}

.cta-button {
  background-color: #fff;
  color: #004080;
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  display: block;
  width: fit-content; /* Shrinks to content width */
  margin: 0.5rem auto 0; /* top margin + auto left/right centers it */
}

.hero .cta-button:hover {
  background-color: #e6e6e6;
}

/* ──────────────────────────────── */
/* 🎞️ Frontpage */
/* ──────────────────────────────── */
.intro-section {
  padding: 3rem 2rem;
}

.intro-content {
  display: flex;
  flex-direction: row; /* Stack vertically */
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeSlideIn 0.8s ease-out;
  transition: transform 0.3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-text {
  flex: 1 1 600px;
  max-width: 800px;
  background-color: rgba(255, 255, 255, 0.85); /* Soft white */
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.intro-text h2 {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 2rem;
}

.intro-text p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2rem;
  margin-inline-start: 1rem;
}

.intro-text ul {
  padding-left: 2.5rem;
}

.intro-text li {
  margin-bottom: 0.5rem;
}

.intro-text a {
  color: #0055a5;
  text-decoration: underline;
}

.intro-image {
  flex: 1 1 400px;
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ──────────────────────────────── */
/* 🎞️ Animations */
/* ──────────────────────────────── */
@keyframes fadeInHero {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ──────────────────────────────── */
/* 📘 About Section */
/* ──────────────────────────────── */
.about-section {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  animation: fadeInSection 0.6s ease-in-out;
}

.about-section h2 {
  font-size: 1.8rem;
  color: #004080;
  margin-bottom: 1rem;
}

.about-section p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ──────────────────────────────── */
/* 📱 Feature Grid (Projects Page) */
/* ──────────────────────────────── */
.features {
  display: flex;
  flex-wrap: wrap;
  width: 95%;
  max-width: none;
  margin: 2rem auto 0;
  justify-content: center;
  gap: 2rem;
  animation: fadeSlideIn 0.8s ease-out;
  transition: transform 0.3s ease;
}

@media (min-width: 1200px) {
  .features {
    max-width: 80%;
  }
}

.feature-card {
  flex: 1 1 calc(20% - 2rem); /* Adjust 25% based on desired columns */
  min-width: 300px;
  max-width: 300px; /* Optional: cap growth */

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center; /* Centers image and heading horizontally */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.6s ease,
    box-shadow 0.6s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInCard 0.6s ease-in-out forwards;
  cursor: pointer;
  position: relative;
  overflow: hidden; /* Prevent children from spilling out */
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}
.feature-card:nth-child(5) {
  animation-delay: 0.5s;
}
.feature-card:nth-child(6) {
  animation-delay: 0.6s;
}
.feature-card:nth-child(7) {
  animation-delay: 0.7s;
}
.feature-card:nth-child(8) {
  animation-delay: 0.8s;
}
.feature-card:nth-child(9) {
  animation-delay: 0.9s;
}
.feature-card:nth-child(10) {
  animation-delay: 1s;
}
.feature-card:nth-child(11) {
  animation-delay: 1.1s;
}
.feature-card:nth-child(12) {
  animation-delay: 1.2s;
}

.feature-card:hover {
  background-color: #f0f8ff; /* Soft blue tint */
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card img {
  max-width: 120px;
  margin-bottom: 1rem;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.2rem;
  color: #004080;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #555;
}

.feature-card .store-button {
  display: inline-block;
  background-color: #004080;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.5s ease;
  font-size: 0.9rem;
}

.feature-card .store-button:hover {
  background-color: #0066cc;
}

.feature-card .store-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ✅ This centers buttons horizontally */
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.feature-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.5s ease;
}

.feature-card.expanded .feature-details {
  max-height: 350px; /* Limits height */
  overflow-x: hidden;
  overflow-y: auto; /* Enables scroll if content exceeds */
  scrollbar-width: thin;
  word-wrap: break-word; /* Breaks long words */
  white-space: normal; /* Allows wrapping */
  opacity: 1;
  margin-top: 0.5rem;
  padding-right: 0.5rem; /* Optional: prevents scroll bar overlap */
  transition: max-height 0.5s ease;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
}

.feature-card:hover h3 {
  text-decoration: underline;
}
/* ──────────────── */
/* 📸 Screenshot Carousel (Inside Card) */
/* ──────────────── */
.screenshot-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem; /* Reduced gap between arrows and image */
  margin-top: 1rem;
  max-width: 100%;
  padding: 0.5rem; /* Optional: add inner spacing */
  box-sizing: border-box; /* Ensures padding doesn't overflow */
  min-height: 300px; /* Ensures vertical space is reserved */
  height: 300px; /* Optional: forces consistent height */
  max-height: 320px;
  overflow: hidden;
}
.carousel-arrow {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  transition: color 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Target the SVG inside the button */
.carousel-arrow svg {
  transition: fill 0.6s ease;
  width: 48px;
  height: 48px;
}

/* Hover effect */
.carousel-arrow:hover svg {
  fill: #0066cc;
}

/* Unified carousel image styling */
.carousel-image {
  height: auto;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  transform-origin: center center;
  cursor: zoom-in;
  object-fit: contain; /* Optional: keeps aspect ratio clean */
}

/* ──────────────── */
/* 🖥️ Fullscreen Zoom Modal */
/* ──────────────── */
.fullscreen-zoom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 2rem;
}

.fullscreen-zoom.hidden {
  display: none;
}

.zoomed-image {
  max-width: 70vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}
/* 📱 Fullscreen only on phones in portrait */
@media screen and (max-width: 768px) and (orientation: portrait) {
  .fullscreen-zoom {
    width: 100vw;
    height: 100vh;
    padding: 1rem;
  }

  .zoomed-image {
    max-width: 90vw;
    max-height: 90vh;
  }
}

/* Arrows inside fullscreen modal */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 1rem;
  z-index: 1000;
}

.modal-arrow.left {
  left: 2rem;
}

.modal-arrow.right {
  right: 2rem;
}

/* ──────────────────────────────── */
/* 🧭 Footer */
/* ──────────────────────────────── */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #eee;
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
}

/* ──────────────────────────────── */
/* 🖼️ Contact page */
/* ──────────────────────────────── */
.contact-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: fadeSlideIn 0.8s ease-out;
  transition: transform 0.3s ease;
}

.contact-section h2 {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  margin-top: 3rem;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0077cc;
  outline: none;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  background-color: #004080; /* Deep blue */
  color: #fff;
  border: none;
  transition: background-color 0.5s ease;
}

.contact-form button:hover {
  background-color: #0059b3; /* Slightly lighter blue on hover */
}

/* ──────────────────────────────── */
/* 🖼️ Thank you page */
/* ──────────────────────────────── */
.thank-you-section {
  max-width: 700px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.thank-you-section h2 {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 1rem;
}

.thank-you-section p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
}

.home-button {
  background-color: #004080;
  color: #fff;
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  display: block;
  width: fit-content; /* Shrinks to content width */
  margin: 0.5rem auto 0; /* top margin + auto left/right centers it */
}
.home-button:hover {
  background-color: #005fa3;
}


.spacer {
  flex-grow: 1;
  width: 100%; /* Optional: ensures it doesn’t collapse horizontally */
}

