/* 🌸 === GLOBAL STYLE === */
:root {
  --header-height: 72px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: #444;
  background-color: #fff;
  scroll-behavior: smooth;
}

body {
  padding-top: calc(var(--header-height));
}

/* 🌸 === WARNA UTAMA === */
.text-pink { color: #e75480 !important; }
.bg-pink { background-color: #e75480; }
.border-pink { border: 1px solid #f8bbd0; }

/* 🌸 === BUTTON === */
.btn-pink {
  background-color: #e75480;
  color: #fff;
  border: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.text-pink { color: #e75480; }
    .btn-pink {
      background-color: #e75480;
      color: white;
      border: none;
    }
    .btn-pink:hover { background-color: #e75480; color: white; }
    .hero-section {
      position: relative;
      height: 100vh;
      background: url('<?= base_url("img/hero.jpg"); ?>') center/cover no-repeat;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: white;
    }
    .hero-section .overlay {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
    }
    .hero-content { position: relative; z-index: 2; }
    .profile-img {
      border-radius: 50%;
      max-width: 250px;
      border: 5px solid #f8bbd0;
    }
    .section-bg { background-color: #fffafc; }
    .info-list li { margin-bottom: 10px; list-style: none; }

.btn-pink:hover {
  background-color: #d14272;
  color: #fff;
  transform: scale(1.05);
}

/* 🌸 === HEADER & NAVBAR === */
header#header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  padding: 12px 0;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(243,141,168,0.15);
}

#header .logo a {
  font-size: 20px;
  font-weight: 600;
  color: #e75480;
  text-decoration: none;
}

#header .navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.7);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#header .navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 10px rgba(243, 141, 168, 0.25);
}

#header .navbar .nav-link {
  color: #555;
  font-weight: 500;
  position: relative;
  padding: 8px 15px;
  transition: color 0.3s ease;
}

#header .navbar .nav-link:hover,
#header .navbar .nav-link.active {
  color: #e75480;
}

/* 🌈 Underline animasi */
#header .navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 0;
  height: 2px;
  background-color: #e75480;
  border-radius: 2px;
  transition: width 0.3s ease;
}

#header .navbar .nav-link:hover::after,
#header .navbar .nav-link.active::after {
  width: 100%;
}

/* 🌺 Social Icon */
.social-icons a {
  color: #e75480;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #d14272;
  transform: translateY(-2px) scale(1.2);
}

/* 🌸 === SECTION OFFSET === */
#home, #about, #resume, #portfolio, #contact {
  scroll-margin-top: 88px;
}

/* 🌸 === HERO SECTION === */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  background: url('../img/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 80px;
  padding-bottom: 80px;
  margin: 0;
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(243,141,168,0.4), rgba(255,182,193,0.55));
  z-index: 1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 2s ease-in-out;
}

.hero-section h1 {
  font-size: 3.2rem;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.hero-section h5 {
  color: #fffafc;
  font-weight: 400;
}

.text-highlight { 
  color: #ffd1dc;
  text-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.hero-content h1, 
.hero-content h5, 
.hero-content .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.hero-content h1 { animation-delay: 0.2s; }
.hero-content h5 { animation-delay: 0.6s; }
.hero-content .btn { animation-delay: 1s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🌸 === ABOUT SECTION === */
#about {
  background: linear-gradient(180deg, #fff5f9 0%, #ffe3ef 100%);
  padding: 80px 0;
  scroll-margin-top: calc(var(--header-height));
}

.about .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.about .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #e75480;
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 10px;
}
.about-text {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* pastiin isi teks mulai dari atas */
}

.about-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(243,141,168,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.about-img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 40px rgba(243,141,168,0.30);
}

.about-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: justify; /* biar rata kanan kiri */
}

.about-text h3 {
  color: #e75480;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.about-text p {
  color: #444;
  line-height: 1.75;
  margin-bottom: 0.4rem;
  text-align: justify;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px 40px;
  margin-top: 20px;
  align-items: start;
}

.about-info p {
  margin: 0;
  line-height: 1.8;
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 10px;
}

.about-info strong { color: #e75480; }

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 26px;
  }
  .about-img { width: 200px; height: 200px; }
  .about-text p { text-align: center; }
  #about { padding: 70px 0; }
}

/* 🌸 === CONTACT SECTION === */
.info-box {
  border: 1px solid #ffd9e3;
  border-radius: 10px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.info-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(243, 141, 168, 0.15);
}

.icon-wrapper {
  background-color: #ffe6ef;
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  display: inline-block;
}

.form-control:focus {
  border-color: #f38da8;
  box-shadow: 0 0 0 0.2rem rgba(243, 141, 168, 0.2);
}

/* 🌸 === ALERT SUKSES === */
.alert-success {
  background-color: #f8bbd0;
  color: #a62c5b;
  border: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 🌸 === FOOTER === */
footer {
  background-color: #f8bbd0;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-weight: 500;
}

/* 🌸 === ANIMASI === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
  will-change: opacity, transform;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}
