/* =============================================
   style.css — "Relaxed but Elegant" Portfolio
   Color: Blue-only (blue-500, sky-500, blue-600)
   NO purple, NO indigo.
   Font: Plus Jakarta Sans + JetBrains Mono
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar            { width: 5px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #3b82f6; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover{ background: #2563eb; }

/* ============================================================
   SELECTION
   ============================================================ */
::selection { background: #bfdbfe; color: #1e3a8a; }

/* ============================================================
   GLASSMORPHISM NAVBAR
   ============================================================ */
.glass-nav {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow:
    0 4px 20px -4px rgba(15, 23, 42, 0.08),
    0 1px 4px  rgba(15, 23, 42, 0.04);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.845rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover  { color: #1e293b; background: rgba(241,245,249,0.9); }
.nav-link.active { color: #2563eb; background: rgba(219,234,254,0.6); }

.mob-link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s, background 0.2s;
}
.mob-link:hover  { color: #1e293b; background: rgba(241,245,249,0.9); }

/* Hamburger animation */
.ham-open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham-open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham-open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 20px; background: #334155; }

/* ============================================================
   HERO BACKGROUND
   ============================================================ */
.hero-blob-1 {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  width: min(680px, 92vw); height: min(680px, 92vw); border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.10) 0%, transparent 70%);
  top: -15%; left: -15%;
}
.hero-blob-2 {
  position: absolute; pointer-events: none; z-index: 0;
  width: min(450px, 72vw); height: min(450px, 72vw); border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.09) 0%, transparent 70%);
  bottom: 0; right: -8%;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 60% 80% at 65% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 65% 50%, black 30%, transparent 100%);
}

/* ============================================================
   SECTION BACKGROUND BLOBS
   ============================================================ */
.section-blob-r {
  position: absolute; pointer-events: none; z-index: 0;
  width: min(500px, 80vw); height: min(500px, 80vw); border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
  top: 50%; right: -12%; transform: translateY(-50%);
}
.section-blob-l {
  position: absolute; pointer-events: none; z-index: 0;
  width: min(500px, 80vw); height: min(500px, 80vw); border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.06) 0%, transparent 70%);
  top: 50%; left: -12%; transform: translateY(-50%);
}

/* ============================================================
   HERO TEXT
   ============================================================ */
.hero-name-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 60%, #2563eb 100%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0%; }
  50%       { background-position: 100%; }
}

/* Pulse ring on status dot */
.ring-pulse {
  box-shadow: 0 0 0 0 rgba(59,130,246,0.45);
  animation: ring-pulse 2.5s ease-out infinite;
}
@keyframes ring-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(59,130,246,0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0   rgba(59,130,246,0); }
}

/* Typing cursor */
#typing-cursor {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  animation: blink 0.85s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ============================================================
   HERO CHIPS & SOCIALS
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem; border: 1.5px solid; border-radius: 9999px;
  font-size: 0.775rem; font-weight: 600;
}
.chip-yellow  { background:#fefce8; color:#854d0e; border-color:#fde68a; }
.chip-sky     { background:#f0f9ff; color:#0369a1; border-color:#bae6fd; }
.chip-blue    { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.chip-emerald { background:#f0fdf4; color:#065f46; border-color:#a7f3d0; }
.chip-red     { background:#fff1f2; color:#9f1239; border-color:#fecdd3; }

.social-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem; border-radius: 9999px;
  border: 1.5px solid #e2e8f0; background: white;
  font-size: 0.775rem; font-weight: 600; color: #64748b;
  box-shadow: 0 1px 4px rgba(15,23,42,0.04);
  transition: all 0.2s;
}
.social-chip:hover {
  border-color: #3b82f6; color: #2563eb;
  box-shadow: 0 3px 12px rgba(59,130,246,0.18);
  transform: translateY(-1px);
}

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  animation: cue-bounce 2.5s ease-in-out infinite;
  transition: color 0.2s;
}
.scroll-cue:hover { color: #3b82f6; }
@keyframes cue-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   HERO PHOTO
   ============================================================ */
.photo-wrapper {
  position: relative;
  width: 340px;
  height: 430px;
}
@media (min-width: 640px)  { .photo-wrapper { width: 370px; height: 460px; } }
@media (min-width: 1024px) { .photo-wrapper { width: 420px; height: 520px; } }
@media (max-width: 480px)  { .photo-wrapper { width: 260px; height: 330px; } }

/* Glowing circle behind image */
.photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 2rem;
  background: radial-gradient(circle at 60% 40%, rgba(59,130,246,0.22), rgba(14,165,233,0.10), transparent 70%);
  filter: blur(28px);
  z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* Decorative ring */
.photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 2.25rem;
  border: 2px solid rgba(59,130,246,0.18);
  z-index: 0;
  animation: ring-spin 18s linear infinite;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Photo frame */
.photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow:
    0 24px 60px -10px rgba(59,130,246,0.30),
    0 8px  24px -4px  rgba(15,23,42,0.14);
}
.photo-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}
.photo-wrapper:hover .photo-img { transform: scale(1.03); }

/* Floating cards */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 0.65rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 8px 28px -4px rgba(15,23,42,0.14);
}
.float-card-tl {
  top: -14px; left: -16px;
  animation: float-a 3.2s ease-in-out infinite;
}
.float-card-br {
  bottom: -14px; right: -16px;
  animation: float-b 3.8s ease-in-out infinite;
}
.float-card-award {
  bottom: 28px; left: -20px;
  flex-direction: column; align-items: center;
  padding: 0.65rem 0.9rem; gap: 0.2rem; text-align: center;
  animation: float-a 4.4s ease-in-out infinite;
  animation-delay: 0.8s;
}
@keyframes float-a {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes float-b {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.float-card-icon {
  width: 28px; height: 28px; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center; shrink-0: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  padding: 0.72rem 1.65rem;
  background: #3b82f6;
  color: white; font-weight: 700;
  border-radius: 0.875rem;
  box-shadow: 0 4px 14px rgba(59,130,246,0.35);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.45);
}

.btn-outline {
  padding: 0.72rem 1.65rem;
  background: white; color: #475569; font-weight: 600;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.875rem;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: #3b82f6; color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.14);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; max-width: 580px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #3b82f6;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
  padding: 0.25rem 0.9rem; border-radius: 9999px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; color: #0f172a;
  line-height: 1.2; margin-bottom: 0.85rem;
}
.section-sub { font-size: 1rem; color: #64748b; line-height: 1.7; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem;
  box-shadow: 0 2px 16px -2px rgba(15,23,42,0.08), 0 1px 4px rgba(15,23,42,0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: 0 10px 36px -6px rgba(15,23,42,0.13), 0 2px 8px rgba(15,23,42,0.06);
  transform: translateY(-3px);
}

.icon-box {
  width: 40px; height: 40px; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; shrink-0: 0;
}
.info-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 0.65rem;
  font-size: 0.78rem; color: #475569; font-weight: 500;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-cat-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #3b82f6;
  margin-bottom: 0.6rem;
}
.skill-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border: 1.5px solid #e2e8f0; border-radius: 0.5rem;
  font-size: 0.78rem; font-weight: 600; color: #334155;
  background: #f8fafc;
  transition: all 0.18s;
}
.skill-badge:hover {
  border-color: #93c5fd; color: #1d4ed8; background: #eff6ff;
  transform: translateY(-1px);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 10px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, rgba(59,130,246,0.08));
  border-radius: 99px;
}
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -1.625rem; top: 1.25rem;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2.5px solid #f8fafc;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  z-index: 1;
}

.tl-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 0.2rem 0.65rem; border-radius: 9999px;
  background: rgba(59,130,246,0.08); color: #2563eb;
  border: 1px solid rgba(59,130,246,0.18); white-space: nowrap;
}
.micro-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  padding: 0.15rem 0.55rem; border-radius: 0.4rem; border: 1px solid;
}
.stat-tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; font-weight: 500;
  padding: 0.2rem 0.55rem; border-radius: 0.4rem;
  background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe;
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.proj-card {
  background: white; border: 1px solid #f1f5f9; border-radius: 1.25rem;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 16px -2px rgba(15,23,42,0.08);
  transition: all 0.3s ease;
}
.proj-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 50px -10px rgba(15,23,42,0.16), 0 4px 12px rgba(59,130,246,0.10);
  border-color: rgba(59,130,246,0.18);
}

.proj-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f8fafc;
  cursor: pointer;
}
.proj-thumb:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; }
.proj-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.proj-card:hover .proj-thumb img { transform: scale(1.05); }

.proj-visual {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.7rem; color: white;
}
.proj-visual i { font-size: 2.4rem; }
.proj-visual span {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: min(82%, 18rem); line-height: 1.25; text-align: center;
  overflow-wrap: anywhere;
}
.proj-visual-vision { background: linear-gradient(135deg, #f97316, #2563eb); }
.proj-visual-time { background: linear-gradient(135deg, #0ea5e9, #f59e0b); }
.proj-visual-etl { background: linear-gradient(135deg, #334155, #06b6d4); }
.proj-visual-nlp { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.proj-visual-ml { background: linear-gradient(135deg, #16a34a, #0f766e); }
.proj-visual-eda { background: linear-gradient(135deg, #dc2626, #f43f5e); }
.proj-visual-dropout { background: linear-gradient(135deg, #22c55e, #2563eb); }
.proj-visual-sql { background: linear-gradient(135deg, #475569, #0f172a); }
.proj-visual-confide { background: linear-gradient(135deg, #7c3aed, #06b6d4); }

.proj-tag-badge {
  position: absolute; top: 0.65rem; left: 0.65rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: 9999px;
  color: white; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
}

.proj-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.proj-title { font-weight: 700; font-size: 0.95rem; color: #0f172a; margin-bottom: 0.4rem; line-height: 1.4; }
.proj-desc  { font-size: 0.82rem; color: #64748b; line-height: 1.65; flex: 1; margin-bottom: 0.9rem; }
.proj-tags  { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
.ptag {
  font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 0.4rem;
}
.proj-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding-top: 0.75rem; border-top: 1px solid #f1f5f9;
}
.proj-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 2rem;
  font-size: 0.8rem; font-weight: 700; color: #3b82f6; transition: color 0.2s;
}
.proj-link:hover { color: #1d4ed8; }
.wip-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.65rem; font-weight: 600; padding: 0.2rem 0.55rem;
  border-radius: 9999px; background: #fefce8; color: #854d0e; border: 1px solid #fde68a;
}

/* Filter pills */
.filter-pill {
  padding: 0.4rem 1.1rem; border-radius: 9999px;
  font-size: 0.8rem; font-weight: 600;
  border: 1.5px solid #e2e8f0; background: white; color: #64748b;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(15,23,42,0.04);
}
.filter-pill:hover { border-color: #3b82f6; color: #2563eb; }
.filter-pill.active {
  background: #3b82f6; border-color: #3b82f6; color: white;
  box-shadow: 0 4px 14px rgba(59,130,246,0.32);
}

/* ============================================================
   AWARD CARDS
   ============================================================ */
.award-card {
  background: white; border: 1px solid #f1f5f9; border-radius: 1.25rem;
  padding: 1.5rem; text-align: center;
  box-shadow: 0 2px 12px -2px rgba(15,23,42,0.07);
  cursor: pointer;
  transition: all 0.3s;
}
.award-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px -6px rgba(15,23,42,0.12); }
.award-card:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
.award-icon {
  width: 52px; height: 52px; border-radius: 1rem; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem;
}
.award-rank  { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.award-name  { font-weight: 800; font-size: 0.875rem; color: #0f172a; margin-bottom: 0.2rem; line-height: 1.3; }
.award-event { font-size: 0.75rem; color: #94a3b8; }

/* ============================================================
   CERTIFICATE CARDS
   ============================================================ */
.cert-card {
  background: white; border: 1px solid #f1f5f9; border-radius: 1.25rem;
  overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 12px -2px rgba(15,23,42,0.07);
  transition: all 0.3s;
}
.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px -8px rgba(15,23,42,0.14);
  border-color: rgba(59,130,246,0.2);
}
.cert-card:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }

.cert-thumb {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f8fafc;
}
.cert-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease, filter 0.3s;
  filter: grayscale(10%);
}
.cert-thumb img.cert-preview-img {
  object-fit: contain;
  padding: 0.45rem;
  background: #f8fafc;
}
.cert-card:hover .cert-thumb img { transform: scale(1.04); filter: grayscale(0%); }

.cert-doc-preview {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.7rem; color: white;
}
.cert-doc-preview i { font-size: 2.2rem; }
.cert-doc-preview span {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cert-doc-blue { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.cert-doc-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.cert-doc-emerald { background: linear-gradient(135deg, #059669, #22c55e); }
.cert-doc-orange { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.cert-doc-red { background: linear-gradient(135deg, #dc2626, #f43f5e); }
.cert-doc-gold { background: linear-gradient(135deg, #f59e0b, #dc2626); }
.cert-doc-silver { background: linear-gradient(135deg, #64748b, #94a3b8); }

.cert-overlay {
  position: absolute; inset: 0;
  background: rgba(59,130,246,0.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  color: white; opacity: 0; transition: opacity 0.3s;
}
.cert-card:hover .cert-overlay { opacity: 1; }

.cert-info {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem; border-top: 1px solid #f1f5f9;
}
.cert-icon {
  width: 34px; height: 34px; border-radius: 0.6rem; border: 1px solid;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cert-name   { font-weight: 700; font-size: 0.82rem; color: #1e293b; margin-bottom: 0.15rem; }
.cert-issuer { font-size: 0.72rem; color: #94a3b8; font-weight: 500; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; background: white;
  border: 1px solid #f1f5f9; border-radius: 1.25rem;
  box-shadow: 0 2px 12px -2px rgba(15,23,42,0.07);
  text-decoration: none; transition: all 0.2s;
}
.contact-row:hover:not(div) {
  transform: translateX(4px);
  box-shadow: 0 6px 24px -4px rgba(15,23,42,0.11);
  border-color: rgba(59,130,246,0.2);
}
.contact-icon-box {
  width: 44px; height: 44px; border-radius: 0.875rem; border: 1px solid;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem;
}

/* Form */
.form-label {
  display: block; font-size: 0.78rem; font-weight: 600; color: #475569;
  letter-spacing: 0.02em; margin-bottom: 0.4rem;
}
.form-input {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.875rem;
  color: #1e293b; background: #f8fafc;
  border: 1.5px solid #e2e8f0; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input::placeholder { color: #cbd5e1; }
.form-input:focus {
  border-color: #3b82f6; background: white;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* ============================================================
   FOOTER SOCIALS
   ============================================================ */
.footer-soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 0.65rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08);
  color: #64748b; font-size: 0.875rem; transition: all 0.2s;
}
.footer-soc:hover {
  background: #3b82f6; border-color: #3b82f6; color: white;
  transform: translateY(-2px);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MODAL
   ============================================================ */
#cert-modal.open { display: block; animation: m-in 0.22s ease; }
.cert-modal-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
}
.cert-modal-media {
  display: block; width: auto; max-width: 100%; max-height: 76vh;
  margin: 0 auto; object-fit: contain;
}
.cert-modal-pdf {
  width: min(100%, 980px); min-height: 72vh; max-height: none;
  border: 0; background: white;
}
@keyframes m-in { from{opacity:0} to{opacity:1} }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 640px) {
  .section-title { font-size: 1.7rem; }
  .float-card-tl, .float-card-award { display: none; }
  .float-card-br { bottom: -10px; right: -10px; }
  .proj-footer { flex-direction: column; align-items: flex-start; }
  .proj-link { width: 100%; justify-content: space-between; }
  .proj-visual i { font-size: 2rem; }
  .proj-visual span { font-size: 0.74rem; max-width: 74%; }
  .cert-info { align-items: flex-start; }
  .cert-name { font-size: 0.78rem; line-height: 1.35; }
  .cert-modal-body { align-items: flex-start; padding: 0.75rem !important; }
  .cert-modal-media { width: 100%; max-height: 68vh; }
  .cert-modal-pdf { min-height: 68vh; }
}

@media (max-width: 380px) {
  .photo-wrapper { width: min(240px, 82vw); height: 305px; }
  .filter-pill { padding: 0.35rem 0.8rem; font-size: 0.72rem; }
  .award-card { padding: 1.15rem; }
  .cert-thumb img.cert-preview-img { padding: 0.3rem; }
}
