:root {
  --bg-dark: #080c14;       
  --bg-light: #0f172a;      
  --card-dark: #121b2e;     
  --text-light: #f8fafc;    
  --text-dark: #cbd5e1;     
  --text-muted: #64748b;    
  --accent-green: #22c55e;  
  --accent-blue: #38bdf8;   
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1200px, calc(100% - 4rem));
  margin: 0 auto;
}

/* ==========================================
   NAVBAR COMPONENT
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(16px);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--accent-green);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--text-light);
}

#navToggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 110;
}

#navToggle span {
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition);
}

/* ==========================================
   HERO & TERMINAL
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  background-color: var(--bg-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.typing-cursor {
  font-weight: 200;
  color: var(--accent-green);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-primary {
  background-color: var(--accent-green);
  color: #042f1a;
}

.btn-primary:hover {
  background-color: #4ade80;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-light);
}

.hero-terminal {
  background-color: #05070c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  width: 100%;
}

.terminal-header {
  background-color: #0f131a;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.btn-term {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.btn-term.close { background-color: #ef4444; }
.btn-term.minimize { background-color: #eab308; }
.btn-term.expand { background-color: #22c55e; }

.terminal-title {
  color: #475569;
  font-size: 0.75rem;
  margin-left: 1.5rem;
}

.terminal-body {
  padding: 1.5rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.6;
}

.term-line {
  margin-bottom: 1.2rem;
}

.term-accent { color: var(--accent-green); }
.term-command { color: var(--text-light); }

.term-profile-grid {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.term-img-box {
  width: 140px;          
  height: 100px;         
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.term-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;     
  object-position: center 20%; 
}

.term-info p {
  margin-bottom: 0.35rem;
}

.term-meta {
  color: var(--accent-blue);
}

/* ==========================================
   STRUCTURAL SECTIONS
   ========================================== */
.section-light, .section-dark {
  padding: 8rem 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--bg-dark);
}

.section-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
}

.section-title-serif {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: 5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================
   ABOUT & SKILLS
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 3.5rem;
}

.meta-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

.meta-row {
  display: flex;
  font-size: 0.9rem;
}

.meta-label {
  width: 120px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.meta-value {
  color: var(--text-light);
  font-weight: 500;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: var(--text-dark);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
}

.skills-tags span:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background-color: rgba(56, 189, 248, 0.05);
}

/* ==========================================
   EDUCATION
   ========================================== */
.education-wrap {
  margin-top: 6rem;
}

.education-card {
  background-color: var(--card-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.edu-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.edu-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.edu-right {
  display: flex;
  gap: 4rem;
}

.edu-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-green);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================
   EXPERIENCE TIMELINE
   ========================================== */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 3rem;
}

.exp-item {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: 2rem;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-blue);
}

.exp-status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.exp-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.exp-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.exp-bullets {
  list-style: none;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.exp-bullets li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: var(--accent-green);
}

/* ==========================================
   PORTFOLIO SLIDER GRID
   ========================================== */
.project-item {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.project-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.project-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 3.5rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-stack span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.project-slider-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-image-view {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  background-color: #05070c;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-container {
  display: flex;
  width: 100%;
}

.slide-item {
  min-width: 100%;
  display: none;
}

.slide-item.active {
  display: block;
}

.project-svg {
  width: 100%;
  height: auto;
  display: block;
}

.slider-controls {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-btn {
  background-color: rgba(15, 23, 42, 0.85);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}

.slider-btn:hover {
  background-color: var(--accent-green);
  color: #042f1a;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
  padding: 10rem 0;
  text-align: center;
}

.contact-title-serif {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.contact-accent-serif {
  color: var(--accent-green);
  font-family: 'JetBrains Mono', monospace;
}

.contact-divider {
  width: 40px;
  height: 2px;
  background-color: var(--accent-blue);
  margin: 0 auto 3rem auto;
}

.contact-quote {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 55ch;
  margin: 0 auto 5rem auto;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.social-icon {
  text-decoration: none;
  display: inline-flex;
  transition: transform var(--transition);
}

.social-icon svg {
  transition: all var(--transition);
}

.social-icon:hover {
  transform: translateY(-4px);
}

.social-icon:hover svg {
  color: var(--accent-green) !important;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
  background-color: #04060a;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;   
  flex-wrap: wrap;       
  gap: 15px;             
}

.footer-content p {
  margin: 0;
}

/* ==========================================
   GLOBAL RESPONSIVE MEDIA QUERIES (MAX 968px)
   ========================================== */
@media (max-width: 968px) {
  /* Hambuger Menu Terbuka */
  #navToggle {
    display: flex; 
  }
  
  .nav-menu {
    display: none; 
    position: absolute;
    top: calc(100% + 1.25rem); 
    left: 0;
    width: 100%;
    background-color: var(--bg-light); 
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-menu.open {
    display: flex; 
  }

  .nav-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1rem;
    width: 100%;
  }

  /* Grid Layout HP */
  .hero-grid, .about-grid, .exp-item, .project-item {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .education-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
  }
  
  .edu-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .edu-stat {
    align-items: flex-start;
  }
}