/* =============================================
   LAIBA SHEHZAD PORTFOLIO — style.css
   Dark Futuristic Neon/Teal Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ─── */
:root {
  --bg-primary:    #050d13;
  --bg-secondary:  #081520;
  --bg-card:       rgba(8, 25, 40, 0.75);
  --teal:          #00d4c8;
  --teal-dim:      rgba(0, 212, 200, 0.18);
  --teal-glow:     rgba(0, 212, 200, 0.35);
  --teal-border:   rgba(0, 212, 200, 0.3);
  --white:         #ffffff;
  --gray:          #9db8c6;
  --text-muted:    #6a8fa0;
  --font:          'Poppins', sans-serif;
  --nav-height:    72px;
  --radius-card:   16px;
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--teal-border); border-radius: 3px; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 3rem;
  background: rgba(5, 13, 19, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 212, 200, 0.1);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-right: auto;
  cursor: pointer;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2.5rem;
}

.nav-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--teal-border);
  border-radius: 6px;
  color: var(--teal);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-socials a:hover {
  background: var(--teal-dim);
  box-shadow: 0 0 12px var(--teal-glow);
}
.nav-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  z-index: 998;
  background: rgba(5, 13, 19, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--teal-border);
  flex-direction: column;
  padding: 1.5rem 2rem;
  gap: 1.2rem;
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition);
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,212,200,0.07);
  transition: color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--teal); }
.mobile-nav .mob-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* =============================================
   CANVAS PARTICLE BACKGROUND
   ============================================= */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Glowing orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0,180,180,0.2) 0%, transparent 70%);
  top: -80px; left: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,200,200,0.15) 0%, transparent 70%);
  bottom: 10%; right: 5%;
  animation-delay: -4s;
}
.orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,160,160,0.12) 0%, transparent 70%);
  top: 50%; left: 5%;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, 30px) scale(1.08); }
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* =============================================
   HOME — HERO SECTION
   ============================================= */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Hero left */
.hero-left { z-index: 1; }

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gray);
  margin-bottom: 0.4rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-name {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}
.hero-name span { color: var(--teal); }

.hero-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.6s forwards;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  padding-left: 1.1rem;
  border-left: 3px solid var(--teal);
  max-width: 440px;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.7s 1s forwards;
}

.btn-primary {
  padding: 0.75rem 2rem;
  background: var(--teal);
  color: var(--bg-primary);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.btn-primary:hover {
  box-shadow: 0 0 24px var(--teal-glow), 0 0 8px var(--teal);
  transform: translateY(-2px);
}

.btn-outline {
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--teal);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--teal-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-outline:hover {
  background: var(--teal-dim);
  box-shadow: 0 0 18px var(--teal-glow);
  transform: translateY(-2px);
}

/* Hero right — abstract visual */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s 0.6s forwards;
}

.hero-visual {
  position: relative;
  width: 380px;
  height: 380px;
}

.hero-visual-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(0,212,200,0.25);
  animation: spinRing 20s linear infinite;
}
.hero-visual-ring-2 {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0,212,200,0.15);
  animation: spinRing 30s linear infinite reverse;
}

.hero-visual-core {
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(0,212,200,0.18) 0%, rgba(0,60,80,0.4) 50%, rgba(5,13,19,0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal-border);
  box-shadow: 0 0 40px rgba(0,212,200,0.2), inset 0 0 40px rgba(0,212,200,0.05);
  overflow: hidden;
}

.hero-visual-svg {
  width: 140px;
  height: 140px;
  opacity: 0.9;
}

/* Dots on ring */
.ring-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--teal);
}
.ring-dot:nth-child(1) { top: 20px; left: 50%; transform: translateX(-50%); }
.ring-dot:nth-child(2) { bottom: 20px; left: 50%; transform: translateX(-50%); }
.ring-dot:nth-child(3) { left: 20px; top: 50%; transform: translateY(-50%); }
.ring-dot:nth-child(4) { right: 20px; top: 50%; transform: translateY(-50%); }

/* Floating badges */
.badge-float {
  position: absolute;
  background: rgba(8,25,40,0.9);
  border: 1px solid var(--teal-border);
  border-radius: 10px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(0,212,200,0.15);
  animation: badgeFloat 4s ease-in-out infinite alternate;
}
.badge-float:nth-child(7) { top: 10%; right: -10%; animation-delay: 0s; }
.badge-float:nth-child(8) { bottom: 15%; left: -8%; animation-delay: -2s; }
.badge-float:nth-child(9) { bottom: 35%; right: -12%; animation-delay: -1s; }

@keyframes badgeFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =============================================
   SECTION COMMON
   ============================================= */
.page-section {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 3rem;
  position: relative;
}

.section-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-title .word-teal  { color: var(--teal); }
.section-title .word-white { color: var(--white); }

.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
}
.section-divider span {
  display: block;
  height: 2px;
  border-radius: 2px;
}
.sd-line { width: 60px; background: var(--teal-border); }
.sd-dot  { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 8px var(--teal); }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}

.about-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-avatar {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(0,212,200,0.25) 0%, rgba(0,60,80,0.35) 50%, transparent 80%);
  border: 1.5px solid var(--teal-border);
  box-shadow: 0 0 48px rgba(0,212,200,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-avatar-orbit {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px dashed rgba(0,212,200,0.2);
  animation: spinRing 18s linear infinite;
}

.about-avatar-svg {
  width: 90px; height: 90px;
  color: var(--teal);
  opacity: 0.85;
}

/* Network lines decoration */
.about-network {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  opacity: 0.3;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.about-text p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.about-tag {
  padding: 0.35rem 1rem;
  border: 1px solid var(--teal-border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-dim);
  transition: box-shadow var(--transition);
}
.about-tag:hover { box-shadow: 0 0 14px var(--teal-glow); }

/* =============================================
   SKILLS PAGE
   ============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 780px;
  margin: 0 auto;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,212,200,0.18);
  border-radius: var(--radius-card);
  padding: 2.8rem 2rem 2.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  backdrop-filter: blur(14px);
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,200,0.2);
  border-color: rgba(0,212,200,0.4);
}
.skill-card:hover::before { opacity: 1; }

.skill-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 14px;
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  background: rgba(0,212,200,0.07);
  transition: box-shadow var(--transition), background var(--transition);
}
.skill-card:hover .skill-icon-wrap {
  box-shadow: 0 0 20px rgba(0,212,200,0.3);
  background: rgba(0,212,200,0.12);
}
.skill-icon-wrap svg { width: 36px; height: 36px; color: var(--teal); }

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--white);
}
.skill-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Skill bars */
.skill-bars { margin-top: 1.4rem; text-align: left; }
.skill-bar-item { margin-bottom: 0.8rem; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 0.3rem;
}
.skill-bar-track {
  height: 4px;
  background: rgba(0,212,200,0.12);
  border-radius: 4px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), rgba(0,212,200,0.5));
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(0,212,200,0.18);
  border-radius: var(--radius-card);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0,212,200,0.08);
  text-decoration: none;
  transition: padding-left var(--transition);
}
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { padding-left: 6px; }

.contact-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--teal-border);
  background: rgba(0,212,200,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: box-shadow var(--transition), background var(--transition);
}
.contact-icon svg { width: 20px; height: 20px; fill: currentColor; }
.contact-item:hover .contact-icon {
  box-shadow: 0 0 20px rgba(0,212,200,0.35);
  background: rgba(0,212,200,0.14);
}

.contact-info-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.15rem;
}
.contact-info-value {
  font-size: 0.85rem;
  color: var(--gray);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  text-align: center;
  padding: 1.8rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(0,212,200,0.06);
}
.footer span { color: var(--teal); }
.footer .heart { color: #e05252; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    text-align: center;
  }
  .hero-desc { margin: 0 auto; }
  .hero-cta  { justify-content: center; }
  .hero-right { order: -1; }
  .hero-visual { width: 280px; height: 280px; }
  .hero-visual-core { inset: 40px; }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-tags { justify-content: center; }
  .skills-grid { grid-template-columns: 1fr; max-width: 420px; }
  .page-section { padding: 4rem 1.5rem; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 1.2rem; }
  .nav-links, .nav-socials { display: none; }
  .hamburger { display: flex; }

  .hero-inner { padding: 2rem 1.2rem 3rem; }
  .hero-visual { width: 240px; height: 240px; }
  .badge-float { display: none; }

  .contact-card { padding: 2rem 1.2rem; }
}

@media (min-width: 641px) {
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
}
