/* ================================================
   BAYAN AKKAM — PORTFOLIO
   Theme: Purple + Pink Glassmorphism
   ================================================ */

:root {
  --bg:         #0e0618;
  --purple:     #a855f7;
  --purple-dim: #7c22b8;
  --pink:       #ec4899;
  --pink-dim:   #be185d;
  --text:       #f3e8ff;
  --text-soft:  #c4b5fd;
  --text-muted: #7c6d9a;
  --glass-bg:   rgba(255, 255, 255, 0.04);
  --glass-border: rgba(168, 85, 247, 0.18);
  --glass-hover:  rgba(168, 85, 247, 0.1);
  --radius:     18px;
  --radius-sm:  10px;
  --font:       'Outfit', sans-serif;
  --mono:       'Fira Code', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ---- BACKGROUND ORBS ---- */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  top: -200px; left: -150px;
  animation: float1 12s ease-in-out infinite;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  top: 20%; right: -100px;
  animation: float2 15s ease-in-out infinite;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  bottom: 10%; left: 30%;
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 60px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, 40px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -50px); } }

/* ---- GLASS CARD ---- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 6, 24, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo span { color: var(--purple); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.btn-outline-sm {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--purple);
  border: 1px solid rgba(168,85,247,0.3);
  padding: 8px 18px;
  border-radius: 100px;
  transition: all 0.25s;
}

.btn-outline-sm:hover {
  background: rgba(168,85,247,0.12);
  border-color: var(--purple);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-soft);
  padding: 13px 24px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(168,85,247,0.08);
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--purple);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  width: fit-content;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(168,85,247,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(168,85,247,0); }
}

.hero-title {
  font-size: clamp(58px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.hero-role {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.code-prefix { color: var(--pink); margin-right: 6px; }

.hero-desc {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* AVATAR CARD */
.avatar-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.avatar-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(168,85,247,0.2), transparent 70%);
  pointer-events: none;
}

.avatar-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dim), var(--pink-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  box-shadow: 0 0 40px rgba(168,85,247,0.3);
}

.avatar-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.avatar-role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.avatar-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  justify-content: center;
  padding: 16px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.av-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.av-num { font-size: 22px; font-weight: 800; color: var(--purple); letter-spacing: -0.03em; }
.av-lbl { font-size: 11px; color: var(--text-muted); }
.av-divider { width: 1px; height: 30px; background: var(--glass-border); }

.avatar-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.atag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pink);
  background: rgba(236,72,153,0.1);
  border: 1px solid rgba(236,72,153,0.2);
  padding: 3px 12px;
  border-radius: 100px;
}

/* MARQUEE */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 18px 0;
  margin: 0 -40px;
}

.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marquee-track .sep { color: var(--pink); font-size: 10px; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- SECTIONS ---- */
.section { padding: 110px 0; }

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--purple);
  letter-spacing: 0.12em;
  border: 1px solid rgba(168,85,247,0.3);
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(168,85,247,0.08);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

/* ---- SKILLS ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.skill-card {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover { transform: translateY(-4px); }

.skill-icon { font-size: 22px; }

.skill-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.skill-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}

.skill-pct {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  align-self: flex-end;
}

/* ---- PROJECTS ---- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.project-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover { transform: translateY(-4px); }
.project-card:hover::before { transform: scaleX(1); }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple);
  letter-spacing: 0.1em;
}

.project-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 100px;
  transition: all 0.2s;
}

.project-link:hover {
  color: var(--pink);
  border-color: rgba(236,72,153,0.4);
  background: rgba(236,72,153,0.08);
}

.project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
}

.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.ptag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  padding: 3px 11px;
  border-radius: 100px;
}

/* ---- CONTACT ---- */
.contact-card {
  padding: 60px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(236,72,153,0.12), transparent 70%);
  pointer-events: none;
}

.contact-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
  line-height: 1.1;
}

.contact-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 300;
}

.contact-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.cinfo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cinfo-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.cinfo-val {
  font-size: 14px;
  color: var(--text-soft);
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ================================================
   RESPONSIVE — FULL COVERAGE
   ================================================ */

/* ---- TABLET LANDSCAPE (max 1024px) ---- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card { padding: 50px 40px; }
}

/* ---- TABLET PORTRAIT (max 900px) ---- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-right { display: none; }
  .badge {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-title { font-size: clamp(42px, 10vw, 72px); }
  .hero-desc {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .hero-btns {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 40px 28px; }
}

/* ---- MOBILE LARGE (max 640px) ---- */
@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .nav {
    padding: 0 18px;
    height: 60px;
  }

  .nav-links { display: none; }

  .nav > div {
    display: flex;
    gap: 6px;
  }

  .btn-outline-sm {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .hero-grid {
    margin-bottom: 40px;
    text-align: left;
    width: 100%;
    overflow: hidden;
  }

  .badge {
    margin-left: 0;
    font-size: 11px;
    padding: 5px 12px;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 56px);
    word-break: break-word;
  }

  .hero-role { font-size: 12px; }

  .hero-desc {
    font-size: 14px;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .btn-primary, .btn-ghost {
    width: auto;
    flex: 0 1 auto;
    padding: 11px 20px;
    font-size: 13px;
    white-space: nowrap;
  }

  .section { padding: 70px 0; }
  .section-head { margin-bottom: 32px; }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .skill-card { padding: 16px 14px; }

  .projects-grid { gap: 12px; }
  .project-card { padding: 20px; }
  .project-title { font-size: 16px; }

  .contact-card { padding: 32px 20px; }
  .contact-title { font-size: clamp(26px, 7vw, 38px); }
  .contact-info { max-width: 100%; }
  .cinfo-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .cinfo-val { font-size: 13px; }

  .marquee-wrap { margin: 0 -18px; }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ---- MOBILE SMALL (max 400px) ---- */
@media (max-width: 400px) {
  .hero-title { font-size: 36px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 24px 16px; }
  .project-desc { font-size: 12px; }
  .btn-outline-sm { font-size: 10px; padding: 5px 10px; }
}