/* Sana Fatima Portfolio — Dark Plum Editorial Theme */
:root {
  --bg: #0c0812;
  --surface: #16101f;
  --surface-2: #1e1529;
  --border: rgba(199, 125, 255, 0.15);
  --text: #f0e6f6;
  --text-muted: #a894b8;
  --accent: #c77dff;
  --accent-2: #e0aaff;
  --gold: #d4a574;
  --glow: rgba(199, 125, 255, 0.35);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --sidebar-w: 88px;
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  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)'/%3E%3C/svg%3E");
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  z-index: 1000;
}

.sidebar__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 40px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sidebar__nav a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.sidebar__nav a span { display: none; }

.sidebar__nav a:hover,
.sidebar__nav a.active {
  color: var(--accent);
  background: rgba(199, 125, 255, 0.1);
}

.sidebar__nav a.active::before {
  content: '';
  position: absolute;
  left: -20px;
  width: 3px;
  height: 24px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.sidebar__social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.sidebar__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2rem;
}

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-glow {
  background: linear-gradient(135deg, var(--accent), #9b4dca);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

/* Hero */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 60px 48px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg) 0%, transparent 50%, rgba(199, 125, 255, 0.08) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-2);
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 24px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero__tags span {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  background: rgba(199, 125, 255, 0.12);
  border: 1px solid var(--border);
  color: var(--accent-2);
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero__meta i { color: var(--accent); width: 18px; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 620px;
}

.hero__glow {
  position: absolute;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
}

.hero__photo {
  position: relative;
  max-height: 720px;
  width: auto;
  max-width: 110%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.55));
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

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

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: var(--surface);
}

.marquee__track {
  display: flex;
  gap: 32px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-muted);
}

.marquee__track span:nth-child(odd) { color: var(--accent); }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Stats */
.stats {
  padding: 48px;
  background: var(--surface-2);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Sections */
.section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--surface);
  max-width: none;
  padding-left: calc(48px + var(--sidebar-w));
  padding-right: 48px;
}

.section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 48px;
}

.section-num {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about__gallery img:first-child {
  grid-column: 1 / -1;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.75) saturate(0.9);
}

.about__gallery img:not(:first-child) {
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.72) saturate(0.88);
}

.about__content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--accent-2);
}

.about__content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about__chips span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(199, 125, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
}

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

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 32px;
}

.bento__card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  border: 1px solid var(--border);
}

.bento__card--large { grid-row: span 2; min-height: 416px; }
.bento__card--wide { grid-column: span 2; }

.bento__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform 0.6s ease;
  filter: brightness(0.65) saturate(0.9);
}

.bento__card:hover img {
  transform: scale(1.08);
  filter: brightness(0.8) saturate(1);
}

.bento__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 8, 18, 0.95) 0%, rgba(12, 8, 18, 0.3) 60%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento__overlay i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.bento__overlay h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.bento__overlay p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.skill-tags span {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.skill-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(199, 125, 255, 0.1);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.timeline__item:hover {
  border-color: var(--accent);
  transform: translateX(8px);
}

.timeline__img {
  border-radius: 12px;
  overflow: hidden;
  height: 140px;
}

.timeline__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.85);
}

.timeline__date {
  font-size: 0.8rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.timeline__body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.timeline__org {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.timeline__body > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.timeline__body ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0 4px 16px;
  position: relative;
}

.timeline__body ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.5rem;
  top: 8px;
}

/* Projects */
.project--featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
  padding: 32px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-items: center;
}

.project__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.project__visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
}

.project__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project__info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 4px;
}

.project__sub {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.project__info > p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project__stack span {
  padding: 4px 12px;
  background: rgba(199, 125, 255, 0.1);
  border-radius: 6px;
  font-size: 0.78rem;
}

.projects__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.project-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.88);
}

.project-card:hover img {
  filter: brightness(0.88) saturate(1);
}

.project-card__body {
  padding: 20px;
}

.project-card__body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.project-card__body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.project-card__tag {
  font-size: 0.75rem;
  color: var(--accent);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-strip img {
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.85;
  transition: var(--transition);
  cursor: pointer;
  filter: brightness(0.7) saturate(0.88);
}

.gallery-strip img:hover {
  opacity: 1;
  transform: scale(1.03);
  filter: brightness(0.9) saturate(1);
}

.edu-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.85);
}
.certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.cert:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--glow);
}

.cert img {
  height: 120px;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.9);
}

.cert:hover img {
  filter: brightness(0.85) saturate(1);
}

.cert__body {
  padding: 20px;
}

.cert__body h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.cert__body p {
  font-size: 0.82rem;
  color: var(--accent);
}

.cert__id {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Education banner */
.edu-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
}

.edu-banner__text {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,8,18,0.95), transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.edu-banner__text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
}

.edu-banner__text p { color: var(--text-muted); }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact__card:hover {
  border-color: var(--accent);
  transform: translateX(6px);
}

.contact__card i {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(199, 125, 255, 0.12);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact__card span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact__card strong {
  font-size: 0.95rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form input,
.contact__form textarea {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.contact__form textarea { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a:hover { color: var(--accent); }

/* Section description */
.section-desc {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
  font-size: 1rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--glow);
}

.service-card > img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.85);
}

.service-card:hover > img {
  filter: brightness(0.85) saturate(1);
}

.service-card__body {
  padding: 22px;
}

.service-card__body > i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.service-card__body > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.service-card__body ul li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 3px 0 3px 14px;
  position: relative;
}

.service-card__body ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Skill bars */
.skill-bars {
  margin-top: 40px;
  padding: 32px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.skill-bars__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 28px;
}

.skill-bars__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}

.skill-bar__top {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--accent-2);
}

.skill-bar__track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #9b4dca);
  border-radius: 50px;
  transition: width 1.2s ease;
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.tools-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
  text-align: center;
}

.tools-card i {
  font-size: 1.5rem;
  color: var(--accent);
}

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

.tools-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

/* Work showcase */
.work-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-showcase__card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: var(--transition);
}

.work-showcase__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.work-showcase__card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.9);
}

.work-showcase__card:hover img {
  filter: brightness(0.85) saturate(1);
}

.work-showcase__info {
  padding: 18px;
}

.work-showcase__info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.work-showcase__info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.work-showcase__info span {
  font-size: 0.75rem;
  color: var(--accent);
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.why-card:hover { border-color: var(--accent); }

.why-card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.88);
}

.why-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding: 20px 20px 8px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0 20px 20px;
}

/* Cert description */
.cert__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 8px 0;
  line-height: 1.5;
}

/* Education cards */
.edu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.edu-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.edu-card:hover { border-color: var(--accent); }

.edu-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.edu-card h4 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.edu-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.edu-banner__detail {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .work-showcase { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .edu-cards { grid-template-columns: 1fr; }
  .skill-bars__grid { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__tags, .hero__cta { justify-content: center; }
  .hero__meta li { justify-content: center; }
  .about { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__card--large { grid-row: span 1; }
  .bento__card--wide { grid-column: span 2; }
  .timeline__item { grid-template-columns: 1fr; }
  .project--featured { grid-template-columns: 1fr; }
  .projects__row { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    padding: 24px;
    transition: transform var(--transition);
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar__nav a {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 16px;
  }

  .sidebar__nav a span { display: inline; }

  .sidebar__social { flex-direction: row; }

  .menu-btn { display: flex; align-items: center; justify-content: center; }

  .main { margin-left: 0; }

  .section { padding: 60px 24px; }
  .section-alt { padding-left: 24px; padding-right: 24px; }
  .hero { padding: 80px 24px 40px; }
  .stats { padding: 32px 24px; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }
  .certs { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .work-showcase { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .projects__row { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .hero__photo { max-height: 520px; max-width: 100%; }
  .hero__visual { min-height: 480px; }
}
