/* Reset default browser style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  will-change: transform, opacity;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* HEADER STYLES */
header {
  background: #000;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-left, .nav-right {
  display: flex;
  gap: 30px;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.logo {
  flex: 0 0 auto;
  margin: 0 20px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #c8102e;
}

.logo img {
  max-width: 180px;
  height: auto;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

/* SIMPLE KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* HERO WITH SIMPLE ANIMATION */
.contact-hero {
  background: url('/image/bg\ home.png') center/cover no-repeat;
  text-align: center;
  padding: 100px 20px;
}

.contact-hero h1 {
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 50px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* CONTAINER WITH STAGGER */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  gap: 50px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

/* FORM WITH SLIDE IN */
.contact-form {
  flex: 1;
  min-width: 320px;
  max-width: 480px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  opacity: 0;
  animation: slideInLeft 0.7s ease-out 0.6s forwards;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle border animation */
.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(45deg, #c8102e, transparent, #c8102e);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(200, 16, 46, 0.15);
}

.contact-form:hover::before {
  opacity: 1;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #333;
  opacity: 0;
  animation: fadeInUp 0.4s ease-out forwards;
}

.contact-form label:nth-child(1) { animation-delay: 0.8s; }
.contact-form label:nth-child(3) { animation-delay: 0.9s; }
.contact-form label:nth-child(5) { animation-delay: 1.0s; }
.contact-form label:nth-child(7) { animation-delay: 1.1s; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #aaa;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: scaleIn 0.4s ease-out forwards;
}

.contact-form input:nth-of-type(1) { animation-delay: 0.85s; }
.contact-form input:nth-of-type(2) { animation-delay: 0.95s; }
.contact-form input:nth-of-type(3) { animation-delay: 1.05s; }
.contact-form textarea { animation-delay: 1.15s; }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #c8102e;
  outline: none;
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.2);
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form button {
  background: #c8102e;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 1.3s forwards;
  position: relative;
  overflow: hidden;
}

/* Button shine effect */
.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.contact-form button:hover::before {
  left: 100%;
}

.contact-form button:hover {
  background: #a00d24;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3);
}

.contact-form button:active {
  transform: translateY(0) scale(1.02);
}

/* INFO WITH SLIDE IN RIGHT */
.contact-info {
  flex: 1;
  min-width: 250px;
  max-width: 380px;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  opacity: 0;
  animation: slideInRight 0.7s ease-out 0.8s forwards;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle glow effect on contact info */
.contact-info::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 15px;
  background: linear-gradient(45deg, #c8102e, transparent, #c8102e);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(200, 16, 46, 0.2);
}

.contact-info:hover::before {
  opacity: 0.3;
}

.contact-info h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
  color: #c8102e;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 1.0s forwards;
  transition: all 0.3s ease;
}

.contact-info h2:hover {
  text-shadow: 0 0 10px rgba(200, 16, 46, 0.5);
}

.contact-info p {
  margin: 15px 0;
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #ffffff;
  opacity: 0;
  animation: slideInRight 0.4s ease-out forwards;
  transition: all 0.3s ease;
}

.contact-info p:nth-child(2) { animation-delay: 1.1s; }
.contact-info p:nth-child(3) { animation-delay: 1.2s; }
.contact-info p:nth-child(4) { animation-delay: 1.3s; }
.contact-info p:nth-child(5) { animation-delay: 1.4s; }

.contact-info p img {
  margin-right: 12px;
  transition: all 0.3s ease;
}

/* Enhanced hover effect */
.contact-info p:hover {
  color: #c8102e;
  cursor: pointer;
  transform: translateX(8px);
}

.contact-info p:hover img {
  transform: scale(1.1);
}

.contact-info .info-text {
  margin-top: 20px;
  font-size: 14px;
  color: #c8102e;
  line-height: 1.6;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 1.5s forwards;
  transition: all 0.3s ease;
}

.contact-info .info-text:hover {
  color: #ff4d6d;
  transform: translateY(-2px);
}

/* FOOTER STYLES */
footer {
  background: #000;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}
footer img {
  max-width: 160px;
  margin-bottom: 10px;
}
footer p {
  margin: 5px 0;
  font-family: 'Poppins', sans-serif;
}
.footer-left {
  flex: 1;
}
.footer-right {
  flex: 1;
  text-align: right;
}

/* Biar main content dorong footer ke bawah */
main {
  flex: 1;
}

/* Footer tetap di bawah */
footer {
  margin-top: auto;
}

/* ===== MEDIA QUERIES UNTUK RESPONSIVITAS ===== */

/* Tablet (lebar maksimal 1024px) */
@media (max-width: 1024px) {
  .contact-hero h1 {
    font-size: 40px;
  }
  
  .contact-container {
    padding: 50px 30px;
  }
  
  .nav-left, .nav-right {
    gap: 20px;
  }
}

/* Mobile (lebar maksimal 768px) */
@media (max-width: 768px) {
  /* Header dan Navigasi */
  .nav-left, .nav-right {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    gap: 0;
  }
  
  .nav-left.active, .nav-right.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }
  
  .nav-left {
    top: 70px;
  }
  
  .nav-right {
    top: 220px;
  }
  
  .navbar a {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    display: block;
    text-align: center;
  }
  
  /* Tombol Burger */
  .burger-menu {
    display: block;
  }
  
  /* Atur ulang tata letak navbar untuk mobile */
  .navbar {
    justify-content: space-between;
  }
  
  .logo {
    margin: 0;
    order: -1;
  }
  
  .nav-left, .nav-right {
    flex: none;
  }
  
  /* Hero Section */
  .contact-hero {
    padding: 80px 20px;
  }
  
  .contact-hero h1 {
    font-size: 36px;
  }
  
  /* Contact Container */
  .contact-container {
    padding: 40px 20px;
    gap: 30px;
    flex-direction: column;
  }
  
  .contact-form,
  .contact-info {
    min-width: 100%;
    max-width: 100%;
  }
  
  .contact-form:hover,
  .contact-info:hover {
    transform: translateY(-3px);
  }
  
  .contact-form {
    padding: 25px 20px;
  }
  
  .contact-info {
    padding: 25px 20px;
  }
  
  .contact-info h2 {
    font-size: 24px;
  }
  
  .contact-info p {
    font-size: 14px;
  }
  
  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }
  
  .footer-right {
    text-align: center;
    margin-top: 20px;
  }
  
  .footer-center {
    margin: 15px 0;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mobile Kecil (lebar maksimal 480px) */
@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 32px;
  }
  
  .contact-container {
    padding: 30px 15px;
  }
  
  .contact-form,
  .contact-info {
    padding: 20px 15px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    font-size: 13px;
  }
  
  .contact-form button {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .contact-info h2 {
    font-size: 22px;
  }
  
  .contact-info p {
    font-size: 13px;
  }
  
  .contact-info .info-text {
    font-size: 12px;
  }
  
  .nav-left, .nav-right {
    padding: 15px;
  }
  
  .nav-right {
    top: 210px;
  }
}

/* Loading state animations */
.contact-form,
.contact-info {
  animation-fill-mode: both;
}

/* Special effects for form inputs */
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #c8102e;
  box-shadow: 0 0 5px rgba(200, 16, 46, 0.1);
}

/* Pulse effect for contact info when scrolled into view */
@keyframes pulse {
  0% {
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  }
  50% {
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.1);
  }
  100% {
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  }
}

.contact-info {
  animation: slideInRight 0.7s ease-out 0.8s forwards, pulse 3s ease-in-out 2s infinite;
}