/* ============================================
   Sujud Alatrash Portfolio — Pink Girly Theme
   ============================================ */

:root {
  --bg:       #fce8f0;
  --bg2:      #f9d6e8;
  --surface:  #fff4f9;
  --surface2: #fde0ee;
  --accent:   #e8006e;
  --accent2:  #ff5baa;
  --mint:     #5bbfb5;
  --mint2:    #7dd8ce;
  --lilac:    #b065d0;
  --text:     #2d1a24;
  --text2:    #5a2d42;
  --muted:    #b07090;
  --border:   #f0b8d4;
  --shadow:   rgba(232, 0, 110, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── Background Canvas ── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  box-shadow: 0 0 10px rgba(232, 0, 110, 0.5);
}

.cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--accent2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  opacity: 0.6;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(252, 232, 240, 0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ── Hero Section ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
  overflow: hidden;
}

/* Pink blob top-right */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 91, 170, 0.16) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Mint blob bottom-left */
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(91, 191, 181, 0.13) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--mint);
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 191, 181, 0.10);
  border: 1px solid rgba(91, 191, 181, 0.28);
  border-radius: 20px;
  padding: 6px 16px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero h1 .name-gradient {
  background: linear-gradient(135deg, var(--accent), var(--lilac), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  padding-bottom: 6px;
}

.hero-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 44px;
  max-width: 500px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-sub .typing {
  color: var(--accent);
  border-right: 2px solid var(--accent);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.btn-primary {
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--accent), var(--lilac));
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232, 0, 110, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 0, 110, 0.42);
}

.btn-outline {
  padding: 13px 30px;
  border: 2px solid var(--border);
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.2s;
  background: var(--surface);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Floating emoji decoration */
.hero-deco {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 7rem;
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
  user-select: none;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-deco span {
  display: block;
  animation: float 3s ease-in-out infinite;
}

.hero-deco span:nth-child(2) {
  animation-delay: -1s;
  font-size: 4rem;
}

.hero-deco span:nth-child(3) {
  animation-delay: -2s;
  font-size: 3rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
  z-index: 1;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: slide 2s ease infinite;
}

@keyframes slide { to { left: 100%; } }

/* ── Sections ── */
section {
  position: relative;
  z-index: 1;
  padding: 110px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--mint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 80px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 56px;
  line-height: 1.1;
  color: var(--text);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.9;
}

.about-text p { margin-bottom: 20px; }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.skill-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px var(--shadow);
}

.skill-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(232, 0, 110, 0.14);
}

.skill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.project-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 4px 16px var(--shadow);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--mint), var(--lilac));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.project-card:hover {
  border-color: rgba(232, 0, 110, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(232, 0, 110, 0.14);
}

.project-card:hover::before { transform: scaleX(1); }

.project-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--mint);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.project-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  background: var(--surface2);
}

.project-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}

.project-card:hover .project-link { gap: 14px; }

/* ── Contact ── */
.contact-inner {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px var(--shadow);
}

.contact-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 91, 170, 0.07) 0%, transparent 60%);
}

.contact-inner::after {
  content: '♡';
  position: absolute;
  right: 40px;
  top: 24px;
  font-size: 5rem;
  color: var(--border);
  opacity: 0.7;
  user-select: none;
}

.contact-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.contact-inner p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 38px;
  position: relative;
  z-index: 1;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.contact-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text2);
  text-decoration: none;
  padding: 11px 22px;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  background: var(--surface2);
  pointer-events: auto;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff4f9;
  box-shadow: 0 4px 16px rgba(232, 0, 110, 0.14);
}

#email-tooltip {
  display: none;
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--lilac));
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(232, 0, 110, 0.3);
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { gap: 18px; }
  .hero { padding: 0 24px; }
  .hero-deco { display: none; }
  section { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-inner { padding: 40px 24px; }
  .scroll-indicator { left: 24px; }
  .cursor, .cursor-ring { display: none !important; }
  body { cursor: auto; }
}