/* Reset & Gaya Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    display: flex;
    background-color: #f4f7fe;
    color: #2b3674;
    min-height: 100vh;
  }
  
  /* Class Mode Gelap yang di-trigger oleh JS */
  body.dark-mode {
    background-color: #0b1437;
    color: #ffffff;
  }
  
  /* ===== HAMBURGER BUTTON ===== */
  .hamburger-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background: #4318ff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(67, 24, 255, 0.3);
    transition: all 0.3s;
  }
  .hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
  }
  .hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* Overlay sidebar */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .sidebar-overlay.active {
    opacity: 1;
  }

  /* Sidebar */
  .sidebar {
    width: 260px;
    background: #ffffff;
    padding: 0;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
  }
  
  body.dark-mode .sidebar {
    background: #111c44;
    border-right-color: #1b254b;
  }

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
  }
  body.dark-mode .sidebar-header {
    border-bottom-color: #1b254b;
  }

  .sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #2b3674;
    cursor: pointer;
    line-height: 1;
  }
  body.dark-mode .sidebar-close {
    color: #fff;
  }
  
  .sidebar h2 span {
    color: #4318ff;
  }
  
  .sidebar ul {
    list-style: none;
    padding: 10px;
  }
  
  .sidebar ul li a {
    display: block;
    padding: 12px 16px;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 500;
    transition: all 0.2s;
  }
  
  .sidebar ul li a.active, .sidebar ul li a:hover {
    background: #4318ff;
    color: white;
  }
  
  /* Main Content */
  .main-content {
    flex: 1;
    padding: 30px;
    min-width: 0;
  }
  
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }
  .topbar h1 {
    font-size: 1.6rem;
  }
  
  #theme-toggle {
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    background: #4318ff;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
/* Cards & Grid */
.stats-container, .portfolio-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.card, .portfolio-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  flex: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .card, 
body.dark-mode .portfolio-card {
  background: #111c44;
}

.portfolio-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Hero Section - Foto Besar */
.hero-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(67, 24, 255, 0.08);
}

body.dark-mode .hero-section {
  background: linear-gradient(135deg, #111c44 0%, #1a2756 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #2b3674;
}

body.dark-mode .hero-text h2 {
  color: #ffffff;
}

.hero-text .highlight {
  color: #4318ff;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #4318ff;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 25px;
  max-width: 500px;
}

body.dark-mode .hero-description {
  color: #b0b9d4;
}

.hero-cta {
  display: flex;
  gap: 12px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #4318ff;
  color: white;
}

.btn-primary:hover {
  background: #3612d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 24, 255, 0.35);
}

.btn-secondary {
  background: transparent;
  color: #4318ff;
  border: 2px solid #4318ff;
}

.btn-secondary:hover {
  background: #4318ff;
  color: white;
  transform: translateY(-2px);
}

.hero-image-wrapper {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #4318ff;
  box-shadow: 0 8px 30px rgba(67, 24, 255, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(67, 24, 255, 0.4);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== RESPONSIF MOBILE ===== */
@media (max-width: 768px) {
  /* Tampilkan hamburger */
  .hamburger-btn {
    display: flex;
  }

  /* Sidebar jadi off-canvas */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    z-index: 99;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    padding-top: 0;
  }
  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

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

  /* Main content full width */
  .main-content {
    padding: 15px;
    padding-top: 70px; /* space for hamburger */
  }

  /* Topbar */
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .topbar h1 {
    font-size: 1.3rem;
  }
  #theme-toggle {
    width: 100%;
    text-align: center;
  }

  /* Hero section */
  .hero-section {
    padding: 25px 18px;
  }
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
  }
  .hero-text h2 {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-description {
    max-width: 100%;
    font-size: 0.95rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }
  .hero-cta a {
    text-align: center;
    width: 100%;
  }
  .hero-image-wrapper {
    width: 180px;
    height: 180px;
  }

  /* Stats & Portfolio grid jadi column */
  .stats-container, .portfolio-grid {
    flex-direction: column;
  }
  .card, .portfolio-card {
    padding: 18px;
  }

  /* Portfolio section */
  .portfolio-section h2 {
    font-size: 1.2rem;
  }
}

/* Mobile kecil */
@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 1.5rem;
  }
  .hero-image-wrapper {
    width: 150px;
    height: 150px;
  }
  .hero-section {
    padding: 18px 14px;
  }
  .main-content {
    padding: 10px;
    padding-top: 65px;
  }
}

/* ===== EDUCATION SECTION (Desain Menarik) ===== */
.education-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #2b3674;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .section-title {
  color: #ffffff;
}

.education-box {
  display: flex;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(67, 24, 255, 0.10);
  border: 1px solid rgba(67, 24, 255, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.education-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(67, 24, 255, 0.18);
}

body.dark-mode .education-box {
  background: linear-gradient(135deg, #111c44 0%, #162152 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Left Panel */
.edu-left {
  flex: 0 0 300px;
  padding: 35px 30px;
  background: linear-gradient(145deg, #4318ff 0%, #6c3aff 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.edu-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

body.dark-mode .edu-left {
  background: linear-gradient(145deg, #4318ff 0%, #5a2dff 100%);
}

.edu-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.edu-emoji {
  font-size: 2rem;
}

.edu-institution {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.edu-major {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.95;
}

.edu-faculty {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 18px;
}

.edu-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 18px;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Right Panel */
.edu-right {
  flex: 1;
  padding: 35px 35px 35px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.edu-quote-icon {
  font-size: 3.5rem;
  line-height: 1;
  color: #4318ff;
  opacity: 0.15;
  font-family: Georgia, serif;
  position: absolute;
  top: 20px;
  left: 20px;
  user-select: none;
}

body.dark-mode .edu-quote-icon {
  color: #8b7aff;
  opacity: 0.2;
}

.edu-description {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.edu-description:last-of-type {
  margin-bottom: 0;
}

body.dark-mode .edu-description {
  color: #b0b9d4;
}

.edu-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.signature-line {
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #4318ff, #7c5aff);
  border-radius: 4px;
}

.signature-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #4318ff;
  letter-spacing: 0.5px;
}

body.dark-mode .signature-text {
  color: #8b7aff;
}

/* ===== RESPONSIVE EDUCATION ===== */
@media (max-width: 768px) {
  .education-box {
    flex-direction: column;
  }

  .edu-left {
    flex: unset;
    padding: 30px 25px;
  }

  .edu-right {
    padding: 28px 25px;
  }

  .edu-quote-icon {
    font-size: 2.5rem;
    top: 12px;
    left: 15px;
  }

  .edu-description {
    font-size: 0.93rem;
  }
}

@media (max-width: 480px) {
  .edu-left {
    padding: 25px 20px;
  }

  .edu-institution {
    font-size: 1.15rem;
  }

  .edu-tags {
    gap: 6px;
  }

  .tag {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .edu-right {
    padding: 22px 18px;
  }
}
