/* ===================== GLOBAL STYLES ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0066cc;
  --secondary-color: #00d4ff;
  --accent-color: #ff6b6b;
  --dark-color: #1a1a2e;
  --light-color: #f5f7fa;
  --text-color: #333333;
  --border-color: #e0e0e0;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

body {
  background-color: #fafbfc;
}

/* ===================== HEADER ===================== */
header {
  width: 100%;
  height: 70px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

header img {
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
}

header nav {
  display: flex;
  gap: 40px;
}

header nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: all 0.3s ease;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

header nav a:hover::after,
header nav a.choosen::after {
  width: 100%;
}

header nav a.choosen {
  color: var(--primary-color);
  font-weight: 700;
}

/* ===================== MAIN CONTENT ===================== */
main.content {
  margin-top: 90px;
  padding: 60px 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

main.content h1 {
  font-size: 42px;
  color: var(--dark-color);
  margin-bottom: 15px;
  font-weight: 700;
}

main.content h2 {
  font-size: 38px;
  color: var(--dark-color);
  margin-bottom: 15px;
  font-weight: 700;
}

main.content h4 {
  color: var(--secondary-color);
  text-align: center;
  margin: 30px 0;
  font-weight: 600;
}

main.content p {
  color: #666;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
}

/* ===================== BUTTONS ===================== */
button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

button:active {
  transform: translateY(-1px);
}

button p {
  margin: 0;
  padding: 0;
}

/* ===================== CARDS ===================== */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-color);
}

.card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 15px;
}

.card .judul {
  font-weight: 700;
  color: var(--dark-color);
  font-size: 18px;
  margin-bottom: 10px;
}

.card .love {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
}

.card .btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
}

.card .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
}

/* ===================== HOME PAGE SPECIFIC ===================== */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text p:first-child {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
}

.hero-text h2 {
  margin-top: 0;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

/* ===================== MODAL ===================== */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 24px;
}

.modal-content p {
  color: #555;
  font-size: 16px;
  margin-bottom: 30px;
}

.close-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
}

/* ===================== GALLERY ===================== */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 220px;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== CONTACT FORM ===================== */
.contact-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 500px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-group input,
.contact-form textarea {
  flex: 1;
  min-width: 200px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contact-form textarea {
  width: 100%;
  resize: vertical;
  height: 120px;
}

.contact-info {
  display: grid;
  gap: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
}

.info-item i {
  font-size: 28px;
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 212, 255, 0.1));
  padding: 15px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item h4 {
  color: var(--dark-color);
  margin-bottom: 5px;
  font-size: 18px;
}

.info-item p {
  color: #666;
  margin: 0;
}

/* ===================== MAP ===================== */
.map-container {
  width: 100%;
  height: 400px;
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===================== PROFILE PAGE ===================== */
.profile-container {
  background: white;
  border-radius: 12px;
  max-width: 950px;
  margin: 40px auto;
  display: flex;
  align-items: center;
  padding: 40px;
  gap: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.profile-image img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.profile-text {
  flex: 1;
  min-width: 300px;
}

.profile-text h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.profile-text p {
  color: #555;
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
    height: 60px;
  }

  header nav {
    gap: 20px;
  }

  header nav a {
    font-size: 13px;
  }

  main.content {
    margin-top: 80px;
    padding: 40px 20px;
  }

  main.content h1 {
    font-size: 32px;
  }

  main.content h2 {
    font-size: 28px;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 20px;
  }

  .hero-section {
    gap: 20px;
  }

  .profile-container {
    flex-direction: column;
    padding: 20px;
  }

  .contact-form,
  .contact-info {
    max-width: 100%;
  }

  .form-group {
    flex-direction: column;
  }

  .form-group input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0 15px;
  }

  header nav {
    gap: 15px;
    flex-wrap: wrap;
  }

  header nav a {
    font-size: 12px;
  }

  main.content h1 {
    font-size: 26px;
  }

  main.content h2 {
    font-size: 22px;
  }

  button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .gallery-item {
    height: 180px;
  }
}

/* ===================== UTILITIES ===================== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.spec {
  color: var(--secondary-color);
}
