/* ═══════════════════════════════════════════
   MUSTAPHA ABDULSALAM — PORTFOLIO STYLESHEET
   CodeAlpha Internship
   Design: Dark Glassmorphism + Syne + DM Sans
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg:           #020c14;
  --bg-alt:       #041018;
  --surface:      rgba(0, 191, 255, 0.05);
  --surface-hover:rgba(0, 191, 255, 0.10);
  --border:       rgba(0, 191, 255, 0.12);
  --border-hover: rgba(0, 191, 255, 0.28);

  --accent:       #00bfff;
  --accent-2:     #ffffff;
  --accent-glow:  rgba(0, 191, 255, 0.30);
  --accent-glow2: rgba(255, 255, 255, 0.20);

  --text:         #ffffff;
  --text-muted:   rgba(255, 255, 255, 0.58);
  --text-dim:     rgba(255, 255, 255, 0.30);

  --nav-h:        72px;
  --radius:       16px;
  --radius-sm:    10px;
  --blur:         20px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ── Utility: Container ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Utility: Glass Card ── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius);
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  box-shadow: 0 8px 40px rgba(0, 191, 255, 0.08);
}

/* ── Utility: Section layout ── */
.section {
  padding: 120px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.navbar.scrolled {
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-bracket { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  padding: 9px 20px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* VIDEO */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;

  /* Performance boost */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* OVERLAY (lighter) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2,12,20,0.55) 0%,
    rgba(2,12,20,0.4) 50%,
    rgba(2,12,20,0.85) 100%
  );
}

/* FALLBACK BACKGROUND (NO HEAVY ANIMATION) */
.hero-video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 100%, rgba(0,191,255,0.15), transparent 60%),
    linear-gradient(160deg, #020c14, #041018, #021018);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
}
.hero-eyebrow {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  animation: fadeSlideUp .8s var(--ease-out) .2s both;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
  animation: fadeSlideUp .8s var(--ease-out) .35s both;
}
.hero-name-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 28px;
  animation: fadeSlideUp .8s var(--ease-out) .5s both;
}
.hero-title-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-intro {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 40px;
  animation: fadeSlideUp .8s var(--ease-out) .65s both;
}

/* ── Glass CTA Buttons ── */
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp .8s var(--ease-out) .8s both;
}
.btn-glass {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  overflow: hidden;
  background: rgba(0, 191, 255, 0.12);
  border: 1.5px solid rgba(0, 191, 255, 0.35);
  color: var(--accent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 20px rgba(0, 191, 255, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transition: all .35s var(--ease-out);
}
.btn-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,191,255,0.3), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}
.btn-glass:hover {
  box-shadow:
    0 0 36px rgba(0, 191, 255, 0.4),
    0 4px 20px rgba(0, 191, 255, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.18);
  border-color: rgba(0, 191, 255, 0.7);
  transform: translateY(-2px);
  color: #fff;
}
.btn-glass:hover::before { opacity: 1; }

.btn-glass--outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow:
    0 4px 20px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.10);
}
.btn-glass--outline::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.18), transparent 70%);
}
.btn-glass--outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 36px rgba(255, 255, 255, 0.22),
    0 4px 20px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.18);
  color: #fff;
}
.btn-glass-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

/* Scroll hint */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 52px;
  animation: fadeSlideUp .8s var(--ease-out) 1s both;
}
.hero-scroll-hint span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about { background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  align-items: center;
}
.about-image-col { display: flex; justify-content: center; }
.about-img-frame {
  position: relative;
  width: 280px; height: 280px;
}
.about-img-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,191,255,0.15), rgba(255,255,255,0.10));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.about-img-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.about-initials {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-img-border {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: rotateBorder 8s linear infinite;
}
@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}
.about-img-dot {
  position: absolute;
  border-radius: 50%;
}
.about-img-dot--1 {
  width: 14px; height: 14px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  top: 10px; right: 20px;
  animation: dotFloat 3s ease-in-out infinite;
}
.about-img-dot--2 {
  width: 8px; height: 8px;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-glow2);
  bottom: 20px; left: 10px;
  animation: dotFloat 3s ease-in-out infinite .8s;
}
@keyframes dotFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-body {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.97rem;
}
.about-body strong { color: var(--text); }

.about-stats {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.about-stat {
  flex: 1;
  min-width: 110px;
  padding: 20px 16px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════ */
.projects { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.project-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity .3s ease;
}
.project-card:hover::after { opacity: 1; }

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.project-icon-wrap {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background .3s ease;
}
.project-card:hover .project-icon-wrap {
  background: rgba(0, 191, 255, 0.14);
}

.project-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.2);
  color: var(--accent);
}
.project-badge--blue {
  background: rgba(0, 191, 255, 0.08);
  border-color: rgba(0, 191, 255, 0.18);
  color: #7de8ff;
}
.project-badge--green {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.project-badge--purple {
  background: rgba(0, 191, 255, 0.06);
  border-color: rgba(0, 191, 255, 0.15);
  color: #a8eeff;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.project-links {
  display: flex;
  gap: 12px;
  padding-top: 4px;
  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 .25s ease;
  padding: 6px 0;
}
.project-link:hover { color: var(--accent); }
.project-link--demo:hover { color: #a78bfa; }

/* ═══════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════ */
.skills { background: var(--bg-alt); }

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.skill-category {
  padding: 28px;
}
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.skill-cat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,191,255,0.07);
  border: 1px solid rgba(0,191,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.skill-cat-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.skill-bars { display: flex; flex-direction: column; gap: 16px; }
.skill-bar-item {}
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.skill-bar-label span:last-child { color: var(--accent); font-weight: 600; }
.skill-bar-track {
  width: 100%; height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  transition: width 1.2s var(--ease-out);
}

/* Right column */
.skills-badges-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.skills-badges-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: -8px;
}
.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.skill-badge {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .25s ease;
  cursor: default;
}
.skill-badge:hover {
  background: rgba(0,191,255,0.1);
  border-color: rgba(0,191,255,0.3);
  color: var(--accent);
  transform: translateY(-2px);
}
.skills-note {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.skills-note-icon { font-size: 1.5rem; flex-shrink: 0; }
.skills-note p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.skills-note strong { color: var(--text); }

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 380px;
}
.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  transition: all .3s ease;
}
.contact-item:hover { transform: translateX(6px); }
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,191,255,0.07);
  border: 1px solid rgba(0,191,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-item-text { display: flex; flex-direction: column; gap: 2px; }
.contact-item-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.contact-item-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* Form */
.contact-form-card { padding: 36px; }
.form-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  resize: none;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
  border-color: rgba(0,191,255,0.45);
  box-shadow: 0 0 0 3px rgba(0,191,255,0.08);
  background: rgba(0,191,255,0.03);
}
.form-textarea { min-height: 130px; font-family: var(--font-body); }

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all .3s var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,191,255,0.2);
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  opacity: 0;
  transition: opacity .3s ease;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,191,255,0.35);
}
.form-submit:hover::before { opacity: 1; }
.form-submit-text, .form-submit svg { position: relative; z-index: 1; }
.form-submit:active { transform: translateY(0); }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #00bfff;
  background: rgba(0,191,255,0.08);
  border: 1px solid rgba(0,191,255,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.form-success.show { display: flex; animation: fadeSlideUp .4s var(--ease-out) both; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-links a {
  color: var(--text-muted);
  transition: color .25s ease;
  display: flex;
}
.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a revealed parent */
.reveal.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal.visible > *:nth-child(2) { transition-delay: .08s; }
.reveal.visible > *:nth-child(3) { transition-delay: .16s; }
.reveal.visible > *:nth-child(4) { transition-delay: .24s; }

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

/* ═══════════════════════════════════════════
   NOISE GRAIN OVERLAY (subtle texture)
   ═══════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — ALL DEVICES
   ─────────────────────────────────────────
   Breakpoints used:
   1440px  →  Large desktop / wide monitors
   1280px  →  Standard desktop / laptop
   1024px  →  Small laptop / large tablet landscape
    900px  →  Tablet landscape
    768px  →  Tablet portrait / large phone landscape
    600px  →  Large phone (e.g. iPhone Pro Max landscape)
    480px  →  Standard phone portrait
    360px  →  Small phone (e.g. Galaxy S, iPhone SE)
   ═══════════════════════════════════════════ */

/* ── 1440px — Large / Wide Desktop ── */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  .hero-name {
    font-size: 7.5rem;
  }
  .about-grid {
    grid-template-columns: 380px 1fr;
    gap: 96px;
  }
  .about-img-frame {
    width: 340px;
    height: 340px;
  }
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .skills-layout {
    grid-template-columns: 1fr 420px;
    gap: 56px;
  }
  .section {
    padding: 140px 0;
  }
}

/* ── 1280px — Standard Desktop ── */
@media (max-width: 1280px) {
  .container {
    max-width: 1100px;
    padding: 0 32px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-layout {
    grid-template-columns: 1fr 360px;
    gap: 32px;
  }
}

/* ── 1024px — Small Laptop / Tablet Landscape ── */
@media (max-width: 1024px) {
  .container {
    padding: 0 28px;
  }
  .section {
    padding: 100px 0;
  }
  .section-title {
    font-size: 2.4rem;
  }

  /* Skills: stack into single column */
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .skills-badges-col {
    position: static;
  }

  /* Projects: 2 columns */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }
  .about-img-frame {
    width: 260px;
    height: 260px;
  }
}

/* ── 900px — Tablet Landscape ── */
@media (max-width: 900px) {
  .section {
    padding: 88px 0;
  }

  /* About: stack vertically */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .about-stats {
    justify-content: center;
  }
  .about-image-col {
    order: -1;
  }
  .about-img-frame {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }
  .about-heading {
    font-size: 1.8rem;
  }

  /* Contact: stack vertically */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-intro {
    max-width: 100%;
  }

  /* Skills badges */
  .skills-badges {
    gap: 8px;
  }
}

/* ── 768px — Tablet Portrait / Large Phone Landscape ── */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .container {
    padding: 0 20px;
  }
  .section {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 48px;
  }
  .section-title {
    font-size: 2rem;
  }

  /* ── Navbar mobile menu ── */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(2, 12, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px 36px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .4s var(--ease-out), opacity .3s ease;
    pointer-events: none;
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    font-size: 1.1rem;
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-link:last-of-type {
    border-bottom: none;
  }
  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding: 13px 20px;
  }
  .nav-toggle {
    display: flex;
  }

  /* ── Hero ── */
  .hero-name {
    font-size: clamp(2.6rem, 10vw, 4rem);
    letter-spacing: -0.02em;
  }
  .hero-intro {
    font-size: 0.95rem;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-glass {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  .hero-scroll-hint {
    margin-top: 36px;
  }

  /* ── About ── */
  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .about-stat {
    flex: 0 1 140px;
  }

  /* ── Projects ── */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── Skills ── */
  .skill-category {
    padding: 22px 20px;
  }
  .skills-note {
    padding: 16px;
  }

  /* ── Contact form ── */
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-form-card {
    padding: 24px 20px;
  }

  /* ── Footer ── */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
}

/* ── 600px — Large Phone Landscape / Phablet ── */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 72px 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .section-tag {
    font-size: 0.72rem;
  }

  /* Hero */
  .hero-name {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }
  .hero-title {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
  }
  .hero-eyebrow {
    font-size: 0.9rem;
  }

  /* About */
  .about-img-frame {
    width: 200px;
    height: 200px;
  }
  .about-heading {
    font-size: 1.55rem;
  }
  .about-stat {
    flex: 0 1 120px;
    padding: 16px 12px;
  }
  .stat-num {
    font-size: 1.7rem;
  }

  /* Project cards */
  .project-card {
    padding: 22px 18px;
  }
  .project-title {
    font-size: 1.1rem;
  }

  /* Skills */
  .skill-cat-title {
    font-size: 0.95rem;
  }
  .skill-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  /* Contact */
  .contact-item {
    padding: 14px 16px;
  }
  .contact-item-value {
    font-size: 0.82rem;
  }
  .form-title {
    font-size: 1.15rem;
  }
  .form-submit {
    padding: 13px 22px;
    font-size: 0.9rem;
  }
}

/* ── 480px — Standard Phone Portrait ── */
@media (max-width: 480px) {
  :root {
    --nav-h: 60px;
    --radius: 12px;
    --radius-sm: 8px;
  }

  .container {
    padding: 0 14px;
  }
  .section {
    padding: 64px 0;
  }
  .section-header {
    margin-bottom: 36px;
  }
  .section-title {
    font-size: 1.7rem;
  }

  /* Navbar */
  .nav-logo {
    font-size: 1.1rem;
  }

  /* Hero */
  .hero-name {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }
  .hero-title-wrap {
    gap: 10px;
  }
  .hero-title-line {
    max-width: 50px;
  }
  .hero-intro {
    font-size: 0.88rem;
    margin-bottom: 28px;
  }
  .btn-glass {
    padding: 12px 24px;
    font-size: 0.88rem;
    max-width: 260px;
  }

  /* About */
  .about-stats {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .about-stat {
    width: 100%;
    max-width: 200px;
  }
  .about-img-frame {
    width: 180px;
    height: 180px;
  }
  .about-initials {
    font-size: 3.5rem;
  }
  .about-img-dot--1 {
    width: 10px;
    height: 10px;
  }
  .about-img-dot--2 {
    width: 6px;
    height: 6px;
  }

  /* Projects */
  .project-card {
    padding: 18px 16px;
    gap: 12px;
  }
  .project-icon-wrap {
    width: 42px;
    height: 42px;
  }
  .project-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  /* Skills */
  .skill-category {
    padding: 18px 16px;
  }
  .skill-cat-icon {
    width: 38px;
    height: 38px;
  }
  .skills-badges {
    gap: 7px;
  }
  .skill-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  /* Contact */
  .contact-item-icon {
    width: 38px;
    height: 38px;
  }
  .contact-form-card {
    padding: 20px 16px;
  }
  .form-input {
    padding: 10px 14px;
    font-size: 0.88rem;
  }
  .form-textarea {
    min-height: 110px;
  }
}

/* ── 360px — Small Phone (Galaxy S, iPhone SE) ── */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  .section {
    padding: 56px 0;
  }
  .section-title {
    font-size: 1.55rem;
  }

  /* Navbar */
  .nav-logo {
    font-size: 1rem;
  }
  .nav-links {
    padding: 20px 16px 28px;
  }

  /* Hero */
  .hero-name {
    font-size: clamp(1.8rem, 13vw, 2.4rem);
  }
  .hero-intro {
    font-size: 0.85rem;
  }
  .btn-glass {
    padding: 11px 20px;
    font-size: 0.85rem;
    max-width: 240px;
  }
  .hero-title {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }

  /* About */
  .about-img-frame {
    width: 160px;
    height: 160px;
  }
  .about-heading {
    font-size: 1.35rem;
  }
  .about-body {
    font-size: 0.88rem;
  }
  .stat-num {
    font-size: 1.5rem;
  }

  /* Projects */
  .project-card {
    padding: 16px 14px;
  }
  .project-title {
    font-size: 1rem;
  }
  .project-desc {
    font-size: 0.82rem;
  }

  /* Skills */
  .skill-cat-title {
    font-size: 0.9rem;
  }
  .skill-bar-label {
    font-size: 0.78rem;
  }

  /* Contact */
  .contact-item {
    padding: 12px 14px;
    gap: 12px;
  }
  .contact-item-value {
    font-size: 0.78rem;
  }
  .form-title {
    font-size: 1.05rem;
  }
  .form-label {
    font-size: 0.72rem;
  }
  .form-input {
    padding: 9px 12px;
    font-size: 0.85rem;
  }
  .form-submit {
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-copy {
    font-size: 0.75rem;
  }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,191,255,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,191,255,0.45); }

/* ── Text selection ── */
::selection {
  background: rgba(0,191,255,0.25);
  color: var(--text);
}
