/* ─────────────────────────────────────────
   Muhammad Farhan Fahad — Portfolio CSS
   style.css
───────────────────────────────────────── */

/* ─── CSS VARIABLES ─── */
:root {
  --bg-deep: #000000;
  --bg-dark: #060e1a;
  --bg-card: #0b1628;
  --bg-card2: #0d1c35;
  --accent-pink: #1e9184;
  --accent-cyan: #00e5ff;
  --accent-purple: #7c4dff;
  --accent-blue: #2979ff;
  --text-white: #eaf0ff;
  --text-muted: #7a93b8;
  --border: rgba(100,150,255,0.12);
  --glow-pink: rgba(224,64,251,0.3);
  --glow-cyan: rgba(0,229,255,0.3);
}

/* ─── RESET ─── */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-white);
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-pink), var(--accent-purple));
  border-radius: 3px;
}

/* ─── CANVAS ─── */
#constellation {
  position: fixed; top:0; left:0;
  width:100%; height:100%;
  z-index: 0; pointer-events: none;
}

/* ─── NAV ─── */
nav {
  position: fixed; top:0; left:0; right:0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px;
  background: rgba(3,8,15,0.7);
  backdrop-filter: blur(14px);
  border-bottom: 5px solid var(--border);
  transition: all .3s;
}
.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}
.nav-links { display:flex; gap:32px; list-style:none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color .3s;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--accent-cyan); }

/* ─── SECTIONS BASE ─── */
section {
  position: relative; z-index: 1;
  padding: 80px 60px;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.0rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-muted);
  text-align: center;
  font-size: .95rem;
  margin-bottom: 40px;
  max-width: 600px;
}

/* ─── HERO ─── */
#hero {
  text-align: center;
  padding-top: 120px;
}
.hero-name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent-pink) 0%, #b040fb 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: 80px;
  animation: heroFade .9s ease forwards;
}
.hero-welcome {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 30px;
  animation: heroFade 1.1s ease forwards;
}
.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  animation: heroFade 1.3s ease forwards;
}
.hero-icons {
  display: flex; gap:18px; justify-content: center;
  margin-bottom: 36px;
  animation: heroFade 1.5s ease forwards;
}
.hero-icon-btn {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgb(62, 102, 188);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.0rem;
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all .3s;
}
.hero-icon-btn:hover {
  background: rgba(253, 255, 255, 0.18);
  box-shadow: 0 0 20px var(--glow-cyan);
  transform: translateY(-3px);
}
.hero-role {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  animation: heroFade 1.7s ease forwards;
}
.hero-role span { color: var(--text-white); font-weight:600; }
.hero-skills-row {
  display: flex; gap: 10px; justify-content: center; flex-wrap:wrap;
  animation: heroFade 1.9s ease forwards;
}
.hero-skill-tag {
  font-size: .78rem;
  color: var(--accent-cyan);
  padding: 4px 14px;
  border-radius: 20px;
  border: 2px solid rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
}
.scroll-indicator {
  margin-top: 50px;
  animation: bounce 2s infinite;
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* ─── KEYFRAMES ─── */
@keyframes bounce {
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(10px);}
}
@keyframes heroFade {
  from{opacity:0;transform:translateY(24px);}
  to{opacity:1;transform:translateY(0);}
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TYPING ─── */
#typed-text::after {
  content: '|';
  animation: blink .7s infinite;
  color: var(--accent-pink);
}

/* ─── ABOUT ─── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 2.0fr;
  gap: 100px;
  align-items: center;
  max-width: 1000px;
  width: 100%;
}
.about-img-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.about-img-circle {
  width: 350px; height: 350px;
  border-radius: 50%;
  border: 5px solid var(--accent-purple);
  box-shadow: 0 0 40px rgba(124,77,255,0.4), 0 0 80px rgba(124,77,255,0.1);
  overflow: hidden;
  position: relative; z-index:2;
  background: var(--bg-card2);
  display: flex; align-items:center; justify-content:center;
  font-size: 5rem; color: var(--accent-purple);
}
.about-img-circle img { width:100%; height:100%; object-fit:cover; }
.about-ring {
  position: absolute;
  width: 400px; height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(124,77,255,0.3);
  animation: spin 25s linear infinite;
}
.about-ring2 {
  width: 400px; height: 400px;
  border: 1px dashed rgba(0,229,255,0.15);
  animation: spin 25s linear infinite reverse;
}
.about-content .about-heading {
  font-size: 1.3rem; font-weight: 700;
  color: var(--text-white);
  margin-bottom: 50px;
  line-height: 1.5;
}
.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.0rem;
  margin-bottom: 14px;
}
.about-tags {
  display: flex; gap: 20px; flex-wrap:wrap;
  margin: 22px 0;
}
.about-tag {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--text-muted);
}
.about-tag i { color: var(--accent-purple); font-size: .9rem; }
.about-quote {
  background: rgba(100,120,255,0.08);
  border: 2px solid var(--border);
  border-left: 3px solid var(--accent-purple);
  border-radius: 8px;
  padding: 16px 20px;
  font-style: italic;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.6;
}

/* ─── PROJECTS ─── */
#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  width: 100%;
}
.project-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: all .35s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content:'';
  position: absolute; top:0; left:0; right:0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
  transform: scaleX(0);
  transition: transform .35s;
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100,150,255,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.project-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.project-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  font-size: 1.2rem;
}
.project-links { display:flex; gap:10px; }
.project-links a {
  color: var(--text-muted);
  font-size: .85rem;
  transition: color .2s;
  text-decoration: none;
}
.project-links a:hover { color: var(--accent-cyan); }
.project-name {
  font-size: 1rem; font-weight: 600;
  color: var(--text-white); margin-bottom: 10px;
}
.project-desc {
  font-size: .83rem; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 16px;
}
.project-tags { display: flex; gap: 8px; flex-wrap:wrap; }
.project-tag {
  font-size: .72rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(100,120,255,0.1);
  border: 1px solid rgba(100,150,255,0.2);
  color: var(--accent-cyan);
}

/* ─── EXPERIENCE TIMELINE ─── */
#experience .timeline-wrap {
  position: relative;
  max-width: 800px;
  width: 100%;
}
.timeline-line {
  position: absolute;
  left: 50%; top:0; bottom: 88px;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-cyan));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 36px);
  margin-bottom: 100px;
  position: relative;
}
.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 36px);
}
.timeline-dot {
  position: absolute;
  left: 50%; top: 0px;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 10px var(--accent-purple);
  z-index:2;
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  max-width: 340px;
  transition: all .3s;
}
.timeline-card:hover {
  border-color: rgba(100,150,255,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.timeline-card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.timeline-card-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(124,77,255,0.2);
  display: flex; align-items:center; justify-content:center;
  color: var(--accent-purple);
  font-size: .85rem;
}
.timeline-card-title { font-weight: 700; font-size: 1rem; color: var(--text-white); }
.timeline-card-company { font-size: .82rem; color: var(--accent-purple); }
.timeline-card-date { font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; }
.timeline-card-desc { font-size: .82rem; color: var(--text-muted); line-height:1.6; margin-bottom: 12px; }
.coming-soon-badge {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: .9rem;
  font-style: italic;
}
.coming-soon-badge i { display:block; font-size:2rem; margin-bottom:10px; color: var(--accent-purple); }

/* ─── TECH STACK ─── */
#techstack .tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  width: 100%;
}
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
}
.tech-card-title {
  font-weight: 700; font-size: 1rem;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.skill-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.skill-emoji { font-size: 1.1rem; width: 24px; text-align:center; }
.skill-name { font-size: .85rem; color: var(--text-white); min-width: 130px; }
.skill-bar-wrap {
  flex: 1;
  height: 7px;
  background: rgba(100,120,255,0.12);
  border-radius: 4px;
  overflow: hidden;
}
.skill-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
  width: 0%;
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
}
.skill-pct {
  font-size: .78rem;
  color: var(--accent-pink);
  min-width: 34px;
  text-align: right;
}

/* ─── CONTACT ─── */
#contact .contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  max-width: 960px;
  width: 100%;
  align-items: start;
}
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 30px;
}
.form-label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}
.form-input, .form-textarea {
  width: 100%;
  background: rgba(100,120,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-white);
  font-family: 'Exo 2', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border .3s;
  margin-bottom: 16px;
}
.form-input:focus, .form-textarea:focus {
  border-color: rgba(100,150,255,0.5);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items:center; justify-content:center; gap:8px;
  transition: all .3s;
  letter-spacing: 1px;
}
.form-btn:hover {
  box-shadow: 0 0 24px rgba(224,64,251,0.4);
  transform: translateY(-2px);
}
.contact-right {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.contact-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(124,77,255,0.2);
  border: 2px solid var(--accent-purple);
  display: flex; align-items:center; justify-content:center;
  font-size: 2.8rem;
}
.contact-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: .88rem;
  text-align: center;
}
.contact-links-title {
  font-weight: 700; color: var(--text-white);
  font-size: 1rem;
}
.contact-link-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  width: 100%;
  text-decoration: none;
  color: var(--text-white);
  font-size: .88rem;
  transition: all .3s;
}
.contact-link-item:hover {
  border-color: rgba(100,150,255,0.35);
  transform: translateX(4px);
}
.contact-link-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  font-size: .9rem;
}

/* ─── FOOTER ─── */
footer {
  position: relative; z-index:1;
  text-align:center;
  padding: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
}
footer span { color: var(--accent-pink); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity:0; transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right {
  opacity:0; transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible, .reveal-right.visible {
  opacity:1; transform: translateX(0);
}

/* ─── RESPONSIVE ─── */
@media(max-width:900px){
  nav { padding: 14px 24px; }
  .nav-links { gap:16px; }
  section { padding: 80px 24px; }
  #about .about-grid { grid-template-columns:1fr; text-align:center; }
  .about-tags { justify-content:center; }
  #projects .projects-grid { grid-template-columns:1fr; }
  .tech-grid { grid-template-columns:1fr; }
  #contact .contact-grid { grid-template-columns:1fr; }
  .timeline-item { padding-right:0; padding-left:0; justify-content:center; }
  .timeline-item.right { padding-left:0; }
  .timeline-line { display:none; }
  .timeline-dot { display:none; }
}
