/* ============================================================
   MOHD ANAS PORTFOLIO — style.css
   Aesthetic: Dark luxury terminal / refined engineering
   
   CUSTOMIZATION GUIDE:
   - Change --accent to alter the brand color (default: #00E5A0 teal-green)
   - Change --bg-primary / --bg-secondary for background colors
   - Change font @import in HTML and --font-* variables below
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Colors */
  --accent:         #00E5A0;   /* Primary accent — change to rebrand */
  --accent-dim:     rgba(0, 229, 160, 0.12);
  --accent-glow:    rgba(0, 229, 160, 0.25);
  --bg-primary:     #080C0F;   /* Darkest background */
  --bg-secondary:   #0E1419;   /* Cards & sections */
  --bg-tertiary:    #141B22;   /* Hover states */
  --bg-card:        #111820;
  --border:         rgba(255,255,255,0.07);
  --border-accent:  rgba(0, 229, 160, 0.25);
  --text-primary:   #E8EDF2;
  --text-secondary: #8A9BAE;
  --text-muted:     #4A5A6A;
  --error:          #FF5566;
  --success:        #00E5A0;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 8rem);
  --container:   1200px;
  --radius:      12px;
  --radius-sm:   8px;

  /* Transitions */
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --fast:  0.2s;
  --mid:   0.4s;
  --slow:  0.7s;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ===== UTILITY CLASSES ===== */
.dm-mono    { font-family: var(--font-mono); }
.accent     { color: var(--accent); }
.accent-inline { color: var(--accent); font-weight: 600; }
.container  { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }

/* Fade-in reveal animation (triggered by JS) */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--fast) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  opacity: 0;
  transition: opacity var(--fast);
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--accent);
  color: #080C0F;
  font-weight: 600;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px var(--accent-glow);
}

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

.btn--ghost {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}
.btn--ghost:hover {
  color: var(--accent);
  border-color: var(--border-accent);
}

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

/* ===== ICON BUTTONS ===== */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--fast) var(--ease);
  font-size: 0.85rem;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
}
.tag--sm { font-size: 0.72rem; padding: 0.2rem 0.6rem; }

/* ===== DOTS ===== */
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.dot--red    { background: #FF5F57; box-shadow: none; animation: none; }
.dot--yellow { background: #FFBD2E; box-shadow: none; animation: none; }
.dot--green  { background: #28C840; box-shadow: none; animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--mid), backdrop-filter var(--mid), border-color var(--mid);
  border-bottom: 1px solid transparent;
}

/* Scrolled state added by JS */
.nav.scrolled {
  background: rgba(8, 12, 15, 0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.nav__logo-bracket { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--fast);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--fast) var(--ease);
}
.nav__link:hover, .nav__link:focus { color: var(--accent); }
.nav__link:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--fast) var(--ease);
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 15, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mid) var(--ease);
}
.nav__mobile.open {
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.nav__mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--fast);
}
.nav__mobile-link:hover { color: var(--accent); }

/* ===== SECTION SHARED STYLES ===== */
.section { padding: var(--section-pad) 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.section-label span { color: var(--accent); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-primary);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

/* Grid background */
.hero__grid {
  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% 70% at 50% 50%, black 30%, transparent 100%);
}

/* Noise texture overlay */
.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  width: 100%;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  background: var(--accent-dim);
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__role {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 1.75em;
  display: flex;
  align-items: center;
  gap: 2px;
}

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

.hero__tagline {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Stats row */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.stat__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat__divider {
  width: 1px; height: 36px;
  background: var(--border);
}

/* Floating code card */
.hero__code-card {
  position: absolute;
  right: clamp(1rem, 5vw, 8rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: min(380px, 40vw);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
  animation: float 5s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

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

.code-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.code-card__filename {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.code-card__body {
  padding: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--text-secondary);
}
.c-purple  { color: #BD93F9; }
.c-teal    { color: var(--accent); }
.c-accent  { color: #FF79C6; }
.c-comment { color: var(--text-muted); font-style: italic; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { opacity: 0; height: 0; }
  50% { opacity: 1; height: 48px; }
  100% { opacity: 0; height: 0; }
}

/* ===== ABOUT SECTION ===== */
.about {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

/* ── Photo column ── */
.about__photo-col {
  display: flex;
  justify-content: center;
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.about__photo-wrap {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}

/* Glowing ring behind the photo */
.about__photo-glow {
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: conic-gradient(
    from 0deg,
    var(--accent) 0%,
    transparent 40%,
    transparent 60%,
    var(--accent) 100%
  );
  opacity: 0.5;
  animation: spinGlow 6s linear infinite;
  z-index: 0;
}
@keyframes spinGlow {
  to { transform: rotate(360deg); }
}

.about__photo {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  border: 2px solid var(--border);
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter var(--mid);
}
.about__photo:hover {
  filter: grayscale(0%) contrast(1.05);
}

/* "Open to work" badge on the photo */
.about__photo-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.about__text h2 { margin-bottom: 1.5rem; }
.about__text {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}
.about__text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.about__links .btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.about__highlights {
  grid-column: 1 / -1;  /* span full width */
  grid-row: 2 / 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--mid) var(--ease);
}
.highlight-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 20px var(--accent-glow);
}
.highlight-card__icon {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SKILLS SECTION ===== */
.skills { background: var(--bg-secondary); }

.skills__categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--fast);
}
.skill-group:hover { border-color: var(--border-accent); }

.skill-group__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-group__title i { color: var(--accent); }

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Skill progress bars */
.skill-bars { display: flex; flex-direction: column; gap: 1rem; }

.skill-bar-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}
.skill-bar-item__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.skill-bar-item__track {
  width: 120px;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  overflow: hidden;
}
.skill-bar-item__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(0, 229, 160, 0.5));
  border-radius: 100px;
  width: 0%;
  transition: width 1.2s var(--ease);
}
.skill-bar-item__pct {
  font-size: 0.72rem;
  color: var(--accent);
  width: 36px;
  text-align: right;
}

/* ===== EXPERIENCE / TIMELINE ===== */
.experience { background: var(--bg-primary); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.5rem;
}

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
}
.timeline__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline__line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  margin-top: 4px;
  min-height: 40px;
}

/* Timeline Card */
.timeline__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  transition: all var(--mid) var(--ease);
}
.timeline__card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2), 0 0 20px var(--accent-glow);
}

.timeline__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.timeline__company {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.timeline__role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.timeline__period {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}

.timeline__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.timeline__bullets li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}
.timeline__bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 0.1em;
}

.timeline__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Education card */
.edu-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: 0 0 20px var(--accent-glow);
}
.edu-card i {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.edu-card__degree {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.edu-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== PROJECTS SECTION ===== */
.projects { background: var(--bg-secondary); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--mid) var(--ease);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--mid);
}
.project-card:hover::before { opacity: 1; }

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 24px var(--accent-glow);
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.project-card__icon {
  font-size: 1.75rem;
  color: var(--accent);
  opacity: 0.8;
}
.project-card__links { display: flex; gap: 0.5rem; }

.project-card__github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(123, 91, 255, 0.3);
  color: #9B7DFF;
  font-size: 0.95rem;
  transition: all var(--fast) var(--ease);
}
.project-card__github-link:hover {
  background: rgba(123, 91, 255, 0.15);
  border-color: rgba(123, 91, 255, 0.6);
  color: #b9a0ff;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.project-card__impact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.impact-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 229, 160, 0.06);
  border: 1px solid rgba(0, 229, 160, 0.15);
  border-radius: 4px;
  color: var(--accent);
}

.project-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ===== CONTACT SECTION ===== */
.contact { background: var(--bg-primary); }

.contact__intro {
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: all var(--fast) var(--ease);
}
.contact-link:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}
.contact-link__icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-link__label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}
.contact-link__value {
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--fast), box-shadow var(--fast);
  width: 100%;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input.error { border-color: var(--error); }

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-error {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--error);
  min-height: 1em;
}

.form-success {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--success);
  text-align: center;
  min-height: 1em;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__socials { display: flex; gap: 1rem; }
.footer__social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--fast) var(--ease);
}
.footer__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fast), transform var(--fast);
  z-index: 500;
  box-shadow: 0 0 20px var(--accent-glow);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { transform: scale(1.1); }

/* ===== BREAK HELPER ===== */
.break-md { display: none; }
@media (min-width: 768px) { .break-md { display: block; } }

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
  .hero__code-card {
    display: none;
  }
  .about__grid {
    grid-template-columns: 200px 1fr;
  }
  .about__highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }

  .hero__name { font-size: clamp(3rem, 15vw, 5rem); }
  .hero__stats { gap: 1.25rem; }
  .stat__divider { display: none; }

  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__photo-col {
    grid-row: 1;
    grid-column: 1;
    justify-content: center;
  }
  .about__text {
    grid-row: 2;
    grid-column: 1;
  }
  .about__highlights {
    grid-row: 3;
    grid-column: 1;
    grid-template-columns: 1fr 1fr;
  }

  .skill-bar-item {
    grid-template-columns: 1fr auto auto;
    gap: 0.4rem;
  }
  .skill-bar-item__track { width: 80px; }

  .timeline__item { grid-template-columns: 20px 1fr; gap: 1rem; }
  .timeline__card { padding: 1.25rem; }
  .timeline__card-header { flex-direction: column; }

  .edu-card { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .footer__inner { flex-direction: column; align-items: center; text-align: center; }

  .back-to-top { bottom: 1.5rem; right: 1.5rem; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .about__links { flex-direction: column; }
}

/* ===== DOWNLOAD CV NAV BUTTON ===== */
.nav__cv {
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
}
@media (max-width: 768px) {
  .nav__cv { display: none; }
}

/* ===== PERSONAL PROJECT BADGE ===== */
.badge--personal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(123, 91, 255, 0.1);
  border: 1px solid rgba(123, 91, 255, 0.3);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9B7DFF;
  white-space: nowrap;
}

/* ===== FEATURED PROJECT CARD (AEA) ===== */
.project-card--featured {
  grid-column: 1 / -1;
  border-color: rgba(123, 91, 255, 0.25);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(123, 91, 255, 0.04) 100%);
}

.project-card--featured::before {
  background: linear-gradient(90deg, transparent, #7B5BFF, transparent) !important;
  opacity: 0.5;
}

.project-card--featured:hover {
  border-color: rgba(123, 91, 255, 0.5) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 28px rgba(123, 91, 255, 0.18) !important;
}

.project-card__featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.project-card--featured .project-card__title {
  font-size: 1.3rem;
  margin: 0.75rem 0 0.5rem;
}

.project-card--featured .btn--details {
  width: auto;
  align-self: flex-start;
  margin-top: 1.25rem;
}

.impact-badge--personal {
  background: rgba(123, 91, 255, 0.07) !important;
  border-color: rgba(123, 91, 255, 0.2) !important;
  color: #9B7DFF !important;
}

@media (max-width: 720px) {
  .project-card__featured-inner {
    grid-template-columns: 1fr;
  }
}

/* ===== INTERNAL PROJECT BADGE ===== */
.badge--internal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  white-space: nowrap;
}

/* ===== PROJECT DETAILS BUTTON ===== */
.btn--details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.btn--details:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ===== PROJECT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 15, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--mid) var(--ease);
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.open { opacity: 1; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(28px);
  transition: transform var(--mid) var(--ease);
  box-shadow: 0 0 80px rgba(0, 229, 160, 0.08);
  scrollbar-width: thin;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.modal__close:hover { color: var(--accent); border-color: var(--border-accent); }

.modal__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-right: 2.5rem;
  flex-wrap: wrap;
}
.modal__icon-wrap {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.modal__section { margin-bottom: 1.75rem; }

.modal__repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(123, 91, 255, 0.3);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #9B7DFF;
  background: rgba(123, 91, 255, 0.07);
  transition: all var(--fast) var(--ease);
  align-self: flex-start;
}
.modal__repo-link:hover {
  background: rgba(123, 91, 255, 0.15);
  border-color: rgba(123, 91, 255, 0.6);
  color: #b9a0ff;
}

.modal__section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}
.modal__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.modal__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.modal__list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}
.modal__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.modal__impact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .modal { padding: 1.75rem 1.25rem; }
  .modal__title { font-size: 1.1rem; }
}
