/* ── RESET & ROOT ── */
:root {
  --blue-900: #0f2d5e;
  --blue-700: #1a4fa0;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --accent: #0ea5e9;
  --green: #10b981;
  --radius: 12px;
  --shadow-sm: 0 1px 4px rgba(15, 45, 94, 0.07);
  --shadow-md: 0 4px 20px rgba(15, 45, 94, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--slate-700);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; color: var(--slate-900); }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--blue-700); }

/* ── NAVIGATION ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-300);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-700);
  cursor: pointer;
}

.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links li { position: relative; }

.nav-links button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-700);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links button:hover { color: var(--blue-500); background: var(--blue-50); }
.nav-links button.active { color: var(--blue-700); font-weight: 600; background: var(--blue-50); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--white);
  border-bottom: 1px solid var(--slate-300);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open { display: flex; }

.mobile-menu button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-700);
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu button:hover { background: var(--blue-50); color: var(--blue-500); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--accent) 100%);
  color: var(--white);
  padding: 100px 2rem 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.25rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 1.2rem;
}

.hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--white); line-height: 1.18; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-weight: 300; }
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--blue-700); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  background: linear-gradient(135deg, var(--blue-400), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  overflow: hidden;
  object-fit: cover;
  object-position: center top;
}

/* When hero-avatar is an img tag, remove the gradient bg */
img.hero-avatar {
  background: none;
  display: block;
}

.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); }
.stat-item { text-align: center; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── SECTIONS ── */
section { padding: 80px 2rem; }
.container { max-width: 860px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-500);
  margin-bottom: 0.75rem;
}

.section-label::before { content: ''; width: 18px; height: 2px; background: var(--blue-500); border-radius: 2px; }

h2.section-title { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; line-height: 1.2; }
.section-intro { color: var(--slate-500); max-width: 580px; margin-bottom: 3rem; }

/* ── ABOUT ── */
#about { background: var(--slate-100); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-300);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.about-card h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--blue-700); }
.about-card p { font-size: 0.92rem; color: var(--slate-700); line-height: 1.7; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.tag { padding: 0.2rem 0.75rem; border-radius: 999px; font-size: 0.78rem; font-weight: 500; }
.tag-blue   { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.tag-green  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.tag-purple { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }

/* ── SKILLS ── */
#skills { background: var(--white); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.skill-card {
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.skill-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { font-size: 1.6rem; margin-bottom: 0.75rem; }
.skill-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.skill-card p { font-size: 0.82rem; color: var(--slate-500); }
.skill-bar { margin-top: 0.75rem; height: 5px; background: var(--slate-100); border-radius: 3px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--accent)); border-radius: 3px; width: 0; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* ── EXPERIENCE ── */
#experience { background: var(--slate-100); }
.exp-stack { display: flex; flex-direction: column; gap: 1.25rem; }

.exp-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--slate-300);
  overflow: hidden;
  display: grid;
  grid-template-columns: 4px 1fr;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.exp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.exp-stripe { background: linear-gradient(180deg, var(--blue-500), var(--accent)); }
.exp-body { padding: 1.5rem 1.75rem; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; }
.exp-body h3 { font-size: 1rem; font-weight: 600; }
.exp-date { font-size: 0.78rem; color: var(--slate-500); background: var(--slate-100); padding: 0.2rem 0.65rem; border-radius: 4px; white-space: nowrap; }
.exp-company { font-size: 0.88rem; font-weight: 500; color: var(--blue-700); margin-bottom: 0.65rem; }
.exp-body ul { padding-left: 1.1rem; font-size: 0.88rem; color: var(--slate-500); }
.exp-body ul li { margin-bottom: 0.3rem; }

/* ── PROJECTS ── */
#projects { background: var(--white); }
.projects-stack { display: flex; flex-direction: column; gap: 1.5rem; }

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--slate-300);
  overflow: hidden;
  display: grid;
  grid-template-columns: 4px 1fr;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-stripe { background: linear-gradient(180deg, var(--blue-500), var(--accent)); }
.project-body { padding: 1.75rem 2rem; }
.project-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.project-type { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; padding: 0.2rem 0.65rem; border-radius: 4px; }
.type-game { background: #fdf4ff; color: #7e22ce; }
.type-web  { background: var(--blue-50); color: var(--blue-700); }
.project-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.project-body p { font-size: 0.9rem; color: var(--slate-500); margin-bottom: 1rem; line-height: 1.65; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-badge { background: var(--slate-100); color: var(--slate-700); font-size: 0.75rem; font-weight: 500; padding: 0.15rem 0.6rem; border-radius: 4px; }
.project-outcome { margin-top: 1rem; padding: 0.75rem 1rem; background: var(--blue-50); border-left: 3px solid var(--blue-400); border-radius: 0 6px 6px 0; font-size: 0.85rem; color: var(--blue-900); }
.project-outcome strong { color: var(--blue-700); }

/* ── WHY HIRE ME ── */
#why { background: var(--slate-100); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.why-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-100);
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.why-card h3 { font-size: 1rem; font-weight: 600; color: var(--blue-900); margin-bottom: 0.4rem; }
.why-card p { font-size: 0.88rem; color: var(--slate-700); }

.why-quote {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
}

.why-quote p { font-size: 1.05rem; font-style: italic; opacity: 0.9; line-height: 1.7; }
.why-quote .author { font-size: 0.85rem; margin-top: 0.75rem; opacity: 0.65; font-style: normal; }

/* ── CERTIFICATIONS ── */
#certifications { background: var(--white); }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cert-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cert-icon { font-size: 1.5rem; flex-shrink: 0; }
.cert-card h3 { font-size: 0.92rem; font-weight: 600; color: var(--blue-900); margin-bottom: 0.2rem; }
.cert-card p { font-size: 0.8rem; color: var(--slate-500); }

/* ── CONTACT ── */
#contact { background: var(--slate-100); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

.contact-info-heading { font-size: 1rem; color: var(--slate-500); margin-bottom: 1.25rem; font-weight: 400; font-family: 'Sora', sans-serif; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  color: var(--slate-900);
  font-weight: 500;
}

.contact-link:hover { border-color: var(--blue-400); box-shadow: var(--shadow-sm); color: var(--blue-700); transform: translateX(4px); }
.contact-icon { font-size: 1.2rem; width: 36px; text-align: center; }
.contact-detail { font-size: 0.9rem; }
.contact-detail span { display: block; font-size: 0.75rem; color: var(--slate-500); font-weight: 400; margin-top: 1px; }

.availability { background: var(--white); border-radius: var(--radius); padding: 1.75rem; border: 1.5px solid var(--slate-300); }
.availability h3 { font-size: 1rem; margin-bottom: 1rem; }
.avail-item { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 0.9rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.dot-blue  { background: var(--blue-400); }

.resume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem;
  background: var(--blue-500);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.resume-btn:hover { background: var(--blue-700); color: var(--white); transform: translateY(-1px); }

/* ── FOOTER ── */
footer { background: var(--slate-900); color: rgba(255,255,255,0.5); text-align: center; padding: 2rem; font-size: 0.85rem; }
footer strong { color: rgba(255,255,255,0.8); }

/* ── SCROLL ANIMATIONS ── */
[data-anim] { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-anim].visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .hero-inner {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .hero-avatar {
    width: 100px;
    height: 100px;
    font-size: 1.8rem;
    flex-shrink: 0;
  }
  .hero-cta-group { justify-content: center; }
  .about-grid, .why-grid, .contact-grid, .cert-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 1rem; }
  .hero-stats { gap: 1.5rem; justify-content: center; }
}

.type-ai { background: #fdf4ff; color: #7e22ce; }

/* ── COMING SOON CARD ── */
.coming-soon-card {
  border-radius: var(--radius);
  border: 2px dashed var(--slate-300);
  background: var(--slate-100);
  transition: border-color .2s, background .2s;
}
.coming-soon-card:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}
.coming-soon-inner {
  padding: 2rem;
  text-align: center;
}
.coming-soon-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.coming-soon-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: pulse 1.5s infinite;
  opacity: .5;
}
.coming-soon-dots span:nth-child(2) { animation-delay: .3s; }
.coming-soon-dots span:nth-child(3) { animation-delay: .6s; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%       { transform: scale(1.3); opacity: 1; }
}
.coming-soon-inner h3 {
  font-size: 1.1rem;
  color: var(--slate-700);
  margin-bottom: .6rem;
}
.coming-soon-inner p {
  font-size: .9rem;
  color: var(--slate-500);
  max-width: 480px;
  margin: 0 auto 1.25rem;
  line-height: 1.65;
}
.github-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.25rem;
  background: var(--slate-900);
  color: #fff;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  transition: background .2s, transform .15s;
}
.github-link:hover {
  background: var(--blue-700);
  color: #fff;
  transform: translateY(-2px);
}

/* ── FIX: 7th skill card spans full row so it doesn't sit orphaned ── */
/* Desktop (3-col): 7th card sits alone — keep it left-aligned at card width */
.skills-grid .skill-card:last-child:nth-child(3n - 2) {
  grid-column: 1 / -1;
  max-width: calc(33.333% - 0.84rem);
}

/* Mobile (2-col): 7th card sits alone — stretch it full width */
@media (max-width: 720px) {
  .skills-grid .skill-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ── 3-column cert grid for new AI certificate ── */
.cert-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}


.cert-card-featured {
  border-color: var(--blue-400);
  background: linear-gradient(135deg, var(--blue-50), #f0f9ff);
  position: relative;
}

.cert-card-featured::after {
  content: 'NEW';
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--blue-500);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Mobile: stack to 1 column */
@media (max-width: 720px) {
  .cert-grid-3 { grid-template-columns: 1fr; }
}
