/* ==========================================================================
   PORTFOLIO GITA MAULINA PRAMESWARI
   Theme: Minimalist Editorial Portfolio (Warm Blush / Soft Coral Pink)
   Font: Plus Jakarta Sans
   ========================================================================== */

/* Google Fonts - Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- Root Design Variables --- */
:root {
  /* Color Palette - Light Mode (Warm White / Soft Blush) */
  --bg-page: #DFD8D1;
  --bg-surface: #EAE5DF;
  --bg-surface-subtle: #D3CBC3;
  --bg-surface-elevated: #EAE5DF;
  
  --text-main: #1F1D21;
  --text-muted: #55515C;
  --text-light: #69656F;
  
  /* Brand Pink Accents (Editorial Soft Coral & Pastel Pink) */
  --accent-primary: #DE6B7E;
  --accent-primary-hover: #CB5569;
  --accent-primary-active: #B54558;
  --accent-soft: #EBD7DB;
  --accent-soft-hover: #E5CBD1;
  --accent-border: #D8B1BA;
  --accent-badge-bg: #E8D2D8;
  --accent-badge-text: #BA4B5D;

  /* Borders & Dividers (Soft Neutral) */
  --border-soft: #C9C0B8;
  --border-card: #C6BDB5;
  --border-highlight: #DE6B7E;
  
  /* Shadows (Subtle, Crisp, Non-muddy) */
  --shadow-sm: 0 2px 8px rgba(35, 34, 38, 0.03);
  --shadow-card: 0 8px 24px -6px rgba(50, 40, 45, 0.05), 0 2px 6px -2px rgba(50, 40, 45, 0.03);
  --shadow-floating: 0 16px 36px -8px rgba(60, 40, 48, 0.09), 0 4px 12px -2px rgba(60, 40, 48, 0.04);
  
  /* Layout & Sizing */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1140px;
  --header-height: 74px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Mode Variables (Deep Charcoal / Warm Dark) --- */
[data-theme="dark"] {
  --bg-page: #131215;
  --bg-surface: #1C1B20;
  --bg-surface-subtle: #242229;
  --bg-surface-elevated: #28262E;
  
  --text-main: #F5F3F8;
  --text-muted: #A39FAe;
  --text-light: #777284;
  
  /* Dark Mode Accents */
  --accent-primary: #EE7A8D;
  --accent-primary-hover: #F690A1;
  --accent-primary-active: #FA9FB0;
  --accent-soft: rgba(238, 122, 141, 0.12);
  --accent-soft-hover: rgba(238, 122, 141, 0.18);
  --accent-border: rgba(238, 122, 141, 0.28);
  --accent-badge-bg: rgba(238, 122, 141, 0.15);
  --accent-badge-text: #F69BB0;

  /* Borders & Dividers */
  --border-soft: #2A2832;
  --border-card: #312E3B;
  --border-highlight: #EE7A8D;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
  --shadow-floating: 0 18px 40px -10px rgba(0, 0, 0, 0.6);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Section Global Layout --- */
.section {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

.section-header {
  margin-bottom: 52px;
  text-align: left;
}

.section-header.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-badge-text);
  background-color: var(--accent-badge-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(223, 216, 209, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background: rgba(19, 18, 21, 0.88);
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--accent-soft);
}

.nav-link.active {
  color: var(--accent-badge-text);
  font-weight: 600;
  background-color: var(--accent-badge-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 3;
  justify-self: end;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--bg-surface);
  color: var(--accent-badge-text);
  box-shadow: var(--shadow-sm);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  transform: rotate(15deg);
}

.theme-icon-dark, .theme-icon-light {
  display: none;
}

[data-theme="light"] .theme-icon-dark {
  display: block;
}

[data-theme="dark"] .theme-icon-light {
  display: block;
}

/* --- HERO SECTION (About Top) --- */
.hero-section {
  padding-top: 130px;
  padding-bottom: 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  max-width: 580px;
}

.hero-name {
  white-space: nowrap;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 4px 14px rgba(222, 107, 126, 0.28);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  box-shadow: 0 6px 18px rgba(222, 107, 126, 0.35);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-outline {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

.btn-outline:hover {
  border-color: var(--accent-border);
  background-color: var(--accent-soft);
  color: var(--accent-badge-text);
  transform: translateY(-2px);
}

.hero-actions .btn:hover,
.hero-actions .btn:active,
.hero-actions .btn.is-selected {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(222, 107, 126, 0.28);
}

/* Hero Visual / Avatar Right Column */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  padding: 9px;
  background: linear-gradient(135deg, var(--accent-border), transparent 70%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-floating);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-surface-subtle);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 50%;
  display: block;
}

/* Floating Information Card */
.floating-card {
  position: absolute;
  bottom: -44px;
  right: -16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-floating);
  max-width: 260px;
  z-index: 10;
  transition: transform var(--transition-fast);
}

.floating-card:hover {
  transform: translateY(-3px);
}

.floating-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  display: inline-block;
  position: relative;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.floating-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
}

.floating-card-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

/* --- ABOUT DETAIL (Experiences & Summary) --- */
.about-detail-wrapper {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border-soft);
}

.about-bio-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.about-bio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.about-bio-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.about-bio-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-bio-card p:last-child {
  margin-bottom: 0;
}

/* Experience Cards (Content Creator, Agen Statistik, Hima) */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.exp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.exp-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
}

.exp-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.exp-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.exp-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-badge-text);
  margin-bottom: 10px;
}

.exp-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

.skills-cat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.skills-cat-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.skills-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.skills-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skills-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
}

.skills-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  flex-shrink: 0;
}

/* Tools & Technologies Grid */
.tool-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

/* --- Tools marquee (logos only) --- */
.tools-marquee {
  overflow: hidden;
  margin-bottom: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tools-track {
  display: flex;
  width: max-content;
  animation: toolsScroll 45s linear infinite;
}

.tools-marquee:hover .tools-track {
  animation-play-state: paused;
}

.tools-set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.tool-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex: none;
}

@keyframes toolsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tools-track { animation: none; width: auto; }
  .tools-set { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .tools-set[aria-hidden="true"] { display: none; }
}

/* --- PROJECTS SECTION --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-floating);
}

.project-visual {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Stylized Visual Mockup Cards */
.mockup-preview-inner {
  width: 90%;
  height: 82%;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  transition: transform var(--transition-normal);
}

.project-card:hover .mockup-preview-inner {
  transform: scale(1.02);
}

.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-soft);
}

.mockup-body {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.mockup-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-line {
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--border-soft);
}

.mockup-line.w-80 { width: 80%; }
.mockup-line.w-60 { width: 60%; }
.mockup-line.w-40 { width: 40%; }
.mockup-line.accent { background: var(--accent-primary); opacity: 0.6; }

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-type-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-badge-bg);
  color: var(--accent-badge-text);
  border: 1px solid var(--accent-border);
}

.project-category {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
}

.project-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
}

/* --- EDUCATION SECTION --- */
.education-container {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 24px;
  left: 11px;
  width: 2px;
  background-color: var(--border-soft);
}

.timeline-item {
  position: relative;
  margin-bottom: 38px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-marker-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.timeline-card:hover {
  transform: translateX(4px);
  border-color: var(--accent-border);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.timeline-institution {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.timeline-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-badge-bg);
  color: var(--accent-badge-text);
  border: 1px solid var(--accent-border);
}

.timeline-major {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card);
}

.contact-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.contact-card:hover .contact-icon-wrap {
  background: var(--accent-primary);
  color: #FFFFFF;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

/* The email always stays on one line; its grid column sizes to fit it */
a[href^="mailto:"] .contact-value {
  white-space: nowrap;
  word-break: normal;
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 0;
  background: var(--bg-surface);
  text-align: center;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-name {
    font-size: clamp(1.35rem, 6.4vw, 2.75rem);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .avatar-wrapper {
    width: 280px;
    height: 280px;
  }

  .hero-visual {
    padding-bottom: 48px;
  }

  .floating-card {
    right: auto;
    left: 50%;
    bottom: 0;
    width: max-content;
    max-width: min(260px, calc(100vw - 48px));
    transform: translateX(-50%);
    text-align: left;
  }

  .floating-card:hover {
    transform: translateX(-50%) translateY(-3px);
  }

  .about-bio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skills-category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 768px) {
  /* Phones: the menu stays visible as a second row under the header */
  :root {
    --header-height: 96px;
  }

  .header-container {
    grid-template-columns: 1fr;
    grid-template-rows: 52px 44px;
    align-content: start;
  }

  .header-actions {
    grid-column: 1;
    grid-row: 1;
  }

  /* full width row; sizes shrink with the screen so all five links fit */
  .nav-desktop {
    grid-row: 2;
    justify-content: space-between;
    gap: 0;
    margin: 0 -24px;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-desktop::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: none;
    padding: 8px clamp(4px, 1.7vw, 10px);
    font-size: clamp(0.72rem, 3.3vw, 0.86rem);
    white-space: nowrap;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  /* .section above would otherwise override the hero's top padding
     and push the avatar under the fixed header */
  .hero-section {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 64px;
  }

  .hero-title {
    font-size: 1.15rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .tool-logo {
    height: 32px;
  }

  .tools-set {
    gap: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 8px;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

}

/* --- Accessibility & Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================
   Typing caret on the hero subtitle
   ===================================================== */
.hero-title {
  min-height: 1.5em;
}

.hero-title.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--accent-primary);
  animation: caretBlink 0.9s steps(1) infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

/* =====================================================
   Reveal on scroll (translate/opacity only, so card hover keeps working)
   ===================================================== */
.js-reveal [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease, translate 0.6s ease;
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

/* =====================================================
   Portfolio tabs
   ===================================================== */
.showcase-tabs {
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.showcase-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-fast, 0.2s ease), color var(--transition-fast, 0.2s ease);
}

.showcase-tab:hover {
  color: var(--text-main);
}

.showcase-tab[aria-selected="true"] {
  background: var(--accent-badge-bg);
  border-color: var(--accent-border);
  color: var(--accent-badge-text);
}

.showcase-tab:focus-visible,
.card-detail-btn:focus-visible,
.detail-back:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.showcase-panel[hidden] {
  display: none;
}

/* Certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cert-card {
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cert-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* =====================================================
   Project cards: clickable + photo variant
   ===================================================== */
.project-card[data-project] {
  cursor: pointer;
}

.card-detail-btn {
  appearance: none;
  align-self: flex-start;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-badge-text);
  cursor: pointer;
}

.card-detail-btn::after {
  content: "\2192";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.project-card:hover .card-detail-btn::after {
  transform: translateX(4px);
}

/* =====================================================
   Project detail view
   ===================================================== */
.detail-open {
  overflow: hidden;
}

.project-detail {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 900;
  overflow-y: auto;
  padding: 28px 0 56px;
  background: var(--bg-page);
  animation: detailIn 0.35s ease both;
}

.project-detail[hidden] {
  display: none;
}

@keyframes detailIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.detail-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.detail-back:hover {
  border-color: var(--accent-primary);
  color: var(--accent-badge-text);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  margin-top: 24px;
}

.detail-title {
  margin: 18px 0 16px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.detail-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 56ch;
}

.detail-sub {
  margin: 36px 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

@media (max-width: 992px) {
  .showcase-tabs {
    margin-bottom: 32px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

}

@media (max-width: 480px) {
  .showcase-tab {
    padding: 10px 20px;
  }

  .project-detail {
    padding-top: 28px;
  }
}


/* =====================================================
   Tools strip (logo + name), right under the hero
   ===================================================== */
.tools-marquee {
  margin: 60px 0 8px;
}

.tools-set {
  gap: 14px;
  padding-right: 14px;
}

.tool-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding: 10px 18px 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.tool-item .tool-logo {
  height: 28px;
  width: auto;
  max-width: 76px;
  object-fit: contain;
  border-radius: 6px;
}

.tool-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

/* sections without a title: less empty space above the content */
#skills,
#projects,
#education,
#contact {
  padding-top: 16px;
  padding-bottom: 40px;
}

/* same 56px gap between every pair of sections */
#about {
  padding-bottom: 40px;
}

#contact {
  padding-top: 34px;
}

/* =====================================================
   Certificates: caption + hover
   ===================================================== */
.cert-card a {
  display: block;
}

.cert-card img {
  transition: transform 0.4s ease;
}

.cert-card:hover img {
  transform: scale(1.03);
}

.cert-card a {
  overflow: hidden;
}

.cert-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border-soft);
}

.cert-card figcaption strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.cert-card figcaption span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* =====================================================
   Project card images (real screenshots)
   ===================================================== */
.project-visual--shot img,
.project-visual--phone img {
  position: absolute;
  display: block;
}

.project-visual--shot img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* phone screenshots peek up from the bottom edge */
.project-visual--phone img {
  top: 16px;
  left: 50%;
  width: 176px;
  height: auto;
  transform: translateX(-50%);
}

/* =====================================================
   Gallery in the project detail view
   ===================================================== */
.detail-gallery {
  min-width: 0;
}

.gallery-main {
  appearance: none;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
}

.detail-gallery.is-portrait .gallery-main img {
  width: auto;
  height: clamp(280px, calc(100vh - 360px), 420px);
  padding: 14px 0;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumbs[hidden] {
  display: none;
}

.gallery-thumb {
  appearance: none;
  flex: 1 1 0;
  min-width: 64px;
  max-width: 120px;
  height: 64px;
  padding: 0;
  background: var(--bg-surface-subtle);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--accent-primary);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.detail-gallery.is-portrait .gallery-thumb img {
  object-fit: contain;
}

.gallery-main:focus-visible,
.gallery-thumb:focus-visible,
.lightbox button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* =====================================================
   Lightbox
   ===================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  background: rgba(10, 8, 12, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox button {
  appearance: none;
  position: absolute;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox.is-single .lightbox-nav {
  display: none;
}

@media (max-width: 992px) {
  .detail-gallery {
    order: -1;
  }

  .tools-marquee {
    margin-top: 56px;
  }
}

@media (max-width: 480px) {
  .gallery-thumb {
    min-width: 56px;
    height: 50px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* =====================================================
   Experience cards: open the photo view
   ===================================================== */
.exp-card .card-detail-btn {
  margin-top: 16px;
}

.detail-info .exp-period {
  margin: 4px 0 0;
}

/* =====================================================
   Experience cards: photo on top (replaces the icon)
   ===================================================== */
.exp-card[data-experience] {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.exp-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-surface-subtle);
}

/* every photo gets the same frame; tall ones (phone screenshots) show their top part */
.exp-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.exp-body {
  flex: 1;
  min-width: 0;
  padding: 16px 16px 20px;
}

.exp-card[data-experience] .exp-title,
.exp-card[data-experience] .exp-desc {
  overflow-wrap: anywhere;
}

.exp-card[data-experience] .exp-desc {
  font-size: 0.86rem;
}

@media (max-width: 992px) {
  .exp-photo {
    aspect-ratio: 16 / 9;
  }
}

/* Content creator photo: start the crop right above the username "aca",
   so the status bar is cut off and more of the profile shows below it */
.exp-card[data-experience="kreator"] .exp-photo img {
  object-position: center 16%;
}

@media (max-width: 992px) {
  .exp-card[data-experience="kreator"] .exp-photo img {
    object-position: center 14%;
  }
}

/* Social icons under the hero buttons */
.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .hero-social {
    justify-content: center;
  }
}

/* "Lihat Karya" + "Unduh CV" sit side by side */
.hero-actions .btn svg {
  flex: none;
}

/* English text is one line shorter than Indonesian: keep the hero row the same height,
   so the tools strip sits at the same distance from the photo in both languages */
@media (min-width: 993px) {
  .hero-grid {
    min-height: 390px;
  }
}
