/* ── TOKENS ── */
:root {
  --bg:        #1A1A1B;
  --card:      #2D2D2E;
  --text:      #FFFFFF;
  --muted:     rgba(255,255,255,0.55);
  --brand:     #00B4D8;
  --cta:       #F9A825;
  --cta-hover: #e09920;
  --border:    rgba(0,180,216,0.18);
  --glow:      rgba(0,180,216,0.25);
  --particle:  rgba(0,180,216,0.6);
  --skills-card-bg: #162436;
  --skills-card-border: rgba(0,180,216,0.24);
  --skills-text-strong: #eaf7ff;
  --skills-text-muted: #9ec9dc;
  --skills-feature-bg: rgba(0,180,216,0.12);
  --skills-feature-border: #00B4D8;
  --transition: 0.4s cubic-bezier(.25,.8,.25,1);
}
[data-theme="light"] {
  --bg:        #F8F9FA;
  --card:      #FFFFFF;
  --text:      #1A1A1B;
  --muted:     rgba(26,26,27,0.55);
  --brand:     #0077B6;
  --cta:       #00B4D8;
  --cta-hover: #0099b8;
  --border:    rgba(0,119,182,0.18);
  --glow:      rgba(0,119,182,0.15);
  --particle:  rgba(0,119,182,0.4);
  --skills-card-bg: #f7fbff;
  --skills-card-border: rgba(0,119,182,0.22);
  --skills-text-strong: #103a52;
  --skills-text-muted: #3d6880;
  --skills-feature-bg: rgba(0,119,182,0.08);
  --skills-feature-border: #0077B6;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── CUSTOM CURSOR ── */
.cursor-dot, .cursor-ring {
  position: fixed; pointer-events: none; z-index: 9999; border-radius: 50%;
  transition: transform 0.15s ease, opacity 0.3s ease;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--brand);
  transform: translate(-50%,-50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--brand);
  transform: translate(-50%,-50%) scale(1);
  opacity: 0.6;
  transition: transform 0.25s ease, width 0.25s ease, height 0.25s ease, opacity 0.3s ease;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { transform: translate(-50%,-50%) scale(1.6); opacity: 1; }

/* ── PARTICLES CANVAS ── */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 4rem;
  background: rgba(26,26,27,0.6);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="light"] nav { background: rgba(248,249,250,0.7); }
.nav-left {
  display: flex; align-items: center; gap: 1rem;
}
.nav-photo-btn {
  width: 40px; height: 40px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-photo-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--glow);
}
.nav-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-controls {
  display: flex; align-items: center; gap: 1rem;
}
.lang-toggle {
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.theme-toggle {
  width: 44px; height: 24px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  position: relative; cursor: pointer;
  transition: background var(--transition);
}
.theme-toggle::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
[data-theme="light"] .theme-toggle::after { transform: translateX(20px); }

/* ── BURGER MENU ── */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 24px;
}
.burger-menu span {
  width: 100%;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ── SECTIONS WRAPPER ── */
main { position: relative; z-index: 1; }
section { padding: 7rem 4rem; max-width: 1280px; margin: 0 auto; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding-top: 8rem;
}
.hero-left { display: flex; flex-direction: column; gap: 1.6rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem; font-weight: 500;
  color: var(--brand);
  width: fit-content;
  animation: fadeUp 0.8s ease both;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.4} }
.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800; line-height: 1.02;
  letter-spacing: -0.04em;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-name .accent { color: var(--brand); }
.hero-title {
  font-size: 1.4rem; font-weight: 300; color: var(--muted);
  min-height: 2rem;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-title .typed-cursor { color: var(--brand); animation: blink 0.75s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }
.hero-desc {
  font-size: 1.05rem; line-height: 1.8; color: var(--muted); max-width: 480px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--cta); color: #1A1A1B;
  padding: 0.85rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  cursor: pointer; border: none;
}
.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(249,168,37,0.35);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--brand);
  padding: 0.85rem 2rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid var(--brand);
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--glow); transform: translateY(-2px); }
.hero-socials {
  display: flex; gap: 1rem;
  animation: fadeUp 0.8s 0.5s ease both;
}
.social-pill {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 99px; font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.2s;
}
.social-pill:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.social-pill svg { width: 14px; height: 14px; }

/* ── HERO IMAGE ── */
.hero-right {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  animation: fadeLeft 0.9s 0.2s ease both;
}
.hero-img-wrap {
  position: relative; width: 480px; height: 520px;
}
.hero-img-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{transform:scale(1);opacity:0.8}50%{transform:scale(1.08);opacity:1} }
.hero-img-ring {
  position: absolute; inset: 20px;
  border: 1.5px dashed var(--border);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }
.hero-img-ring::before, .hero-img-ring::after {
  content: ''; position: absolute; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand);
}
.hero-img-ring::before { top: -5px; left: 50%; transform: translateX(-50%); }
.hero-img-ring::after { bottom: -5px; left: 50%; transform: translateX(-50%); }
.hero-img-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,180,216,0.3));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-18px)} }
.hero-stat-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem 1.2rem;
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
}
.hero-stat-card .stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--brand);
}
.hero-stat-card .stat-label { color: var(--muted); font-size: 0.75rem; }
.stat-repos { top: 60px; left: -30px; animation: fadeUp 1s 0.8s ease both; }
.stat-stars { bottom: 110px; right: -30px; animation: fadeUp 1s 1s ease both; }

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em;
  animation: fadeUp 1s 1.2s ease both;
  margin-top: 2rem;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--brand), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown { 0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom} }

/* ── ABOUT ── */
#about { padding-top: 3rem; }
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text { font-size: 1rem; line-height: 1.9; color: var(--muted); }
.about-text p + p { margin-top: 1rem; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.info-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: 0 16px 40px var(--glow); }
.info-card-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.info-card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.info-card-sub { font-size: 0.82rem; color: var(--muted); }

/* ── SKILLS ── */
#skills { background: var(--card); border-radius: 32px; }
.skills-section {
  margin-bottom: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border);
}
.skills-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.skills-subtitle {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem;
}
.skills-subtitle:before {
  content: ''; width: 4px; height: 4px; background: var(--brand);
  border-radius: 50%;
}
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.skill-chip {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 0.9rem 1.2rem;
  font-size: 0.9rem; font-weight: 500;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, color 0.3s;
  cursor: default;
}
.skill-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 32px var(--glow); }
.skill-chip .sk-icon { font-size: 1.4rem; }
.skills-bar-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.skill-bar { display: flex; flex-direction: column; gap: 0.5rem; }
.skill-bar-header { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 500; }
.skill-bar-pct { color: var(--brand); }
.bar-track { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--cta));
  width: 0; transition: width 1.2s cubic-bezier(.25,.8,.25,1);
}

/* ── PROFICIENCY CARDS ── */
.proficiency-section { margin-top: 2rem; }
.proficiency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
}
.proficiency-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  position: relative;
  overflow: hidden;
}
.proficiency-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.25,.8,.25,1);
}
.proficiency-card:hover {
  border-color: var(--brand);
  transform: translateY(-8px);
  box-shadow: 0 16px 40px var(--glow);
}
.proficiency-card:hover::before {
  transform: scaleX(1);
}
.proficiency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.proficiency-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.proficiency-pct {
  background: rgba(0, 180, 216, 0.15);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 180, 216, 0.3);
}
.proficiency-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
}
.proficiency-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--cta));
  transition: width 0.6s cubic-bezier(.25,.8,.25,1);
}
.proficiency-meta {
  font-size: 0.77rem;
  color: var(--muted);
  font-style: italic;
}

/* ── CREDENTIALS GRID ── */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.credentials-card {
  background: var(--skills-card-bg);
  border: 1px solid var(--skills-card-border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.credentials-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 16px rgba(0,180,216,0.2);
  transform: translateY(-4px);
}
.certifications-card {
  grid-column: span 1;
}
.tech-proficiency-card {
  grid-column: span 2;
}
.sign-speak-card {
  grid-column: span 3;
  background: var(--skills-card-bg);
  border-color: var(--skills-card-border);
}

.card-title {
  margin: 0 0 1rem 0;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.title-emoji {
  font-size: 1.3rem;
}

/* Certifications List */
.certifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.cert-item {
  border-bottom: 1px solid var(--skills-card-border);
  padding-bottom: 1rem;
  font-size: 0.9rem;
}
.cert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cert-name {
  display: block;
  color: var(--skills-text-strong);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.cert-detail {
  display: block;
  color: var(--skills-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Technical Proficiency Table */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: var(--skills-text-muted);
}
.tech-row {
  border-bottom: 1px solid var(--skills-card-border);
}
.tech-row:last-child {
  border-bottom: none;
}
.tech-category {
  padding: 0.8rem 0;
  font-weight: 600;
  color: var(--skills-text-strong);
  width: 30%;
  vertical-align: top;
}
.tech-items {
  padding: 0.8rem 0 0.8rem 1.2rem;
  line-height: 1.5;
}

/* Sign Speak Project Card */
.project-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  gap: 1rem;
}
.project-title-group {
  flex: 1;
}
.project-title-group .card-title {
  margin: 0 0 0.3rem 0;
}
.project-role {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}
.project-badge {
  background: var(--brand);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: inline-block;
}
.project-description {
  font-size: 0.9rem;
  color: var(--skills-text-muted);
  line-height: 1.6;
  margin: 0 0 1.2rem 0;
}
.project-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-box {
  background: var(--skills-feature-bg);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--skills-feature-border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.feature-title {
  display: block;
  color: var(--skills-text-strong);
  font-size: 0.9rem;
}
.feature-text {
  display: block;
  color: var(--skills-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: normal;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .tech-proficiency-card {
    grid-column: span 1;
  }
  .sign-speak-card {
    grid-column: span 2;
  }
  .project-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .credentials-card {
    padding: 1.4rem;
  }
}

@media (max-width: 768px) {
  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .certifications-card,
  .tech-proficiency-card,
  .sign-speak-card {
    grid-column: span 1;
  }
  .credentials-card {
    padding: 1.2rem;
    border-radius: 10px;
  }
  .card-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  .title-emoji {
    font-size: 1.2rem;
  }
  .certifications-list {
    gap: 1rem;
  }
  .cert-item {
    padding-bottom: 0.8rem;
    font-size: 0.85rem;
  }
  .cert-name {
    font-size: 0.9rem;
  }
  .cert-detail {
    font-size: 0.8rem;
  }
  .tech-table {
    font-size: 0.85rem;
  }
  .tech-category {
    width: 35%;
    padding: 0.6rem 0;
  }
  .tech-items {
    padding: 0.6rem 0 0.6rem 0.8rem;
  }
  .project-header-row {
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
  }
  .project-badge {
    padding: 0.35rem 0.8rem;
    font-size: 0.7rem;
    width: fit-content;
  }
  .project-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  .project-features {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .feature-box {
    padding: 0.8rem;
  }
  .feature-title {
    font-size: 0.85rem;
  }
  .feature-text {
    font-size: 0.8rem;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  #skills {
    padding: 2rem 1.5rem;
  }
  .section-title {
    font-size: 1.4rem !important;
  }
  .section-label {
    font-size: 0.75rem !important;
  }
  .credentials-grid {
    gap: 0.8rem;
  }
  .credentials-card {
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    gap: 0.4rem;
  }
  .title-emoji {
    font-size: 1rem;
  }
  .certifications-list {
    gap: 0.8rem;
  }
  .cert-item {
    padding-bottom: 0.6rem;
    font-size: 0.8rem;
    margin-bottom: 0rem;
  }
  .cert-name {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }
  .cert-detail {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .tech-table {
    font-size: 0.8rem;
  }
  .tech-row {
    display: block;
    border-bottom: 1px solid var(--skills-card-border);
    padding: 0.6rem 0;
    margin-bottom: 0.6rem;
  }
  .tech-row:last-child {
    border-bottom: none;
  }
  .tech-category {
    display: block;
    width: 100%;
    font-size: 0.85rem;
    padding: 0;
    margin-bottom: 0.3rem;
  }
  .tech-items {
    display: block;
    padding: 0;
    font-size: 0.75rem;
  }
  .project-header-row {
    margin-bottom: 0.8rem;
  }
  .project-title-group .card-title {
    margin-bottom: 0.2rem;
  }
  .project-role {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }
  .project-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
    margin-top: 0.4rem;
  }
  .project-description {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
  }
  .project-features {
    gap: 0.6rem;
  }
  .feature-box {
    padding: 0.7rem;
    border-radius: 6px;
  }
  .feature-title {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }
  .feature-text {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

/* Small Phones (iPhone SE size) */
@media (max-width: 375px) {
  #skills {
    padding: 1.5rem 1rem;
  }
  .section-title {
    font-size: 1.3rem !important;
  }
  .credentials-card {
    padding: 0.9rem;
  }
  .card-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .title-emoji {
    font-size: 0.95rem;
  }
  .cert-item {
    font-size: 0.78rem;
    padding-bottom: 0.5rem;
  }
  .cert-detail {
    font-size: 0.7rem;
  }
  .tech-table {
    font-size: 0.75rem;
  }
  .tech-category {
    font-size: 0.8rem;
  }
  .tech-items {
    font-size: 0.7rem;
  }
  .project-description {
    font-size: 0.77rem;
  }
  .feature-box {
    padding: 0.6rem;
  }
  .feature-title {
    font-size: 0.77rem;
  }
  .feature-text {
    font-size: 0.7rem;
  }
}

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.project-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cta));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.project-card:hover { border-color: var(--brand); transform: translateY(-6px); box-shadow: 0 20px 50px var(--glow); }
.project-card:hover::before { transform: scaleX(1); }
.project-meta { display: flex; justify-content: space-between; align-items: start; }
.project-icon { font-size: 2rem; }
.project-stars {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; color: var(--cta);
  background: rgba(249,168,37,0.12); padding: 0.25rem 0.6rem; border-radius: 99px;
}
.project-name { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; }
.project-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; flex: 1; }
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem; border-radius: 99px;
  background: rgba(249,168,37,0.15); color: var(--cta);
  border: 1px solid rgba(249,168,37,0.35);
}
.project-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.83rem; font-weight: 600; color: var(--cta);
  transition: gap 0.3s;
}
.project-link:hover { gap: 0.7rem; }

/* ── BLOG ── */
#blog { background: var(--card); border-radius: 32px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.blog-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: 0 16px 40px var(--glow); }
.blog-img {
  height: 180px;
  background: linear-gradient(135deg, var(--card) 0%, rgba(0,180,216,0.15) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
}
.blog-body { padding: 1.4rem; }
.blog-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 0.5rem;
}
.blog-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-excerpt { font-size: 0.84rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.77rem; color: var(--muted); }
.blog-soon,
.blog-status {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 99px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-soon { background: rgba(249, 168, 37, 0.15); color: var(--cta); }
.blog-status { background: rgba(249, 168, 37, 0.15); color: var(--cta); }

/* ── CONTACT ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.4rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s, transform 0.3s;
}
.contact-item:hover { border-color: var(--brand); transform: translateX(6px); }
.contact-item-icon {
  width: 42px; height: 42px;
  background: rgba(0,180,216,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-item-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.15rem; }
.contact-item-val { font-size: 0.95rem; font-weight: 500; color: var(--brand); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.form-group input, .form-group textarea {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 0.85rem 1rem;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  outline: none; resize: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--glow);
}
.form-group textarea { height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 4rem 2rem;
  background: var(--bg);
}
.footer-content {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
  margin-bottom: 2rem; max-width: 1200px; margin-left: auto; margin-right: auto;
}
.footer-section { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-brand {
  font-family: 'Syne', sans-serif; font-weight: 800;
  color: var(--brand); font-size: 1.3rem;
}
.footer-subtitle {
  font-size: 0.85rem; color: var(--muted); line-height: 1.5;
}
.footer-credit {
  font-size: 0.8rem; color: var(--muted); font-style: italic; margin-top: 0.5rem;
}
.footer-heading {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}
.footer-links {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.footer-link {
  color: var(--muted); font-size: 0.85rem;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
}
.footer-link:hover {
  color: var(--brand); padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-copyright {
  color: var(--muted); font-size: 0.8rem;
  line-height: 1.6;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)} }
@keyframes fadeLeft { from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:translateX(0)} }
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0.8rem 1.5rem; }
  .nav-left { gap: 0.8rem; }
  .nav-logo { font-size: 1.1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }
  section { padding: 5rem 1.5rem; }
  #hero { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; }
  .hero-right { order: -1; }
  .hero-img-wrap { width: 280px; height: 300px; }
  .stat-repos, .stat-stars { display: none; }
  .hero-ctas, .hero-socials { justify-content: center; }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
  footer { padding: 2rem 1.5rem; text-align: center; }
}

@media (max-width: 640px) {
  nav { padding: 0.7rem 1rem; }
  .nav-photo-btn { width: 36px; height: 36px; }
  .nav-logo { font-size: 1rem; }
  .burger-menu { display: flex !important; }
  .nav-links { gap: 0.8rem; display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(26,26,27,0.95); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); padding: 1rem; }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 0.75rem; padding: 0.5rem 0; }
  .nav-controls { gap: 0.6rem; }
  section { padding: 3.5rem 1.2rem; text-align: center; }
  .section-label { font-size: 0.7rem !important; }
  .section-title { font-size: 1.5rem !important; }
  .about-text, .about-cards { text-align: center; }
  .about-cards { justify-content: center; margin: 0 auto; }
  .credentials-grid { justify-items: center; }
  .projects-grid { justify-items: center; }
  .blog-grid { justify-items: center; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.1rem !important; }
}

@media (max-width: 480px) {
  nav { padding: 0.6rem 0.8rem; }
  .nav-logo { font-size: 0.95rem; }
  .burger-menu { display: flex !important; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(26,26,27,0.95); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); padding: 1rem; }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 0.75rem; padding: 0.5rem 0; }
  .nav-controls { gap: 0.5rem; }
  section { padding: 2.5rem 1rem; }
  main { margin: 0; }
  #hero { text-align: center; }
  .hero-left { align-items: center; margin: 0 auto; }
  .hero-badge { margin: 0 auto; }
  .hero-ctas, .hero-socials { justify-content: center; }
  .section-label { font-size: 0.65rem !important; }
  .section-title { font-size: 1.3rem !important; text-align: center; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1rem !important; }
  .hero-name { font-size: 1.5rem !important; }
  .hero-desc { font-size: 0.85rem !important; margin: 0 auto; }
  .about-cards { gap: 0.6rem; justify-content: center; }
  .info-card { padding: 0.8rem; }
  .info-card-title { font-size: 0.9rem; }
  .credentials-card { max-width: 100%; margin: 0 auto; }
  .project-card { max-width: 100%; margin: 0 auto; }
  .blog-card { max-width: 100%; margin: 0 auto; }
  .credentials-grid { justify-items: center; }
  .projects-grid { justify-items: center; }
  .blog-grid { justify-items: center; }
}

@media (max-width: 375px) {
  nav { padding: 0.5rem 0.6rem; }
  nav-left { gap: 0.4rem; }
  .nav-photo-btn { width: 32px; height: 32px; }
  .nav-logo { font-size: 0.9rem; }
  .burger-menu { display: flex !important; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(26,26,27,0.95); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); padding: 1rem; }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 0.7rem; padding: 0.5rem 0; }
  section { padding: 2rem 0.8rem; text-align: center; }
  #hero { text-align: center; }
  .hero-left { align-items: center; margin: 0 auto; }
  .hero-badge { margin: 0 auto; }
  .hero-ctas, .hero-socials { justify-content: center; }
  .hero-desc { margin: 0 auto; }
  .section-title { font-size: 1.2rem !important; text-align: center; }
  h2 { font-size: 1.1rem !important; }
  h3 { font-size: 0.95rem !important; }
  .about-cards { justify-content: center; }
  .credentials-card { max-width: 100%; margin: 0 auto; }
  .project-card { max-width: 100%; margin: 0 auto; }
  .blog-card { max-width: 100%; margin: 0 auto; }
  .credentials-grid { justify-items: center; }
  .projects-grid { justify-items: center; }
  .blog-grid { justify-items: center; }
}

/* Projects and Blog Mobile Optimization */
@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
  }
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
  }
  .project-card, .blog-card {
    padding: 1.4rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .project-card, .blog-card {
    padding: 1.2rem;
    border-radius: 12px;
  }
  .project-name, .blog-title {
    font-size: 0.95rem !important;
  }
  .project-desc, .blog-excerpt {
    font-size: 0.8rem;
  }
  .tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
  .project-link {
    font-size: 0.8rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .form-group input, .form-group textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }
  .form-group label {
    font-size: 0.8rem;
  }
  .contact-form {
    gap: 0.8rem;
  }
}

@media (max-width: 375px) {
  .projects-grid {
    gap: 0.8rem;
  }
  .blog-grid {
    gap: 0.8rem;
  }
  .project-card, .blog-card {
    padding: 1rem;
  }
  .project-name, .blog-title {
    font-size: 0.9rem;
  }
  .project-desc, .blog-excerpt {
    font-size: 0.77rem;
  }
}
