/* =========================================================
   DESIGN TOKENS — premium dark theme (+ light mode)
   ========================================================= */
:root{
  --bg:         #05060B;
  --bg-alt:     #0A0D16;
  --ink:        #E9EEFC;
  --ink-soft:   #7C88A6;
  --line:       rgba(120,170,255,.12);
  --card:       rgba(120,170,255,.045);
  --card-hover: rgba(120,170,255,.08);

  --primary:      #00E5FF;
  --primary-dark: #00A8CC;
  --accent:       #B76BFF;
  --sky:          #4F8FFF;
  --gradient: linear-gradient(135deg, #00E5FF, #7B61FF 55%, #FF3CAC);
  --tag-bg:   rgba(0,229,255,.12);
  --tag-ink:  #5EEAFF;
  --particle-color: 0,229,255;
  --glow-rgb: 0,229,255;
  --glow-alt-rgb: 183,107,255;

  --font-display: "Fraunces", serif;
  --font-body:    "Inter", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --radius: 16px;
  --max-w: 1080px;

  color-scheme: dark;
}

[data-theme="light"]{
  --bg:         #F4F7FC;
  --bg-alt:     #FFFFFF;
  --ink:        #0D1321;
  --ink-soft:   #5C6B84;
  --line:       rgba(13,19,33,.09);
  --card:       rgba(13,19,33,.03);
  --card-hover: rgba(13,19,33,.055);

  --primary:      #0091B8;
  --primary-dark: #00728F;
  --accent:       #6C3FD6;
  --sky:          #2F6FE0;
  --gradient: linear-gradient(135deg, #0091B8, #6C3FD6 55%, #D6318E);
  --tag-bg:   rgba(0,145,184,.10);
  --tag-ink:  #00728F;
  --particle-color: 0,145,184;
  --glow-rgb: 0,145,184;
  --glow-alt-rgb: 108,63,214;

  color-scheme: light;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
a{ color: inherit; text-decoration: none; }
:focus-visible{ outline: 2px solid var(--primary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior: auto; }
}

/* =========================================================
   PARTICLE BACKGROUND
   ========================================================= */
#particles{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}

.navbar, .hero, .section, .footer{
  position: relative;
  z-index: 1;
}

#cursorGlow{
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow-rgb),.16), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(6px);
  opacity: 0;
  transition: opacity .4s ease;
}
#cursorGlow.visible{ opacity: 1; }
[data-theme="light"] #cursorGlow{
  background: radial-gradient(circle, rgba(var(--glow-rgb),.10), transparent 70%);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,12,18,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
[data-theme="light"] .navbar{
  background: rgba(247,247,251,.78);
}
.navbar-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 16px;
}
.logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.logo span{
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links{ display: flex; gap: 32px; margin-right: auto; margin-left: 40px; }
.nav-links a{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 2px;
  transition: color .15s ease;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width .2s ease;
  border-radius: 2px;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a.active{ color: var(--ink); }
.nav-links a.active::after{ width: 100%; }

@media (max-width: 720px){
  .nav-links{ display: none; }
}

.navbar-actions{ display: flex; align-items: center; gap: 12px; }

.theme-toggle{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.theme-toggle:hover{ border-color: var(--primary); transform: translateY(-2px); }
.theme-toggle .icon-moon{ display: none; }
[data-theme="light"] .theme-toggle .icon-sun{ display: none; }
[data-theme="light"] .theme-toggle .icon-moon{ display: block; }

.menu-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span{
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-links-mobile{
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  border-top: 1px solid var(--line);
}
.nav-links-mobile.open{ max-height: 320px; }
.nav-links-mobile a{
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.nav-links-mobile a:hover{ color: var(--primary); }

@media (max-width: 720px){
  .menu-toggle{ display: flex; }
  .nav-links-mobile{ display: flex; }
  .resume-btn{ display: none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(var(--glow-rgb),.5);
}
.btn-primary:hover{ box-shadow: 0 16px 36px -8px rgba(var(--glow-rgb),.65); }
.btn-outline{
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255,255,255,.02);
}
.btn-outline:hover{ border-color: var(--primary); color: var(--primary); }
.btn-sm{ padding: 9px 20px; font-size: 13.5px; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  padding: 96px 24px 76px;
  overflow: hidden;
}
.hero::before, .hero::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.hero::before{
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(var(--glow-rgb),.35), transparent 70%);
  top: -140px; left: -120px;
}
.hero::after{
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(var(--glow-alt-rgb),.3), transparent 70%);
  bottom: -160px; right: -100px;
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}
.eyebrow{
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tag-ink);
  background: var(--tag-bg);
  border: 1px solid rgba(196,181,253,.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-text h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.18;
  margin-bottom: 14px;
}
.highlight{
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.terminal-card{
  max-width: 420px;
  margin-bottom: 28px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 55px -28px rgba(var(--glow-rgb),.28);
}
[data-theme="light"] .terminal-card{
  background: rgba(15,23,32,.02);
}
.terminal-header{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .terminal-header{ background: rgba(15,23,32,.03); }
.dot{ width: 10px; height: 10px; border-radius: 50%; }
.dot-red{ background: #FF5F56; }
.dot-yellow{ background: #FFBD2E; }
.dot-green{ background: #27C93F; }
.terminal-title{
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.terminal-body{ padding: 16px 18px; }
.terminal-line{
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-prompt{ color: var(--primary); margin-right: 6px; }
.terminal-const{ color: var(--accent); }
.terminal-var{ color: var(--sky); }
.terminal-string{ color: var(--tag-ink); }
.typed-cursor{
  display: inline-block;
  margin-left: 1px;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@media (max-width: 820px){
  .terminal-card{ margin-left: auto; margin-right: auto; }
}
@keyframes blink{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0; }
}
.hero-sub{
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats{ display: flex; gap: 40px; flex-wrap: wrap; }
.stat{ display: flex; flex-direction: column; }
.stat strong{
  font-family: var(--font-display);
  font-size: 26px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span{ font-size: 13px; color: var(--ink-soft); }

.hero-visual{ display: flex; justify-content: center; position: relative; z-index: 1; }
.avatar-ring{
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 70px -20px rgba(var(--glow-rgb),.5);
  animation: glow-pulse 4s ease-in-out infinite;
  overflow: hidden;
}
@keyframes glow-pulse{
  0%, 100%{ box-shadow: 0 30px 70px -20px rgba(var(--glow-rgb),.5); }
  50%{ box-shadow: 0 30px 80px -14px rgba(var(--glow-alt-rgb),.5); }
}
.avatar-photo{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.avatar{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  background-clip: padding-box;
  color: var(--ink);
}

@media (max-width: 820px){
  .hero-inner{ grid-template-columns: 1fr; text-align: center; }
  .hero-sub{ margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats{ justify-content: center; }
  .hero-visual{ order: -1; }
  .avatar-ring{ width: 190px; height: 190px; }
  .avatar{ font-size: 48px; }
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section{ padding: 88px 24px; }
.section-alt{ background: var(--bg-alt); }
.section-inner{ max-width: var(--max-w); margin: 0 auto; }
.section-eyebrow{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: .01em;
}
.section-heading{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 32px);
  margin-bottom: 36px;
  color: var(--ink);
}
.about-text{
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 70ch;
}

/* =========================================================
   ABOUT META (location / internship / interests)
   ========================================================= */
.about-meta-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.about-meta-card{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.about-meta-card:hover{
  transform: translateY(-3px);
  border-color: rgba(var(--glow-rgb),.4);
  background: var(--card-hover);
}
.about-meta-icon{ font-size: 20px; line-height: 1; }
.about-meta-card div{ display: flex; flex-direction: column; gap: 4px; }
.about-meta-label{
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.about-meta-value{ font-size: 14.5px; font-weight: 500; color: var(--ink); }

/* =========================================================
   SKILLS — animated bars
   ========================================================= */
.skills-bars-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.skill-bar-group{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: background .18s ease, border-color .18s ease;
}
.skill-bar-group:hover{
  background: var(--card-hover);
  border-color: rgba(var(--glow-rgb),.35);
}
.skill-bar-group h3{
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ink);
}
.skill-bar{ margin-bottom: 18px; }
.skill-bar:last-child{ margin-bottom: 0; }
.skill-bar-top{
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.skill-bar-top span:first-child{ color: var(--ink); font-weight: 500; }
.skill-percent{ font-weight: 600; color: var(--primary); }
.skill-bar-track{
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--tag-bg);
  overflow: hidden;
}
.skill-bar-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--gradient);
  transition: width 1.1s cubic-bezier(.16,.84,.44,1);
}

/* =========================================================
   ACHIEVEMENTS
   ========================================================= */
.achievements-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.achievement-card{
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 20px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.achievement-card:hover{
  transform: translateY(-4px);
  border-color: rgba(var(--glow-rgb),.4);
  background: var(--card-hover);
}
.achievement-number{
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.achievement-label{ font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.project-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.project-card:hover{
  transform: translateY(-6px);
  background: var(--card-hover);
  border-color: rgba(var(--glow-rgb),.35);
  box-shadow: 0 26px 50px -24px rgba(var(--glow-rgb),.35);
}
.project-image{
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--tag-bg);
  overflow: hidden;
}
.project-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.project-card:hover .project-image img{ transform: scale(1.05); }
.project-image-fallback{
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 40px;
}
.project-image.no-image img{ display: none; }
.project-image.no-image .project-image-fallback{ display: flex; }
.project-body{ padding: 26px; }
.project-card h3{
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--ink);
}
.project-meta{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.project-card p{
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 14px;
}
.project-features{
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-features li{
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.project-features li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.project-card .tags{ margin-bottom: 4px; }
.project-links{ display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.project-links a{
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: color .15s ease;
}
.project-links a:hover{ color: var(--accent); }

/* =========================================================
   EXPERIENCE
   ========================================================= */
.experience-list{
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--line);
  margin-left: 6px;
}
.experience-item{
  position: relative;
  padding: 0 0 36px 32px;
}
.experience-item:last-child{ padding-bottom: 0; }
.experience-dot{
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.experience-content h3{
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.experience-meta{
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.experience-desc{
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 12px;
}
.experience-content .tags{ margin-top: 4px; }

.tags{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag{
  font-size: 12.5px;
  font-weight: 500;
  background: var(--tag-bg);
  color: var(--tag-ink);
  border: 1px solid rgba(196,181,253,.2);
  padding: 6px 13px;
  border-radius: 999px;
}

/* =========================================================
   CERTIFICATES
   ========================================================= */
.certificates-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.cert-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.cert-card:hover{
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: rgba(var(--glow-rgb),.4);
  box-shadow: 0 20px 38px -22px rgba(var(--glow-rgb),.4);
}
.cert-icon{
  font-size: 22px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--tag-bg);
  margin-bottom: 14px;
}
.cert-card h3{
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.cert-year{
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
  align-items: start;
}
@media (max-width: 860px){
  .contact-layout{ grid-template-columns: 1fr; }
}
.contact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.contact-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.contact-card:hover{
  transform: translateY(-4px);
  border-color: rgba(var(--glow-rgb),.45);
  background: var(--card-hover);
  box-shadow: 0 22px 40px -22px rgba(var(--glow-rgb),.4);
}
.contact-icon{ font-size: 22px; }
.contact-label{
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.contact-value{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.contact-form{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row{ display: flex; flex-direction: column; gap: 6px; }
.form-row label{
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-row input,
.form-row textarea{
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .15s ease, background .15s ease;
}
[data-theme="light"] .form-row input,
[data-theme="light"] .form-row textarea{
  background: rgba(20,21,31,.02);
}
.form-row input:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--primary);
}
.contact-form .btn{ align-self: flex-start; }
.form-note{
  font-size: 13px;
  color: var(--primary);
  min-height: 1.2em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  padding: 44px 24px 36px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.footer-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-links{ display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a{
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.footer-links a:hover{ color: var(--primary); }
.footer-copy{ color: var(--ink-soft); font-size: 13px; }
.footer-credit{ color: var(--ink-soft); font-size: 12.5px; opacity: .8; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 28px -10px rgba(var(--glow-rgb),.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 40;
}
.back-to-top.visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover{ transform: translateY(-3px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 560px){
  .hero{ padding: 64px 18px 50px; }
  .section{ padding: 60px 18px; }
}