* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  backface-visibility: hidden; 
  -webkit-backface-visibility: hidden;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #222;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto; 
  height: 100%;
  position: relative;
}

html {
  height: 100%;
  overflow: auto;
  scroll-behavior: smooth; 
}

.logo-bar {
  padding: 10px 20px;
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
  will-change: transform; 
}

.logo-bar img {
  height: 50px;
  margin-right: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  object-fit: cover;
  will-change: transform; 
}

.site-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4.2em;
  font-weight: 700;
  align-items: center;
  color: #fff;
  text-shadow: 0 0 10px #fff, 0 0 20px #3b82f6, 0 0 30px #3b82f6;
  animation: glow 4s ease-in-out infinite alternate; 
  letter-spacing: -0.5px;
}

@keyframes glow {
  from { text-shadow: 0 0 5px #fff, 0 0 10px #3b82f6, 0 0 15px #3b82f6; }
  to { text-shadow: 0 0 10px #fff, 0 0 20px #3b82f6, 0 0 30px #3b82f6; }
}

.main-container {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 90vh;
  padding: 15px;
  gap: 15px;
  height: auto;
}

.header {
  background: url('../img/gallery/System.jpg') left;
  background-size: 100%;
  background-position: center 80%;
  background-repeat: no-repeat;
  border-radius: 12px;
  padding: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  height: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  border-radius: 12px;
}

.header-content {
  position: relative;
  z-index: 2;
}

.header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin-bottom: 10px;
}

.header h2 {
  font-size: 1.8em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin-bottom: 5px;
}

.header p {
  font-size: 1.1em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(59, 130, 246, 0.8);
  color: white;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  max-width: 100%;
}

.left-column {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  max-width: 100%;
}

.right-column {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  max-width: 100%;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: auto;
  max-height: none;
}

.card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #1e3a8a;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.card h3 {
  font-size: 1.2em;
  margin: 17px 0 10px;
  color: #3b82f6;
}

.card p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #4b5563;
}

.compact-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 180px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform; 
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform; 
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: white;
  font-size: 0.85em;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f9fafb;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-icon {
  width: 30px;
  height: 30px;
  background: #3b82f6;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.9em;
  color: #4b5563;
}

.testimonial-card {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid #3b82f6;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 50px;
  color: #3b82f6;
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95em;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #3b82f6;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: #1e3a8a;
  font-size: 0.95em;
}

.author-origin {
  font-size: 0.85em;
  color: #6b7280;
}

.rating {
  color: #ffc107;
  font-size: 0.9em;
  letter-spacing: 1px;
  margin-top: 4px;
}

.local-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.local-item {
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.local-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.local-item h3 {
  font-size: 1.1em;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.local-item p {
  font-size: 0.9em;
  color: #4b5563;
  line-height: 1.5;
}

.cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  margin-top: 20px;
  font-size: 1.1em;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.cta a {
  color: white;
  text-decoration: none;
  display: block;
}

.cta .discount {
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 5px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 25px;
}

.amenity-category {
  margin-bottom: 25px;
}

.amenity-list {
  list-style-type: none;
}

.amenity-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  color: #4b5563;
}

.amenity-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.highlight {
  background: linear-gradient(transparent 70%, rgba(59, 130, 246, 0.2) 100%);
  padding: 0 3px;
  font-weight: 600;
}

.property-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.property-summary p {
  margin-bottom: 0;
}

.testimonials-section {
  display: grid;
  gap: 15px;
}

.system-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.system-fact {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.system-fact-value {
  font-size: 1.3em;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 5px;
}

.system-fact-label {
  font-size: 0.85em;
  color: #6b7280;
}

.partners-section {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.partners-section h3 {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  color: #1e3a8a;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.partners-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
}

.partner-card {
  position: relative;
  width: 120px;
  height: 80px;
  background: #f9fafb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  will-change: transform; 
}

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: all 0.3s ease;
  will-change: transform; 
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.partner-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.partner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 58, 138, 0.9);
  color: white;
  padding: 5px;
  font-size: 0.7em;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-radius: 0 0 8px 8px;
}

.partner-card:hover .partner-overlay {
  transform: translateY(0);
}

.partner-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0);
  transition: box-shadow 0.3s ease;
}

.partner-card:hover::after {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  animation: partnerGlow 2s infinite alternate;
}

@keyframes partnerGlow {
  0% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  }
  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
  }
}

@media (max-width: 768px) {
  .content {
    grid-template-columns: 1fr;
  }
  .left-column, .right-column {
    grid-template-rows: auto;
  }
  .site-name {
    font-size: 1.6em;
  }
  .header {
    height: 250px;
    padding: 20px;
  }
  .header h1 {
    font-size: 1.8em;
  }
  .header h2 {
    font-size: 1.4em;
  }
  .feature-list, .amenities-grid {
    grid-template-columns: 1fr;
  }
  .system-facts {
    grid-template-columns: 1fr;
  }
  .compact-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .gallery-item {
    height: 140px;
  }
  .partners-grid {
    justify-content: center;
  }
  .partner-card {
    width: 100px;
    height: 70px;
  }
}

.center-text {
  text-align: center;
  font-weight: bold;
}

.center-text p {
  font-size: 0.8em;
}

@media (prefers-reduced-motion: reduce) {
  .site-name {
    animation: none;
  }
}