/* ═══════════════════════════════════════════════
   nanDooEruu Portfolio v2 — Premium Redesign
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ────────────────────────────── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0a1428;
  --bg-surface: rgba(255,255,255,0.03);
  --bg-surface-hover: rgba(255,255,255,0.06);
  --border-subtle: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.1);
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --accent-purple: #6c63ff;
  --accent-cyan: #00d4ff;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, #122a4d 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 85% 100%, #0d2240 0%, transparent 60%),
    linear-gradient(160deg, #0a1428 0%, #0b1930 50%, #081020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text-primary);
  overflow: hidden;
}

/* ── Custom Scrollbar ────────────────────────── */

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

/* ── Animated Background Orbs ────────────────── */

.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -80px) scale(1.15); }
  66% { transform: translate(40px, -30px) scale(0.9); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.35; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.55; }
}

/* ── Background Image Layer ──────────────────── */

.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('5-BG.png') center/cover no-repeat;
  filter: blur(5px) brightness(0.85);
  transform: scale(1.05);
  pointer-events: none;
}

/* ── Cursor-Following Dot Glow ──────────────── */

.bg-dot-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 40%, transparent 70%);
  transform: translate(calc(var(--mx, -9999px) - 140px), calc(var(--my, -9999px) - 140px));
  pointer-events: none;
  z-index: 0;
  filter: blur(3px);
  transition: transform 0.12s ease-out;
}

/* ── Browser Window ──────────────────────────── */

.browser-window {
  width: 100%;
  max-width: 1280px;
  height: 88vh;
  min-height: 600px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 25px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ── Title Bar ───────────────────────────────── */

.title-bar {
  height: 48px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
  user-select: none;
}

.traffic-lights {
  display: flex;
  gap: 8px;
  margin-right: 16px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: filter 0.15s;
}

.traffic-light:hover {
  filter: brightness(1.3);
}

.tl-close    { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.4); }
.tl-minimize { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.4); }
.tl-maximize { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.4); }

/* ── Tab Bar ─────────────────────────────────── */

.tab-bar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 1;
  padding: 0 4px;
  height: 100%;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px 8px 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  max-width: 220px;
  position: relative;
  top: 8px;
  transition: background 0.2s, color 0.2s;
}

.tab.active {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.tab-favicon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  flex-shrink: 0;
}

.tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-close {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
  transition: background 0.15s, color 0.15s;
}

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

.new-tab-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 4px;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}

.new-tab-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

/* ── Tab Toast ───────────────────────────────── */

.tab-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: rgba(15,15,25,0.95);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  white-space: nowrap;
}

.tab-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Address Bar ─────────────────────────────── */

.address-bar-wrapper {
  height: 38px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  flex-shrink: 0;
}

.nav-arrows {
  display: flex;
  gap: 4px;
}

.nav-arrow {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-arrow:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

.address-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: border-color 0.2s, background 0.2s;
}

.address-input-wrapper:focus-within {
  border-color: var(--accent-purple);
  background: rgba(255,255,255,0.06);
}

.lock-icon {
  color: var(--accent-green);
  flex-shrink: 0;
}

.address-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.72rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  outline: none;
  text-align: center;
}

.address-icons {
  display: flex;
  gap: 6px;
}

.address-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.address-icon:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

.address-icon.liked {
  color: var(--accent-pink);
}

@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.address-icon.pop {
  animation: heartPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Browser Viewport ────────────────────────── */

.viewport-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.browser-viewport {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.browser-viewport.active {
  display: flex;
}

/* ── Sidebar ─────────────────────────────────── */

.sidebar {
  width: 280px;
  height: 100%;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  flex-shrink: 0;
  position: relative;
}

.profile-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.profile-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-purple),
    var(--accent-cyan),
    var(--accent-pink),
    var(--accent-purple)
  );
  animation: ringRotate 4s linear infinite;
}

.profile-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0c0c12;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.sidebar .name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.sidebar .role {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-purple);
  text-transform: uppercase;
  margin-bottom: 40px;
  text-align: center;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color var(--transition-smooth);
  position: relative;
  padding-bottom: 4px;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 1px;
  transition: width var(--transition-smooth);
}

.nav-list a:hover {
  color: var(--text-primary);
}

.nav-list a.active {
  color: var(--text-primary);
}

.nav-list a.active::after {
  width: 100%;
}

.sidebar-footer {
  position: absolute;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.copyright {
  position: absolute;
  bottom: 16px;
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 1px;
  opacity: 0.5;
}

/* ── Main Content ────────────────────────────── */

.main-content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.section {
  display: none;
  min-height: 100%;
  padding: 56px 52px;
  animation: sectionFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.section-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-purple);
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Home Section ────────────────────────────── */

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.greeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 24px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent-purple);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.greeting-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.home-text h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.rotating-text {
  display: inline-block;
  min-width: 4ch;
  white-space: nowrap;
}

.rotating-text.anim-out {
  animation: wordOut 0.45s ease forwards;
}

.rotating-text.anim-in {
  animation: wordIn 0.45s ease;
}

@keyframes wordOut {
  to {
    transform: translateY(30px);
    opacity: 0;
  }
}

@keyframes wordIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.home-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: 420px;
}

.home-quote {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 2px solid var(--accent-purple);
}

.home-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-purple), #8b5cf6);
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.45);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.home-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-medium);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(108, 99, 255, 0.15));
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image:hover {
  transform: scale(1.02) translateY(-4px);
}

.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

/* ── About Section ───────────────────────────── */

.about-content {
  max-width: 700px;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  margin-bottom: 28px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.about-content p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.skill-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,212,255,0.1));
  color: var(--accent-purple);
}

.skill-card span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ── Work Section ────────────────────────────── */

.work-content {
  max-width: 1000px;
}

.work-content h2 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.work-content p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.work-card {
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.55s ease;
}

.work-card > * {
  position: relative;
  z-index: 2;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.work-card:hover::before {
  transform: scale(1.12);
}

/* ── Card Arrow Indicator ──────────────────── */

.work-card::after {
  content: '\2192';
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  z-index: 3;
  opacity: 0;
  transform: translateY(12px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.work-card:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.work-card:hover .card-icon {
  transform: scale(1.15) rotate(-8deg);
  background: rgba(255,255,255,0.2);
}

.card-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.card-badge {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  margin-top: 8px;
}

/* Individual Card Themes */

.card-topologi {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #1a4a7a 100%);
  border-color: rgba(45,90,135,0.3);
}

.card-topologi::before {
  background:
    linear-gradient(180deg, transparent 25%, rgba(0,0,0,0.8) 100%),
    url('3-TopologiNdo.png') center top/cover no-repeat;
  filter: blur(3px);
  transform: scale(1.06);
  transform-origin: center top;
}

.card-topologi:hover {
  box-shadow: 0 24px 55px rgba(45,90,135,0.45);
  border-color: rgba(96,165,250,0.6);
}

.card-osint {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #a21caf 100%);
  border-color: rgba(168,85,247,0.3);
}

.card-osint::before {
  background:
    linear-gradient(180deg, transparent 25%, rgba(0,0,0,0.8) 100%),
    url('4-OsintThumb.png') center top/cover no-repeat;
  filter: blur(3px);
  transform: scale(1.06);
  transform-origin: center top;
}

.card-osint:hover {
  box-shadow: 0 24px 55px rgba(168,85,247,0.45);
  border-color: rgba(216,180,254,0.6);
}

.card-keamanan {
  background: linear-gradient(135deg, #3b5998 0%, #4f46e5 50%, #7c3aed 100%);
  border-color: rgba(124,58,237,0.3);
}

.card-keamanan:hover {
  box-shadow: 0 24px 55px rgba(124,58,237,0.45);
  border-color: rgba(167,139,250,0.6);
}

.card-asj {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  border-color: rgba(20,184,166,0.3);
}

.card-asj:hover {
  box-shadow: 0 24px 55px rgba(20,184,166,0.45);
  border-color: rgba(45,212,191,0.6);
}

.card-delta {
  background: var(--bg-surface);
  border: 1px dashed var(--border-medium);
  cursor: default;
}

.card-delta .card-icon {
  background: rgba(255,255,255,0.05);
}

.card-delta:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  border-color: var(--accent-purple);
}

.card-delta:hover::after {
  display: none;
}

.card-badge {
  transition: background 0.3s ease, transform 0.3s ease;
}

.work-card:hover .card-badge {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,99,255,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(108,99,255,0); }
}

.card-delta .card-badge {
  animation: badgePulse 2s ease-in-out infinite;
}

/* ── Contact Section ─────────────────────────── */

.contact-content {
  max-width: 560px;
}

.contact-content h2 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  margin-bottom: 36px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px 18px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  border-radius: var(--radius-md);
  transition: border-color 0.3s, background 0.3s;
}

.input-group textarea {
  height: 150px;
  resize: vertical;
}

.input-group label {
  position: absolute;
  left: 18px;
  top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.25s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--accent-purple);
  background: rgba(255,255,255,0.05);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 0.58rem;
  color: var(--accent-purple);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-purple), #8b5cf6);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.45);
}

.btn-submit svg {
  transition: transform 0.3s ease;
}

.btn-submit:hover svg {
  transform: translateX(4px) translateY(-4px);
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent-green);
  font-size: 0.82rem;
  line-height: 1.6;
}

.form-success.visible {
  display: flex;
  animation: sectionFadeIn 0.4s ease;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 900px) {
  body {
    padding: 0;
    align-items: stretch;
  }

  .browser-window {
    border-radius: 0;
    height: 100vh;
    min-height: 0;
    max-width: 100%;
  }

  .title-bar {
    height: 44px;
  }

  .tab {
    display: none;
  }

  .tab.active {
    display: flex;
    border-radius: 0;
  }

  .tab-bar {
    justify-content: center;
  }

  .browser-viewport.active {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    gap: 8px;
  }

  .profile-wrapper {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    margin-right: 12px;
  }

  .profile-ring {
    inset: -3px;
  }

  .profile-pic {
    width: 56px;
    height: 56px;
  }

  .sidebar .name {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .sidebar .role {
    font-size: 0.52rem;
    margin-bottom: 0;
    margin-left: 4px;
  }

  .nav-list {
    flex-direction: row;
    gap: 16px;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .sidebar-footer {
    display: none;
  }

  .copyright {
    display: none;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-text h1 {
    font-size: 2rem;
  }

  .hero-image {
    height: 220px;
  }

  .section {
    padding: 32px 20px;
  }

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

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

  .work-card {
    height: 200px;
  }

  .bg-orbs .orb {
    display: none;
  }
}
