/* ==========================================================================
   DEVANG JAIN — PORTFOLIO
   Design system: Premium Minimalism, emerald/forest/sage — dark mode only
   ========================================================================== */

/* ---------- Tokens ---------- */
:root{
  /* Greens */
  --emerald:      #1E7A5F;
  --emerald-dark: #145944;
  --forest:       #123B30;
  --sage:         #93AD9C;
  --sage-soft:    #DCE6DE;
  --olive:        #A8A06B;

  /* Neutrals */
  --ivory:        #FBFAF5;
  --ivory-deep:   #F3F1E9;
  --charcoal:     #14211C;
  --charcoal-2:   #1C2B24;
  --line:         #DFE3DA;

  /* Semantic — dark theme (the only theme) */
  --bg:            var(--charcoal);
  --bg-alt:        var(--charcoal-2);
  --surface:       #1F2F27;
  --text:          #EDF2EE;
  --text-muted:    #A9B8AE;
  --border:        #2C3D33;
  --accent:        #58C29A;
  --accent-dark:   #3FA07E;
  --accent-contrast: #0E1712;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
  --shadow-hover: 0 4px 10px rgba(0,0,0,0.35), 0 20px 40px -16px rgba(0,0,0,0.6);

  /* Type */
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
svg{ width: 1em; height: 1em; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
p{ margin: 0; }
h1,h2,h3,h4,p,span,a,li{ overflow-wrap: anywhere; }

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

/* ---------- Ambient background ---------- */
.bg-decor{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-decor::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(88,194,154,0.14) 1px, transparent 1px);
  background-size: 34px 34px;
}
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.20;
  animation: drift 34s ease-in-out infinite alternate;
}
.blob-1{
  width: 560px; height: 560px;
  top: -160px; left: -180px;
  background: radial-gradient(circle, var(--emerald), transparent 70%);
}
.blob-2{
  width: 520px; height: 520px;
  top: 38%; right: -220px;
  background: radial-gradient(circle, var(--sage), transparent 70%);
  animation-delay: -12s;
}
.blob-3{
  width: 500px; height: 500px;
  bottom: 6%; left: 8%;
  background: radial-gradient(circle, var(--olive), transparent 72%);
  animation-delay: -22s;
}
.blob-4{
  width: 480px; height: 480px;
  top: 68%; right: 12%;
  background: radial-gradient(circle, var(--emerald), transparent 72%);
  animation-delay: -8s;
}
.blob-5{
  width: 460px; height: 460px;
  bottom: -180px; left: 40%;
  background: radial-gradient(circle, var(--sage), transparent 72%);
  animation-delay: -28s;
}
@keyframes drift{
  from{ transform: translate(0,0) scale(1); }
  to{ transform: translate(40px,50px) scale(1.08); }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 16px; height: 16px; transition: transform .25s var(--ease); flex-shrink: 0; }
.btn:hover svg{ transform: translateX(3px); }
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: scale(0.97); }

.btn-primary{
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 8px 20px -8px rgba(30,122,95,0.55);
}
.btn-primary:hover{ background: var(--accent-dark); box-shadow: 0 10px 26px -8px rgba(30,122,95,0.6); }

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

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

.btn.is-disabled{
  opacity: 0.5;
  pointer-events: none;
}

.is-disabled{
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Navbar ---------- */
#navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-inner{
  width: 100%;
  max-width: var(--container);
  margin: 12px auto 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
#navbar.scrolled .nav-inner{
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  padding-left: 6px;
}
.logo-dot{ color: var(--accent); }

.nav-menu{
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu a{
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-menu a:hover{ color: var(--text); background: var(--bg-alt); }
.nav-menu a.active{ color: var(--accent); background: rgba(88,194,154,0.14); }

.nav-actions{ display: flex; align-items: center; gap: 10px; }

.nav-resume-btn{ padding: 10px 20px; font-size: 0.88rem; }

.hamburger{
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.hamburger span{
  width: 16px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger.active span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position: fixed;
  top: calc(var(--nav-h) + 6px);
  left: 16px; right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 99;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.mobile-menu.open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a{
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text);
}
.mobile-menu a:hover, .mobile-menu a.active{ background: var(--bg-alt); color: var(--accent-dark); }
.mobile-menu .mobile-resume{
  margin-top: 6px;
  justify-content: center;
}

/* ---------- Section scaffolding ---------- */
section{ position: relative; padding: 118px 0; }
.section-alt{ background: transparent; }
.section-head{
  max-width: 620px;
  margin-bottom: 56px;
}
.eyebrow{
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.section-title{
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.section-desc{
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 64px;
  min-height: 62vh;
  display: flex;
  align-items: center;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text{
  max-width: 720px;
}
.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.hero-eyebrow .dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.hero-title{
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  color: var(--text);
}
.hero-title .accent{ color: var(--accent-dark); }
.hero-role{
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text);
}
.hero-role .sep{ color: var(--sage); margin: 0 10px; }
.hero-actions{
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-socials{
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-socials a{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .25s var(--ease);
}
.hero-socials a:hover{ color: var(--accent-dark); border-color: var(--accent); transform: translateY(-4px) scale(1.06); box-shadow: var(--shadow-hover); }
.hero-socials svg{ width: 19px; height: 19px; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid{
  max-width: 760px;
}
.about-text p{ color: var(--text-muted); font-size: 1.08rem; }
.about-text p + p{ margin-top: 16px; }
.about-focus{
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.focus-chip{
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.focus-chip:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ==========================================================================
   TIMELINE (Education & Experience)
   ========================================================================== */
.timeline{
  position: relative;
  max-width: 780px;
  padding-left: 34px;
  border-left: 1px solid var(--border);
}
.timeline-item{
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content: "";
  position: absolute;
  left: -40px;
  top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border);
}
.timeline-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.timeline-card:hover{
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(88,194,154,0.12);
}
.timeline-period{
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.timeline-card h3{ font-size: 1.2rem; }
.timeline-card .org{
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.timeline-card .desc{
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.timeline-card .resp-list{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.timeline-card .resp-list li{
  display: flex;
  gap: 9px;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.timeline-card .resp-list li::before{
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 8px;
  flex-shrink: 0;
}
.timeline-tech-block{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.timeline-tech-label{
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.timeline-tech{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-tech span{
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.timeline-tech span:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.timeline-card .cert-link{
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
}
.timeline-card .cert-link svg{ width: 15px; height: 15px; flex-shrink: 0; }
.editable-note{
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.editable-note code{
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.8rem;
}

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.skill-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.skill-card:hover{
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(88,194,154,0.12);
}
.skill-card h3{
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-card h3::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.skill-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip{
  font-size: 0.85rem;
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover{ border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.featured-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.project-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.project-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(88,194,154,0.15), 0 18px 40px -20px rgba(88,194,154,0.35);
  border-color: var(--accent);
}
.project-thumb{
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}
.project-thumb img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.project-card:hover .project-thumb img{ transform: scale(1.06); }

.project-thumb.placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--bg-alt);
}
.project-thumb.placeholder svg{
  width: 46px; height: 46px;
  color: var(--sage);
  opacity: 0.9;
}
.project-thumb .placeholder-label{
  position: absolute;
  bottom: 12px; right: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.project-body{
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-category{
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.project-body h3{ font-size: 1.18rem; }
.project-body .desc{
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  flex: 1;
}
.project-tech{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.project-tech span{
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.project-links{
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.project-links a{
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all .2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.project-links a:not(.is-disabled):hover{ transform: translateY(-2px); }
.project-links a svg{ width: 15px; height: 15px; flex-shrink: 0; }
.project-links a.primary{
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.project-links a.primary:hover{ background: var(--accent-dark); }
.project-links a.secondary:hover{ border-color: var(--accent); color: var(--accent-dark); }
.project-links a.is-disabled{
  opacity: 0.5;
  pointer-events: none;
}

.subsection-label{
  margin-top: 78px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.subsection-label h3{ font-size: 1.3rem; white-space: nowrap; }
.subsection-label::after{
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.projects-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-info p{ color: var(--text-muted); font-size: 1.02rem; }
.contact-list{
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list a, .contact-list .row{
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 0.96rem;
  transition: color .2s var(--ease);
}
.contact-list a:hover{ color: var(--accent-dark); }
.contact-list .ico{
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-list .ico svg{ width: 17px; height: 17px; color: var(--accent-dark); }

.contact-form{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.form-row{ margin-bottom: 18px; }
.form-row label{
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.form-row input, .form-row textarea{
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}
.form-status{
  margin-top: 4px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  min-height: 20px;
}
.form-status.success{ color: var(--accent-dark); }
.form-status.error{ color: #B3452F; }
.contact-form button{ width: 100%; justify-content: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer{
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.back-to-top{
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted);
  font-weight: 600;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.back-to-top:hover{ color: var(--accent-dark); transform: translateY(-2px); }
.back-to-top svg{ width: 15px; height: 15px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px){
  .nav-menu, .nav-actions .nav-resume-btn{ display: none; }
  .hamburger{ display: flex; }
}

@media (max-width: 1000px){
  .hero-grid{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: repeat(2, 1fr); }
  .featured-grid{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px){
  section{ padding: 84px 0; }
  .hero{ padding-top: calc(var(--nav-h) + 36px); min-height: auto; }
  .skills-grid{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .container{ padding: 0 18px; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ justify-content: center; }
  .hero-socials{ justify-content: center; }
  .project-links{ flex-direction: column; }
}
