/* ═══════════════════════════════════════════════
   YOUSSEF AHMED ADEL — PORTFOLIO CSS
   "Digital Architect" Dark Theme
═══════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --bg: #070b17;
  --bg-alt: #0c1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-h: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-h: rgba(79, 142, 247, 0.4);
  --accent: #4f8ef7;
  --accent-l: #7aadff;
  --accent-glow: rgba(79, 142, 247, 0.3);
  --gold: #f7c94f;
  --gold-glow: rgba(247, 201, 79, 0.2);
  --text: #e8ecf4;
  --text-m: #9daec8;
  --text-d: #5f7494;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: var(--accent-glow);
  color: var(--accent-l);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: none;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-l);
}

/* ─── PARTICLE CANVAS ─── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ─── 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, background 0.2s;
  mix-blend-mode: screen;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.5;
}

.cursor-follower.hover {
  width: 56px;
  height: 56px;
  opacity: 0.25;
  border-color: var(--gold);
}

.cursor.hover {
  background: var(--gold);
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(7, 11, 23, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: var(--text);
  transition: color var(--transition);
}

.nav-logo:hover {
  color: var(--accent);
}

.logo-bracket {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-m);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
  background: var(--surface-h);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-m);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  from {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
  }
}

.hero-content {
  max-width: 1240px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  flex-wrap: nowrap;
}

/* Hero Photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-photo {
  width: 330px;
  height: 390px;
  object-fit: cover;
  object-position: top center;
  border-radius: 165px 165px 145px 145px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 60px rgba(79, 142, 247, 0.35));
  animation: photoFloat 6s ease-in-out infinite;
  background: transparent;
}

@keyframes photoFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 150px 150px 130px 130px;
  border: 1.5px solid rgba(79, 142, 247, 0.35);
  animation: ringRotate 12s linear infinite;
  z-index: 1;
}

.ring2 {
  inset: -26px;
  border-color: rgba(247, 201, 79, 0.2);
  animation-duration: 20s;
  animation-direction: reverse;
  border-radius: 160px 160px 140px 140px;
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}

.hero-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 3;
  box-shadow: 0 8px 24px var(--accent-glow);
  animation: badgePop 0.5s 1s both cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

@keyframes badgePop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hero Text */
.hero-text {
  max-width: 640px;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.7s 0.2s both;
}

.hero-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #e8ecf4 0%, var(--accent-l) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s 0.35s both;
}

.hero-title-wrap {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-m);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s 0.5s both;
}

.hero-typewriter {
  color: var(--accent-l);
  font-weight: 700;
}

.typewriter-cursor {
  color: var(--accent);
  animation: blink 0.7s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-bio {
  color: var(--text-m);
  max-width: 460px;
  margin-bottom: 2rem;
  font-size: 1rem;
  animation: fadeUp 0.7s 0.65s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.8s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79, 142, 247, 0.5);
}

.btn-outline {
  border: 1.5px solid var(--border-h);
  color: var(--accent-l);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--surface-h);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-arrow {
  transition: transform var(--transition);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: fadeUp 0.7s 0.95s both;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-l);
  display: block;
  line-height: 1;
}

.stat-plus {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-m);
}

.scroll-hint::before,
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, var(--text-m));
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ─── SECTIONS ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-m);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ─── REVEAL ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── GLASS UTILITY ─── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.glass:hover {
  border-color: var(--border-h);
  background: var(--surface-h);
  box-shadow: 0 8px 40px rgba(79, 142, 247, 0.1);
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-m);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}

.about-text p strong {
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--text-m);
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--border-h);
  color: var(--text);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  padding: 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border-radius: var(--radius-sm);
}

.info-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-card-body h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.info-card-body p {
  font-size: 0.8rem;
  color: var(--text-m);
  line-height: 1.5;
}

/* ─── SKILLS ─── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.skill-item {}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-icon {
  font-size: 1.1rem;
}

.skill-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-pct {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-l) 100%);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(4px);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-m);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
}

.badge:hover {
  background: rgba(79, 142, 247, 0.12);
  border-color: var(--border-h);
  color: var(--accent-l);
  transform: translateY(-2px);
}

/* ─── TIMELINE ─── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.45rem;
  top: 1.6rem;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-card {
  padding: 1.75rem 2rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.company-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-d);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  white-space: nowrap;
}

.timeline-desc {
  color: var(--text-m);
  font-size: 0.96rem;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-sm {
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  color: var(--accent-l);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ─── EDUCATION ─── */
.edu-card {
  display: flex;
  gap: 2rem;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.edu-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.edu-degree {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.edu-school {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.edu-date {
  font-size: 0.8rem;
  color: var(--text-d);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  white-space: nowrap;
}

.edu-desc {
  color: var(--text-m);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.edu-honors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.honor-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(247, 201, 79, 0.1), rgba(247, 201, 79, 0.05));
  border: 1px solid rgba(247, 201, 79, 0.3);
  color: var(--gold);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Certs */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.cert-card {
  padding: 1.5rem;
}

.cert-org {
  font-size: 0.8rem;
  color: var(--text-d);
  font-weight: 600;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ─── PROJECTS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius);
  transform-style: preserve-3d;
}

.project-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f1a35 0%, #0c2060 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Website mockup style */
.project-mockup {
  width: 85%;
  background: rgba(7, 11, 23, 0.9);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.mockup-bar {
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}

.mockup-bar::before,
.mockup-bar::after,
.mockup-bar+.mockup-body::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mockup-bar::before {
  background: #ff5f57;
}

.mockup-bar::after {
  background: #febc2e;
}

.mockup-body {
  padding: 14px;
}

.mockup-line {
  height: 8px;
  background: linear-gradient(90deg, var(--accent-glow), transparent);
  border-radius: 4px;
  margin-bottom: 8px;
}

.mockup-block {
  height: 60px;
  background: rgba(79, 142, 247, 0.08);
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid rgba(79, 142, 247, 0.12);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 23, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-live-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(8px);
  transition: var(--transition);
}

.project-card:hover .project-live-btn {
  transform: translateY(0);
}

.project-body {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.project-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.project-type {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.25);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-weight: 600;
}

.project-desc {
  color: var(--text-m);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.project-plugins {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.plugin-tag {
  font-size: 0.78rem;
  color: var(--text-m);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.project-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}

.project-link:hover {
  gap: 0.6rem;
}

/* More projects card */
.project-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.06), rgba(247, 201, 79, 0.04));
  border: 1.5px dashed rgba(79, 142, 247, 0.25);
  transition: var(--transition);
}

.project-more:hover {
  border-color: var(--accent);
}

.project-more-inner {
  text-align: center;
}

.project-more-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.project-more h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-more p {
  color: var(--text-m);
  font-size: 0.95rem;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

a.contact-item:hover {
  transform: translateX(6px);
}

.contact-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-item-body {
  flex: 1;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.contact-arrow {
  color: var(--accent);
  font-size: 1rem;
}

/* Form */
.contact-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-m);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(79, 142, 247, 0.06);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-d);
}

.form-success {
  display: none;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(79, 247, 132, 0.1);
  border: 1px solid rgba(79, 247, 132, 0.25);
  color: #4ff784;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.form-success.show {
  display: block;
  animation: fadeUp 0.3s both;
}

.form-success.error {
  background: rgba(247, 79, 79, 0.1);
  border-color: rgba(247, 79, 79, 0.25);
  color: #ff8a8a;
}

/* ─── FOOTER ─── */
#footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-d);
}

.back-to-top-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-m);
  font-size: 1.2rem;
  background: rgba(12, 17, 32, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.back-to-top-float.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-float:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px var(--accent-glow);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-content {
    gap: 3rem;
    flex-wrap: wrap;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .edu-card {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    justify-content: flex-end;
    padding: 0 1rem;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) - 4px);
    left: 0.9rem;
    right: 0.9rem;
    background: rgba(7, 11, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0.65rem;
    gap: 0.3rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - var(--nav-h) - 1.2rem);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top right;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.78rem 0.85rem;
    border-radius: 10px;
    font-size: 0.98rem;
  }

  .nav-link::after {
    display: none;
  }

  .hamburger {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(12, 17, 32, 0.82);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 1002;
  }

  .hero-photo {
    width: 220px;
    height: 250px;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-bio {
    margin: 0 auto 2rem;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  body.nav-open {
    overflow: hidden;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  .form-group input,
  .form-group textarea {
    cursor: text;
  }

  button {
    cursor: pointer;
  }

  a {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 1.25rem;
  }

  .projects-grid,
  .certs-grid {
    grid-template-columns: 1fr;
  }

  .edu-honors {
    flex-direction: column;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .back-to-top-float {
    right: 1rem;
    bottom: 1rem;
  }
}