/* =========================================================================
   Vikas Vijendrabhai Ajudiya — Freelance Software Developer
   Static portfolio styles. Mobile-first, light theme, single accent (blue).
   ========================================================================= */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  --accent:        #2563eb;
  --accent-dark:   #1d4ed8;
  --accent-soft:   #eaf1ff;
  --accent-ring:   rgba(37, 99, 235, 0.35);

  --text:          #0f172a;
  --text-muted:    #475569;
  --text-soft:     #64748b;

  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --bg-deep:       #0f1c34;

  --border:        #e2e8f0;
  --border-strong: #cbd5e1;

  --card:          #ffffff;
  --shadow-sm:     0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md:     0 10px 25px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg:     0 24px 50px -20px rgba(15, 23, 42, 0.28);

  --radius:        14px;
  --radius-lg:     22px;
  --radius-pill:   999px;

  --container:     1120px;
  --header-h:      68px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----- Reset / base ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 64px;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: 38px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.06rem;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--accent-ring);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }

.btn-block { width: 100%; }

/* ----- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #4f86ff);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-menu.open ~ .nav-toggle span:nth-child(1),
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.nav-menu.open { display: flex; }

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--accent); }

.nav-cta { margin-top: 8px; }
.nav-cta .btn { width: 100%; }

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 64px;
  background:
    radial-gradient(900px 460px at 88% -8%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg-alt));
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--accent); }

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .95rem;
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.hero-meta svg { color: var(--accent); flex: none; }

/* Portrait with monogram fallback */
.hero-visual { justify-self: center; }
.hero-portrait {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--accent), #1e3a8a);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-monogram {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: .02em;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- About ------------------------------------------------------------ */
.about-grid {
  display: grid;
  gap: 32px;
}
.about-body p { color: var(--text-muted); font-size: 1.06rem; }
.about-body p strong { color: var(--text); font-weight: 600; }

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  align-self: start;
}
.about-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.about-list { list-style: none; display: grid; gap: 12px; }
.about-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: .98rem;
}
.about-list svg { color: var(--accent); flex: none; margin-top: 3px; }

/* ----- Services --------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .97rem; margin: 0; }

/* ----- Skills ----------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .96rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

/* ----- Contact ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-item .ci-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-item .ci-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 2px;
}
.contact-item .ci-value { color: var(--text); font-weight: 500; word-break: break-word; }
.contact-item a.ci-value:hover { color: var(--accent); }
.contact-item address { font-style: normal; color: var(--text-muted); font-weight: 400; }

/* Form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #94a3b8; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.field textarea { resize: vertical; min-height: 132px; }

.form-status {
  margin: 12px 0 0;
  font-size: .92rem;
  color: var(--text-muted);
  min-height: 1.2em;
}
.form-note {
  margin: 6px 0 18px;
  font-size: .88rem;
  color: var(--text-soft);
}

/* ----- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--bg-deep);
  color: #c7d2e2;
  padding-block: 52px 26px;
}
.footer-grid {
  display: grid;
  gap: 34px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand p { color: #93a4bd; max-width: 320px; margin-top: 14px; font-size: .96rem; }

.footer-contact { list-style: none; display: grid; gap: 10px; font-size: .96rem; }
.footer-contact a { color: #c7d2e2; }
.footer-contact a:hover { color: #fff; }
.footer-contact address { font-style: normal; color: #93a4bd; line-height: 1.6; }

.footer-links { list-style: none; display: grid; gap: 10px; font-size: .96rem; }
.footer-links a { color: #c7d2e2; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: .9rem;
  color: #8ea1bb;
}
.footer-bottom-links { display: flex; gap: 18px; list-style: none; }
.footer-bottom-links a { color: #8ea1bb; }
.footer-bottom-links a:hover { color: #fff; }

/* ----- Legal pages ------------------------------------------------------ */
.legal {
  padding-block: 48px 64px;
}
.legal-head {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.legal-head h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 8px; }
.legal-head .updated { color: var(--text-soft); font-size: .95rem; margin: 0; }
.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 10px;
}
.legal-body p,
.legal-body li { color: var(--text-muted); }
.legal-body ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal-body li { margin-bottom: 8px; }
.legal-body address {
  font-style: normal;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  line-height: 1.7;
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 8px;
}

/* ----- Reveal animation (progressive enhancement) ----------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .chip:hover { transform: none; }
}

/* ----- Responsive ------------------------------------------------------- */
@media (min-width: 620px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
  .section { padding-block: 88px; }
  .hero { padding-block: 76px 88px; }
  .about-grid { grid-template-columns: 1.5fr 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-links { flex-direction: row; gap: 4px; }
  .nav-links a { padding: 9px 14px; }
  .nav-cta { margin-top: 0; margin-left: 10px; }
  .nav-cta .btn { width: auto; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .hero-visual { justify-self: end; }
  .hero-portrait { width: min(360px, 32vw); }
}
