/* ═══════════════════════════════════════════
   CSS DESIGN SYSTEM — Light Minimalist
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  /* Colors */
  --clr-bg:         #f8f9fc;
  --clr-surface:    #ffffff;
  --clr-surface-2:  #f1f3f8;
  --clr-border:     #e2e6ee;
  --clr-text:       #1a1d26;
  --clr-text-2:     #5a607a;
  --clr-text-3:     #8b90a7;

  /* Accent — sophisticated blue-slate */
  --clr-accent:     #4f6ef7;
  --clr-accent-2:   #7c5cf2;
  --clr-accent-soft: rgba(79, 110, 247, 0.08);
  --clr-accent-glow: rgba(79, 110, 247, 0.25);
  --gradient:       linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-2) 100%);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(26, 29, 38, 0.04), 0 1px 2px rgba(26, 29, 38, 0.06);
  --shadow-md:  0 4px 16px rgba(26, 29, 38, 0.06), 0 2px 4px rgba(26, 29, 38, 0.04);
  --shadow-lg:  0 12px 40px rgba(26, 29, 38, 0.08), 0 4px 12px rgba(26, 29, 38, 0.04);
  --shadow-xl:  0 24px 64px rgba(26, 29, 38, 0.10);
  --shadow-glow: 0 8px 32px var(--clr-accent-glow);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* Spacing */
  --section-py: 120px;

  /* Font */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ── Container ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section ── */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: var(--clr-accent-soft);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--clr-text);
}

.section-subtitle {
  font-size: 17px;
  color: var(--clr-text-2);
  max-width: 520px;
  margin: 12px auto 0;
}


/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--clr-text);
  transition: transform 0.3s var(--ease-spring);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-bracket {
  color: var(--clr-accent);
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-text-2);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-accent);
  background: var(--clr-accent-soft);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 4px;
  transition: all 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 29, 38, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.nav-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--clr-accent);
  top: -10%;
  right: -10%;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--clr-accent-2);
  bottom: -5%;
  left: -5%;
  animation: floatShape 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: #f5a623;
  top: 40%;
  left: 50%;
  animation: floatShape 18s ease-in-out infinite 5s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 15px) scale(1.02); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 16px;
  font-weight: 500;
  color: var(--clr-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--clr-text);
  margin-bottom: 20px;
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-role-line {
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 4px;
  flex-shrink: 0;
}

.hero-role {
  font-size: 18px;
  font-weight: 600;
  color: var(--clr-text-2);
}

.hero-desc {
  font-size: 16px;
  color: var(--clr-text-2);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-2);
  transition: all 0.3s var(--ease-out);
}

.social-link:hover {
  color: var(--clr-accent);
  border-color: var(--clr-accent);
  background: var(--clr-accent-soft);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* LinkedIn brand logo */
.linkedin-logo {
  width: 20px;
  height: 20px;
  transition: color 0.3s var(--ease-out);
}

.social-link:hover .linkedin-logo {
  color: #0A66C2;
}

.contact-icon .linkedin-logo {
  width: 22px;
  height: 22px;
  color: var(--clr-accent);
}

.footer-socials .linkedin-logo {
  width: 16px;
  height: 16px;
}

.footer-socials a:hover .linkedin-logo {
  color: #0A66C2;
}

/* Hero Visual — Terminal Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: #1e2030;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
}

.hero-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-card-header {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: #181a28;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.hero-card-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: #c8cfe6;
}

.code-keyword { color: #7aa2f7; }
.code-string  { color: #9ece6a; }
.code-number  { color: #ff9e64; }
.code-comment { color: #565f89; }

.code-cursor {
  animation: blink 1s step-end infinite;
  color: #7aa2f7;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-text-3);
  font-size: 12px;
  letter-spacing: 1px;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--clr-text-3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 4px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--clr-accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}

.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-soft);
  transform: translateY(-2px);
}

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

.btn-icon {
  width: 16px;
  height: 16px;
}


/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--clr-text-2);
  margin-bottom: 16px;
  font-size: 16px;
}

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

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--clr-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--clr-text);
  display: inline;
}

.stat-suffix {
  font-size: 28px;
  font-weight: 700;
  color: var(--clr-accent);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--clr-text-3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* About details */
.about-details {
  display: grid;
  gap: 16px;
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}

.detail-card:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent-soft);
  border-radius: var(--radius-sm);
  color: var(--clr-accent);
  flex-shrink: 0;
}

.detail-icon svg {
  width: 20px;
  height: 20px;
}

.detail-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-text-3);
  font-weight: 600;
  margin-bottom: 2px;
}

.detail-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-text);
}


/* ═══════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════ */
.skills {
  background: var(--clr-surface-2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent-soft);
  border-radius: var(--radius-md);
  color: var(--clr-accent);
  margin-bottom: 20px;
  transition: all 0.3s var(--ease-out);
}

.skill-card:hover .skill-icon-wrap {
  background: var(--gradient);
  color: #fff;
}

.skill-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.skill-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 14px;
  color: var(--clr-text-2);
  line-height: 1.6;
}




/* ═══════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.project-image {
  position: relative;
  height: 200px;
  background: var(--clr-surface-2);
  overflow: hidden;
}

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

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

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-accent-soft) 0%, rgba(124, 92, 242, 0.08) 100%);
  color: var(--clr-accent);
}

.project-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(79, 110, 247, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

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

.project-link-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--clr-accent);
  border-radius: 50%;
  transform: scale(0.8);
  transition: transform 0.3s var(--ease-spring);
}

.project-card:hover .project-link-btn {
  transform: scale(1);
}

.project-link-btn svg {
  width: 20px;
  height: 20px;
}

.project-info {
  padding: 24px;
}

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

.tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--clr-accent);
  background: var(--clr-accent-soft);
  padding: 4px 12px;
  border-radius: 100px;
}

.project-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 14px;
  color: var(--clr-text-2);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════
   CERTIFICATES
   ═══════════════════════════════════════════ */
.certificates {
  background: var(--clr-surface-2);
}

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

.cert-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clr-border);
}

.cert-item {
  position: relative;
  margin-bottom: 28px;
}

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

.cert-dot {
  position: absolute;
  left: -33px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-accent);
  border: 3px solid var(--clr-bg);
  box-shadow: 0 0 0 3px var(--clr-accent-soft);
  z-index: 1;
}

.cert-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s var(--ease-out);
}

.cert-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-accent);
}

.cert-badge {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  color: #fff;
  flex-shrink: 0;
}

.cert-badge svg {
  width: 24px;
  height: 24px;
}

.cert-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cert-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0;
}

.cert-content p {
  font-size: 14px;
  color: var(--clr-text-2);
}

.cert-verify {
  color: var(--clr-accent);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.cert-card:hover .cert-verify {
  opacity: 1;
}

a.cert-card {
  text-decoration: none;
  color: inherit;
}


/* Centered contact cards */
.contact-cards-center {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}

.contact-card:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent-soft);
  border-radius: var(--radius-sm);
  color: var(--clr-accent);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-text-3);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-text);
  transition: color 0.2s;
}

a.contact-value:hover {
  color: var(--clr-accent);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-surface);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--clr-text);
}

.footer-copy {
  font-size: 13px;
  color: var(--clr-text-3);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-2);
  transition: all 0.3s var(--ease-out);
}

.footer-socials a:hover {
  color: var(--clr-accent);
  border-color: var(--clr-accent);
  background: var(--clr-accent-soft);
  transform: translateY(-2px);
}

.footer-socials a svg {
  width: 16px;
  height: 16px;
}


/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Hero entrance animations */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }
.anim-delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skill bar animation */
.skill-bar.animate {
  width: var(--bar-width);
}


/* ═══════════════════════════════════════════
   RESPONSIVE — All Platforms
   PC · Android · iOS
   ═══════════════════════════════════════════ */

/* iOS safe area support */
body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Touch-friendly: min 44px tap targets on mobile */
@media (pointer: coarse) {
  .nav-link,
  .social-link,
  .btn,
  .footer-socials a,
  a.cert-card {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Prevent iOS zoom on input focus */
@media screen and (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* ── Tablet: 769px – 1024px ── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .hero-socials {
    justify-content: center;
  }

  .hero-role-wrapper {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile: ≤ 768px ── */
@media (max-width: 768px) {
  :root {
    --section-py: 80px;
  }

  /* Mobile Navigation Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height for mobile browsers */
    background: var(--clr-surface);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s var(--ease-out);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-link {
    font-size: 16px;
    padding: 14px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 70px;
    padding-bottom: 60px;
  }

  .hero-name {
    font-size: clamp(32px, 10vw, 52px);
    letter-spacing: -1px;
  }

  .hero-greeting {
    font-size: 14px;
  }

  .hero-role {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn {
    padding: 14px 24px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .section-tag {
    font-size: 12px;
    padding: 5px 14px;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skill-card {
    padding: 24px 20px;
  }

  /* Experience / Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-image {
    height: 180px;
  }

  .project-info {
    padding: 20px;
  }

  /* Certificates */
  .cert-timeline {
    padding-left: 32px;
  }

  .cert-dot {
    left: -25px;
    width: 10px;
    height: 10px;
  }

  .cert-card {
    padding: 18px;
    gap: 14px;
  }

  /* Contact */
  .contact-cards-center {
    max-width: 100%;
  }

  .contact-card {
    padding: 18px 20px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer {
    padding: 32px 0;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  /* Background shapes: smaller on mobile */
  .shape-1 {
    width: 300px;
    height: 300px;
  }

  .shape-2 {
    width: 250px;
    height: 250px;
  }

  .shape-3 {
    width: 150px;
    height: 150px;
  }
}

/* ── Small Mobile: ≤ 480px ── */
@media (max-width: 480px) {
  :root {
    --section-py: 60px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-name {
    font-size: clamp(28px, 9vw, 40px);
  }

  /* About stats */
  .about-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 11px;
  }

  /* About detail cards */
  .about-details {
    gap: 12px;
  }

  .detail-card {
    padding: 16px;
    gap: 12px;
  }

  .detail-icon {
    width: 40px;
    height: 40px;
  }

  /* Certificates */
  .cert-card {
    flex-direction: column;
    text-align: center;
  }

  .cert-badge {
    width: 44px;
    height: 44px;
  }

  .cert-content h3 {
    font-size: 14px;
  }

  .cert-timeline {
    padding-left: 24px;
  }

  .cert-dot {
    left: -17px;
    width: 8px;
    height: 8px;
  }

  .cert-timeline::before {
    left: 7px;
  }

  /* Contact cards */
  .contact-card {
    padding: 16px;
    gap: 12px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }

  .contact-value {
    font-size: 14px;
    word-break: break-word;
  }

  /* Project info */
  .project-info h3 {
    font-size: 16px;
  }

  .project-info p {
    font-size: 13px;
  }

  .project-image {
    height: 160px;
  }

  /* Navbar */
  .nav-container {
    padding: 0 16px;
  }

  .nav-logo {
    font-size: 18px;
  }

  .nav-links {
    width: 100%;
  }
}

/* ── Extra small: ≤ 360px (older Android, iPhone SE) ── */
@media (max-width: 360px) {
  .hero-name {
    font-size: 28px;
  }

  .hero-role {
    font-size: 14px;
  }

  .hero-role-line {
    width: 24px;
  }

  .about-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .stat-item {
    min-width: 70px;
  }

  .section-title {
    font-size: 22px;
  }

  .btn {
    font-size: 13px;
    padding: 12px 20px;
  }
}

/* ── Landscape orientation on mobile ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .scroll-indicator {
    display: none;
  }

  .shape {
    opacity: 0.2;
  }
}
