/* ============================================
   ABDUL QADOOS — PORTFOLIO STYLESHEET
   Design: Deep navy + electric cyan on dark
   Typeface: Space Grotesk (display) + Inter (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- TOKENS ---- */
:root {
  --bg:         #080d14;
  --bg-surface: #0e1520;
  --bg-card:    #131c2b;
  --border:     #1e2d42;
  --accent:     #00d4ff;
  --accent-dim: #00a8cc;
  --accent-glow:rgba(0, 212, 255, 0.15);
  --text-hi:    #e8f0fe;
  --text-mid:   #8a9bb5;
  --text-lo:    #4a5d75;
  --green:      #00e5a0;
  --purple:     #7c6fff;
  --display:    'Space Grotesk', sans-serif;
  --body:       'Inter', sans-serif;
  --mono:       'JetBrains Mono', monospace;
  --radius:     8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5vw;
  background: rgba(8, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
nav.scrolled { border-bottom-color: var(--border); }

.nav-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  transition: background var(--transition), color var(--transition);
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-mid);
  transition: all var(--transition);
}

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 5vw 4rem;
  position: relative;
  overflow: hidden;
}

/* Grid lines background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Glow blob */
#hero::after {
  content: '';
  position: absolute;
  top: 20%; left: 55%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.hero-name .highlight { color: var(--accent); }

.hero-title {
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero-bio {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.6rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 500;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-outline {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--border);
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Profile photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.hero-photo {
  width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid var(--border);
  filter: grayscale(15%);
  transition: filter var(--transition);
}
.hero-photo:hover { filter: grayscale(0%); }
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  opacity: 0.3;
}

/* ---- SECTION COMMON ---- */
section {
  padding: 6rem 5vw;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-heading {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--text-hi);
}

/* ---- SKILLS ---- */
#skills { padding-top: 2rem; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  transition: border-color var(--transition), transform var(--transition);
}
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.skill-icon {
  font-size: 1.3rem;
}
.skill-card-title {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-hi);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.skill-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-mid);
  letter-spacing: 0.03em;
  transition: border-color var(--transition), color var(--transition);
}
.skill-card:hover .skill-tag {
  border-color: rgba(0,212,255,0.3);
  color: var(--text-hi);
}

/* ---- EXPERIENCE ---- */
#experience { padding-top: 0; }

.timeline {
  position: relative;
  padding-left: 1.8rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.8rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -1.95rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--accent);
}

.tl-role {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 0.2rem;
}
.tl-company {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.tl-loc {
  font-size: 0.8rem;
  color: var(--text-lo);
  margin-bottom: 0.8rem;
}
.tl-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.tl-desc li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.3rem;
}
.tl-desc li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---- PROJECTS ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,212,255,0.06);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.project-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.3;
  max-width: 85%;
}
.project-arrow {
  color: var(--text-lo);
  font-size: 1.1rem;
  transition: color var(--transition), transform var(--transition);
}
.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.2rem;
}

.project-metric {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.stack-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 3px;
  color: var(--accent-dim);
}

/* ---- CERTS ---- */
.certs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.cert-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color var(--transition);
}
.cert-item:hover { border-color: var(--purple); }

.cert-badge {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.cert-info {}
.cert-name {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 0.2rem;
}
.cert-issuer {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--purple);
  letter-spacing: 0.04em;
}

/* ---- CONTACT ---- */
#contact {
  padding-bottom: 8rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-heading {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.contact-heading span { color: var(--accent); }

.contact-sub {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.65rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-mid);
  transition: all var(--transition);
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.contact-email {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-mid);
}
.contact-email a { color: var(--accent); }
.contact-email a:hover { text-decoration: underline; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-lo);
  letter-spacing: 0.05em;
  max-width: 100%;
}

/* ---- SCROLL INDICATOR ---- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-lo);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator svg { opacity: 0.5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 5vw;
    gap: 1.2rem;
  }
  nav.open .nav-links a { font-size: 0.9rem; }
  nav.open .nav-cta {
    display: block;
    margin: 0 5vw 1.5rem;
    text-align: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-wrap { display: flex; justify-content: center; order: -1; }
  .hero-photo { width: 160px; height: 200px; }
  .hero-eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-bio { margin-left: auto; margin-right: auto; }

  .contact-card { padding: 2rem 1.4rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
