/* =========================================================
   AVIK BHATTACHARJEE — PORTFOLIO
   Boxy, brutalist-inspired design with soft accents
   ========================================================= */

:root {
  --bg: #f4f1ea;
  --bg-dark: #0e0e10;
  --ink: #111111;
  --ink-soft: #2a2a2e;
  --muted: #6b6b72;
  --card: #ffffff;
  --card-dark: #16161a;
  --line: #111111;
  --accent: #ff5b1f;
  --accent-2: #ffd23f;
  --accent-3: #1f6feb;
  --accent-4: #14b88a;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Background grid */
.bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(17,17,17,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============== NAVBAR =============== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(8px);
}


.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-tag {
  background: var(--ink);
  color: var(--accent-2);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a:not(.btn-contact)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:not(.btn-contact):hover::after { width: 100%; }

.btn-contact {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-contact:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}

.hamburger {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  width: 42px; height: 42px;
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  width: 20px; height: 2px;
  background: var(--ink);
}

/* =============== HERO =============== */
.hero {
  padding: 70px 24px 80px;
  position: relative;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-photo-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-photo-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.bridge-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 4px 4px 0 var(--ink);
  width: fit-content;
}

.bridge-flag {
  width: 32px; height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
}

.bridge-flag svg { width: 100%; height: 100%; display: block; }

.bridge-x {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--saffron);
}

.bridge-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--ink);
  text-transform: uppercase;
  margin-left: 4px;
}

.hero-photo {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.hero-photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px dashed var(--ink);
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
  background: var(--accent-2);
  display: block;
  position: relative;
  z-index: 2;
}

.hero-photo-fallback {
  display: none;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent-2);
  position: relative;
  z-index: 2;
}

.hero-photo-flag {
  position: absolute;
  bottom: -6px;
  right: -10px;
  width: 42px;
  height: 28px;
  border: 3px solid var(--bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--ink);
  z-index: 3;
  background: #fff;
}

.hero-photo-flag svg { width: 100%; height: 100%; display: block; }

.status-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-flag {
  display: inline-block;
  width: 22px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  border: 1.5px solid #ffffff;
  margin-left: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

.status-flag svg { width: 100%; height: 100%; display: block; }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(74,222,128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128, 0); }
}

.hero-name {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-name .line { display: block; }
.hero-name .accent {
  color: var(--accent);
}

.role-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.role-pill {
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-tag {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 32px;
}

.location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
  max-width: 580px;
}

.loc-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.loc-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}

.loc-flag {
  width: 48px; height: 32px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.loc-flag svg { display: block; width: 100%; height: 100%; }

.loc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.loc-place {
  font-size: 0.95rem;
  font-weight: 600;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--accent);
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #0a66c2;
  color: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-linkedin:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--accent);
  background: #084d92;
}

.btn-linkedin i { font-size: 1.15rem; }

/* Live experience ticker */
.live-ticker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--accent);
  margin-bottom: 32px;
  font-family: 'JetBrains Mono', monospace;
}

.live-pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff3838;
  box-shadow: 0 0 0 0 rgba(255, 56, 56, 0.7);
  animation: pulse-red 1.4s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 56, 56, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 56, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 56, 56, 0); }
}

.live-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaa;
}

.live-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.04em;
}

/* Profile card */
.profile-card {
  background: var(--ink);
  color: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 12px 12px 0 var(--accent);
  position: relative;
  transform: rotate(-1.5deg);
  transition: transform 0.3s;
}

.profile-card:hover {
  transform: rotate(0deg);
}

.profile-top {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
}

.profile-circle {
  width: 80px; height: 80px;
  background: var(--accent-2);
  color: var(--ink);
  border-radius: 50%;
  border: 3px solid var(--bg);
  font-weight: 800;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 3px var(--accent);
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-initials {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
}

.profile-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.meta-row { display: flex; gap: 8px; }
.meta-k { color: #8b8b94; }
.meta-v { color: var(--accent-2); }
.meta-v.ok { color: #4ade80; }

.profile-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 2px dashed #444;
  padding-top: 18px;
}

.stat-box {
  text-align: center;
  background: #1f1f24;
  border-radius: 10px;
  padding: 12px 4px;
}

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #aaa;
  text-transform: uppercase;
}

/* =============== SECTIONS =============== */
.section {
  padding: 90px 24px;
}

.section.dark {
  background: var(--ink);
  color: var(--bg);
}

.section.dark .section-num,
.section.dark .section-title { color: var(--bg); }

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 50px;
}

.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-line {
  flex: 1;
  height: 3px;
  background: currentColor;
  opacity: 0.2;
}

/* =============== ABOUT =============== */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
}

.primary-box {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 8px 8px 0 var(--ink);
}

.primary-box h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--accent-2);
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.primary-box p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-size: 1rem;
}

.about-side {
  display: grid;
  gap: 14px;
}

.info-box {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-box:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}

.info-icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.info-box:nth-child(2) .info-icon { background: var(--accent-3); }
.info-box:nth-child(3) .info-icon { background: var(--accent-4); }
.info-box:nth-child(4) .info-icon { background: #c026d3; }

.info-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.info-val {
  font-size: 1rem;
  font-weight: 600;
}

/* =============== EXPERIENCE / TIMELINE =============== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.job-card {
  background: var(--card-dark);
  border: 3px solid var(--bg);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  box-shadow: 8px 8px 0 var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.job-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--accent);
}

.job-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.job-flag {
  width: 80px; height: 54px;
  border: 3px solid var(--bg);
  border-radius: 6px;
  overflow: hidden;
}

.job-flag svg { display: block; width: 100%; height: 100%; }

.job-country {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: flex-start;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.job-company {
  color: #c8c8d0;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.dim { color: #555; padding: 0 4px; }

.job-place {
  color: #888;
  font-size: 0.85rem;
}

.job-date {
  background: var(--accent);
  color: var(--bg);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
}

.job-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-bullets li {
  padding-left: 24px;
  position: relative;
  color: #d4d4dc;
  font-size: 0.95rem;
}

.job-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.job-bullets strong {
  color: var(--accent-2);
  font-weight: 600;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--bg);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

.tag.big {
  padding: 8px 16px;
  font-size: 0.9rem;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

/* =============== SKILLS =============== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.skill-box {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.skill-box.wide { grid-column: span 2; }

.skill-box:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--accent);
}

.skill-box-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--ink);
}

.skill-box-head > i {
  width: 38px; height: 38px;
  background: var(--ink);
  color: var(--accent-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.skill-box-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.15s, background 0.15s;
}

.chip:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
}

.chip i {
  font-size: 1.05rem;
}

/* =============== PROJECT =============== */
.project-card {
  background: var(--card-dark);
  border: 3px solid var(--accent);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 10px 10px 0 var(--accent-2);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 2px dashed rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

.project-left {
  display: flex;
  gap: 18px;
  align-items: center;
}

.project-icon {
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--ink);
  flex-shrink: 0;
}

.project-left h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--bg);
}

.project-sub {
  color: #aaa;
  font-size: 0.9rem;
}

.project-flag-big {
  width: 110px; height: 70px;
  border: 3px solid var(--bg);
  border-radius: 8px;
  overflow: hidden;
}

.project-flag-big svg { display: block; width: 100%; height: 100%; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}

.proj-block {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
}

.proj-block h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.proj-block p {
  color: #d4d4dc;
  font-size: 0.92rem;
}

.project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =============== THREE-COL =============== */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.col-box {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 6px 6px 0 var(--ink);
}

.col-title {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.col-title i {
  color: var(--accent);
}

.edu-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #ccc;
}

.edu-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.edu-year {
  background: var(--ink);
  color: var(--accent-2);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  height: fit-content;
}

.edu-degree {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.edu-uni {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.edu-loc {
  font-size: 0.82rem;
  color: var(--muted);
}

.cert-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 10px;
}

.cert-badge {
  width: 50px; height: 50px;
  background: var(--accent-2);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--ink);
  flex-shrink: 0;
}

.cert-name {
  font-weight: 700;
  font-size: 1rem;
}

.cert-org {
  font-size: 0.85rem;
  color: var(--muted);
}

.lang-item {
  margin-bottom: 18px;
}

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

.lang-name {
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.lang-bar {
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.lang-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 1s ease-out;
}

.lang-level {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* =============== CONTACT =============== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.contact-card {
  background: var(--card-dark);
  border: 3px solid var(--bg);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--accent-2);
}

.linkedin-card { box-shadow: 6px 6px 0 #0a66c2; }
.linkedin-card:hover { box-shadow: 9px 9px 0 #0a66c2; }
.linkedin-icon { background: #0a66c2 !important; color: #ffffff; }

.contact-icon {
  width: 60px; height: 60px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 6px;
  overflow: hidden;
  padding: 8px;
}

.contact-flag-svg {
  width: 100%; height: 100%; border-radius: 4px;
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #aaa;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-val {
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}

/* =============== PERMANENT ADDRESS =============== */
.address-card {
  margin-top: 28px;
  background: var(--card-dark);
  border: 3px solid var(--bg);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 26px;
  align-items: center;
  box-shadow: 8px 8px 0 var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.address-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--accent-2);
}

.address-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.address-icon {
  width: 60px; height: 60px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--ink);
  flex-shrink: 0;
}

.address-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #aaa;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.address-place {
  font-size: 1.3rem;
  color: var(--bg);
  font-weight: 700;
}

.address-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  border-left: 2px dashed rgba(255,255,255,0.15);
  padding-left: 22px;
}

.address-line {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.addr-k {
  font-size: 0.7rem;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.addr-v {
  color: var(--bg);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.addr-flag {
  display: inline-block;
  width: 20px; height: 13px;
  border: 1px solid var(--bg);
  border-radius: 2px;
  overflow: hidden;
}

.addr-flag svg { width: 100%; height: 100%; display: block; }

.address-map {
  background: var(--accent);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--bg);
  box-shadow: 4px 4px 0 var(--bg);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.address-map:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent-2);
}

@media (max-width: 920px) {
  .address-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .address-body {
    border-left: none;
    border-top: 2px dashed rgba(255,255,255,0.15);
    padding-left: 0;
    padding-top: 18px;
  }
  .address-map { justify-self: start; }
}

/* =============== VISITOR COUNTER =============== */
.visitor-strip {
  background: var(--bg);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 30px 24px;
}

.visitor-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.visitor-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.visitor-icon {
  width: 54px; height: 54px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 12px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.visitor-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.visitor-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.visitor-stats {
  display: flex;
  gap: 14px;
}

.counter-box {
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--accent-2);
  min-width: 110px;
}

.counter-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 4px;
}

.counter-lbl {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .visitor-stats { width: 100%; }
  .counter-box { flex: 1; min-width: 0; padding: 10px 8px; }
  .counter-num { font-size: 1.1rem; }
}

/* =============== FOOTER =============== */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 30px 24px;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-left strong {
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.footer-left span {
  font-size: 0.85rem;
  color: #999;
}

.footer-right {
  font-size: 0.85rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-social {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #1a1a1f;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid #2a2a30;
  transition: transform 0.15s, background 0.15s;
}

.footer-social:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--ink);
}

.footer-social i { line-height: 1; }
.footer-copy { color: #999; }

/* =============== RESPONSIVE =============== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-box.wide { grid-column: span 2; }
  .three-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr; gap: 18px; }
  .job-side { flex-direction: row; gap: 18px; justify-content: flex-start; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .profile-card { transform: rotate(0); }
}

@media (max-width: 560px) {
  .skill-grid { grid-template-columns: 1fr; }
  .skill-box.wide { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 20px 60px; }
  .section { padding: 60px 20px; }
  .location-row { grid-template-columns: 1fr; }
}

/* =============== FLOATING WHATSAPP BUTTON =============== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--ink), 0 8px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: translate(-2px, -2px) scale(1.05);
  box-shadow: 7px 7px 0 var(--ink), 0 12px 32px rgba(37, 211, 102, 0.6);
}

.wa-float:active {
  transform: translate(1px, 1px) scale(0.98);
  box-shadow: 3px 3px 0 var(--ink), 0 4px 12px rgba(37, 211, 102, 0.4);
}

.wa-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}

/* Pulsing ripples */
.wa-ripple {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  z-index: 1;
  animation: wa-pulse 2s ease-out infinite;
}

.wa-ripple-2 { animation-delay: 1s; }

@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}

/* Tooltip / label */
.wa-tooltip {
  position: absolute;
  right: 78px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 #25d366;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--ink);
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.wa-tooltip-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wa-tooltip-num {
  font-size: 0.78rem;
  color: #25d366;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* Mobile: slightly smaller */
@media (max-width: 560px) {
  .wa-float {
    width: 56px;
    height: 56px;
    bottom: 18px;
    right: 18px;
  }
  .wa-icon { font-size: 1.7rem; }
  .wa-tooltip { display: none; }
}

/* Auto-fade tooltip on first load to draw attention */
@keyframes wa-attention {
  0%, 100% { opacity: 0; transform: translateY(-50%) translateX(8px); }
  20%, 80% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.wa-float.wa-attract .wa-tooltip {
  animation: wa-attention 4s ease-in-out 1s 1;
}

/* =============== FADE-IN ANIMATIONS =============== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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