/* ═══════════════════════════════════════════════
   PORTFOLIO STYLESHEET — Mohamed E. Ayman
   ════════════════════════════════════════════ */

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

/* ─── CSS Variables ─────────────────────────── */
:root {
  --accent:          #8B5CF6;
  --accent-light:    #A78BFA;
  --accent-dark:     #6D28D9;
  --accent-glow:     rgba(139, 92, 246, 0.35);
  --accent-glass:    rgba(139, 92, 246, 0.12);

  /* dark theme (default) */
  --bg:              #0a0a0f;
  --bg-2:            #111118;
  --surface:         #16161f;
  --surface-2:       #1e1e2a;
  --border:          rgba(255,255,255,0.08);
  --text:            #f0f0f8;
  --text-muted:      #8888aa;
  --nav-bg:          rgba(10,10,15,0.80);
  --shadow:          0 8px 40px rgba(0,0,0,0.5);
  --card-shadow:     0 4px 32px rgba(0,0,0,0.4);
}

[data-theme="light"] {
  --bg:              #fafafa;
  --bg-2:            #f0f0f8;
  --surface:         #ffffff;
  --surface-2:       #f5f5fc;
  --border:          rgba(0,0,0,0.08);
  --text:            #111118;
  --text-muted:      #555568;
  --nav-bg:          rgba(250,250,250,0.85);
  --shadow:          0 8px 40px rgba(0,0,0,0.08);
  --card-shadow:     0 4px 24px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ─── Utilities ─────────────────────────────── */
.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.section { padding: 100px 0; }
.alt-section { background-color: var(--bg-2); }

.accent { color: var(--accent); }

/* ─── Scroll Reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-glass);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── Section Headers ───────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glass);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-glow);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.nav-container {
  height: 70px;
  display: flex;
  align-items: center;       /* vertically center all children */
  justify-content: space-between;
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  height: 70px;
}
.nav-logo:hover { color: var(--accent); }
.logo-bracket { color: var(--accent); }

/* Nav links — stretch to navbar height so the underline animation works */
.nav-links {
  display: flex;
  align-items: center;   /* vertically center the li/a items */
  height: 70px;
  gap: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  display: flex;
  align-items: center;    /* vertically center the link text */
  height: 100%;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px 2px 0 0;
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}
.nav-link.active::after, .nav-link:hover::after {
  width: 60%;
}
.nav-link.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 70px;
}

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: rotate(20deg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.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 menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { padding: 12px 0; }
.mobile-link {
  display: block;
  padding: 12px 24px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}
.mobile-link:hover {
  color: var(--accent);
  background: var(--accent-glass);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ═══════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
}

/* Animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: rgba(139,92,246,0.18);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: rgba(99,102,241,0.14);
  bottom: -100px; right: -100px;
  animation-delay: 3s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: rgba(168,85,247,0.10);
  top: 50%; left: 50%;
  animation-delay: 5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
  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;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Hero content */
.hero-content {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 60px 0;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-name {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-role {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-muted);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.typed-text { color: var(--accent); }
.cursor-blink {
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-bio {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.8;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}

.hero-socials {
  display: flex;
  gap: 12px;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.social-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* Hero image */
.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.image-ring {
  position: relative;
  width: 340px; height: 340px;
}

.image-glow {
  position: absolute; inset: -20px;
  border-radius: 36px;         /* match the illustration's rounded square */
  background: conic-gradient(
    from 0deg,
    var(--accent), #6D28D9, #A78BFA, #8B5CF6, var(--accent)
  );
  animation: spinGlow 4s linear infinite;
  filter: blur(4px);
  opacity: 0.7;
}

@keyframes spinGlow {
  to { transform: rotate(360deg); }
}

.profile-img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius: 24px;         /* rounded square for illustration */
  object-fit: cover;
  object-position: center;
  background: var(--surface-2);
  z-index: 1;
}

.floating-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
  color: var(--text);
  z-index: 2;
}

.badge-1 {
  bottom: 20px; left: -20px;
  color: var(--accent);
  animation: floatBadge 3s ease-in-out infinite;
}
.badge-2 {
  top: 20px; right: -20px;
  animation: floatBadge 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-muted);
  animation: scrollBounce 2s ease-in-out infinite;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.scroll-indicator:hover { color: var(--accent); }

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

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(30px); }
}

/* ═══════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.about-img-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1/1;           /* square for illustration */
}
.about-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-img-deco {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 60%; height: 60%;
  border-bottom: 4px solid var(--accent);
  border-right: 4px solid var(--accent);
  border-radius: 0 0 20px 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s;
}
.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
}
.stat-plus { font-size: 1.2rem; font-weight: 900; color: var(--accent); }
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-details {
  margin: 24px 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.detail-item i {
  color: var(--accent);
  width: 16px;
  flex-shrink: 0;
}
.detail-item .check { font-size: 0.6rem; }

/* ═══════════════════════════════════════════════
   SKILLS
   ════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Tech icons — 3 columns, 2 rows for 6 items */
.tech-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}
.tech-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px var(--accent-glow);
}
.tech-card i {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 10px;
}
.tech-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Coding illustration */
.skills-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coding-img {
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  filter: drop-shadow(0 16px 48px var(--accent-glow));
  transition: transform 0.4s ease;
}
.coding-img:hover { transform: translateY(-8px) scale(1.02); }

/* ═══════════════════════════════════════════════
   PROJECTS
   ════════════════════════════════════════════ */
.projects-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 0;
  color: var(--text-muted);
}

.loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.projects-error {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
}
.projects-error i { font-size: 2rem; color: #f43f5e; }
.projects-error a { color: var(--accent); text-decoration: underline; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Gradient header band for each card */
.project-header {
  height: 8px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-title i {
  color: var(--accent);
  font-size: 0.9rem;
}

.project-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.project-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.lang-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.project-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.project-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.project-link:hover { color: var(--accent); }
.project-link i { font-size: 0.9rem; }

.projects-more {
  text-align: center;
  margin-top: 48px;
}

/* ═══════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateX(6px);
}

.contact-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-glass);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid var(--accent-glow);
}
.contact-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: white;
  transition: all 0.3s;
}
.social-btn:hover { transform: translateY(-4px); filter: brightness(1.2); }
.social-btn.github  { background: #24292e; }
.social-btn.linkedin { background: #0a66c2; }

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-success {
  display: none;
  color: #10b981;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
  background: rgba(16,185,129,0.1);
  border-radius: 10px;
  border: 1px solid rgba(16,185,129,0.3);
}
.form-success.show { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ═══════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-sub { font-size: 0.82rem; margin-top: 6px; }

/* ─── Scroll to Top ─────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ─── Cursor Glow (smaller) ─────────────────── */
.cursor-glow {
  position: fixed;
  width: 120px; height: 120px;   /* reduced from 300px */
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
  mix-blend-mode: screen;
  opacity: 0.8;
}
[data-theme="light"] .cursor-glow {
  mix-blend-mode: multiply;
  opacity: 0.2;
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .hero-bio { max-width: 100%; }
  .hero-cta, .hero-socials { justify-content: center; }
  .hero-image { order: -1; }
  .image-ring { width: 240px; height: 240px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-wrap { max-width: 400px; margin: 0 auto; }

  .skills-grid { grid-template-columns: 1fr; }
  .tech-icons { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .about-details { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .hero-name { font-size: 2.2rem; }
  .image-ring { width: 200px; height: 200px; }
  .badge-1, .badge-2 { font-size: 0.72rem; padding: 8px 12px; }
  .badge-1 { left: -10px; bottom: -10px; }
  .badge-2 { right: -10px; top: -10px; }
  .tech-icons { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 1.4rem; }
  .scroll-top { bottom: 16px; right: 16px; }
}
