/* ============================================
   RESET & BASE
   ============================================ */

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

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-text-tertiary: #999999;
  --color-border: #e8e8e8;
  --color-border-light: #f0f0f0;
  --color-accent: #1a1a1a;
  --color-accent-hover: #333333;
  --color-accent-light: #f5f5f5;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --container: 1120px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

ul {
  list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 1rem 2rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--color-border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-md);
  gap: var(--space-sm);
  border-top: 1px solid var(--color-border-light);
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: calc(64px + var(--space-3xl)) 0 var(--space-3xl);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero-title em {
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.hero-stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* ============================================
   WORK / PROJECTS
   ============================================ */

.work {
  padding: var(--space-3xl) 0;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all var(--transition);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card:hover {
  border-color: var(--color-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.project-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-card-image img {
  transform: scale(1.02);
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.placeholder-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  color: rgba(255, 255, 255, 0.4);
}

.placeholder-text {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  border-radius: 100px;
  backdrop-filter: blur(10px);
}

.project-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.project-type {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
}

.project-year {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.project-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: var(--space-md);
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  background: var(--color-accent-light);
  border-radius: 100px;
  color: var(--color-text-secondary);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  transition: gap var(--transition);
}

.project-link:hover {
  gap: 0.625rem;
}

/* Full-width project card variant */
.project-card--full {
  grid-template-columns: 1fr;
}

.project-card-body--full {
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
}

.project-card-body--full .project-desc strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Project Showcase (carousel section) */
.project-showcase {
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
}

.project-showcase--split {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: var(--space-md);
  align-items: start;
}

.showcase-col {
  min-width: 0;
}

.showcase-col .carousel {
  height: 420px;
  max-height: none;
}

.showcase-col .carousel-track {
  height: 100%;
}

.showcase-col .carousel-slide {
  height: 100%;
}

.showcase-col .carousel-slide img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.showcase-col:last-child .carousel-slide {
  padding: 16px;
  align-items: center;
  justify-content: center;
}

.showcase-col:last-child .carousel-slide img {
  max-height: 360px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.showcase-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
}

/* ============================================
   IMAGE CAROUSEL
   ============================================ */

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background: #f0f1f3;
  max-height: 480px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 430px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition);
}

.carousel-slide:hover img {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  font-family: var(--font-sans);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav--prev {
  left: 20px;
}

.lightbox-nav--next {
  right: 20px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all var(--transition);
  z-index: 2;
  opacity: 0;
}

.carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn--prev {
  left: 12px;
}

.carousel-btn--next {
  right: 12px;
}

.carousel-btn:disabled {
  opacity: 0.3 !important;
  cursor: default;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.03));
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* ============================================
   LAPTOP MOCKUP
   ============================================ */

.laptop-mockup {
  width: 82%;
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}

.laptop-screen {
  background: #1a1a1a;
  border-radius: 10px 10px 0 0;
  border: 3px solid #333;
  border-bottom: none;
  overflow: hidden;
  position: relative;
}

.laptop-screen::before {
  content: '';
  display: block;
  height: 18px;
  background: linear-gradient(to bottom, #2a2a2a, #222);
  display: flex;
  align-items: center;
  padding: 0 10px;
  position: relative;
}

.laptop-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.laptop-base {
  background: linear-gradient(to bottom, #c0c0c0, #a8a8a8);
  height: 12px;
  border-radius: 0 0 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #999;
  border-top: 1px solid #b8b8b8;
}

.laptop-notch {
  width: 36%;
  height: 5px;
  background: linear-gradient(to bottom, #b0b0b0, #969696);
  border-radius: 0 0 6px 6px;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  padding: var(--space-3xl) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-xl);
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-text {
  margin-top: var(--space-md);
  margin-bottom: 0;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.about-text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ============================================
   CAREER TIMELINE
   ============================================ */

.timeline {
  margin-bottom: var(--space-xl);
}

.timeline-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1.5px solid var(--color-border);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 20px;
}

.timeline-items::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--color-border);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  position: relative;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 4px;
  position: absolute;
  left: -20px;
  z-index: 1;
}

.timeline-item:first-child .timeline-dot {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

.timeline-content strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.timeline-company {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

/* Certifications Section */
.certs-section {
  padding-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

.certs-section .timeline-heading {
  margin-bottom: var(--space-sm);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}

.cert-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
}

.cert-item strong {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.cert-meta {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* ============================================
   SKILLS
   ============================================ */

.skills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg) var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

.skills-group h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1.5px solid var(--color-border);
}

.skills-group li {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding: 0.25rem 0;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: var(--space-3xl) 0;
}

.contact-inner {
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.contact-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  border-color: var(--color-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.contact-card-icon {
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xs);
}

.contact-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.contact-card-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.contact-reveal {
  align-self: flex-start;
  margin-top: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.contact-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-links a:hover {
  color: var(--color-text);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

.footer-note {
  font-style: italic;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card-image {
    aspect-ratio: 16/9;
  }

  .project-card-placeholder {
    min-height: 200px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-meta {
    gap: var(--space-lg);
  }

  .skills {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-showcase {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .project-card-body--full {
    padding: var(--space-md) var(--space-md) var(--space-xs);
  }

  .carousel-btn {
    opacity: 1;
    width: 36px;
    height: 36px;
  }

  .project-showcase--split {
    grid-template-columns: 1fr;
  }

  .showcase-col .carousel {
    height: 360px;
  }

  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --space-3xl: 4rem;
    --space-xl: 3rem;
    --space-lg: 2rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile.open {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(64px + var(--space-xl));
  }

  .hero-meta {
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
  }

  .hero-stat {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
  }

  /* Projects */
  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .project-desc {
    font-size: 0.875rem;
  }

  .project-card-body {
    padding: var(--space-md);
  }

  .project-card-body--full {
    padding: var(--space-md) var(--space-md) var(--space-xs);
  }

  .project-showcase {
    padding: var(--space-xs) var(--space-sm) var(--space-md);
  }

  /* Carousels */
  .carousel {
    max-height: 280px;
    border-radius: var(--radius-sm);
  }

  .carousel-slide {
    padding: 12px;
  }

  .carousel-slide img {
    max-height: 240px;
    border-radius: 4px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
  }

  .carousel-btn--prev {
    left: 6px;
  }

  .carousel-btn--next {
    right: 6px;
  }

  .carousel-dots {
    padding: 8px 0;
    gap: 5px;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }

  .showcase-col .carousel {
    height: 260px;
  }

  .showcase-col .carousel-slide img {
    max-height: 220px;
  }

  .showcase-col:last-child .carousel {
    height: 320px;
  }

  .showcase-col:last-child .carousel-slide img {
    max-height: 280px;
  }

  .showcase-label {
    font-size: 0.6875rem;
    margin-bottom: var(--space-xs);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-text p {
    font-size: 0.9375rem;
  }

  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skills {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  /* Contact */
  .contact-card {
    padding: var(--space-md);
  }

  .contact-card-title {
    font-size: 1.125rem;
  }

  /* Lightbox */
  .lightbox img {
    max-width: 96vw;
    max-height: 80vh;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .lightbox-nav--prev {
    left: 8px;
  }

  .lightbox-nav--next {
    right: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-counter {
    bottom: 16px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .laptop-mockup {
    width: 70%;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .project-tags span {
    font-size: 0.6875rem;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .skills {
    grid-template-columns: 1fr;
  }

  .contact-title {
    font-size: 1.75rem;
  }
}
