/* =============================================
   DENNIS LEFA HALO — PORTFOLIO DESIGN SYSTEM
   Theme: Sleek Dark Mode (Navy & Cyan/Teal)
   Typography: Space Grotesk + Inter
============================================= */

/* ─── CSS Reset & Box Sizing ────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --navy: #0f1a2e;
  --navy-dark: #09101d;
  --navy-light: #162238;
  --navy-card: #142034;
  --navy-surface: #1a2942;
  --white: #ffffff;
  --teal: #00b4d8;
  --teal-glow: rgba(0, 180, 216, 0.4);
  --teal-light: #48cae4;
  --teal-dark: #0096b7;
  --gray: #94a3b8;
  --gray-dark: #64748b;
  --gray-light: #cbd5e1;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 180, 216, 0.4);
  
  /* Layout & Sizing */
  --section-padding: 96px;
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

/* ─── Accessibility & Focus States ──────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--teal);
  color: var(--navy);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 100000;
  transition: top 0.3s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 20px;
}

/* ─── Typography & Base Elements ────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy-dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0, 180, 216, 0.08);
  transform: translateY(-2px);
}

/* =============================================
   HEADER & NAVIGATION
============================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: rgba(15, 26, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
}

.logo span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
}

/* Mobile Hamburger Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 26, 46, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.mobile-menu a.mobile-nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gray-light);
  transition: color var(--transition);
}

.mobile-menu a.mobile-nav-link:hover,
.mobile-menu a.mobile-nav-link.active {
  color: var(--teal);
}

.mobile-cta {
  margin-top: 16px;
  padding: 14px 36px;
  font-size: 1.1rem;
}

/* =============================================
   1. HERO SECTION
============================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(0, 180, 216, 0.06) 0%, transparent 40%),
              linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
}

.hero-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.25);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  align-self: flex-start;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--teal);
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-bio {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--gray-light);
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--gray);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item svg {
  color: var(--teal);
}

.hero-meta-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* Hero Portrait Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.portrait-image-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  border: 1px solid rgba(0, 180, 216, 0.2);
  background: var(--navy-surface);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-badge {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--gray);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--teal);
  border-radius: 3px;
  animation: scrollMouse 1.8s ease-in-out infinite;
}

@keyframes scrollMouse {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* =============================================
   SECTION COMMONS
============================================= */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 680px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin: 0 auto;
}

/* =============================================
   2. SKILLS & TECHNOLOGIES SECTION
============================================= */
.skills-section {
  background: var(--navy-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Two rows of six on wide screens */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 0;
}

.skill-card {
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  background: var(--navy-surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 180, 216, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--teal);
  transition: all var(--transition);
}

.skill-icon-box svg {
  width: 26px;
  height: 26px;
}

.skill-card:hover .skill-icon-box {
  background: var(--teal);
  color: var(--navy-dark);
  transform: scale(1.05);
}

.skill-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.skill-group-tag {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   3. ABOUT SECTION
============================================= */
.about-section {
  background: var(--navy);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.about-text-content {
  display: flex;
  flex-direction: column;
}

.about-narrative {
  margin-bottom: 28px;
}

.about-narrative p {
  font-size: 1.06rem;
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 180, 216, 0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.5;
}

.about-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* About Visual Column */
.about-visual-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-image-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-card:hover .about-work-img {
  transform: scale(1.03);
}

.experience-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 18px 24px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.1;
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 2px;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* =============================================
   4. PROJECTS SECTION
============================================= */
.projects-section {
  background: var(--navy-dark);
  border-top: 1px solid var(--border-subtle);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  grid-auto-rows: 1fr;
}

.project-card {
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.project-image {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background: var(--navy-surface);
  overflow: hidden;
}

.project-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 26, 46, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay .btn {
  transform: translateY(12px);
  transition: all var(--transition);
}

.project-card:hover .project-overlay .btn {
  transform: translateY(0);
}

.project-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 180, 216, 0.1);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.project-role-tag {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
  line-height: 1.4;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.project-description {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tags .tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-light);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-footer-link {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  transition: gap var(--transition);
}

.project-link:hover {
  gap: 10px;
  color: var(--teal-light);
}

.project-status-tag {
  font-size: 0.78rem;
  color: var(--gray);
  font-style: italic;
}

/* =============================================
   5. FOOTER
============================================= */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo span {
  color: var(--teal);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--gray);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  transition: all var(--transition);
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
}

.footer-socials a:hover {
  background: var(--teal);
  color: var(--navy-dark);
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.35);
}

.footer-copy {
  width: 100%;
  padding-top: 24px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-dark);
}

/* ─── Back to Top Button ────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-card);
  border: 1px solid var(--teal);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 900;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal);
  color: var(--navy-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.4);
}

/* =============================================
   RESPONSIVE MEDIA QUERIES
============================================= */

/* ─── Tablet Landscape / Small Desktop (1024px) ── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual-column {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ─── Tablet Portrait (768px) ───────────────── */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-tag {
    align-self: center;
  }

  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .skill-categories-summary {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-highlights-grid {
    grid-template-columns: 1fr;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ─── Mobile (480px) ────────────────────────── */
@media (max-width: 480px) {
  :root {
    --section-padding: 52px;
  }

  .container {
    padding: 0 16px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-section {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .hero-role {
    font-size: 1.3rem;
  }

  .hero-bio {
    font-size: 0.98rem;
  }

  .hero-ctas,
  .about-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-ctas .btn,
  .about-cta-row .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .skill-card {
    padding: 18px 12px;
  }

  .skill-icon-box {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }

  .skill-icon-box svg {
    width: 22px;
    height: 22px;
  }

  .portrait-card {
    max-width: 280px;
  }

  .experience-metrics-strip {
    padding: 14px 10px;
  }

  .metric-val {
    font-size: 1.4rem;
  }

  .metric-lbl {
    font-size: 0.72rem;
  }

  .project-info {
    padding: 18px 16px;
  }

  .project-title {
    font-size: 1.15rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }
}

/* ─── Prefers Reduced Motion ────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .scroll-indicator .mouse::after {
    animation: none;
  }
}

/* ─── FAQ Section (AEO & SEO) ────────────────── */
.faq-section {
  background-color: var(--navy-dark);
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.faq-accordion {
  max-width: 860px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-active);
}

.faq-item[open] {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.12);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  color: var(--gray-light);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer a {
  color: var(--teal-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
