* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #000;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================== HEADER / NAV ================== */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(0,109,111,0.9);
  display: flex;
  align-items: center;
  padding: 10px 20px;
  z-index: 10;
}

nav img {
  height: 50px;
}

/* ================== HERO ================== */
.main-content {
  flex: 1;
}

.parallax {
  background: url('imag/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 5;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #d1ff16;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.cta-btn {
  background: #d1ff16;
  color: #006d6f;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,109,111,0.85);
  transition: 0.3s;
}

.cta-btn:hover {
  background: #006d6f;
  color: #d1ff16;
  transform: scale(1.05);
}

/* ================== CARDS ================== */
.cards {
  margin-top: 50px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  z-index: 5;
  position: relative;
}

.card {
  background: rgba(0,109,111,0.85);
  width: 18%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.4s ease;
  box-shadow: 0 5px 15px rgba(0,213,152,1);
  text-align: center;
}

.card i {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #d1ff16;
  transition: 0.4s ease;
}

.card:hover {
  transform: scale(1.15);
  background: #d1ff16;
  color: #006d6f;
}

.card:hover i {
  transform: translateY(-10px);
  color: #006d6f;
}

.card a {
  font-weight: bold;
  font-size: 0.9rem;
  display: block;
  transition: 0.4s ease;
}

.card:hover a {
  color: #006d6f;
}

/* ================== FOOTER ================== */
footer {
  background: rgba(0,109,111,0.85);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 0;
}

/* ================== BACK TO TOP ================== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #d1ff16;
  color: #006d6f;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: none;
  z-index: 20;
  transition: 0.3s;
}

#backToTop:hover {
  background: #006d6f;
  color: #d1ff16;
  transform: scale(1.1);
}

/* ================== RESPONSIVE ================== */
@media(max-width:768px){
  .hero h1{font-size:2rem;}
  .cta-btn{font-size:1rem;padding:10px 20px;}
  .card{width:45%;margin-bottom:20px;}
  .card i{font-size:3rem;}
  .card a{font-size:0.8rem;}
  .cards{gap:20px;justify-content:space-around;}
  footer{font-size:0.8rem;padding:15px;}
}

.hero .logo-center {
  margin-bottom: 10px;
  animation: fadeIn 1.5s ease-in-out;
}

.hero .logo-center img {
  width: 180px;
  max-width: 50%;
}

/* ================== ICON & MODAL ================== */
.icon {
  font-size: 40px;
  color: #006d6f;
  margin-bottom: 10px;
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  animation: fadeIn 0.4s;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.modal-content {
  background: #fff;
  margin: auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  animation: slideIn 0.5s;
  overflow: hidden;
}

@keyframes slideIn {
  from {transform: translateY(-50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

.modal-header {
  background: #006d6f;
  color: #d1ff16;
  padding: 15px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  position: relative;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #d1ff16;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.modal-body a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.modal-body a:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Platform colors tetap sama */
.youtube {background: #FF0000;}
.tiktok {background: #000000;}
.instagram {background: linear-gradient(45deg, #fd1d1d, #e1306c, #c13584, #833ab4);}
.facebook {background: #1877f2;}

.label-text {
  font-size: 14px;
  color: #333;
  text-align: center;
}

@media (max-width: 600px) {
  .modal-body a {
    font-size: 14px;
    padding: 10px;
  }
}
