/* ============================================================
   EDWIN NURWANSYAH — PERSONAL PORTFOLIO
   Design System + Layout + Components
   Inspired by Arshia Plus Dark Template
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* Colors — Golden Dark */
  --bg-body: #111111;
  --bg-primary: #1A1A1A;
  --bg-sidebar: #1A1A1A;
  --bg-card: #222222;
  --bg-card-hover: #2A2A2A;
  --bg-input: #1E1E1E;
  --accent: #DBA423;
  --accent-light: #F0C75E;
  --accent-dark: #B8891D;
  --accent-glow: rgba(219, 164, 35, 0.2);
  --accent-glow-strong: rgba(219, 164, 35, 0.35);
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #666666;
  --divider: #2A2A2A;
  --border: #333333;
  --overlay: rgba(0, 0, 0, 0.6);
  --success: #4CAF50;
  --error: #f44336;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Font Sizes */
  --fs-hero: 3rem;
  --fs-h1: 2.75rem;
  --fs-h2: 2rem;
  --fs-h3: 1.35rem;
  --fs-h4: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;

  /* Layout */
  --sidebar-width: 300px;
  --mini-sidebar-width: 60px;
  --content-max-width: 900px;
  --section-padding: 4rem 3rem;

  /* Shapes */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-sidebar: 4px 0 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 700;
}

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

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

input, textarea {
  font-family: var(--font-body);
  outline: none;
  border: none;
}

::selection {
  background: var(--accent);
  color: var(--bg-body);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* ============================================================
   3. LAYOUT — Fixed Sidebars + Scrollable Center
   ============================================================ */
.app-layout {
  min-height: 100vh;
}

.main-content {
  margin-left: var(--sidebar-width);
  margin-right: var(--mini-sidebar-width);
  overflow-y: auto;
  height: 100vh;
  scroll-behavior: smooth;
  padding: var(--space-xl);
}

/* ============================================================
   4. SIDEBAR (Left)
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2xl) var(--space-lg);
  z-index: 100;
  overflow-y: auto;
}

/* Profile Section */
.sidebar__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.sidebar__avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  margin-bottom: var(--space-lg);
}

.sidebar__avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--bg-sidebar);
}

.sidebar__name {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-xs);
}

.sidebar__title {
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Download CV Button */
.sidebar__cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  max-width: 200px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg-body);
  font-weight: 600;
  font-size: var(--fs-small);
  border-radius: 25px;
  transition: var(--transition);
  margin-bottom: var(--space-2xl);
}

.sidebar__cv-btn:hover {
  background: var(--accent-light);
  color: var(--bg-body);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.sidebar__cv-btn i {
  font-size: 0.9rem;
}

/* Navigation Grid */
.sidebar__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  width: 100%;
  max-width: 240px;
}

.sidebar__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-sm) var(--space-xs);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.sidebar__nav-item:hover {
  color: var(--accent);
  background: rgba(219, 164, 35, 0.08);
}

.sidebar__nav-item.active {
  color: var(--accent);
  background: rgba(219, 164, 35, 0.12);
}

.sidebar__nav-item i {
  font-size: 1.25rem;
}

.sidebar__nav-item span {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: lowercase;
}

/* ============================================================
   5. MINI SIDEBAR (Right)
   ============================================================ */
.mini-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--mini-sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-xs);
  z-index: 100;
}

.mini-sidebar__date {
  text-align: center;
}

.mini-sidebar__date-day {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.mini-sidebar__date-month {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mini-sidebar__date-year {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.mini-sidebar__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.mini-sidebar__social-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.mini-sidebar__social-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

#social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.mini-sidebar__social-link {
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.mini-sidebar__social-link:hover {
  color: var(--accent);
  transform: scale(1.2);
}

.mini-sidebar__nav-arrows {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mini-sidebar__arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}

.mini-sidebar__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   6. SECTION COMMON STYLES
   ============================================================ */
.section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border);
}

.section:last-child {
  margin-bottom: 0;
}

.section__header {
  margin-bottom: var(--space-2xl);
}

.section__subtitle {
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-xs);
}

.section__title {
  font-size: var(--fs-h2);
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section__description {
  margin-top: var(--space-lg);
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(100vh - var(--space-xl) * 2);
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero__content {
  max-width: 550px;
  z-index: 2;
}

.hero__label {
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-md);
}

.hero__greeting {
  font-size: var(--fs-hero);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.hero__name {
  color: var(--accent);
  font-weight: 700;
}

.hero__tagline {
  font-size: var(--fs-h2);
  color: var(--text-primary);
  font-weight: 300;
  margin-bottom: var(--space-lg);
}

.hero__typed-wrapper {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  min-height: 28px;
}

.hero__typed-text {
  color: var(--accent-light);
  font-weight: 500;
}

.hero__cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.hero__cta-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__illustration {
  position: relative;
  width: 350px;
  height: 350px;
  flex-shrink: 0;
  z-index: 1;
}

.hero__illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.15;
}

/* Decorative circles behind illustration */
.hero__illustration::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero__illustration::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(51, 51, 51, 0.5);
  border-radius: var(--radius-full);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================================
   8. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: 25px;
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-body);
}

.btn--primary:hover {
  background: var(--accent-light);
  color: var(--bg-body);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ============================================================
   9. ABOUT SECTION
   ============================================================ */
/* Fast Facts Grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.fact-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.fact-card__icon {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.fact-card__number {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.fact-card__label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.service-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}

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

.service-card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.service-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.service-card__desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Skills — Tag Chips */
.skills-wrapper {
  margin: var(--space-2xl) 0;
}

.skills-wrapper h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-lg);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.skill-chip {
  display: inline-block;
  padding: 6px 16px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: var(--transition);
  cursor: default;
}

.skill-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(219, 164, 35, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(219, 164, 35, 0.1);
}

/* Small Button Variant */
.btn--sm {
  padding: 8px 20px;
  font-size: var(--fs-xs);
}

/* Skills Modal */
.skills-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.skills-modal.active {
  opacity: 1;
  visibility: visible;
}

.skills-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.skills-modal__content {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.skills-modal.active .skills-modal__content {
  transform: translateY(0);
}

.skills-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.skills-modal__header h3 {
  font-size: var(--fs-h3);
  color: var(--text-primary);
}

.skills-modal__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.skills-modal__close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.skills-modal__search {
  position: relative;
  margin-bottom: var(--space-lg);
}

.skills-modal__search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.skills-modal__search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-small);
  transition: var(--transition);
}

.skills-modal__search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.skills-modal__search input::placeholder {
  color: var(--text-muted);
}

.skill-chips--modal {
  max-height: 45vh;
  overflow-y: auto;
}

.skills-modal__count {
  margin-top: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: right;
}

.skill-chip.hidden-chip {
  display: none;
}

/* Languages */
.languages {
  margin: var(--space-2xl) 0;
}

.languages h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-lg);
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--divider);
}

.language-item__name {
  font-size: var(--fs-body);
  color: var(--text-primary);
  font-weight: 500;
}

.language-item__level {
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   9b. WHY HIRE ME SECTION
   ============================================================ */
.whm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.whm-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.whm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

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

.whm-card:hover::before {
  opacity: 1;
}

.whm-card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
  transition: var(--transition);
}

.whm-card:hover .whm-card__icon {
  background: var(--accent-glow-strong);
  box-shadow: 0 0 16px var(--accent-glow);
}

.whm-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.whm-card__desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

.whm-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ============================================================
   10. RESUME SECTION — Tabbed Card Layout
   ============================================================ */

/* Tab Bar */
.resume-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  width: fit-content;
  margin: 0 auto var(--space-2xl);
}

.resume-tab {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.resume-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.resume-tab.active {
  background: var(--accent);
  color: var(--bg-body);
  box-shadow: 0 2px 12px rgba(219, 164, 35, 0.3);
}

.resume-tab.active:hover {
  background: var(--accent);
  color: var(--bg-body);
}

.resume-tab i {
  font-size: 0.85rem;
}

.resume-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.resume-tab:not(.active) .resume-tab__badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.resume-tab.active .resume-tab__badge {
  background: rgba(0, 0, 0, 0.2);
  color: var(--bg-body);
}

/* Tab Panels */
.resume-panel {
  display: none;
  animation: resumeFadeIn 0.35s ease;
}

.resume-panel.active {
  display: block;
}

@keyframes resumeFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Timeline Container */
.resume-timeline {
  position: relative;
  padding-left: 28px;
}

.resume-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
  border-radius: 2px;
}

/* Resume Card — Experience & Education */
.resume-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
  transition: all 0.3s ease;
}

.resume-card::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(219, 164, 35, 0.15);
}

.resume-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(219, 164, 35, 0.08);
  transform: translateY(-2px);
}

.resume-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.resume-card__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--accent);
  overflow: hidden;
}

.resume-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.resume-card__info {
  flex: 1;
  min-width: 0;
}

.resume-card__date {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: var(--space-xs);
  font-family: var(--font-mono);
}

.resume-card__title {
  font-size: var(--fs-h4);
  color: var(--text-primary);
  margin-bottom: 2px;
  font-weight: 600;
  line-height: 1.3;
}

.resume-card__subtitle {
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 500;
  opacity: 0.85;
}

/* Toggle Button */
.resume-card__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.resume-card__toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(219, 164, 35, 0.05);
}

.resume-card__toggle i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.resume-card__toggle.expanded i {
  transform: rotate(180deg);
}

/* Collapsible Details */
.resume-card__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              margin-top 0.3s ease,
              opacity 0.3s ease;
  opacity: 0;
}

.resume-card__details.expanded {
  max-height: 600px;
  margin-top: var(--space-md);
  opacity: 1;
}

.resume-card__details-inner {
  padding-top: var(--space-md);
  border-top: 1px solid var(--divider);
}

.resume-card__details-inner ul {
  margin: 0;
  padding-left: var(--space-md);
}

.resume-card__details-inner ul li {
  list-style: none;
  position: relative;
  padding-left: 1rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.resume-card__details-inner ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.resume-card__details-inner .resume-card__desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Certification Cards */
.resume-cert-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.resume-cert-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.resume-cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(219, 164, 35, 0.08);
  transform: translateY(-2px);
}

.resume-cert-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.resume-cert-card__info {
  flex: 1;
  min-width: 0;
}

.resume-cert-card__title {
  font-size: var(--fs-body);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.resume-cert-card__issuer {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Resume CTA */
.resume-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ============================================================
   11. PORTFOLIO SECTION
   ============================================================ */
.portfolio-filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.portfolio-filter-btn {
  padding: 8px 20px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.portfolio-filter-btn.active {
  background: var(--accent);
  color: var(--bg-body);
  border-color: var(--accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
  aspect-ratio: 4/3;
}

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

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

.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.05);
  opacity: 0.4;
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__category {
  font-size: var(--fs-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.portfolio-card__title {
  font-size: var(--fs-h4);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.portfolio-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* Portfolio Detail Modal */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portfolio-modal.active {
  opacity: 1;
  visibility: visible;
}

.portfolio-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.portfolio-modal__content {
  position: relative;
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.portfolio-modal.active .portfolio-modal__content {
  transform: translateY(0) scale(1);
}

.portfolio-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.portfolio-modal__close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.portfolio-modal__category {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-sm);
}

.portfolio-modal__title {
  font-size: var(--fs-h2);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.portfolio-modal__desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.portfolio-modal__section {
  margin-bottom: var(--space-xl);
}

.portfolio-modal__section:last-child {
  margin-bottom: 0;
}

.portfolio-modal__section h4 {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.portfolio-modal__section h4 i {
  font-size: 0.85rem;
  opacity: 0.8;
}

.portfolio-modal__section ul {
  list-style: none;
  padding: 0;
}

.portfolio-modal__section ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.6;
}

.portfolio-modal__section ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ============================================================
   12. BLOG SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

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

.blog-card__image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-card__image {
  transform: scale(1.05);
}

.blog-card__date {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--accent);
  color: var(--bg-body);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.blog-card__content {
  padding: var(--space-lg);
}

.blog-card__title {
  font-size: var(--fs-h4);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.blog-card__read-more {
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card__read-more:hover {
  gap: 8px;
}

/* ============================================================
   13. CONTACT SECTION
   ============================================================ */
/* Contact Compact Layout */
.contact-compact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Contact Strip — Horizontal icons */
.contact-strip {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
}

.contact-strip__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.contact-strip__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
}

.contact-strip__item:hover .contact-strip__icon {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(219, 164, 35, 0.08);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(219, 164, 35, 0.15);
}

.contact-strip__tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  white-space: nowrap;
  padding: 6px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.25s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.contact-strip__item:hover .contact-strip__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Portfolio Modal Image */
.portfolio-modal__image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-modal__image i {
  font-size: 3.5rem;
  opacity: 0.5;
}
/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-body);
  transition: var(--transition);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--text-muted);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form__textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form__submit {
  align-self: flex-start;
}

.contact-form__status {
  font-size: var(--fs-small);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  display: none;
}

.contact-form__status--success {
  display: block;
  background: rgba(76, 175, 80, 0.15);
  color: var(--success);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.contact-form__status--error {
  display: block;
  background: rgba(244, 67, 54, 0.15);
  color: var(--error);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.footer__text {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.footer__text span {
  color: var(--accent);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: calc(var(--mini-sidebar-width) + var(--space-md));
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--bg-body);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   15. MOBILE HAMBURGER
   ============================================================ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  padding: 0 var(--space-lg);
  align-items: center;
  justify-content: space-between;
}

.mobile-header__name {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--text-primary);
  font-weight: 700;
}

.hamburger {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger__line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

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

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

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

/* Mobile Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
}

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

/* ============================================================
   16. RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1199px) {
  :root {
    --sidebar-width: 280px;
    --section-padding: 3rem 2rem;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 300;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mini-sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    margin-right: 0;
    padding: var(--space-lg);
    padding-top: calc(60px + var(--space-lg));
  }

  .hero {
    min-height: calc(100vh - 80px);
    padding: var(--space-2xl);
	}

  .hero__illustration {
    width: 250px;
    height: 250px;
  }

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

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

  .resume-tabs {
    gap: 2px;
    padding: 4px;
  }

  .resume-tab {
    padding: 8px 16px;
    font-size: var(--fs-xs);
  }

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

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

  .back-to-top {
    right: var(--space-lg);
  }
}

/* ============================================================
   17. RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --fs-hero: 2.25rem;
    --fs-h1: 2rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.2rem;
    --section-padding: 2rem 1.25rem;
  }

  .main-content {
    margin-left: 0;
    margin-right: 0;
    padding: var(--space-md);
    padding-top: calc(60px + var(--space-md));
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    min-height: auto;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .hero__illustration {
    width: 200px;
    height: 200px;
    margin-top: var(--space-xl);
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .whm-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .portfolio-filters {
    justify-content: center;
  }

  .resume-tabs {
    width: auto;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .resume-tabs::-webkit-scrollbar {
    display: none;
  }

  .resume-tab {
    padding: 8px 14px;
    gap: 6px;
  }

  .resume-tab__label {
    font-size: var(--fs-xs);
  }

  .resume-card {
    padding: var(--space-md);
  }

  .resume-card__header {
    gap: var(--space-sm);
  }

  .resume-card__logo {
    width: 36px;
    height: 36px;
  }

  .resume-cert-card {
    padding: var(--space-md);
  }

  .resume-cert-card__icon {
    width: 36px;
    height: 36px;
  }
}

/* ============================================================
   18. PRINT STYLES
   ============================================================ */
@media print {
  .sidebar,
  .mini-sidebar,
  .mobile-header,
  .back-to-top,
  .sidebar-overlay {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
    margin-right: 0;
  }

  .section {
    break-inside: avoid;
    border: none;
    box-shadow: none;
  }

  body {
    background: white;
    color: black;
  }
}
