﻿/* ============================================================
   MyPortfolio — Professional Light Theme
   Design: Clean, corporate, enterprise-grade
   ============================================================ */

:root {
  /* Brand Colors */
  --navy: #0f172a;
  --navy-mid: #1e3a5f;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --gold: #f59e0b;
  --gold-dark: #d97706;

  /* Backgrounds */
  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.92);

  /* Text */
  --text: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  /* Borders */
  --border: #e2e8f0;
  --border-focus: #2563eb;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --shadow: 0 4px 6px rgba(15,23,42,0.07), 0 2px 4px rgba(15,23,42,0.05);
  --shadow-md: 0 10px 25px rgba(15,23,42,0.09), 0 4px 10px rgba(15,23,42,0.06);
  --shadow-lg: 0 20px 40px rgba(15,23,42,0.12), 0 8px 16px rgba(15,23,42,0.07);
  --shadow-blue: 0 4px 20px rgba(37,99,235,0.18);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--bg-secondary);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ── Canvas ──────────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.content { position: relative; z-index: 1; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
  background: var(--bg-nav);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(15,23,42,0.06);
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(15,23,42,0.1); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.brand-dot {
  display: block;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover { color: var(--blue); background: var(--blue-pale); }
.nav-links a.active { color: var(--blue); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  min-height: 100vh;
  padding: 7rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 4rem; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 28px rgba(37,99,235,0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.btn-full { width: 100%; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 9rem;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #16a34a;
  margin-bottom: 2.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

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

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Visual - Card Stack */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 340px;
  height: 240px;
}

.hero-card {
  position: absolute;
  width: 300px;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.hero-card-back {
  top: 0; left: 40px;
  transform: rotate(-4deg);
  background: var(--blue-pale);
  border-color: rgba(37,99,235,0.2);
  z-index: 1;
}

.hero-card-mid {
  top: 20px; left: 20px;
  transform: rotate(-1.5deg);
  z-index: 2;
}

.hero-card-front {
  top: 40px; left: 0;
  transform: rotate(1deg);
  z-index: 3;
  animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: rotate(1deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-8px); }
}

.hc-icon {
  font-size: 1.4rem;
  font-family: monospace;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.hc-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.hc-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.hc-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #16a34a;
}

.status-dot {
  width: 7px; height: 7px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulseGreen 2s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
}

.scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid var(--navy-mid);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--blue);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 7px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* ── Services ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-6px) rotateX(1.5deg);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.25);
}

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

.service-icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Projects ────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════
   PROJECT MARQUEE  –  desktop: auto-scroll  |  mobile: swipe
   ══════════════════════════════════════════════════════════ */

.carousel-marquee {
  width: 100%;
  overflow: hidden;               /* desktop: clip overflow */
  -webkit-mask-image: linear-gradient(to right, transparent, black 6% 94%, transparent);
  mask-image:         linear-gradient(to right, transparent, black 6% 94%, transparent);
}

/* ── scrolling track ──────────────────────────────────────── */
.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.carousel-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-shift)); }
}

/* ══════════════════════════════════════════════════════════
   PROJECT CARD  –  flex column, content never clips image
   ══════════════════════════════════════════════════════════ */

.project-card {
  /* sizing – never grow beyond this */
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;

  /* layout */
  position: relative;
  display: flex;
  flex-direction: column;

  /* look */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;          /* clips both image AND glow */
  box-shadow: 0 2px 16px rgba(15,23,42,0.07);

  /* interaction */
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

  /* lighting vars */
  --mx: 50%; --my: 50%;
}

/* hover glow overlay */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx) var(--my),
    rgba(99,162,255,0.14), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.18);
  border-color: rgba(37,99,235,0.35);
}

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

/* ── image slot ───────────────────────────────────────────── */
.project-card-image {
  width: 100%;               /* 100% of the 280px card */
  max-width: 100%;           /* hard cap */
  height: 155px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  display: block;            /* simple block, no flex quirks */
}

.project-card-image img {
  width: 100%;               /* fills the 280px card only */
  max-width: 100%;
  height: 155px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

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

.project-card-image svg {
  width: 55%;
  max-width: 100px;
  height: auto;
  opacity: 0.7;
}

/* ── content slot (grows, never overlaps image) ───────────── */
.project-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1rem 1rem;
  /* no overflow:hidden here – let content breathe */
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

.project-card-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-top: 0.2rem;
}

.project-card-tags span {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  background: #dbeafe;
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 20px;
  color: var(--blue);
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-top: 0.3rem;
  transition: gap 0.2s, color 0.2s;
}

.project-card-link:hover { gap: 0.45rem; color: var(--blue-light); }

/* ══════════════════════════════════════════════════════════
   MOBILE  –  swipeable horizontal scroll, no animation
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .carousel-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0.5rem 1rem 1.25rem;
  }

  .carousel-marquee::-webkit-scrollbar { display: none; }

  .marquee-track {
    animation: none !important;
    transform: none !important;
    gap: 1rem;
    /* width stays max-content so all cards line up */
  }

  .project-card {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    scroll-snap-align: start;
  }

  .project-card-image,
  .project-card-image img {
    height: 125px;
  }

  .project-card-title { font-size: 0.85rem; }
  .project-card-desc  { font-size: 0.73rem; -webkit-line-clamp: 2; }
}

@media (max-width: 480px) {
  .carousel-marquee { padding: 0.5rem 0.75rem 1.25rem; }

  .project-card {
    width: 185px;
    min-width: 185px;
    max-width: 185px;
  }

  .project-card-image,
  .project-card-image img {
    height: 105px;
  }
}

/* ── About ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}

.avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  width: 232px;
  height: 232px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ringPulse 4s ease-in-out infinite;
}

.avatar {
  width: 220px; 
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--blue-pale), #e8f0fe);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

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

.avatar svg { width: 100%; height: 100%; }

.avatar-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  width: 220px;
}

.badge {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.03em;
}

.badge-azure { background: #e8f4fd; color: #0078d4; border: 1px solid rgba(0,120,212,0.2); }
.badge-dotnet { background: #f3e8ff; color: #7c3aed; border: 1px solid rgba(124,58,237,0.2); }

.about-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.about-content > p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.975rem;
  line-height: 1.75;
}

/* Timeline */
.timeline { margin-bottom: 2rem; }

.timeline-item {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.75rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-left: 3px solid var(--blue);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.timeline-item:hover { box-shadow: var(--shadow); }

.timeline-item h4 { font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.25rem; }
.timeline-item .role { color: var(--blue); font-size: 0.875rem; font-weight: 500; }
.timeline-item .dates { color: var(--text-muted); font-size: 0.8rem; margin: 0.3rem 0; }
.timeline-item p { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.4rem; line-height: 1.6; }

/* Social Links */
.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.social-links a:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* ── Skills ──────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skills-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.skills-panel h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-icon {
  display: inline-flex;
  width: 28px; height: 28px;
  background: var(--blue-pale);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--blue);
}

.skill-bar { margin-bottom: 1.1rem; }

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.skill-bar-header span:first-child { font-weight: 500; color: var(--text); }
.skill-bar-header span:last-child { color: var(--blue); font-weight: 600; }

.skill-bar-track {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-tags {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lang-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
}

.lang-tag strong { color: var(--navy); font-weight: 600; }
.lang-tag em { color: var(--blue); font-style: normal; font-size: 0.8rem; font-weight: 500; }

/* ── Credentials ─────────────────────────────────────────── */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cred-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cred-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.cred-panel-header h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.cred-list { list-style: none; }

.cred-list li {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: background var(--transition);
}

.cred-list li:last-child { border-bottom: none; }
.cred-list li:hover { background: var(--bg-secondary); }
.cred-list strong { color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.cred-list span { color: var(--text-muted); font-size: 0.8rem; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--border);
  line-height: 1;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.testimonial-author strong { display: block; color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.testimonial-author span { color: var(--text-muted); font-size: 0.8rem; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-panel h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-info-panel > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

.contact-item-icon {
  width: 36px; height: 36px;
  background: var(--blue-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.contact-availability strong { color: #15803d; }

.avail-dot {
  width: 8px; height: 8px;
  background: #16a34a;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseGreen 2s ease-in-out infinite;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group textarea { resize: vertical; }

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  min-height: 1.2rem;
  font-weight: 500;
  text-align: center;
}

.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.75rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

.footer-links { display: flex; gap: 1rem; }

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--blue); }

/* ── Reveal Animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .credentials-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-visual { display: none; }
  .project-card { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .about-grid { gap: 2rem; }
  .about-grid { text-align: center; }
  .avatar-wrap { margin: 0 auto; }
  .avatar-badges { margin: 1rem auto 0; }
  .social-links { justify-content: center; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    padding: 1rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 0.25rem;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.75rem; font-size: 0.95rem; }
}

@media (max-width: 600px) {
  .section { padding: 5rem 1.25rem 3rem; }
  .carousel-btn { width: 38px; height: 38px; }
  .hero-stats { gap: 1rem; }
  .section-header h2 { font-size: 1.8rem; }

  /* Responsive avatar */
  .avatar {
    width: 180px;
    height: 180px;
  }

  .avatar-ring {
    width: 192px;
    height: 192px;
  }

  .avatar-badges {
    width: 180px;
  }
}

