/* =========================================================
   Profile site — Shaikh Abdul Hameed Mannan
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:         #0f1b3d;   /* deep navy */
  --bg-alt:     #142453;
  --surface:    #1b2d63;
  --border:     #2e4285;
  --text:       #f1f4ff;
  --muted:      #b0bbe0;
  --accent:     #ffa25a;   /* warm orange */
  --accent-2:   #5eead4;   /* mint */
  --on-accent:  #1a1240;
  --radius:     12px;
  --max-width:  1100px;
  --font:       "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: #0f1b3d; }
body {
  font-family: var(--font);
  background: linear-gradient(160deg, #0f1b3d 0%, #1c1650 55%, #0f1b3d 100%) fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Helpers ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.mono   { font-family: var(--mono); }
.accent { color: var(--accent); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: rgba(255,162,90,.12); }
.btn--small { padding: 8px 16px; font-size: .9rem; }
.btn--large { padding: 16px 32px; font-size: 1.1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,27,61,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo  { font-weight: 700; color: var(--text); font-size: 1.2rem; letter-spacing: -.01em; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 100px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,162,90,.28), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -250px;
  width: 550px; height: 550px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.30), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  background: linear-gradient(90deg, #ffffff, #ffd2ad 60%, #ffa25a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__eyebrow  { color: var(--accent-2); margin-bottom: 12px; }
.hero__title    { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.1; font-weight: 700; }
.hero__subtitle { font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--muted); font-weight: 500; margin: 12px 0 24px; }
.hero__text     { max-width: 620px; color: var(--muted); font-size: 1.1rem; }
.hero__actions  { display: flex; flex-wrap: wrap; gap: 16px; margin: 36px 0 56px; }
.hero__stats    { display: flex; flex-wrap: wrap; gap: 48px; }
.hero__stats strong { display: block; font-size: 2rem; color: var(--text); }
.hero__stats span   { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section       { padding: 96px 0; }
.section--alt  { background: rgba(20,36,83,.55); }
.section__title {
  font-size: 1.9rem; margin-bottom: 48px;
  display: flex; align-items: center; gap: 12px;
}
.section__title.center { justify-content: center; }
.section__title .mono { font-size: 1.2rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.about__text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about__text strong { color: var(--text); }
.about__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.avatar {
  width: 110px; height: 110px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2.2rem; font-weight: 700; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
}
.about__facts li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--border); text-align: right; font-size: .95rem;
}
.about__facts span { color: var(--muted); text-align: left; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.skill-card h3 { font-size: 1.05rem; margin-bottom: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--mono); font-size: .8rem;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(94,234,212,.1); color: var(--accent-2);
  border: 1px solid rgba(94,234,212,.3);
}
.tags--small li { font-size: .72rem; padding: 3px 10px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline__item { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding-bottom: 40px; }
.timeline__item::before {
  content: ""; position: absolute; left: -28px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline__item:first-child::before { background: var(--accent); }
.timeline__meta { color: var(--accent-2); font-size: .85rem; padding-top: 4px; }
.timeline__body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.timeline__body h3 span { color: var(--accent); font-weight: 500; }
.timeline__body ul li { color: var(--muted); padding-left: 20px; position: relative; margin-bottom: 6px; }
.timeline__body ul li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

.earlier {
  margin-top: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
}
.earlier summary { cursor: pointer; font-weight: 600; }
.earlier ul { margin-top: 16px; }
.earlier li { color: var(--muted); padding: 6px 0; border-top: 1px solid var(--border); }
.earlier li strong { color: var(--text); }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.project {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s;
}
.project:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.project__top { color: var(--accent); font-size: .9rem; }
.project h3 { font-size: 1.15rem; }
.project p  { color: var(--muted); flex: 1; }

/* ---------- Contact ---------- */
.contact { text-align: center; max-width: 640px; }
.contact__text { color: var(--muted); font-size: 1.1rem; margin-bottom: 36px; }
.socials { display: flex; justify-content: center; gap: 32px; margin-top: 40px; }
.socials a { color: var(--muted); font-family: var(--mono); transition: color .2s; }
.socials a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; text-align: center; }
.footer p { color: var(--muted); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 24px;
    background: #142453; border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 0; width: 100%; }
  .nav__links .btn { text-align: center; margin-top: 8px; }

  .hero { padding: 72px 0 64px; }
  .hero__stats { gap: 28px; }
  .section { padding: 64px 0; }
  .skills, .projects { grid-template-columns: 1fr; }
  .socials { gap: 20px; }
}

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