/* ==========================================================================
   Abbas Aq — Portfolio Stylesheet
   Vanilla HTML/CSS/JS build, adapted from reference layout, blue theme.
   ========================================================================== */

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

:root {
  --accent: #2f6bff;
  --accent-light: #6d9bff;
  --accent-dark: #1c4fd6;
  --accent-glow: rgba(47, 107, 255, 0.45);
  --bg: #07070b;
  --bg-alt: #0a0a10;
  --panel: #111119;
  --white: #ffffff;
  --muted-60: rgba(255, 255, 255, 0.6);
  --muted-50: rgba(255, 255, 255, 0.5);
  --muted-40: rgba(255, 255, 255, 0.4);
  --muted-30: rgba(255, 255, 255, 0.3);
  --border-10: rgba(255, 255, 255, 0.1);
  --border-15: rgba(255, 255, 255, 0.15);
  --gray-900: #111111;
  --gray-100: #f4f4f4;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .wrap { padding: 0 48px; }
}

/* ---------- Reveal / AOS-like engine ---------- */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-aos="fade-up"] { transform: translateY(36px); }
[data-aos="fade-left"] { transform: translateX(48px); }
[data-aos="fade-right"] { transform: translateX(-48px); }
[data-aos="zoom-in"] { transform: scale(0.85); }
[data-aos="fade-in"] { transform: none; }
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}
[data-aos="drop-bounce"] { opacity: 0; }
[data-aos="drop-bounce"].aos-animate {
  animation: dropBounce 1.2s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}
@keyframes dropBounce {
  0% { transform: translateY(-260px); opacity: 0; }
  50% { transform: translateY(0); opacity: 1; }
  65% { transform: translateY(-32px); opacity: 1; }
  80% { transform: translateY(0); opacity: 1; }
  90% { transform: translateY(-12px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: var(--accent);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader.hide { transform: translateY(-100%); }
.preloader__logo {
  position: relative;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.preloader.hide .preloader__logo { opacity: 0; transform: translateY(-16px) scale(0.96); }
.preloader__ghost { color: rgba(20, 10, 40, 0.3); }
.preloader__fill {
  position: absolute;
  top: 0; left: 0;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  animation: preloaderFill 1.6s ease-in-out 0.2s forwards;
}
@keyframes preloaderFill {
  to { clip-path: inset(0% 0 0 0); }
}
.preloader__fill .dot { color: #060012; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
  padding: 24px 0;
  transition: all 0.3s ease;
  background: transparent;
}
.navbar.open { background: var(--accent); padding: 16px 0; }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
}
.navbar__brand .dot { color: var(--accent-light); }
.navbar__links {
  display: none;
  gap: 32px;
}
.navbar__links a {
  position: relative;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  transition: color 0.3s;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent-light);
  transition: width 0.3s;
}
.navbar__links a:hover { color: var(--white); }
.navbar__links a:hover::after { width: 100%; }
.navbar__cta {
  display: none;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.navbar__cta:hover { background: rgba(255,255,255,0.2); box-shadow: 0 0 15px rgba(255,255,255,0.2); }
.navbar__toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--white);
  padding: 8px;
}
.navbar__toggle svg { width: 24px; height: 24px; }
.navbar__mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  background: var(--accent);
  transition: all 0.3s ease;
}
.navbar.open .navbar__mobile {
  max-height: 420px;
  opacity: 1;
  padding: 16px 0 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.navbar__mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px;
}
.navbar__mobile-inner a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
}
.navbar__mobile-cta {
  margin-top: 8px;
  display: inline-block;
  text-align: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--white);
  color: var(--accent);
  font-weight: 900;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

@media (min-width: 768px) {
  .navbar__links { display: flex; }
  .navbar__cta { display: inline-block; }
  .navbar__toggle-wrap { display: none; }
}
@media (max-width: 767px) {
  .navbar__mobile { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #000;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,6,16,0.55) 0%, rgba(4,6,16,0.35) 35%, rgba(4,6,16,0.75) 100%),
    linear-gradient(90deg, rgba(4,6,16,0.75) 0%, rgba(4,6,16,0.15) 55%, rgba(4,6,16,0.55) 100%);
  z-index: 1;
}
.hero__social {
  display: none;
  flex-direction: column;
  gap: 24px;
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
}
.hero__social a {
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
}
.hero__social a:hover { color: var(--white); transform: scale(1.2); }
.hero__social svg { width: 20px; height: 20px; }

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 20;
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__social-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.hero__social-inline a { color: rgba(255,255,255,0.7); }
.hero__social-inline svg { width: 20px; height: 20px; }

.hero__title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--white);
  line-height: 1.15;
}
.hero__title .stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}
.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  max-width: 460px;
  margin: 0 0 32px;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--white); color: #08080c; }
.btn-primary:hover { background: #dde4ff; transform: scale(1.05); }
.btn-outline-solid { background: rgba(0,0,0,0.4); border-color: var(--white); color: var(--white); backdrop-filter: blur(10px); }
.btn-outline-solid:hover { background: rgba(0,0,0,0.6); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--white); color: #08080c; }
.btn svg { width: 16px; height: 16px; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}
.hero__scroll svg {
  width: 24px; height: 24px;
  color: var(--white);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (min-width: 1024px) {
  .hero__social { display: flex; }
  .hero__social-inline { display: none; }
}

/* ---------- Section shells ---------- */
section { position: relative; width: 100%; overflow: hidden; font-family: var(--font-sans); }
.section-dark { background: var(--bg-alt); }
.section-accent { background: var(--accent); }
.section-white { background: #ffffff; }
.grid-dots-dark {
  background-image: linear-gradient(to right, rgba(128,128,128,0.04) 1px, transparent 1px),
                     linear-gradient(to bottom, rgba(128,128,128,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.grid-dots-light {
  background-image: linear-gradient(to right, rgba(128,128,128,0.06) 1px, transparent 1px),
                     linear-gradient(to bottom, rgba(128,128,128,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.eyebrow {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  margin-bottom: 24px;
}
.eyebrow-light { border-color: rgba(0,0,0,0.15); color: #555; background: #fff; }

.section-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 16px;
}
.section-heading.dark-text { color: #111; }
.section-sub {
  color: rgba(255,255,255,0.5);
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  max-width: 560px;
  line-height: 1.6;
}
.section-sub.dark-text { color: #6b7280; }

.torn-divider { position: absolute; left: 0; width: 100%; pointer-events: none; z-index: 10; line-height: 0; }
.torn-divider.top { top: 0; transform: translateY(-1px) rotate(180deg); }
.torn-divider.bottom { bottom: 0; transform: translateY(1px); }
.torn-divider svg { width: 100%; height: 48px; display: block; }
@media (min-width: 768px) { .torn-divider svg { height: 80px; } }

/* ---------- About ---------- */
.about { padding: 80px 0 160px; }
.about__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: flex-start;
}
.badge-wrap { display: flex; justify-content: center; width: 100%; position: relative; margin-top: 48px; }
.badge-string { position: absolute; top: -128px; left: 50%; width: 12px; height: 160px; background: #060010; transform: translateX(-50%); z-index: 0; }
.badge-clip { position: absolute; top: -24px; left: 50%; width: 24px; height: 48px; background: #d1d5db; border: 1px solid #9ca3af; border-radius: 4px; transform: translateX(-50%); z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.badge-card {
  background: var(--gray-900);
  width: 100%;
  max-width: 280px;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
  z-index: 20;
  transform: rotate(-3deg);
  transition: transform 0.5s;
}
.badge-card:hover { transform: rotate(0deg); }
.badge-hole { position: absolute; top: -12px; left: 50%; width: 64px; height: 24px; background: var(--gray-900); border-radius: 10px 10px 0 0; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; }
.badge-hole span { width: 32px; height: 8px; background: rgba(0,0,0,0.3); border-radius: 999px; }
.badge-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: 14px; background: #1a1a1a; }
.badge-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.about__info { flex: 1; color: var(--white); position: relative; z-index: 20; }
.about__info h2 { font-size: clamp(2.5rem, 6vw, 3.25rem); font-weight: 900; color: #04030a; margin: 0 0 16px; }
.about__info p.bio { font-size: 1.125rem; font-weight: 700; line-height: 1.7; max-width: 640px; color: #eef2ff; margin: 0 0 48px; }
.about__info p.bio strong { color: #030014; font-size: 1.15em; text-transform: uppercase; letter-spacing: 0.03em; }
.stack-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.stack-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.3s; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25)); }
.stack-item:hover { transform: scale(1.1); }
.stack-item svg { width: 72px; height: 72px; }
.stack-item span { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }

.about-star { position: absolute; color: #04030a; opacity: 0.25; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.15; } 50% { opacity: 0.35; } }

@media (min-width: 768px) {
  .about__grid { flex-direction: row; }
  .badge-wrap { width: 350px; flex-shrink: 0; margin-top: 0; }
}

/* ---------- Technical Skills ---------- */
.skills-tech { padding: 96px 0 112px; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(120px); }
.glow-1 { top: 25%; left: 40px; width: 380px; height: 380px; background: rgba(47,107,255,0.12); }
.glow-2 { bottom: 25%; right: 40px; width: 380px; height: 380px; background: rgba(109,155,255,0.1); }
.section-header { text-align: center; margin-bottom: 64px; position: relative; z-index: 2; }
.section-header .section-heading, .section-header .section-sub { margin-left: auto; margin-right: auto; }

.skills-grid { display: grid; grid-template-columns: 1fr; gap: 24px; position: relative; z-index: 2; }
@media (min-width: 768px) { .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

.skill-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 24px; transition: all 0.5s; }
.skill-card:hover { transform: scale(1.02); border-color: rgba(47,107,255,0.3); box-shadow: 0 20px 50px rgba(47,107,255,0.12); }
.skill-card h3 { font-size: 1.1rem; font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase; margin: 0 0 24px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.skill-row { margin-bottom: 16px; }
.skill-row:last-child { margin-bottom: 0; }
.skill-row__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.skill-row__top span:first-child { font-size: 0.85rem; font-weight: 600; }
.skill-row__top span:last-child { font-size: 0.75rem; font-weight: 700; color: var(--accent-light); font-family: monospace; }
.skill-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.skill-bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-dark), var(--accent-light)); width: 0%; transition: width 1.4s cubic-bezier(0.16,1,0.3,1); }

/* ---------- Process ---------- */
.process { padding: 96px 0 128px; }
.process__inner { max-width: 1152px; margin: 0 auto; position: relative; }
.process__header { max-width: 460px; margin-bottom: 64px; position: relative; z-index: 20; }
.process__header .section-heading { position: relative; }
.process__header svg.squiggle { position: absolute; bottom: -40px; right: 40px; width: 48px; height: 48px; color: #111; }
.process__svg { display: none; position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 0; }
.process__svg-mobile { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 100%; pointer-events: none; z-index: 0; }

.process__cards { display: flex; flex-direction: column; align-items: center; gap: 32px; position: relative; z-index: 10; width: 100%; padding-top: 16px; padding-bottom: 48px; }
.tag-card {
  width: 300px;
  border-radius: 2rem;
  padding: 8px;
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  transition: all 0.7s;
}
.tag-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.12); transform: scale(1.02); }
.tag-card.active { background: var(--accent); border-color: var(--accent-light); box-shadow: 0 20px 50px rgba(47,107,255,0.4); }
.tag-card__hole { width: 20px; height: 20px; background: linear-gradient(135deg,#d1d5db,#f3f4f6); border-radius: 50%; box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); position: absolute; top: 16px; left: 50%; transform: translateX(-50%); border: 1px solid #d1d5db; z-index: 10; display: flex; align-items: center; justify-content: center; }
.tag-card__hole span { width: 8px; height: 8px; background: #1f2937; border-radius: 50%; opacity: 0.2; }
.tag-card__inner { width: 100%; border-radius: 1.5rem; margin-top: 32px; padding: 32px; display: flex; flex-direction: column; min-height: 200px; background: #f4f4f4; transition: background 0.7s; }
.tag-card.active .tag-card__inner { background: rgba(180, 200, 255, 0.25); }
.tag-card__number { font-size: 1.25rem; font-weight: 700; font-style: italic; font-family: Georgia, serif; color: #9ca3af; margin-bottom: 8px; transition: color 0.7s; }
.tag-card.active .tag-card__number { color: #dbe4ff; }
.tag-card__title { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.01em; color: #111827; margin: 0 0 12px; transition: color 0.7s; }
.tag-card.active .tag-card__title { color: #fff; }
.tag-card__text { font-size: 0.9rem; line-height: 1.6; color: #6b7280; font-weight: 500; transition: color 0.7s; }
.tag-card.active .tag-card__text { color: #eaf0ff; }
.process__end-text { display: none; font-family: var(--font-hand); font-size: 1.9rem; color: #555; transform: rotate(6deg); text-align: center; margin-top: -8px; }

@media (min-width: 768px) {
  .process__inner { min-height: 1350px; }
  .process__header { position: absolute; top: 40px; left: 0; width: 450px; margin-bottom: 0; }
  .process__svg { display: block; height: 1350px; }
  .process__svg-mobile { display: none; }
  .process__cards { display: block; position: static; padding: 0; }
  .tag-card { position: absolute; }
  .tag-card:nth-child(1) { top: 10px; right: 5%; transform: rotate(6deg); }
  .tag-card:nth-child(2) { top: 450px; left: 5%; transform: rotate(-6deg); }
  .tag-card:nth-child(3) { top: 700px; right: 8%; transform: rotate(3deg); }
  .tag-card:nth-child(4) { top: 1050px; left: 18%; transform: rotate(-3deg); }
  .tag-card:hover { transform: scale(1.02) rotate(0deg); }
  .process__end-text { display: block; position: absolute; top: 1250px; left: 60%; }
}

/* ---------- Projects ---------- */
.projects { padding: 96px 0 128px; }
.projects__header { margin-bottom: 64px; max-width: 640px; }
.projects__list { display: flex; flex-direction: column; gap: 24px; }
.project-card { border-radius: 20px; padding: 1px; transition: all 0.5s; background: rgba(255,255,255,0.1); }
.project-card:hover { background: rgba(255,255,255,0.2); }
.project-card.flagship { background: linear-gradient(135deg, rgba(47,107,255,0.5), rgba(255,255,255,0.1), rgba(47,107,255,0.3)); }
.project-card.flagship:hover { background: linear-gradient(135deg, var(--accent), rgba(109,155,255,0.3), rgba(47,107,255,0.6)); }
.project-card__inner { border-radius: 20px; padding: 32px; background: rgba(15,15,20,0.95); backdrop-filter: blur(10px); }
.project-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); background: rgba(47,107,255,0.12); padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(47,107,255,0.25); margin-bottom: 16px; }
.project-title-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.project-number { font-size: 2.75rem; font-weight: 900; font-style: italic; font-family: Georgia, serif; color: rgba(255,255,255,0.1); }
.project-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; letter-spacing: -0.01em; }
.project-desc { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.7; max-width: 720px; margin: 0 0 24px; font-weight: 500; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.project-tags span { padding: 4px 12px; font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; }
.project-tags span:hover { background: rgba(47,107,255,0.2); border-color: rgba(47,107,255,0.3); color: var(--accent-light); }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; transition: all 0.3s; }
.pbtn-outline { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.pbtn-outline:hover { background: #fff; color: #08080c; }
.pbtn-fill { background: var(--accent); color: #fff; }
.pbtn-fill:hover { background: var(--accent-dark); box-shadow: 0 0 20px rgba(47,107,255,0.4); }
.pbtn-disabled { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.1); cursor: default; }
.pbtn svg { width: 16px; height: 16px; }

.projects__cta { margin-top: 64px; display: flex; justify-content: center; }
.cta-outline { display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); color: #fff; font-weight: 700; font-size: 1.05rem; transition: all 0.5s; }
.cta-outline:hover { background: #fff; color: #08080c; box-shadow: 0 0 30px rgba(255,255,255,0.15); }
.cta-outline svg:last-child { width: 20px; height: 20px; transition: transform 0.3s; }
.cta-outline:hover svg:last-child { transform: translateX(4px); }

/* ---------- Live Sites ---------- */
.sites { padding: 96px 0 128px; }
.sites__glow { top: 50%; left: 50%; transform: translate(-50%,-50%); width: 500px; height: 500px; background: rgba(47,107,255,0.06); filter: blur(160px); }
.sites__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .sites__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.site-card {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px; padding: 32px; transition: all 0.5s; display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.site-card:hover { transform: scale(1.02); border-color: rgba(47,107,255,0.3); box-shadow: 0 20px 50px rgba(47,107,255,0.15); }
.site-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.site-card__icon { font-size: 2.25rem; padding: 12px; background: rgba(255,255,255,0.05); border-radius: 16px; transition: all 0.3s; }
.site-card:hover .site-card__icon { background: rgba(47,107,255,0.12); transform: scale(1.1); }
.site-card__tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; color: rgba(255,255,255,0.35); font-family: monospace; }
.site-card h3 { font-size: 1.25rem; font-weight: 900; margin: 0 0 8px; transition: color 0.3s; }
.site-card:hover h3 { color: var(--accent-light); }
.site-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; margin: 0 0 24px; font-weight: 500; }
.site-card__footer { padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-family: monospace; font-weight: 700; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); transition: color 0.3s; }
.site-card:hover .site-card__footer { color: #fff; }
.site-card__footer svg { width: 16px; height: 16px; transition: transform 0.3s; }
.site-card:hover .site-card__footer svg { transform: translateX(6px); }

.sites__cta { margin-top: 64px; display: flex; justify-content: center; }
.cta-fill { display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem; transition: all 0.5s; }
.cta-fill:hover { background: var(--accent-dark); box-shadow: 0 0 30px rgba(47,107,255,0.4); }
.cta-fill svg:last-child { width: 20px; height: 20px; transition: transform 0.3s; }
.cta-fill:hover svg:last-child { transform: translateX(4px); }

/* ---------- Experience ---------- */
.experience { padding: 96px 0 128px; }
.experience__header { text-align: center; margin-bottom: 64px; }
.experience__header p { color: #eaf0ff; font-weight: 600; max-width: 460px; margin: 0 auto; }
.experience__grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
@media (min-width: 900px) { .experience__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.exp-card { background: rgba(0,0,0,0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 32px; transition: all 0.5s; display: flex; flex-direction: column; justify-content: space-between; }
.exp-card:hover { transform: scale(1.02); background: rgba(0,0,0,0.35); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.exp-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.exp-card__duration { color: rgba(255,255,255,0.4); font-size: 0.7rem; font-family: monospace; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.exp-card__pill { background: rgba(255,255,255,0.1); color: #fff; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); }
.exp-card h3 { font-size: 1.5rem; font-weight: 900; margin: 0 0 4px; }
.exp-card .role-org { color: #dbe4ff; font-size: 0.85rem; font-weight: 900; letter-spacing: 0.03em; text-transform: uppercase; margin: 0 0 24px; }
.exp-card h4 { color: rgba(255,255,255,0.6); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.exp-card ul { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; padding-left: 18px; list-style: disc; margin: 0 0 24px; display: flex; flex-direction: column; gap: 4px; }
.exp-card__tech { padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.exp-card__tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-card__tech-tags span { padding: 4px 12px; font-size: 0.75rem; font-family: monospace; font-weight: 700; color: #fff; background: rgba(255,255,255,0.1); border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); }

/* ---------- Education timeline ---------- */
.education { padding: 96px 0 128px; }
.education__header { text-align: center; margin-bottom: 80px; }
.education__header .section-sub { margin: 0 auto; }
.timeline { position: relative; width: 100%; }
.timeline__line { position: absolute; left: 16px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--accent), rgba(109,155,255,0.5), rgba(255,255,255,0.1)); }
.timeline-item { position: relative; display: flex; flex-direction: column; align-items: stretch; margin-bottom: 48px; width: 100%; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 16px; transform: translateX(-50%); top: 4px; width: 16px; height: 16px; background: var(--accent); border-radius: 50%; border: 4px solid #060008; z-index: 5; box-shadow: 0 0 15px var(--accent); }
.timeline-card { width: 100%; padding-left: 48px; }
.timeline-card__box { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 24px; transition: all 0.5s; }
.timeline-card__box:hover { border-color: rgba(47,107,255,0.3); box-shadow: 0 15px 35px rgba(47,107,255,0.1); }
.timeline-pill { display: inline-block; background: rgba(47,107,255,0.15); color: var(--accent-light); font-size: 0.6rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(47,107,255,0.3); margin-bottom: 12px; }
.timeline-card__box h3 { font-size: 1.15rem; font-weight: 900; margin: 0 0 4px; }
.timeline-card__box .org { color: var(--accent-light); font-size: 0.72rem; font-weight: 700; font-family: monospace; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 12px; }
.timeline-card__box p.desc { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.6; font-weight: 500; margin: 0; }

@media (min-width: 768px) {
  .timeline__line { left: 50%; transform: translateX(-50%); }
  .timeline-dot { left: 50%; }
  .timeline-item { flex-direction: row; align-items: center; justify-content: space-between; }
  .timeline-card { width: 45%; padding-left: 0; }
  .timeline-item.even .timeline-card { order: 1; text-align: right; }
  .timeline-item.even .timeline-pill-wrap { justify-content: flex-end; }
  .timeline-item.odd .timeline-card { order: 2; text-align: left; }
  .timeline-item .spacer { width: 45%; }
}
.timeline-pill-wrap { display: flex; margin-bottom: 12px; }

/* ---------- Tools ---------- */
.tools { padding: 80px 0 112px; }
.tools__header { text-align: center; margin-bottom: 56px; }
.tools__header p { margin: 0 auto; }
.tools-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card { background: rgba(0,0,0,0.2); backdrop-filter: blur(6px); border-radius: 18px; padding: 20px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.5s; display: flex; gap: 16px; align-items: flex-start; }
.tool-card:hover { border-color: rgba(255,255,255,0.3); transform: scale(1.04); box-shadow: 0 15px 40px rgba(0,0,0,0.25); }
.tool-card__icon { font-size: 1.5rem; }
.tool-card h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.tool-card p { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0; }
.tools__cta { display: flex; justify-content: center; }
.cta-white { display: inline-flex; align-items: center; gap: 12px; padding: 14px 32px; border-radius: 999px; background: #fff; color: #08080c; font-weight: 700; font-size: 1rem; transition: all 0.3s; }
.cta-white:hover { background: #e5eaff; transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.cta-white svg { width: 18px; height: 18px; }
.cta-white svg:first-child { color: var(--accent); }

/* ---------- Soft skills ---------- */
.softskills { padding: 96px 0 128px; }
.softskills__header { text-align: center; margin-bottom: 64px; }
.softskills__header p { margin: 0 auto; }
.softskills-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .softskills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .softskills-grid { grid-template-columns: repeat(4, 1fr); } }
.soft-card { background: #f8f8fb; border: 1px solid #e5e7eb; border-radius: 24px; padding: 24px; transition: all 0.5s; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: space-between; min-height: 210px; }
.soft-card:hover { transform: scale(1.03); background: #fff; border-color: rgba(47,107,255,0.3); box-shadow: 0 20px 45px rgba(47,107,255,0.08); }
.soft-card__icon { font-size: 2rem; margin-bottom: 12px; padding: 10px; background: #eef1f6; border-radius: 16px; transition: all 0.3s; }
.soft-card:hover .soft-card__icon { background: rgba(47,107,255,0.1); transform: scale(1.1); }
.soft-card h3 { font-size: 1rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; color: #111827; margin: 0 0 8px; }
.soft-card p { font-size: 0.82rem; color: #6b7280; font-weight: 500; line-height: 1.5; margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); width: 100%; min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding-top: 128px; border-top: 1px solid #1a1a1a; }
.contact__bigtext { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; overflow: hidden; pointer-events: none; z-index: 0; padding-top: 48px; will-change: transform; }
.contact__bigtext h1 { font-size: 22vw; line-height: 0.75; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: -0.03em; transform: scaleY(1.5); transform-origin: top; margin: 0; width: 100%; text-align: center; user-select: none; }
.contact__panel { position: relative; z-index: 10; width: 100%; display: flex; justify-content: flex-end; }
.contact__box { background: var(--accent); width: 100%; padding: 40px 24px; color: #fff; }
@media (min-width: 768px) { .contact__box { width: 85%; padding: 64px; } }
@media (min-width: 1024px) { .contact__box { width: 75%; } }
.contact__top { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 48px; }
@media (min-width: 640px) { .contact__top { flex-direction: row; } }
.contact__reach { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.9; }
.contact__quick { display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 999px; transition: all 0.3s; }
.contact__quick:hover { background: #fff; color: var(--accent); }
.contact__quick svg { width: 16px; height: 16px; }

.contact-form { display: flex; flex-direction: column; gap: 48px; }
.contact-form__cols { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 768px) { .contact-form__cols { flex-direction: row; gap: 64px; } }
.contact-form__col { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.field { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 12px; font-size: 1.1rem; color: #fff; font-weight: 500; font-family: inherit; }
.field::placeholder { color: rgba(255,255,255,0.85); }
.field:focus { outline: none; border-color: #fff; }
textarea.field { resize: none; min-height: 120px; }

.contact-form__bottom { display: flex; flex-direction: column; gap: 40px; margin-top: 8px; }
@media (min-width: 768px) { .contact-form__bottom { flex-direction: row; } }
.contact-permission { flex: 1; display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.9); }
.contact-permission input { margin-top: 4px; width: 16px; height: 16px; accent-color: #fff; }
.contact-note { flex: 1; display: flex; flex-direction: column; gap: 24px; font-size: 0.78rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.contact-note p { margin: 0; max-width: 400px; line-height: 1.6; }
.contact-note a { text-decoration: underline; }
.contact-submit-row { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) { .contact-submit-row { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.submit-btn { padding: 12px 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s; white-space: nowrap; align-self: flex-start; background: transparent; }
.submit-btn:hover { background: #fff; color: var(--accent); }
.submit-btn svg { width: 18px; height: 18px; }
.submit-btn.sent { background: #16a34a; border-color: #15803d; color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #111111; color: #d4d4d4; padding: 56px 0; font-family: monospace; font-size: 0.7rem; letter-spacing: 0.06em; }
.footer__top, .footer__bottom { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .footer__top, .footer__bottom { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.footer__top p { margin: 2px 0; }
.footer__col-center { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 768px) { .footer__col-center { align-items: center; } }
.footer__col-right { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 768px) { .footer__col-right { align-items: flex-end; } }
.footer a.underline-link { text-decoration: underline; text-underline-offset: 4px; transition: color 0.3s; }
.footer a.underline-link:hover { color: #fff; }
.footer__brand { width: 100%; display: flex; justify-content: center; align-items: center; padding: 70px 0; overflow: hidden; }
.footer__brand h2 { font-size: 15vw; line-height: 1; font-weight: 800; letter-spacing: -0.03em; text-transform: lowercase; color: #f4f4f4; margin: 0; text-align: center; width: 100%; }
.footer__bottom { align-items: end; }
.footer__col-left { display: flex; flex-direction: column; gap: 20px; }
.footer__copyright { color: rgba(255,255,255,0.5); font-size: 0.65rem; }
.footer__social { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.footer__social a { color: #d4d4d4; transition: color 0.3s; }
.footer__social a:hover { color: #fff; }
.footer__social svg { width: 20px; height: 20px; }

/* ---------- misc ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
