/* DarkMinimal template, rewritten as plain CSS (no framework). */

@font-face {
  font-family: "Montserrat Variable";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat Variable";
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --background: #101010;
  --component-bg: #141414;
  --sec: #a476ff;
  --white: #dfdfdf;
  --white-icon: #f3f3f398;
  --white-icon-tr: #f3f3f310;
  --line: #ffffff10;
  --card: #1414149c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  font-family: "Montserrat Variable", -apple-system, system-ui, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2a var(--background);
}

*::selection {
  background-color: var(--sec);
  color: var(--background);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--white);
  padding: 0 2.25rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) {
  body { padding: 0 7rem; }
}

@media (min-width: 1024px) {
  body { padding: 0 5rem; }
}

img,
svg,
canvas,
iframe {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 64rem;
  margin: 0 auto;
}

.size-6 { width: 1.5rem; height: 1.5rem; }
.size-7 { width: 1.75rem; height: 1.75rem; }
.size-8 { width: 2rem; height: 2rem; }

/* Shiny accent text */
.shiny-sec {
  background: linear-gradient(135deg, #a476ff 25%, #eee5ff 50%, #a476ff 75%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% { background-position: 100% 50%; }
  30%, 70% { background-position: 0% 50%; }
}

/* Icon buttons */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 1px solid var(--white-icon-tr);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--white-icon);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.icon-btn:hover {
  color: #fff;
  background: var(--white-icon-tr);
}

.icon-btn-sq {
  width: 3.5rem;
  height: 3.5rem;
}

/* Navigation */
.nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 100;
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 0 0;
  backdrop-filter: blur(24px);
  transition: background-color 0.3s ease, border-radius 0.3s ease, border-color 0.3s ease;
}

.nav.scrolling {
  background-color: var(--component-bg);
}

.nav-list {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem;
}

.nav-list li {
  flex: 1;
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--white-icon);
  font-size: 0.75rem;
  transition: color 0.3s ease;
}

.nav-link.active {
  color: #fff;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.nav-indicator {
  display: none;
  position: absolute;
  left: -1.5rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #a9ff5b;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-link.active .nav-indicator {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

body {
  padding-bottom: 70px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }

  .nav {
    top: 1.5rem;
    bottom: auto;
    width: 80%;
    border-color: transparent;
    border-radius: 0;
  }

  .nav.scrolling {
    border-color: var(--line);
    border-radius: 9999px;
  }

  .nav-list {
    justify-content: center;
    gap: 4.5rem;
  }

  .nav-list li { flex: none; }
  .nav-link { font-size: 1rem; }
  .nav-icon { display: none; }
  .nav-indicator { display: block; }
}

/* Home */
.home {
  margin-top: 3rem;
}

.home-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .home { margin-top: 0; }
  .home-inner { padding: 9rem 0; }
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-greeting {
  color: var(--white-icon);
  font-size: 1rem;
}

.hero-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  text-wrap: pretty;
  color: var(--white);
}

.hero-text {
  color: var(--white-icon);
  font-size: 1rem;
}

.hero-social {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

@media (min-width: 768px) {
  .hero-greeting { font-size: 1.125rem; }
  .hero-title { font-size: 3.75rem; }
  .hero-text { font-size: 1.5rem; line-height: 2rem; }
  .hero-social { padding-top: 1.5rem; }
}

@media (min-width: 1024px) {
  .hero-row {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .hero-title { flex-shrink: 0; }
}

/* Logo wall */
.logo-wall {
  position: relative;
  overflow-x: hidden;
  padding: 2rem 0;
}

.logo-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8rem;
  z-index: 2;
  pointer-events: none;
}

.logo-fade-left { left: 0; background: linear-gradient(to right, var(--background), transparent); }
.logo-fade-right { right: 0; background: linear-gradient(to left, var(--background), transparent); }

.logo-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: scroll 60s linear infinite;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 3rem;
}

.logo-item img {
  height: 1.75rem;
  width: auto;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.logo-item:hover img {
  transform: scale(1.1);
}

.logo-item span {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white-icon);
  white-space: nowrap;
}

@keyframes scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 768px) {
  .logo-track { animation-duration: 50s; }
  .logo-item { padding-right: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track,
  .shiny-sec {
    animation: none;
  }
}

/* Skills + glitch */
.home-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .home-bottom { flex-direction: row; }
}

.skills {
  width: 100%;
  padding-top: 0.75rem;
}

.skills-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--white);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.skill {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--white-icon-tr);
  border-radius: 1rem;
  overflow: hidden;
}

.skill-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--white);
}

.skill-icon {
  flex-shrink: 0;
  color: var(--sec);
}

.skill-name {
  flex-grow: 1;
  min-width: 0;
  font-size: 1.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-chevron {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.skill.open .skill-chevron {
  transform: rotate(180deg);
}

.skill-body {
  max-height: 0;
  opacity: 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--white-icon);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.skill.open .skill-body {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1rem;
}

.skill-body li {
  position: relative;
  padding-left: 1.25rem;
}

.skill-body li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--white-icon);
}

@media (min-width: 768px) {
  .skills { width: auto; padding-top: 2.25rem; }
  .skills-title { font-size: 2.25rem; margin-bottom: 1.5rem; }
  .skill { width: 400px; }
}

.glitch-wrap {
  display: flex;
  justify-content: center;
  width: 290px;
  height: 290px;
  padding-top: 0.75rem;
}

@media (min-width: 768px) {
  .glitch-wrap {
    width: 100%;
    height: 292px;
    padding-top: 2.25rem;
    margin-left: 4rem;
  }
}

.glitch {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--background);
  overflow: hidden;
}

.glitch canvas {
  width: 100%;
  height: 100%;
}

.glitch-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(16, 16, 16, 0) 60%, rgba(16, 16, 16, 1) 100%);
}

/* Sections */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  color: var(--white);
}

.eyebrow {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

.project-img {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.project-img img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project:hover .project-img img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .project-img img { height: 18rem; }
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.75rem;
}

.project-info {
  flex-grow: 1;
}

.project-info h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.project-info span {
  font-size: 0.875rem;
  color: var(--white-icon);
}

.project-links {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 2.25rem;
  padding: 0.75rem;
  border: 1px solid var(--white-icon-tr);
  border-radius: 9999px;
  background: var(--card);
  color: var(--white-icon);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.more-btn:hover {
  color: #fff;
  background: var(--white-icon-tr);
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .more-btn { font-size: 1.125rem; }
}

/* Contact */
.contact-info {
  color: var(--white-icon);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: -0.5rem;
}

.contact-info .hl {
  color: var(--white);
}

.contact-info a.hl:hover {
  color: var(--sec);
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--white-icon);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-copy {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.875rem;
  color: var(--white-icon);
}

.footer-copy a {
  transition: color 0.3s ease;
}

.footer-copy a:hover {
  color: var(--white);
}
