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

body {
  background: #f4f6f9;
  color: #1f2937;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0d4f6e;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #0d4f6e;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

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

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

.nav-menu a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #0d4f6e;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: url('../../image/k3/pltu.jpeg') center/cover no-repeat;
  padding: 90px 8%;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
}

.hero-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

.hero-text {
  max-width: 600px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
  color: #111827;
}

.hero h3 {
  font-weight: 500;
  margin-bottom: 20px;
  color: #374151;
}

.hero p {
  color: #4b5563;
  margin-bottom: 28px;
  max-width: 520px;
}

.btn {
  background: #2f6f62;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #256b5a;
}

.hero-photo img {
  width: 360px;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
}

.stats {
  margin-top: 40px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  gap: 40px;
  padding: 26px 30px;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
}

.stat strong {
  color: #2f6f62;
  font-size: 22px;
}

.stat span {
  font-size: 14px;
  color: #6b7280;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 8%;
}

.projects-section {
  background: #f8fafc;
}

.skills-section {
  background: linear-gradient(135deg, #eef2f7, #ffffff);
}

.cert-section {
  background: #f1f5f9;
}

section h2 {
  font-size: 32px;
  margin-bottom: 35px;
}

/* ===== PROJECTS ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-body {
  padding: 22px;
}

.project h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.project small {
  color: #6b7280;
}

.project ul {
  margin-top: 14px;
  padding-left: 18px;
  color: #374151;
}

.project ul li {
  margin-bottom: 6px;
}

.more {
  margin-top: 18px;
  color: #2f6f62;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* ===== SKILLS ===== */
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.skill {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.skill i {
  font-size: 22px;
  flex-shrink: 0;
}

/* ===== CERTIFICATES ===== */
.certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.cert {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .07);
  display: flex;
  align-items: center;
  gap: 16px;
}

.cert img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert h4 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.cert p {
  font-size: 0.85rem;
  color: #6b7280;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 60px 20px;
  background: #eef2f6;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.15);
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  max-width: 900px;
  width: 92%;
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  font-weight: 700;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}

.modal-content img {
  width: 100%;
  border-radius: 14px;
  height: 350px;
  object-fit: cover;
}

.modal-box h3 {
  margin-top: 25px;
  margin-bottom: 5px;
}

.modal-box ul {
  padding-left: 18px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.modal-box li {
  margin-top: 10px;
  margin-bottom: 6px;
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {
  .hero-wrap {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-text > div {
    justify-content: center;
  }

  .hero-photo img {
    width: 260px;
  }

  .stats {
    flex-wrap: wrap;
    gap: 20px;
  }

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

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

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Hamburger visible */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 0;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 105;
  }

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

  .nav-menu li {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
  }

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

  /* Overlay for mobile menu */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 101;
    display: none;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    padding: 60px 5%;
    min-height: auto;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero h3 {
    font-size: 1rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-photo img {
    width: 200px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
  }

  /* Sections */
  section {
    padding: 50px 5%;
  }

  section h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  /* Projects */
  .projects {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project img {
    height: 180px;
  }

  .project-body {
    padding: 18px;
  }

  /* Skills */
  .skills {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .skill {
    padding: 16px 18px;
    font-size: 0.9rem;
  }

  /* Certificates */
  .certs {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cert {
    padding: 18px;
  }

  /* Modal */
  .modal.active {
    padding: 20px 10px;
    align-items: flex-start;
  }

  .modal-box {
    width: 96%;
    padding: 20px 16px;
    border-radius: 16px;
    max-height: 85vh;
  }

  .modal-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-content img {
    height: 200px;
  }

  .modal-box h3 {
    font-size: 1.05rem;
    margin-top: 18px;
  }

  .modal-box p,
  .modal-box li {
    font-size: 0.9rem;
  }

  .modal-close {
    top: 12px;
    right: 16px;
    font-size: 26px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
  }

  /* Footer */
  footer {
    padding: 40px 16px;
  }

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

/* ============================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
  }

  .hero {
    padding: 40px 4%;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero h3 {
    font-size: 0.9rem;
  }

  .hero-photo img {
    width: 170px;
  }

  .hero-wrap {
    gap: 24px;
  }

  section {
    padding: 40px 4%;
  }

  section h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .project-body h3 {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .modal-content img {
    height: 160px;
  }
}