/* =====================================================
   PORTFOLIO — style.css
   John Russelle Domingo
===================================================== */

/* ── CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  --c-bg:        #0a192f;
  --c-bg-alt:    #0d2137;
  --c-card:      #112240;
  --c-navy:      #1e3a5f;
  --c-cyan:      #64ffda;
  --c-cyan-10:   rgba(100, 255, 218, 0.1);
  --c-cyan-20:   rgba(100, 255, 218, 0.2);
  --c-white:     #e6f1ff;
  --c-light:     #ccd6f6;
  --c-slate:     #a8b2d8;
  --c-muted:     #8892b0;
  --c-border:    #1e3a5f;

  --f-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono: 'Fira Code', 'Courier New', monospace;

  --nav-h:    72px;
  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 20px 60px -15px rgba(2, 12, 27, 0.8);
  --t:         all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ── LIGHT MODE ────────────────────────────────────── */
body.light {
  --c-bg:        #f0f4f8;
  --c-bg-alt:    #e4eaf2;
  --c-card:      #ffffff;
  --c-navy:      #c8d6e5;
  --c-cyan:      #0077cc;
  --c-cyan-10:   rgba(0, 119, 204, 0.1);
  --c-cyan-20:   rgba(0, 119, 204, 0.2);
  --c-white:     #1a202c;
  --c-light:     #1a202c;
  --c-slate:     #2d3748;
  --c-muted:     #4a5568;
  --c-border:    #c8d6e5;
}

body.light ::-webkit-scrollbar-track  { background: var(--c-bg); }
body.light ::-webkit-scrollbar-thumb  { background: var(--c-navy); }
body.light .nav.scrolled              { background: rgba(240,244,248,0.97); }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

a        { text-decoration: none; color: inherit; transition: var(--t); }
ul       { list-style: none; }
img      { display: block; max-width: 100%; }
button   { border: none; background: none; cursor: pointer; font: inherit; }

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar            { width: 6px; }
::-webkit-scrollbar-track      { background: var(--c-bg); }
::-webkit-scrollbar-thumb      { background: var(--c-navy); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover{ background: var(--c-cyan); }

/* ── SELECTION ─────────────────────────────────────── */
::selection { background: var(--c-cyan-20); color: var(--c-cyan); }

/* ── UTILITY ───────────────────────────────────────── */
.container  { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.accent     { color: var(--c-cyan); font-family: var(--f-mono); }
.text-light { color: var(--c-light); }

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: var(--t);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: transparent;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-cyan-10);
  box-shadow: 0 0 24px rgba(100, 255, 218, 0.15);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--c-slate);
  border-color: var(--c-slate);
  background: transparent;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: var(--c-cyan-10);
  transform: translateY(-2px);
}

.btn--outline {
  color: var(--c-slate);
  border-color: var(--c-slate);
  background: transparent;
}
.btn--outline:hover { color: var(--c-cyan); border-color: var(--c-cyan); }

.btn--sm  { padding: 0.5rem 1rem; font-size: 0.78rem; }
.btn--lg  { padding: 1rem 2rem; font-size: 0.9rem; }

/* ── SECTIONS ──────────────────────────────────────── */
.section      { padding: 6rem 0; }
.section--alt {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 50%, var(--c-bg) 100%);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--c-light);
  margin-bottom: 3.5rem;
  white-space: nowrap;
}
.section-title__num {
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-cyan);
}
.section-title__line {
  display: block;
  flex: 1;
  height: 1px;
  background: var(--c-border);
  min-width: 40px;
  max-width: 260px;
}
.section-title--center       { justify-content: center; }
.section-title--center .section-title__line { display: none; }

.section-subtitle {
  color: var(--c-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.section-subtitle a { color: var(--c-cyan); }
.section-subtitle a:hover { text-decoration: underline; }

/* ── SCROLL REVEAL ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVIGATION ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 3rem;
  transition: var(--t);
}
.nav.scrolled {
  background: rgba(10, 25, 47, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(2, 12, 27, 0.6);
}

.nav__logo {
  font-family: var(--f-mono);
  font-size: 1.25rem;
  color: var(--c-cyan);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: var(--t);
}
.nav__logo:hover { color: var(--c-white); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-family: var(--f-mono);
  font-size: 0.875rem;
  color: var(--c-slate);
}
.nav__links a:not(.btn):hover,
.nav__links a:not(.btn).active { color: var(--c-cyan); }

.nav__num {
  color: var(--c-cyan);
  font-size: 0.75rem;
  margin-right: 0.2rem;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  z-index: 101;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--c-slate);
  background: transparent;
  border: 1px solid var(--c-border);
  font-size: 0.9rem;
  transition: var(--t);
  cursor: pointer;
  flex-shrink: 0;
  order: 1;
}
.theme-toggle:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: var(--c-cyan-10);
  transform: rotate(20deg);
}
body.light .theme-toggle { color: var(--c-cyan); border-color: var(--c-cyan); }
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--c-cyan);
  border-radius: 2px;
  transition: var(--t);
}
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-top: var(--nav-h);
}

/* Staggered entrance animation for hero children */
.hero__content > * {
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards;
}
.hero__greeting  { animation-delay: 0.15s; }
.hero__name      { animation-delay: 0.35s; }
.hero__subtitle  { animation-delay: 0.55s; }
.hero__bio       { animation-delay: 0.75s; }
.hero__cta       { animation-delay: 0.95s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__greeting {
  font-family: var(--f-mono);
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--c-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero__name {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--c-light);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: clamp(1.4rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--c-muted);
  line-height: 1.2;
  min-height: 1.4em;
  margin-bottom: 1.75rem;
}

/* Typing cursor */
.cursor {
  display: inline-block;
  width: 3px;
  height: 0.8em;
  background: var(--c-cyan);
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero__bio {
  font-size: clamp(0.9rem, 2vw, 1.0625rem);
  color: var(--c-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: fadeInUp 1s 2.2s ease both;
  opacity: 0;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero__mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--c-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  opacity: 0.55;
}
.hero__mouse-wheel {
  width: 4px;
  height: 8px;
  background: var(--c-cyan);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ── ABOUT ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-muted);
}

.about-meta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-meta li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--c-slate);
}
.about-meta li i { color: var(--c-cyan); width: 16px; text-align: center; flex-shrink: 0; }
.about-meta li a { color: var(--c-cyan); border-bottom: 1px solid transparent; }
.about-meta li a:hover { border-bottom-color: var(--c-cyan); }

.about-photo {
  display: flex;
  justify-content: center;
}
.photo-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  perspective: 800px;
  padding-bottom: 2.4rem; /* space for badge */
  box-sizing: content-box;
}

/* 3-D flip card — auto-swaps every 5 s via JS class .is-flipped */
.photo-flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.645, 0.045, 0.355, 1);
  border-radius: var(--radius-lg);
  z-index: 1;
}
.photo-flipper.is-flipped {
  transform: rotateY(180deg);
}

.photo-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-face--back {
  transform: rotateY(180deg);
}
.photo-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  filter: grayscale(10%) contrast(1.05);
  transition: filter 0.4s ease;
  display: block;
}
/* GitHub avatar is square — override to centre it */
.photo-face.photo-face--back img {
  object-position: center center;
}

/* label badge that shows which side is showing */
.photo-badge {
  position: absolute;
  bottom: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--c-muted);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.photo-badge span { color: var(--c-cyan); }

.photo-border {
  position: absolute;
  top: 16px; left: 16px;
  right: -16px; bottom: -16px;
  border: 2px solid var(--c-cyan);
  border-radius: var(--radius-lg);
  transition: var(--t);
  z-index: 0;
}
.photo-wrapper:hover .photo-border {
  top: 10px; left: 10px;
  right: -10px; bottom: -10px;
}

/* ── SKILLS ────────────────────────────────────────── */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.skills-cat h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skills-cat h3 i { color: var(--c-cyan); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--f-mono);
  color: var(--c-slate);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  transition: var(--t);
  cursor: default;
}
.tag:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: var(--c-cyan-10);
  transform: translateY(-2px);
}

.tag--java { color: #e4a13a; border-color: rgba(176, 114, 25, 0.35); }
.tag--ts   { color: #569cd6; border-color: rgba(49, 120, 198, 0.35); }
.tag--cs   { color: #6abf69; border-color: rgba(23, 134, 0, 0.35); }
.tag--sql  { color: #ffa724; border-color: rgba(227, 140, 0, 0.35); }
.tag--dart { color: #5bc8af; border-color: rgba(0, 180, 171, 0.35); }
.tag--ai   {
  color: var(--c-cyan);
  border-color: rgba(100, 255, 218, 0.25);
  background: rgba(100, 255, 218, 0.05);
}

/* Skill bars */
.skill-bars        { max-width: 620px; }
.skill-bars__heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
}

.skill-bar { margin-bottom: 1.4rem; }
.skill-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  color: var(--c-slate);
}
.skill-bar__pct {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--c-cyan);
}
.skill-bar__track {
  height: 6px;
  background: var(--c-card);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c-cyan), #0abde3);
  width: 0;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── PROJECTS ──────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-cyan-10) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.project-card:hover {
  transform: translateY(-7px);
  border-color: var(--c-cyan);
  box-shadow: 0 20px 50px rgba(2, 12, 27, 0.7), 0 0 0 1px rgba(100, 255, 218, 0.08);
}
.project-card:hover::before { opacity: 1; }

.project-card--highlight {
  background: linear-gradient(135deg, var(--c-card) 0%, rgba(100, 255, 218, 0.04) 100%);
  border-color: rgba(100, 255, 218, 0.22);
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.project-card__icon {
  font-size: 2rem;
  color: var(--c-cyan);
  opacity: 0.85;
  transition: var(--t);
}
.project-card:hover .project-card__icon { opacity: 1; }

.project-card__links { display: flex; gap: 0.75rem; }
.project-card__links a {
  color: var(--c-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  transition: var(--t);
}
.project-card__links a:hover {
  color: var(--c-cyan);
  transform: translateY(-3px);
}

.project-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-light);
  line-height: 1.3;
  transition: var(--t);
}
.project-card:hover .project-card__title { color: var(--c-cyan); }

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

.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-card__stack li {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid var(--c-border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.project-card__lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--c-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.projects-more { margin-top: 3rem; text-align: center; }

/* ── CONTACT ───────────────────────────────────────── */
.contact-container { text-align: center; }

.contact-intro {
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-muted);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: var(--c-muted);
  transition: var(--t);
  overflow: hidden;
}
.social-card:hover {
  border-color: var(--c-cyan);
  background: var(--c-cyan-10);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(2, 12, 27, 0.6);
  color: var(--c-light);
}
.social-card > i {
  font-size: 1.5rem;
  color: var(--c-cyan);
  flex-shrink: 0;
}
.social-card div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
  min-width: 0;
}
.social-card strong {
  font-size: 0.875rem;
  color: var(--c-light);
  font-weight: 600;
}
.social-card span {
  font-size: 0.78rem;
  color: var(--c-muted);
  font-family: var(--f-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-cta { margin-top: 0.5rem; }

/* ── FOOTER ────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  font-size: 0.85rem;
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
}
.footer a { color: var(--c-cyan); font-family: var(--f-mono); }
.footer a:hover { text-decoration: underline; }
.footer__sub { margin-top: 0.4rem; font-size: 0.8rem; opacity: 0.55; }

/* ── SIDE LINKS ────────────────────────────────────── */
.side {
  position: fixed;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: sideReveal 1s 1.8s ease both;
  opacity: 0;
}
@keyframes sideReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.side--left { left: 2rem; }
.side--right { right: 2rem; }

.side--left a {
  font-size: 1.1rem;
  color: var(--c-muted);
  transition: var(--t);
}
.side--left a:hover {
  color: var(--c-cyan);
  transform: translateY(-4px);
}

.side__email {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.14em;
  transition: var(--t);
}
.side__email:hover {
  color: var(--c-cyan);
  transform: translateY(-4px);
}

.side__line {
  width: 1px;
  height: 80px;
  background: var(--c-muted);
  opacity: 0.35;
  flex-shrink: 0;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1100px) {
  .side          { display: none; }
  .hero          { padding: 0 2rem; }
  .nav           { padding: 0 2rem; }
}

@media (max-width: 900px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(20px);
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 1.1rem;
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav__links a { font-size: 1.05rem; }
  .nav__links .btn { font-size: 0.95rem; padding: 0.7rem 1.5rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-photo { order: -1; }
  .photo-wrapper { width: 200px; height: 200px; margin: 0 auto; perspective: 600px; }
}

@media (max-width: 600px) {
  .hero       { padding: 0 1.25rem; min-height: 100svh; }
  .section    { padding: 4rem 0; }
  .container  { padding: 0 1.25rem; }

  .hero__cta  { flex-direction: column; max-width: 260px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__scroll-indicator { display: none; }

  .section-title { flex-wrap: wrap; gap: 0.5rem; }
  .section-title__line { display: none; }

  .projects-grid  { grid-template-columns: 1fr; }
  .social-links   { grid-template-columns: 1fr; }
  .skills-categories { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .skills-categories { grid-template-columns: 1fr; }
}
