/* =========================================================
   TOKENS
========================================================= */
:root{
  --bg:            #ffffff;
  --bg-alt:        #f6f7fb;
  --surface:       #ffffff;
  --text:          #12141c;
  --text-muted:    #5b616e;
  --border:        #e7e9f0;

  --accent:        #3654ff;      /* primary blue  */
  --accent-soft:   #edf0ff;
  --gold:          #c99a4b;      /* frame accent  */

  --font-display:  'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:      'Inter', 'Segoe UI', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  28px;

  --max-w: 1140px;

  --shadow-sm: 0 1px 2px rgba(18,20,28,.06);
  --shadow-md: 0 12px 32px -12px rgba(18,20,28,.18);

  color-scheme: light;
}

[data-theme="dark"]{
  --bg:            #0a0c12;
  --bg-alt:        #10131b;
  --surface:       #131722;
  --text:          #eef0f6;
  --text-muted:    #8991a3;
  --border:        #232838;

  --accent:        #6b85ff;
  --accent-soft:   #171c2e;
  --gold:          #d7ac66;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 20px 48px -16px rgba(0,0,0,.6);

  color-scheme: dark;
}

/* =========================================================
   RESET
========================================================= */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3{ font-family: var(--font-display); margin:0; letter-spacing:-0.02em; }
button{ font-family:inherit; cursor:pointer; }

::selection{ background: var(--accent); color:#fff; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
}
.page-section + .page-section{
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
.page-title{
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 8px;
}
.page-subtitle{
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 28px;
}

/* =========================================================
   NAV
========================================================= */
.nav{
  position: sticky;
  top:0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner{
  max-width: var(--max-w);
  margin:0 auto;
  padding: 18px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  font-family: var(--font-display);
  font-weight:700;
  font-size:1.15rem;
}
.logo__mark{ color: var(--accent); }
.logo__rest{ color: var(--text); }

.nav__links{
  display:flex;
  gap: 32px;
}
.nav__links a{
  font-size:.95rem;
  font-weight:500;
  color: var(--text-muted);
  position:relative;
  padding: 4px 2px;
  transition: color .2s ease;
}
.nav__links a:hover,
.nav__links a.active{ color: var(--text); }
.nav__links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-6px;
  height:2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding:6px;
}
.nav__toggle span{
  width:22px; height:2px;
  background: var(--text);
  border-radius:2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* =========================================================
   HERO
========================================================= */
.hero{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 40px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items:center;
}
.eyebrow{
  font-family: var(--font-mono);
  font-size:.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing:.12em;
  margin: 0 0 12px;
}
.hero__text h1{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 24px;
}

.socials{
  display:flex;
  gap:12px;
  margin-bottom: 28px;
}
.socials a{
  width:40px; height:40px;
  display:grid; place-items:center;
  border:1px solid var(--border);
  border-radius:50%;
  color: var(--text-muted);
  transition: all .2s ease;
}
.socials a:hover{
  color:#fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom: 32px;
}
.stat-list li{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.95rem;
  color: var(--text-muted);
}
.stat-list i{ color: var(--accent); width:16px; text-align:center; }
.stat-list strong{ color: var(--text); }

.stack__label{
  font-family: var(--font-mono);
  font-size:.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing:.1em;
  margin: 0 0 14px;
}
.stack__icons{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.stack__icons li{
  width:44px; height:44px;
  display:grid; place-items:center;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  padding:8px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.stack__icons li:hover{ transform: translateY(-3px); }
.stack__icons img{ width:100%; height:100%; object-fit:contain; }

.hero__photo{ display:flex; justify-content:center; }
.photo__frame{
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 1/1.05;
  border-radius: var(--radius-lg);
  overflow:hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
}
.photo__frame::before{
  content:"";
  position:absolute;
  inset: 18px;
  border: 2px solid var(--gold);
  border-radius: calc(var(--radius-lg) - 10px);
  z-index:2;
  pointer-events:none;
  transform: translate(10px, 10px);
}
.photo__frame img{
  width:100%; height:100%;
  object-fit:cover;
  position:relative; z-index:1;
}

.hero__bio{
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 760px;
}
.hero__bio p{ color: var(--text-muted); margin: 0 0 14px; }
.hero__bio strong{ color: var(--text); }
.contact{
  margin-top: 20px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px 28px;
}
.contact p{ margin:0; font-size:.95rem; }
.contact span{ color: var(--text-muted); margin-right:4px; }
.contact a{ color: var(--accent); font-weight:500; }
.contact a:hover{ text-decoration: underline; }

/* =========================================================
   PROJECTS — list / grid layout
========================================================= */
.projects__controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 14px;
  margin-top: 24px;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.projects__controls-left{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap:wrap;
}
.page-select{
  font-family: var(--font-body);
  font-size:.9rem;
  padding: 9px 34px 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235b616e' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  color: var(--text);
  cursor:pointer;
}
.total-badge{
  font-size:.82rem;
  font-weight:600;
  color:#fff;
  background: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
}
.total-badge strong{ font-weight:700; }

.view-toggle{
  display:flex;
  gap: 8px;
}
.view-btn{
  width: 40px;
  height: 40px;
  display:grid;
  place-items:center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  transition: all .2s ease;
}
.view-btn:hover{ color: var(--text); }
.view-btn.active{
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* --- List view (default) --- */
.projects__list{
  display:flex;
  flex-direction:column;
}
.projects__list.grid-mode{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project-row{
  display:grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .2s ease;
}
.project-row:hover{ opacity: .82; }
.project-row:hover .project-row__title{ color: var(--accent); }
.projects__list.grid-mode .project-row{
  grid-template-columns: 1fr;
  padding: 0;
  border-bottom: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.projects__list.grid-mode .project-row:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-row__thumb{
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  overflow:hidden;
  background: var(--bg-alt);
}
.projects__list.grid-mode .project-row__thumb{ border-radius: 0; }
.project-row__thumb img{ width:100%; height:100%; object-fit:cover; }

.project-row__info{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.projects__list.grid-mode .project-row__info{ padding: 18px 20px 22px; gap:5px; }

.project-row__title{
  font-size:1.1rem;
  margin-bottom: 4px;
  transition: color .2s ease;
}
.project-row__tags{
  display:flex;
  flex-direction:column;
  gap: 2px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size:.9rem;
  font-weight:500;
}
.project-row__meta{
  display:flex;
  align-items:center;
  gap: 22px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-size:.85rem;
  color: var(--text-muted);
}
.project-row__meta span{
  display:flex;
  align-items:center;
  gap: 7px;
}
.project-row__meta i{ color: var(--text-muted); }

/* =========================================================
   EDUCATION
========================================================= */
.edu-info{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-bottom: 36px;
  font-size: .95rem;
}
.edu-info span{
  color: var(--text-muted);
  display:inline-block;
  min-width: 74px;
}
.edu-block{
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.edu-block__period{
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.edu-block__list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.edu-block__list li{
  position:relative;
  padding-left: 20px;
  font-size: .95rem;
  color: var(--text);
}
.edu-block__list li::before{
  content:"";
  position:absolute;
  left:0; top: 9px;
  width:6px; height:6px;
  border-radius:50%;
  background: var(--accent);
}

/* =========================================================
   CERTIFICATES
========================================================= */
.cert-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.cert-card{
  margin:0;
  border-radius: var(--radius-md);
  overflow:hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cert-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card img{ width:100%; height:100%; object-fit: cover; }

/* =========================================================
   SKILLS
========================================================= */
.skills-category{
  margin-bottom: 40px;
}
.skills-category:last-child{ margin-bottom: 0; }
.skills-category h3{
  font-size: 1rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.skill{ margin-bottom: 18px; }
.skill:last-child{ margin-bottom: 0; }
.skill__head{
  display:flex;
  justify-content:space-between;
  font-size:.92rem;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
}
.skill__bar{
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  border:1px solid var(--border);
  overflow:hidden;
}
.skill__fill{
  height:100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(.16,1,.3,1);
}
.skill__fill.in-view{ width: var(--value); }

/* =========================================================
   TECHNOLOGIES
========================================================= */
.tech-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 18px;
}
.tech-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  padding: 18px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.tech-item:hover{ transform: translateY(-3px); }
.tech-item img{ width: 36px; height: 36px; object-fit: contain; }
.tech-item span{ font-size: .78rem; color: var(--text-muted); text-align:center; }

/* =========================================================
   CAROUSEL  (previous clients)
========================================================= */
.carousel{
  position: relative;
  display:flex;
  align-items:center;
  gap: 14px;
}
.carousel__track{
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.carousel__slide{
  margin:0;
  display:none;
  aspect-ratio: 16/9;
}
.carousel__slide.active{ display:block; }
.carousel__slide img{ width:100%; height:100%; object-fit:cover; }
.carousel__slide figcaption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  color:#fff;
  font-size:.9rem;
  font-weight:500;
}
.carousel__arrow{
  flex-shrink:0;
  width: 42px; height:42px;
  border-radius:50%;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display:grid;
  place-items:center;
  transition: all .2s ease;
}
.carousel__arrow:hover{ background: var(--accent); color:#fff; border-color: var(--accent); }
.carousel__counter{
  text-align:center;
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size:.85rem;
  color: var(--text-muted);
}

/* =========================================================
   PROJECT DETAIL PAGE
========================================================= */
.detail-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.9rem;
  font-weight:600;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.detail-back:hover{ color: var(--accent); }

.detail-divider{
  border:none;
  border-top: 1px solid var(--border);
  margin: 24px 0 32px;
}

.detail-carousel__main{
  position:relative;
  border-radius: var(--radius-md);
  overflow:hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/9;
}
.detail-carousel__main img{
  width:100%; height:100%; object-fit:cover;
  display:none;
}
.detail-carousel__main img.active{ display:block; }
.detail-carousel__arrow{
  position:absolute;
  top:50%; transform: translateY(-50%);
  width: 40px; height:40px;
  border-radius:50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--text);
  display:grid;
  place-items:center;
  transition: all .2s ease;
  backdrop-filter: blur(4px);
}
.detail-carousel__arrow:hover{ background: var(--accent); color:#fff; border-color: var(--accent); }
.detail-carousel__arrow--prev{ left: 14px; }
.detail-carousel__arrow--next{ right: 14px; }

.detail-thumbs{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.detail-thumbs img{
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: .6;
  transition: all .2s ease;
}
.detail-thumbs img:hover{ opacity: .85; }
.detail-thumbs img.active{ border-color: var(--accent); opacity: 1; }

.detail-meta{
  margin-top: 28px;
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-size: .95rem;
}
.detail-meta span{ color: var(--text-muted); }
.detail-meta strong{ color: var(--text); font-weight:600; }

.detail-actions{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 22px;
}
.detail-actions .btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight:600;
  border: 1px solid var(--border);
  transition: transform .2s ease;
}
.detail-actions .btn:hover{ transform: translateY(-2px); }
.detail-actions .btn--video{
  background: #ff0000;
  border-color: #ff0000;
  color:#fff;
}
.detail-actions .btn--download{
  background: var(--surface);
  color: var(--text);
}

.detail-body h3{
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.detail-body p{
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 760px;
}
.detail-body p strong{ color: var(--text); }
.detail-body h4{
  font-size: .95rem;
  margin: 28px 0 12px;
}
.detail-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin: 0 0 8px;
}
.detail-list li{
  position:relative;
  padding-left: 20px;
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 720px;
}
.detail-list li::before{
  content:"";
  position:absolute;
  left:0; top: 9px;
  width:6px; height:6px;
  border-radius:50%;
  background: var(--accent);
}
.detail-list li strong{ color: var(--text); }

/* =========================================================
   WORK EXPERIENCE
========================================================= */
.exp-entry{
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.exp-entry__head{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 10px;
}
.exp-entry__logo{
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.exp-entry__head h3{
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--text-muted);
}
.exp-entry__address{
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.exp-entry__role{
  font-weight: 700;
  color: var(--accent);
  font-size: .92rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.exp-entry__label{
  font-weight: 600;
  margin: 0 0 12px;
}
.exp-entry__list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.exp-entry__list li{
  position:relative;
  padding-left: 20px;
  font-size: .95rem;
  color: var(--text);
  max-width: 720px;
}
.exp-entry__list li::before{
  content:"";
  position:absolute;
  left:0; top: 9px;
  width:6px; height:6px;
  border-radius:50%;
  background: var(--accent);
}

/* =========================================================
   FOOTER + THEME TOGGLE
========================================================= */
.footer{
  text-align:center;
  padding: 40px 24px 100px;
  color: var(--text-muted);
  font-size:.85rem;
  border-top: 1px solid var(--border);
}

.theme-toggle{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display:flex;
  align-items:center;
  gap:8px;
  padding: 12px 18px;
  background: var(--text);
  color: var(--bg);
  border:none;
  border-radius: 999px;
  font-size:.85rem;
  font-weight:600;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}
.theme-toggle:hover{ transform: translateY(-2px); }
.theme-toggle i{ font-size:.9rem; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 860px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__photo{ order:-1; margin-bottom: 8px; }

  .nav__toggle{ display:flex; }
  .nav__links{
    position:absolute;
    top:100%; left:0; right:0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction:column;
    padding: 8px 24px 24px;
    gap: 4px;
    transform-origin: top;
    transform: scaleY(0);
    opacity:0;
    pointer-events:none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav__links.open{
    transform: scaleY(1);
    opacity:1;
    pointer-events:auto;
  }
  .nav__links a{ padding: 10px 0; }
}

/* =========================================================
   CATEGORY FILTERS + BADGES
========================================================= */
.category-filters{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}
.category-btn{
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  transition: all .2s ease;
}
.category-btn:hover{ color: var(--text); }
.category-btn.active{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.project-row__category{
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  font-weight: 600;
}

.detail-category{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.btn--figma{
  background: #1e1e1e;
  border-color: #1e1e1e;
  color: #fff;
}

.hero__cta {
  margin-top: 1.5rem;
}

.btn--marketplace {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--marketplace:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--marketplace i {
  font-size: 0.8rem;
}

.btn--marketplace i:last-child {
  transition: transform 0.2s ease;
}

.btn--marketplace:hover i:last-child {
  transform: translateX(3px);
}

.hero__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 2rem 0;
}

@media (max-width: 480px){
  .theme-toggle span{ display:none; }
  .theme-toggle{ padding: 12px; border-radius:50%; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}