* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
:root {
  --primary-color: #eab2b2;
  --primary-dark: #d89a9a;
  --secondary-color: #6c63ff;
  --dark-color: #333333;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
  overflow-x: hidden;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Title Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 50px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dark-color);
  border-radius: 3px;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  bottom: -5px;
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* HERO SECTION */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #fdf2f2 0%, #fff 100%);
  overflow: hidden;
}
.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.text {
  flex: 1;
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid white;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  transform: scale(1.16);
  object-position: center -20px;
}
.greeting {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 5px;
}
.name {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
  line-height: 1.2;
}
#desc {
  color: #815353;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  margin-top: -5px;
  display: inline-block;
}
.bio {
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-top: 5px;
  margin-bottom: 15px;
  max-width: 500px;
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}
.social-media {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  color: var(--dark-color);
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.social-media a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

/* ABOUT ME */
.about {
  padding: 80px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 20px;
}

.about-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  padding: 30px;
  background: linear-gradient(135deg, #f8f1f1 0%, #fff5f5 100%);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.cv-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cv-download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 35px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(234, 178, 178, 0.3);
  border: none;
  cursor: pointer;
}

.cv-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(234, 178, 178, 0.4);
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
}

.cv-download-btn ion-icon {
  font-size: 1.8rem;
}

.cv-note {
  margin-top: 20px;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  max-width: 250px;
  line-height: 1.5;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f1f1;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  color: #815353;
  transition: var(--transition);
}

.highlight-item:hover {
  background: #f5e8e8;
  transform: translateY(-2px);
}

.highlight-item ion-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* SKILL SECTION */
.skills {
  padding: 80px 0;
  background: linear-gradient(135deg, #fdf2f2 0%, #fff 100%);
}

.skill-col {
  display: flex;
  justify-content: center;
}

.skill-category {
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 900px;
  background-color: white;
}

/* Card kiri & kanan */
.experties,
.tools {
  flex: 1;
  background-color: #f8f1f1;
  padding: 30px;
  border-radius: 12px;
  transition: var(--transition);
}

.experties:hover,
.tools:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Title Front-End & Tools */
.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  justify-content: center;
}

.skill-category h3 ion-icon {
  color: var(--primary-color);
}

/* Item skill */
.skill-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(234, 178, 178, 0.2);
}

.skill-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Icon size */
.skill-item ion-icon,
.skill-item i {
  font-size: 32px;
  color: #9a6161;
  width: 40px;
  text-align: center;
}

/* PORTFOLIO SECTION */
.portfolio {
  padding: 80px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(234, 178, 178, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  opacity: 0;
  transition: var(--transition);
  color: white;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  margin-bottom: 15px;
  font-size: 1.6rem;
  font-weight: 600;
}

.portfolio-overlay p {
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.5;
}

.portfolio-links {
  display: flex;
  gap: 15px;
}

.portfolio-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: white;
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: var(--transition);
  text-decoration: none;
}

.portfolio-links a:hover {
  background-color: var(--dark-color);
  color: white;
  transform: scale(1.1);
}

.portfolio-info {
  padding: 25px;
}

.portfolio-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--dark-color);
  font-weight: 600;
}

.portfolio-info span {
  font-size: 0.95rem;
  color: var(--gray-color);
  font-weight: 500;
}

/* CONTACT SECTION */
.contact {
  padding: 80px 0;
  background: linear-gradient(135deg, #fdf2f2 0%, #fff 100%);
}

.contact-content {
  display: flex;
  gap: 50px;
  margin-top: 20px;
}

.contact-info {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.info-card {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(234, 178, 178, 0.1);
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(234, 178, 178, 0.3);
}

.info-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.info-card ion-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-color);
  font-weight: 600;
}

.info-card p {
  color: var(--gray-color);
  font-size: 0.95rem;
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(234, 178, 178, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* FOOTER */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 30px 0 10px;
  margin-top: 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.footer-text {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 1.2rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.copyright {
  color: #888;
  font-size: 0.95rem;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet & Desktop Kecil (768px - 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  /* Hero Section */
  .content {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .text {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .image-wrapper {
    width: 300px;
    height: 300px;
  }

  .name {
    font-size: 3rem;
  }

  .bio {
    margin: 15px auto;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .about-cta {
    min-width: 100%;
  }

  /* Skills Section */
  .skill-category {
    flex-direction: column;
    gap: 30px;
    padding: 30px;
  }

  .experties,
  .tools {
    width: 100%;
  }

  /* Contact Section */
  .contact-content {
    flex-direction: column;
    gap: 40px;
  }

  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Landscape & Tablet Kecil (576px - 768px) */
@media (max-width: 768px) {
  /* Navbar */
  .nav-container {
    padding: 0 20px;
    justify-content: space-between;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    margin-right: 0;
    padding: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin-left: 0;
  }

  .nav-menu a {
    font-size: 1.2rem;
    padding: 10px 0;
  }

  /* Hamburger animation saat menu aktif */
  .nav-menu.active ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-menu.active ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-menu.active ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Hero Section */
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .image-wrapper {
    width: 250px;
    height: 250px;
  }

  .name {
    font-size: 2.5rem;
  }

  #desc {
    font-size: 1.3rem;
  }

  .bio {
    font-size: 1rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .btn {
    width: 200px;
    text-align: center;
  }

  /* About Section */
  .section-title {
    font-size: 2rem;
  }

  .about {
    padding: 60px 0;
  }

  .about-cta {
    padding: 25px;
  }

  .cv-download-btn {
    padding: 14px 30px;
    font-size: 1rem;
  }

  /* Portfolio Section */
  .portfolio {
    padding: 60px 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }

  /* Contact Section */
  .contact {
    padding: 60px 0;
  }

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

  .info-card {
    padding: 25px;
  }

  .contact-form {
    padding: 30px;
  }
}

/* Mobile Portrait (up to 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 20px;
  }

  /* Navbar */
  .nav-menu {
    width: 250px;
  }

  .nav-menu a {
    font-size: 1rem;
  }

  /* Hero Section */
  .hero {
    padding-top: 90px;
    padding-bottom: 50px;
  }

  .image-wrapper {
    width: 220px;
    height: 220px;
  }

  .name {
    font-size: 2.2rem;
  }

  .greeting {
    font-size: 1.1rem;
  }

  .social-media {
    justify-content: center;
  }

  /* About Section */
  .section-title {
    font-size: 1.8rem;
  }

  .about-text p {
    text-align: left;
    font-size: 1rem;
  }

  .about-highlights {
    justify-content: center;
  }

  .highlight-item {
    font-size: 0.9rem;
    padding: 8px 15px;
  }

  /* Skills Section */
  .skills {
    padding: 50px 0;
  }

  .skill-category {
    padding: 20px;
  }

  .skill-category h3 {
    font-size: 1.3rem;
    justify-content: center;
  }

  .skill-item {
    font-size: 0.95rem;
    justify-content: flex-start;
  }

  /* Portfolio Section */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portfolio-image {
    height: 220px;
  }

  /* Footer */
  .footer-logo {
    font-size: 2rem;
  }

  .footer-text {
    font-size: 1rem;
  }

  .copyright {
    font-size: 0.85rem;
  }
}

/* Very Small Mobile (up to 400px) */
@media (max-width: 400px) {
  /* Navbar */
  .nav-menu {
    width: 200px;
  }

  /* Hero Section */
  .name {
    font-size: 2rem;
  }

  .image-wrapper {
    width: 200px;
    height: 200px;
  }

  .btn {
    width: 180px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* About Section */
  .section-title {
    font-size: 1.7rem;
  }

  .cv-download-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  /* Skills Section */
  .experties,
  .tools {
    padding: 20px 15px;
  }

  .skill-item {
    font-size: 0.9rem;
  }

  .skill-item ion-icon,
  .skill-item i {
    font-size: 26px;
  }

  /* Contact Form */
  .contact-form {
    padding: 20px;
  }
}

/* Fix untuk gambar portfolio yang tidak muncul */
.portfolio-item .portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

/* Perbaikan untuk form-group yang terlalu lebar di mobile */
@media (max-width: 768px) {
  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .image-wrapper img {
    border-width: 6px;
  }
}

/* Landscape Mode untuk Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding-top: 80px;
    min-height: auto;
  }

  .content {
    flex-direction: row;
    gap: 30px;
  }

  .image-wrapper {
    width: 180px;
    height: 180px;
  }

  .name {
    font-size: 2rem;
  }
}
