/* =============================================================
   AMAR KUMAR — DATA SCIENTIST PORTFOLIO
   Styles: Dark theme · Charcoal + Electric Teal
   Fonts:  Syne (display) + DM Sans (body)
   ============================================================= */

/* ──────────────── CSS CUSTOM PROPERTIES ──────────────── */
:root {
  /* Palette */
  --bg-primary:    #0c1017;
  --bg-secondary:  #111827;
  --bg-card:       #161d2e;
  --bg-card-hover: #1b2438;
  --surface:       #1e293b;
  --border:        rgba(255, 255, 255, 0.06);
  --border-hover:  rgba(255, 255, 255, 0.12);

  /* Accent */
  --accent:        #00d4aa;
  --accent-dim:    rgba(0, 212, 170, 0.15);
  --accent-glow:   rgba(0, 212, 170, 0.35);

  /* Text */
  --text-primary:  #e8ecf1;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  /* Blog warm accent */
  --blog-warm:     #f59e0b;
  --blog-warm-dim: rgba(245, 158, 11, 0.12);

  /* Fonts */
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  /* Sizes */
  --nav-height:    72px;
  --container:     1200px;
  --radius:        12px;
  --radius-sm:     8px;

  /* Transitions */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  cursor: none;
}

/* Restore default cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

a:hover { color: #33e0be; }

ul { list-style: none; }

/* ──────────────── SCROLL PROGRESS BAR ──────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #00b4d8);
  z-index: 10000;
  transition: width 0.05s linear;
}

/* ──────────────── CUSTOM CURSOR ──────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 170, 0.4);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}

body.cursor-hover .cursor-dot {
  width: 12px;
  height: 12px;
  background: rgba(0, 212, 170, 0.5);
}

body.cursor-hover .cursor-ring {
  width: 50px;
  height: 50px;
  border-color: var(--accent);
}

/* ──────────────── UTILITY ──────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ──────────────── BUTTONS ──────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: none;
  transition: all 0.35s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: #33e0be;
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ──────────────── NAVBAR ──────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.navbar.scrolled {
  background: rgba(12, 16, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.nav-logo:hover { color: var(--text-primary); }
.logo-bracket { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a.nav-cta {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
}
.nav-links a.nav-cta:hover {
  background: #33e0be;
}

.nav-links a.active-link {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
  z-index: 1001;
}
.hamburger .bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────── HERO ──────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-greeting {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.hero-typewriter {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  min-height: 2em;
}

.typewriter-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-bio {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Scroll indicator */
.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.mouse-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ──────────────── ABOUT ──────────────── */
.about { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.image-placeholder {
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: var(--radius);
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition: transform 0.6s var(--ease-out), filter 0.6s;
}
.image-frame:hover .image-placeholder img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.1);
}

.image-decoration {
  position: absolute;
  inset: -1px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  transform: translate(12px, 12px);
  z-index: -1;
  opacity: 0.4;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat {
  text-align: center;
  padding: 20px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.about-text em {
  color: var(--accent);
  font-style: italic;
}

.about-text strong {
  color: var(--text-primary);
}

.about-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trait {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 212, 170, 0.15);
  transition: all 0.3s var(--ease-out);
}
.trait:hover {
  background: rgba(0, 212, 170, 0.22);
  transform: translateY(-2px);
}

/* ──────────────── SKILLS ──────────────── */
.skills { background: var(--bg-primary); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.skill-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.15rem;
}

.skill-category h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.87rem;
  margin-bottom: 6px;
}
.skill-bar-info span:first-child { color: var(--text-secondary); font-weight: 500; }
.skill-bar-info span:last-child  { color: var(--text-muted); }

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #00b4d8);
  border-radius: 3px;
  transition: width 1.2s var(--ease-out);
}

/* ──────────────── PROJECTS ──────────────── */
.projects { background: var(--bg-secondary); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.3s;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.project-card-inner { height: 100%; }

.project-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 23, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-overlay p {
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
}

.project-info {
  padding: 24px;
}

.project-info h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-info > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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

.project-tags span {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.project-links {
  display: flex;
  gap: 20px;
}

.project-links a {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.project-links a:hover { color: var(--accent); }

/* ──────────────── EXPERIENCE TIMELINE ──────────────── */
.experience { background: var(--bg-primary); }

.timeline {
  position: relative;
  max-width: 740px;
  margin: 56px auto 0;
  padding-left: 40px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent) 50%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg-primary);
  z-index: 1;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color 0.3s, box-shadow 0.4s;
}
.timeline-content:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.timeline-date {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-content > p:last-child {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ──────────────── CERTIFICATIONS ──────────────── */
.certifications { background: var(--bg-secondary); }

.cert-scroll-wrapper {
  margin-top: 48px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-card);
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.cert-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}
.cert-scroll-wrapper::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 3px;
}
.cert-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.cert-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.cert-card {
  flex-shrink: 0;
  width: 220px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.cert-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
}

.cert-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cert-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ──────────────── BLOG ──────────────── */
.blog {
  background: var(--bg-primary);
}

/* Slightly warmer undertone for the blog section */
.blog .section-label { color: var(--blog-warm); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
  border-color: rgba(245, 158, 11, 0.3);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.blog-card:hover .blog-card-image img { transform: scale(1.06); }

.blog-category {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(245, 158, 11, 0.85);
  color: var(--bg-primary);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body time {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 10px 0 12px;
  line-height: 1.35;
}

.blog-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blog-warm);
  transition: gap 0.3s var(--ease-out), color 0.3s;
}
.blog-read-more:hover {
  gap: 12px;
  color: #fbbf24;
}

/* ──────────────── CONTACT ──────────────── */
.contact { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  margin-top: 48px;
  align-items: start;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.contact-info-card:hover { border-color: var(--border-hover); }

.contact-info-card > i {
  font-size: 1.3rem;
  color: var(--accent);
  width: 28px;
  text-align: center;
}

.contact-info-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-social {
  padding-top: 8px;
}

.contact-social h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}
.social-links a:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ──────────────── FOOTER ──────────────── */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-left p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--text-primary); }

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ──────────────── REVEAL ANIMATIONS ──────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0);
}

/* ──────────────── RESPONSIVE ──────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 80px 0;
  }

  /* Nav mobile menu */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(17, 24, 39, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-size: 1.1rem;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
  }
  .nav-links a.nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  /* Hero mobile */
  .hero-name {
    letter-spacing: -1px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-scroll-indicator { display: none; }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline {
    padding-left: 32px;
  }
  .timeline-dot {
    left: -32px;
    width: 12px;
    height: 12px;
  }
  .timeline::before {
    left: 4px;
  }
  .timeline-content {
    padding: 22px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-left {
    flex-direction: column;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-content {
    padding: 0 16px;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .cert-card {
    width: 190px;
  }
}

/* ──────────────── MOBILE OVERLAY ──────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
