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

:root {
  --bg:         #ffffff;
  --bg-alt:     #f7f8fa;
  --border:     #e8eaed;
  --text:       #1a1a2e;
  --text-muted: #6b7280;
  --accent:     #4f46e5;
  --accent-light: #ede9fe;
  --accent-hover: #4338ca;
  --card-shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --card-hover:  0 4px 20px rgba(79,70,229,.12), 0 1px 6px rgba(0,0,0,.06);
  --radius:     12px;
  --radius-sm:  8px;
  --font: 'Inter', system-ui, sans-serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.07); }

.nav-container {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.4rem; font-weight: 800; color: var(--text);
  letter-spacing: -.5px;
}
.logo-dot { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-link {
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  display: flex; align-items: center; gap: .4rem;
  background: var(--text); color: #fff;
  padding: .45rem 1rem; border-radius: 6px;
  font-size: .85rem; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

/* hamburger removed — not needed */

/* ===== SECTION COMMON ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; font-size: .78rem; font-weight: 700;
  color: var(--accent); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
  color: var(--text); letter-spacing: -.02em; line-height: 1.2;
  margin-bottom: .6rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,.3); }
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--text-muted); border-color: transparent; cursor: default;
}
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 64px;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .5;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-container {
  position: relative; max-width: 1100px; margin: 0 auto;
  padding: 4rem 1.5rem; text-align: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-light); color: var(--accent);
  padding: .35rem 1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; margin-bottom: 1.5rem;
  border: 1px solid rgba(79,70,229,.2);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-name {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.04em;
  margin-bottom: .5rem; color: var(--text);
}
.hero-name .accent { color: var(--accent); }

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted); font-weight: 500; margin-bottom: 1.2rem;
}

.hero-tagline {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--text-muted); max-width: 540px; margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-tagline .highlight { color: var(--accent); font-weight: 600; }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: inline-flex; align-items: center; gap: 2rem;
  background: var(--bg); border: 1px solid var(--border);
  padding: 1.2rem 2rem; border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; margin-top: .2rem; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--text-muted); font-size: .75rem;
}
.scroll-mouse {
  width: 22px; height: 36px; border: 2px solid var(--border);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
  width: 4px; height: 8px; background: var(--accent);
  border-radius: 2px; animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-intro { font-size: 1.05rem; color: var(--text) !important; line-height: 1.8; }
.about-intro strong { color: var(--text); }

.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem;
}
.highlight-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; color: var(--text-muted); font-weight: 500;
}
.highlight-item i { color: var(--accent); font-size: .9rem; width: 16px; }

.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  transition: all var(--transition);
}
.info-card:hover { border-color: var(--accent); box-shadow: var(--card-hover); transform: translateY(-2px); }
.info-card-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: .8rem;
}
.info-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.info-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.project-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  position: relative; transition: all var(--transition);
  display: flex; flex-direction: column;
}
.project-card:hover { border-color: var(--accent); box-shadow: var(--card-hover); transform: translateY(-4px); }
.project-card.featured { border-color: rgba(79,70,229,.3); }

.project-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: var(--accent-light); color: var(--accent);
  font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .05em;
}
.private-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #f3f4f6; color: #6b7280;
  font-size: .72rem; font-weight: 700; padding: .25rem .6rem;
  border-radius: 999px; border: 1px solid #e5e7eb;
  letter-spacing: .02em;
}
.private-badge i { font-size: .68rem; }

.project-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.project-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem;
  transition: all var(--transition);
}
.icon-link:hover { background: var(--text); color: #fff; border-color: var(--text); transform: translateY(-1px); }

.project-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; line-height: 1.3; }
.project-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 1.2rem; }

.project-stack { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.tag {
  background: var(--bg-alt); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 4px;
  font-size: .75rem; font-weight: 600; padding: .2rem .55rem;
}

.project-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; }
.project-note {
  margin-top: auto; padding-top: .8rem;
  font-size: .8rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .4rem;
}
.project-note i { color: var(--accent); }

/* ===== SKILLS ===== */
.skills-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.skill-cat-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.skill-cat-title i { color: var(--accent); }

.skill-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.skill-pill {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: .5rem .9rem;
  font-size: .85rem; font-weight: 500;
  transition: all var(--transition);
}
.skill-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79,70,229,.1); }
.skill-icon { font-size: 1rem; color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* Devicon sizing */
.skill-icon-dev { font-size: 1.15rem; line-height: 1; }

.dart-icon, .cs-icon, .net-icon, .db-icon, .flutter-icon {
  width: 20px; height: 20px; background: var(--accent-light);
  color: var(--accent); border-radius: 4px;
  font-size: .65rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* Certs */
.certs-section { border-top: 1px solid var(--border); padding-top: 2.5rem; }
.certs-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; text-align: center; }
.certs-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cert-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.5rem;
  transition: all var(--transition);
}
.cert-card:hover { border-color: var(--accent); box-shadow: var(--card-hover); transform: translateY(-2px); }
.cert-icon { color: var(--accent); font-size: 1.4rem; }
.cert-name { display: block; font-size: .9rem; font-weight: 600; }
.cert-issuer { font-size: .78rem; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-bottom: 2.5rem;
}
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--accent); box-shadow: var(--card-hover); transform: translateY(-3px); }
.contact-card:hover .contact-arrow { transform: translateX(4px); color: var(--accent); }

.contact-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--bg-alt); color: var(--text);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-icon.linkedin { background: #e8f4fd; color: #0077b5; }
.contact-icon.email { background: #fef3c7; color: #d97706; }
.contact-icon.phone { background: #f0fdf4; color: #16a34a; }

.contact-info { flex: 1; min-width: 0; }
.contact-label { display: block; font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.contact-value {
  font-size: .88rem; font-weight: 600; color: var(--text);
  word-break: break-all; white-space: normal;
  display: block;
}
.contact-arrow { color: var(--text-muted); font-size: .85rem; transition: all var(--transition); }

.resume-cta { text-align: center; padding-top: 1.5rem; }
.resume-cta p { color: var(--text-muted); margin-bottom: 1rem; font-size: .95rem; }

/* ===== FOOTER ===== */
.footer { background: var(--text); color: rgba(255,255,255,.7); padding: 2rem 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-copy { font-size: .82rem; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a {
  color: rgba(255,255,255,.5); font-size: 1rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 768px) {
  /* Nav — always visible, compact inline row, no hamburger */
  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    gap: .5rem;
    background: none;
    z-index: auto;
    bottom: auto;
    top: auto; left: auto; right: auto;
  }
  .nav-link { font-size: .75rem; font-weight: 600; }
  /* Hide Resume button in nav — bottom bar has it */
  .nav-cta { display: none; }

  /* Reserve space for sticky bottom bar */
  body { padding-bottom: 72px; }

  /* Hero */
  .hero-container { padding: 3rem 1.25rem; }
  .hero-stats {
    flex-direction: row; gap: 1.2rem; padding: 1rem 1.5rem;
    width: 100%; justify-content: center;
  }
  .stat-num { font-size: 1.3rem; }
  .stat-divider { width: 1px; height: 32px; }
  .scroll-indicator { display: none; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-highlights { grid-template-columns: 1fr 1fr; }
  .about-cards { flex-direction: row; flex-wrap: wrap; }
  .info-card { flex: 1 1 140px; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { padding: 1.4rem; }

  /* Skills */
  .skills-content { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* Contact — 1 column, finger-friendly */
  .contact-grid { grid-template-columns: 1fr; gap: .8rem; }
  .contact-card { padding: 1.1rem 1.25rem; min-height: 68px; }
  .contact-icon { width: 48px; height: 48px; font-size: 1.2rem; }
  .contact-value { font-size: .95rem; word-break: break-all; white-space: normal; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 2.5rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer { padding-bottom: .5rem; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-stats {
    flex-direction: row; gap: .8rem; padding: .9rem 1rem;
  }
  .stat-num { font-size: 1.15rem; }
  .stat-label { font-size: .68rem; }

  .about-highlights { grid-template-columns: 1fr; }
  .about-cards { flex-direction: column; }

  .skills-content { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .certs-grid { flex-direction: column; }
  .cert-card { width: 100%; }

  .section { padding: 48px 0; }
  .container { padding: 0 1rem; }
}

/* ===== STICKY MOBILE BOTTOM BAR ===== */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  height: 68px;
  padding: 0 .5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
}
.mbar-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px;
  color: var(--text-muted); font-size: .68rem; font-weight: 600;
  text-decoration: none; letter-spacing: .02em;
  border-radius: 10px; margin: 6px 4px;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mbar-btn i { font-size: 1.25rem; transition: transform var(--transition); }
.mbar-btn:active { transform: scale(.93); }

/* GitHub */
.mbar-github:hover, .mbar-github:active { color: var(--text); background: var(--bg-alt); }
/* LinkedIn */
.mbar-linkedin:hover, .mbar-linkedin:active { color: #0077b5; background: #e8f4fd; }
/* Resume — accent pill */
.mbar-resume {
  background: var(--accent); color: #fff !important;
  border-radius: 12px; margin: 8px 6px; flex: 1.2;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.mbar-resume:hover, .mbar-resume:active { background: var(--accent-hover); }
.mbar-resume span { color: #fff; }

@media (max-width: 768px) {
  .mobile-bar { display: flex; }
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
