/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === UTILITIES === */
.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #3498db;
}

.btn-outline {
  background: transparent;
  color: #3498db;
  border: 2px solid #3498db;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover,
.btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
  background: #3498db;
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

.section-btn-container {
  text-align: center;
  margin-top: 3rem;
}

.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* === HEADER & NAVIGATION === */
.header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2em;
    font-weight: bold;
}

@media (max-width: 768px) {
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1em;
    }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: #f39c12;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/header.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === SECTION STYLES === */
.about {
  padding: 5rem 0;
  background: #f8f9fa;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  padding-right: 2rem;
}

.about-text h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #555;
  text-align: justify;
}

.about-image {
  height: 300px;
  border-radius: 15px;
  background: url("../images/pinisi.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* === CARD COMPONENTS === */
.destinations-preview {
  padding: 5rem 0;
  background: white;
}

.card-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.card-grid.destinations {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.card-grid.umkm {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid.gallery {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f39c12;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.card-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* UMKM specific styles */
.umkm-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.umkm-card:hover {
  transform: translateY(-10px);
}

.umkm-icon {
  font-size: 3rem;
  color: #e67e22;
  margin-bottom: 1rem;
}

/* Gallery specific styles */
.gallery-item {
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
}

/* === EVENTS SECTION (IMPROVED) === */
.events-preview {
  padding: 3rem 0;
  background: #f8f9fa;
}

.events-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
}

.events-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.8rem 0 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.events-grid::-webkit-scrollbar {
  display: none;
}

.event-item {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  transition: all 0.4s ease;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
}

.event-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #3498db;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.event-date {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(52, 152, 219, 0.25);
  white-space: nowrap;
}

.event-status {
  background: #27ae60;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.event-status.upcoming {
  background: #f39c12;
}
.event-status.registration {
  background: #e74c3c;
}

.event-item h4 {
  color: #2c3e50;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.event-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.event-summary {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 10px;
  border-left: 3px solid #3498db;
}

.event-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2c3e50;
  font-size: 0.85rem;
  font-weight: 500;
}

.event-summary-item i {
  color: #3498db;
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.event-tag {
  background: linear-gradient(135deg, #ecf0f1, #d5dbdb);
  color: #2c3e50;
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #bdc3c7;
  transition: all 0.3s ease;
}

.event-tag:hover {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  transform: translateY(-1px);
}

/* === NAVIGATION CONTROLS === */
.events-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(52, 152, 219, 0.35);
  opacity: 1;
  visibility: visible;
}

.events-nav:hover {
  background: linear-gradient(135deg, #2980b9, #1f3a93);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

.events-nav:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.85);
  box-shadow: 0 2px 8px rgba(189, 195, 199, 0.25);
  opacity: 0.4;
}

.events-nav.prev {
  left: 8px;
}

.events-nav.next {
  right: 8px;
}

.scroll-indicator {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bdc3c7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-dot.active {
  background: #3498db;
  transform: scale(1.2);
}

.scroll-dot:hover {
  background: #3498db;
  transform: scale(1.05);
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -50px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: -80px;
}
.lightbox-next {
  right: -80px;
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
}

/* === IMPROVED COMPACT FOOTER === */
.footer {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  padding: 2.5rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  position: relative;
}

.footer-section h3 {
  color: #3498db;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.3rem;
  display: inline-block;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info p {
  color: #bdc3c7;
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.footer-info i {
  color: #3498db;
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #3498db;
  padding-left: 8px;
}

.footer-links i {
  color: #3498db;
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-label {
  color: #3498db;
  font-weight: 600;
}

.hours-time {
  color: #bdc3c7;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

.footer-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem;
  border-radius: 6px;
  text-align: center;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.footer-stat h4 {
  color: #3498db;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.footer-stat p {
  font-size: 0.75rem;
  color: #bdc3c7;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 2px solid #34495e;
  color: #bdc3c7;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.8rem;
}

.footer-bottom-links a:hover {
  color: #3498db;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #2c3e50;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text {
    padding-right: 0;
  }

  .card-grid.destinations,
  .card-grid.gallery,
  .card-grid.umkm {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-container {
    padding: 0 60px;
  }

  .event-item {
    min-width: 300px;
    max-width: 300px;
    padding: 1.5rem;
  }

  .events-nav {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .events-nav.prev {
    left: 5px;
  }

  .events-nav.next {
    right: 5px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 0.8rem;
  }

  .social-links a {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .events-container {
    padding: 0 50px;
  }

  .event-item {
    min-width: 280px;
    max-width: 280px;
    padding: 1.2rem;
  }

  .events-nav {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .footer-stats {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
