/* ============================================================
   Vikas Vijendrabhai Ajudiya — Portfolio
   Clean, minimal, light theme (inspired by the reference site)
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg:         #ffffff;
  --bg-alt:     #f6f8fb;
  --text:       #1a1d24;
  --text-muted: #5b6370;
  --accent:     #1a73e8;
  --accent-dark:#1557b0;
  --border:     #e6e9ef;
  --radius:     12px;
  --maxw:       1080px;
  --nav-h:      70px;
  --font:       "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
section { scroll-margin-top: var(--nav-h); }

/* ---------- LAYOUT ---------- */
.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 54px; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; letter-spacing: -.01em;
}
.section-title::after {
  content: ""; display: block; width: 52px; height: 3px; border-radius: 3px;
  background: var(--accent); margin: 16px auto 0;
}
.section-sub { color: var(--text-muted); margin-top: 14px; }

/* ---------- NAVBAR ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h); z-index: 900;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-nav.scrolled { border-color: var(--border); box-shadow: 0 2px 16px rgba(20, 30, 60, .05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.nav-brand span { color: var(--accent); }
.nav-menu { display: flex; gap: 4px; }
.nav-menu a {
  color: var(--text-muted); font-weight: 500; font-size: .95rem; padding: 8px 14px;
  border-radius: 8px; position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--text); cursor: pointer; }

/* ---------- HERO ---------- */
.hero { padding: calc(var(--nav-h) + 70px) 0 80px; text-align: center; }
.hero-photo {
  width: 168px; height: 168px; margin: 0 auto 30px; border-radius: 50%;
  padding: 5px; background: linear-gradient(135deg, var(--accent), #5fa0f3);
}
.hero-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-alt); }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; font-weight: 600;
  color: var(--accent); margin-bottom: 12px;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hero-tagline { color: var(--text-muted); max-width: 680px; margin: 20px auto 32px; font-size: 1.08rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-badges span {
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  padding: 10px 20px; border-radius: 50px; font-size: .9rem; font-weight: 600;
}
.hero-badges span strong { color: var(--accent); }

/* ---------- SERVICES (What I Do) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 30, 60, .08); border-color: #d4dbe6; }
.service-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.25rem; color: var(--accent); background: rgba(26, 115, 232, .1); margin-bottom: 18px;
}
.service h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 9px; }
.service p { color: var(--text-muted); font-size: .94rem; }

/* ---------- SKILLS ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.skill-group {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px;
}
.skill-group h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; color: var(--text); }
.skill-group h3 i { color: var(--accent); margin-right: 8px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tags span {
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-muted);
  padding: 6px 14px; border-radius: 50px; font-size: .86rem; font-weight: 500; transition: .2s;
}
.skill-tags span:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- PROJECTS ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.project:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 30, 60, .08); border-color: #d4dbe6; }
.project-type { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.project h3 { font-size: 1.18rem; font-weight: 700; margin: 8px 0 10px; }
.project p { color: var(--text-muted); font-size: .92rem; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tags span { font-size: .76rem; padding: 4px 11px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-muted); }
.projects-note { text-align: center; color: var(--text-muted); margin-top: 40px; font-size: 1rem; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
.contact-item {
  display: flex; align-items: center; gap: 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; transition: border-color .25s, transform .25s;
}
a.contact-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-icon {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  font-size: 1.15rem; color: var(--accent); background: rgba(26, 115, 232, .1);
}
.contact-text { display: flex; flex-direction: column; line-height: 1.45; }
.contact-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.contact-item .value { font-weight: 600; color: var(--text); font-size: .96rem; word-break: break-word; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; text-align: center; }
.site-footer p { color: var(--text-muted); font-size: .9rem; }
.site-footer .sep { color: var(--border); margin: 0 8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .services-grid, .skills-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-menu {
    position: fixed; top: var(--nav-h); right: -100%; width: 72%; max-width: 300px;
    height: calc(100vh - var(--nav-h)); background: var(--bg); border-left: 1px solid var(--border);
    flex-direction: column; gap: 4px; padding: 24px 20px; transition: right .3s ease; box-shadow: -8px 0 30px rgba(20,30,60,.08);
  }
  .nav-menu.open { right: 0; }
  .nav-menu a { width: 100%; padding: 12px 14px; }
  .nav-toggle { display: block; }
  .services-grid, .skills-grid, .projects-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
