/* ============================================================
   PORTFOLIO – ULTRA-MODERN HIGH-PERFORMANCE DESIGN SYSTEM
   Featuring Ambient Mesh Glow, Glassmorphism, Multi-Theme System & 60 FPS Micro-Interactions
   ============================================================ */

/* ======================== FONTS & IMPORTS ======================== */
@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&family=Dancing+Script:wght@600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ======================== CSS TOKENS / THEMES ======================== */
:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-signature: 'Dancing Script', cursive;

  --sidebar-width: 290px;
  --header-height: 64px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 0 35px rgba(var(--accent-rgb), 0.28);
}

/* ----- THEME 1: DARK (Default) – "Neon Violet" ----- */
[data-theme="dark"] {
  --bg-body: #090711;
  --bg-sidebar: rgba(15, 11, 26, 0.85);
  --bg-card: #130f24;
  --bg-card-rgb: 19, 15, 36;
  --bg-card-hover: #191430;
  --bg-input: #100d1e;
  --bg-glass: rgba(19, 15, 36, 0.65);
  --bg-badge: rgba(168, 85, 247, 0.12);

  --text-primary: #f5f3ff;
  --text-secondary: #aba5d4;
  --text-muted: #6e679b;

  --accent: #a855f7;
  --accent-light: #c084fc;
  --accent-rgb: 168, 85, 247;
  --accent-hover: #9333ea;
  --accent-soft: rgba(168, 85, 247, 0.15);

  --border-color: rgba(168, 85, 247, 0.14);
  --border-hover: rgba(168, 85, 247, 0.35);
  --border-light: rgba(255, 255, 255, 0.07);

  --nav-active-bg: rgba(168, 85, 247, 0.14);
  --nav-active-text: #c084fc;
  --scrollbar-thumb: #2f2756;
  --shadow-card: 0 10px 30px -10px rgba(168, 85, 247, 0.2);

  --orb-1: rgba(168, 85, 247, 0.18);
  --orb-2: rgba(99, 102, 241, 0.14);
  --orb-3: rgba(236, 72, 153, 0.12);
  --gradient-hero: radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
}

/* ----- THEME 2: LIGHT – "Rose Gold" ----- */
[data-theme="light"] {
  --bg-body: #faf5f5;
  --bg-sidebar: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  --bg-card-rgb: 255, 255, 255;
  --bg-card-hover: #fcf4f6;
  --bg-input: #f5ecef;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-badge: rgba(225, 29, 72, 0.08);

  --text-primary: #1e1117;
  --text-secondary: #634b55;
  --text-muted: #9c808c;

  --accent: #e11d48;
  --accent-light: #fb7185;
  --accent-rgb: 225, 29, 72;
  --accent-hover: #be123c;
  --accent-soft: rgba(225, 29, 72, 0.12);

  --border-color: rgba(225, 29, 72, 0.12);
  --border-hover: rgba(225, 29, 72, 0.3);
  --border-light: rgba(0, 0, 0, 0.06);

  --nav-active-bg: rgba(225, 29, 72, 0.09);
  --nav-active-text: #e11d48;
  --scrollbar-thumb: #e5cbd2;
  --shadow-card: 0 10px 30px -10px rgba(225, 29, 72, 0.12);

  --orb-1: rgba(225, 29, 72, 0.1);
  --orb-2: rgba(251, 113, 133, 0.08);
  --orb-3: rgba(244, 63, 94, 0.06);
  --gradient-hero: radial-gradient(circle at 10% 20%, rgba(225, 29, 72, 0.08) 0%, transparent 50%);
}

/* ----- THEME 3: OCEAN – "Aurora Borealis" ----- */
[data-theme="ocean"] {
  --bg-body: #050d18;
  --bg-sidebar: rgba(8, 19, 36, 0.85);
  --bg-card: #0c1c33;
  --bg-card-rgb: 12, 28, 51;
  --bg-card-hover: #112644;
  --bg-input: #08172c;
  --bg-glass: rgba(12, 28, 51, 0.65);
  --bg-badge: rgba(6, 182, 212, 0.12);

  --text-primary: #ecfeff;
  --text-secondary: #89c6d4;
  --text-muted: #507d8d;

  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-rgb: 6, 182, 212;
  --accent-hover: #0891b2;
  --accent-soft: rgba(6, 182, 212, 0.15);

  --border-color: rgba(6, 182, 212, 0.14);
  --border-hover: rgba(6, 182, 212, 0.35);
  --border-light: rgba(255, 255, 255, 0.07);

  --nav-active-bg: rgba(6, 182, 212, 0.14);
  --nav-active-text: #22d3ee;
  --scrollbar-thumb: #173852;
  --shadow-card: 0 10px 30px -10px rgba(6, 182, 212, 0.2);

  --orb-1: rgba(6, 182, 212, 0.18);
  --orb-2: rgba(59, 130, 246, 0.14);
  --orb-3: rgba(16, 185, 129, 0.12);
  --gradient-hero: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
}

/* ----- THEME 4: SUNSET – "Amber Blaze" ----- */
[data-theme="sunset"] {
  --bg-body: #100b05;
  --bg-sidebar: rgba(24, 17, 8, 0.85);
  --bg-card: #1f160a;
  --bg-card-rgb: 31, 22, 10;
  --bg-card-hover: #291e0d;
  --bg-input: #171007;
  --bg-glass: rgba(31, 22, 10, 0.65);
  --bg-badge: rgba(245, 158, 11, 0.12);

  --text-primary: #fffbeb;
  --text-secondary: #d6b883;
  --text-muted: #8d7347;

  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-rgb: 245, 158, 11;
  --accent-hover: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.15);

  --border-color: rgba(245, 158, 11, 0.14);
  --border-hover: rgba(245, 158, 11, 0.35);
  --border-light: rgba(255, 255, 255, 0.07);

  --nav-active-bg: rgba(245, 158, 11, 0.14);
  --nav-active-text: #fbbf24;
  --scrollbar-thumb: #453213;
  --shadow-card: 0 10px 30px -10px rgba(245, 158, 11, 0.2);

  --orb-1: rgba(245, 158, 11, 0.18);
  --orb-2: rgba(239, 68, 68, 0.14);
  --orb-3: rgba(217, 119, 6, 0.12);
  --gradient-hero: radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
}

/* ----- THEME 5: FOREST – "Emerald Dusk" ----- */
[data-theme="forest"] {
  --bg-body: #05100c;
  --bg-sidebar: rgba(8, 24, 18, 0.85);
  --bg-card: #0d271e;
  --bg-card-rgb: 13, 39, 30;
  --bg-card-hover: #123428;
  --bg-input: #081d16;
  --bg-glass: rgba(13, 39, 30, 0.65);
  --bg-badge: rgba(16, 185, 129, 0.12);

  --text-primary: #ecfdf5;
  --text-secondary: #8ed6ba;
  --text-muted: #518c76;

  --accent: #10b981;
  --accent-light: #34d399;
  --accent-rgb: 16, 185, 129;
  --accent-hover: #059669;
  --accent-soft: rgba(16, 185, 129, 0.15);

  --border-color: rgba(16, 185, 129, 0.14);
  --border-hover: rgba(16, 185, 129, 0.35);
  --border-light: rgba(255, 255, 255, 0.07);

  --nav-active-bg: rgba(16, 185, 129, 0.14);
  --nav-active-text: #34d399;
  --scrollbar-thumb: #174836;
  --shadow-card: 0 10px 30px -10px rgba(16, 185, 129, 0.2);

  --orb-1: rgba(16, 185, 129, 0.18);
  --orb-2: rgba(6, 182, 212, 0.14);
  --orb-3: rgba(5, 150, 105, 0.12);
  --gradient-hero: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 50%);
}

/* ======================== RESET & BASE ======================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-slow), color var(--transition);
}

/* ======================== AMBIENT BACKGROUND GLOW ======================== */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.75;
  will-change: transform;
  animation: floatOrb 22s infinite ease-in-out alternate;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--orb-1) 0%, transparent 70%);
  top: -10%;
  left: 20%;
  animation-duration: 24s;
}

.orb-2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, var(--orb-2) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
  animation-duration: 28s;
  animation-delay: -6s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--orb-3) 0%, transparent 70%);
  top: 50%;
  left: 45%;
  animation-duration: 32s;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, 40px) scale(1.15);
  }
  100% {
    transform: translate(-40px, 80px) scale(0.92);
  }
}

/* Subtle grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
}

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

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

ul {
  list-style: none;
}

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

::selection {
  background: var(--accent);
  color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Helper clamps */
.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ======================== MOBILE HEADER ======================== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  z-index: 998;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: background-color var(--transition), border-color var(--transition);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.mobile-logo img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(var(--accent-rgb), 0.3));
}

.mobile-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  transition: all var(--transition-bounce);
}

.mobile-menu-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.mobile-menu-btn:active {
  transform: scale(0.94);
}

/* ======================== SIDEBAR ======================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15);
}

.sidebar-inner {
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 24px;
}

/* Profile Section */
.sidebar-profile {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.profile-avatar {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.35);
  transition: transform var(--transition-bounce), box-shadow var(--transition);
}

.profile-avatar:hover img {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 45px rgba(var(--accent-rgb), 0.6);
}

/* Verified Badge */
.verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #000;
  font-weight: 800;
  border: 3px solid var(--bg-card);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-bounce);
}

.profile-avatar:hover .verified-badge {
  transform: scale(1.2);
}

.profile-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.profile-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Status Pill */
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-badge);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.1);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: radar-pulse 2s infinite cubic-bezier(0.2, 0, 0, 1);
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 6px 0;
  flex-wrap: wrap;
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.theme-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.25);
}

.theme-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.45);
  transform: translateY(-2px);
  font-weight: bold;
}

/* Sidebar Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  border: 1px solid transparent;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1.05rem;
  transition: transform var(--transition-bounce), color var(--transition);
}

.nav-item:hover {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  border-color: var(--border-color);
  transform: translateX(6px);
}

.nav-item:hover i {
  transform: scale(1.2);
  color: var(--accent);
}

.nav-item.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  font-weight: 700;
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.15);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px var(--accent);
}

.nav-item.active i {
  color: var(--accent);
}

/* Sidebar Social */
.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.sidebar-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: all var(--transition-bounce);
}

.sidebar-social a:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.35);
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ======================== MAIN CONTENT ======================== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  position: relative;
  z-index: 1;
  transition: margin-left var(--transition);
}

.section {
  padding: 80px 48px;
  max-width: 1080px;
  position: relative;
}

/* Section Header */
.section-header {
  margin-bottom: 44px;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.section-header h2 i {
  color: var(--accent);
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 10px rgba(var(--accent-rgb), 0.4));
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ======================== HERO SECTION ======================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 60px;
  background: var(--gradient-hero);
}

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

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.greeting-wave {
  font-size: 1.35rem;
  display: inline-block;
  animation: wave-hand 2.2s infinite ease-in-out;
  transform-origin: 75% 75%;
}

@keyframes wave-hand {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
}

.hero-name {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.hero-name-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  filter: drop-shadow(0 2px 20px rgba(var(--accent-rgb), 0.35));
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 22px;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.typed-cursor {
  animation: blink-cursor 0.75s infinite;
  color: var(--accent);
  font-weight: 300;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #000;
  font-weight: 800;
  font-size: 0.98rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.35);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all var(--transition-bounce);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.75s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 36px rgba(var(--accent-rgb), 0.5);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 32px;
  background: var(--bg-glass);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: all var(--transition-bounce);
}

.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.2);
}

.btn-outline:active {
  transform: translateY(-1px);
}

/* Tech Stack Container */
.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-stack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 520px;
}

.tech-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
}

.tech-explore-link {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.tech-explore-link:hover {
  opacity: 1;
  transform: translateX(4px);
}

.tech-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--text-secondary);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tech-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.2), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tech-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.28);
}

.tech-icon:hover::after {
  opacity: 1;
}

/* ======================== SKILLS SECTION ======================== */
.skills-integrated {
  margin-top: 10px;
}

.skill-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.skill-cat-pill {
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-bounce);
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(10px);
}

.skill-cat-pill .cat-count {
  font-size: 0.72rem;
  background: var(--bg-badge);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-weight: 800;
  color: var(--accent);
  transition: all var(--transition-fast);
}

.skill-cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.18);
}

.skill-cat-pill.active {
  border-color: var(--accent);
  color: #000;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
}

.skill-cat-pill.active .cat-count {
  background: rgba(0, 0, 0, 0.2);
  color: #000;
}

.skill-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-bounce);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: default;
}

.skill-chip i {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform var(--transition-bounce);
}

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

.skill-chip:hover {
  border-color: var(--accent);
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.22);
  background: var(--bg-card-hover);
}

.skill-chip:hover i {
  transform: scale(1.25) rotate(6deg);
}

/* ======================== SEARCH & FILTERS ======================== */
.filter-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.search-input {
  width: 100%;
  padding: 13px 20px 13px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
  background: var(--bg-card-hover);
}

.search-input:focus + .search-icon {
  color: var(--accent);
}

select.search-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
  padding-right: 42px;
}

/* ======================== PROJECTS / PORTFOLIO ======================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-bounce);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(var(--accent-rgb), 0.22);
}

.project-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-input);
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-img img {
  transform: scale(1.08);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay .btn-small {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #000;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast);
}

.project-card-overlay .btn-small:hover {
  transform: scale(1.06);
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tag {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--bg-badge);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.project-card-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.project-card:hover .project-card-body h3 {
  color: var(--accent);
}

.project-card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* ======================== CERTIFICATE SECTION ======================== */
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  overflow: hidden;
  transition: all var(--transition-bounce);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(var(--accent-rgb), 0.22);
}

.cert-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: all var(--transition);
}

[data-theme="dark"] .cert-card-img {
  background: rgba(255, 255, 255, 0.03);
}

.cert-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-xs);
}

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

.cert-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-weight: 700;
  gap: 8px;
  font-size: 0.92rem;
}

.cert-card-img:hover .cert-img-overlay {
  opacity: 1;
}

.cert-card-body {
  padding: 18px 10px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cert-card-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.cert-card-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.cert-card:hover .cert-card-body h3 {
  color: var(--accent);
}

.cert-card-issuer {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-card-issuer i {
  color: var(--accent);
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cert-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  background: var(--bg-badge);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  letter-spacing: 0.5px;
}

.cert-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-actions {
  display: flex;
  gap: 10px;
}

.cert-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-bounce);
}

.cert-action-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
}

/* ======================== TENTANG / ABOUT ======================== */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
}

.about-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.about-card-header i {
  color: var(--accent);
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--bg-badge);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.about-bio p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.02rem;
}

.signature-container {
  margin-top: 28px;
  text-align: right;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.signature-text {
  font-family: var(--font-signature);
  font-size: 2.2rem;
  color: var(--accent);
  display: block;
  margin-bottom: -6px;
  filter: drop-shadow(0 2px 8px rgba(var(--accent-rgb), 0.3));
}

.signature-name {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

.section-divider {
  height: 1px;
  width: 100%;
  border-top: 1px dashed var(--border-color);
  margin: 48px 0;
  opacity: 0.7;
}

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

/* Experience & Career List */
.edu-list,
.karier-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.karier-item-wrapper {
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  overflow: hidden;
}

.karier-item-wrapper:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.karier-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.karier-logo,
.edu-logo {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.karier-logo img,
.edu-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.karier-info,
.edu-info {
  flex: 1;
}

.karier-info h4,
.edu-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.karier-info h4 a:hover,
.edu-info h4 a:hover {
  color: var(--accent);
}

.karier-info p,
.edu-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.karier-meta,
.edu-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

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

.meta-item:not(:last-child)::after {
  content: "•";
  color: var(--accent);
  opacity: 0.6;
}

.karier-toggle {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.karier-toggle:hover {
  color: var(--accent-light);
  transform: translateX(3px);
}

.karier-toggle i {
  transition: transform 0.3s ease;
}

.karier-toggle.active i {
  transform: rotate(180deg);
}

.karier-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 20px;
  border-top: 1px solid transparent;
}

.karier-detail.show {
  max-height: 400px;
  padding: 16px 20px 22px 86px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-badge);
}

.karier-detail ul {
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

.karier-detail li {
  margin-bottom: 6px;
}

/* Education Items */
.edu-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.edu-item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ======================== KONTAK / CONTACT ======================== */
.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-info-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: all var(--transition-bounce);
  overflow: hidden;
  border: 1px solid transparent;
  min-height: 190px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-info-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

/* Custom Gradients for Contact Cards */
.contact-info-card.card-whatsapp {
  background: linear-gradient(135deg, rgba(18, 48, 30, 0.9) 0%, rgba(10, 30, 18, 0.95) 100%);
  border-color: rgba(37, 211, 102, 0.25);
}
.contact-info-card.card-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.55);
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.2);
}

.contact-info-card.card-email {
  background: linear-gradient(135deg, rgba(54, 25, 20, 0.9) 0%, rgba(32, 14, 12, 0.95) 100%);
  border-color: rgba(234, 67, 53, 0.25);
}
.contact-info-card.card-email:hover {
  border-color: rgba(234, 67, 53, 0.55);
  box-shadow: 0 20px 45px rgba(234, 67, 53, 0.2);
}

.contact-info-card.card-github {
  background: linear-gradient(135deg, rgba(32, 32, 48, 0.9) 0%, rgba(18, 18, 30, 0.95) 100%);
  border-color: rgba(168, 85, 247, 0.25);
}
.contact-info-card.card-github:hover {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 20px 45px rgba(168, 85, 247, 0.2);
}

.contact-info-card.card-linkedin {
  background: linear-gradient(135deg, rgba(14, 38, 68, 0.9) 0%, rgba(8, 22, 42, 0.95) 100%);
  border-color: rgba(0, 119, 181, 0.25);
}
.contact-info-card.card-linkedin:hover {
  border-color: rgba(0, 119, 181, 0.55);
  box-shadow: 0 20px 45px rgba(0, 119, 181, 0.2);
}

/* Light theme card adaptation */
[data-theme="light"] .contact-info-card.card-whatsapp {
  background: linear-gradient(135deg, #e8f9ee 0%, #d5f4df 100%);
}
[data-theme="light"] .contact-info-card.card-email {
  background: linear-gradient(135deg, #feecee 0%, #fcd9dc 100%);
}
[data-theme="light"] .contact-info-card.card-github {
  background: linear-gradient(135deg, #f2eff8 0%, #e5ddf3 100%);
}
[data-theme="light"] .contact-info-card.card-linkedin {
  background: linear-gradient(135deg, #e6f4fb 0%, #d0eaf8 100%);
}

[data-theme="light"] .contact-info-card h4 {
  color: #1e1117;
}

[data-theme="light"] .contact-card-desc {
  color: #55444b;
}

.contact-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.card-whatsapp .contact-info-icon { background: rgba(37, 211, 102, 0.2); color: #25d366; }
.card-email .contact-info-icon { background: rgba(234, 67, 53, 0.2); color: #ea4335; }
.card-github .contact-info-icon { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.card-linkedin .contact-info-icon { background: rgba(0, 119, 181, 0.2); color: #0077b5; }

.contact-info-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.contact-card-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.contact-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  margin-top: auto;
  transition: all var(--transition-bounce);
  backdrop-filter: blur(8px);
}

.contact-card-btn i {
  transition: transform var(--transition-fast);
}

.contact-card-btn:hover i {
  transform: translateX(4px);
}

.card-whatsapp .contact-card-btn {
  background: rgba(37, 211, 102, 0.18);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
}
.card-whatsapp .contact-card-btn:hover {
  background: #25d366;
  color: #000;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.card-email .contact-card-btn {
  background: rgba(234, 67, 53, 0.18);
  color: #ea4335;
  border: 1px solid rgba(234, 67, 53, 0.35);
}
.card-email .contact-card-btn:hover {
  background: #ea4335;
  color: #fff;
  box-shadow: 0 6px 18px rgba(234, 67, 53, 0.4);
}

.card-github .contact-card-btn {
  background: rgba(168, 85, 247, 0.18);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.card-github .contact-card-btn:hover {
  background: #a855f7;
  color: #000;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
}

.card-linkedin .contact-card-btn {
  background: rgba(0, 119, 181, 0.18);
  color: #0077b5;
  border: 1px solid rgba(0, 119, 181, 0.35);
}
.card-linkedin .contact-card-btn:hover {
  background: #0077b5;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 119, 181, 0.4);
}

.contact-card-bg-icon {
  position: absolute;
  right: -15px;
  bottom: -15px;
  font-size: 7.5rem;
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-info-card:hover .contact-card-bg-icon {
  opacity: 0.14;
  transform: scale(1.15) rotate(-6deg);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.contact-form h3 i {
  color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
  background: var(--bg-card-hover);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

/* ======================== FOOTER ======================== */
.main-footer {
  padding: 60px 48px 36px;
  background: var(--bg-body);
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 10px rgba(var(--accent-rgb), 0.4));
}

.footer-logo span {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

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

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-bounce);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: #000;
  background: var(--accent);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ======================== IMAGE MODAL ======================== */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.image-modal.show {
  display: flex;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: all var(--transition-bounce);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
}

.modal-image {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: zoomModal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomModal {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ======================== SCROLL TO TOP ======================== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #000;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-bounce);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.6);
}

/* ======================== LOADING & EMPTY STATES ======================== */
.loading-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  grid-column: 1 / -1;
  background: var(--bg-glass);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.loading-state i,
.empty-state i {
  color: var(--accent);
  font-size: 2.2rem;
  opacity: 0.8;
}

/* ======================== SCROLL-TRIGGERED ANIMATIONS ======================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================== RESPONSIVE RULES ======================== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    width: 290px;
  }

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

  .main-content {
    margin-left: 0;
    padding-top: var(--header-height);
  }

  .mobile-header {
    display: flex;
  }

  .section {
    padding: 60px 32px;
  }

  .hero-section {
    padding-top: 50px;
  }

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

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

@media (max-width: 768px) {
  .section {
    padding: 50px 20px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .hero-name {
    font-size: 2.3rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    max-width: 100%;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  .karier-detail.show {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 16px;
  }

  .hero-name {
    font-size: 1.95rem;
  }

  .hero-greeting {
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .tech-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .about-card,
  .contact-form {
    padding: 22px 18px;
  }

  .skill-chip {
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .project-card-body,
  .cert-card-body {
    padding: 16px 12px;
  }
}