:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  --bg: linear-gradient(180deg, #12060b 0%, #2b0d16 100%);
  --surface: #2d121c;
  --surface-soft: #391523;
  --surface-strong: #17070b;
  --card: #2a1019;
  --card-border: rgba(189, 80, 104, 0.22);
  --text: #f2e5e6;
  --text-strong: #f9edea;
  --text-muted: #d4b7ba;
  --accent: #b93b51;
  --accent-strong: #8a2033;
  --muted-border: rgba(137, 61, 72, 0.3);
  --panel-bg: rgba(255, 210, 221, 0.08);
  --panel-border: rgba(189, 80, 104, 0.28);
  --button-secondary-bg: rgba(255, 255, 255, 0.08);
  --button-secondary-text: #e2e8f0;
  --button-bg: rgba(255, 255, 255, 0.08);
  --button-border: rgba(255, 255, 255, 0.18);
  --button-hover-glow: rgba(185, 59, 81, 0.28);
  --button-text: #ffffff;
  --button-hover-bg: rgba(255, 255, 255, 0.16);
  --header-bg: rgba(25, 8, 13, 0.93);
  --header-border: rgba(137, 61, 72, 0.18);
  --toggle-bg: rgba(255, 255, 255, 0.08);
  --toggle-border: rgba(255, 255, 255, 0.14);
  --toggle-color: var(--text-strong);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
a {
  font: inherit;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-strong);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(185, 59, 81, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.18rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  min-width: 6.5em;
  height: 2.3em;
  margin: 0.2rem;
  background: linear-gradient(135deg, #b93b51, #8a2033);
  color: white;
  border-radius: 0.625em;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: white;
}

.btn {
  width: 6.5em;
  height: 2.3em;
  margin: 0.5em;
  background: linear-gradient(135deg, #b93b51, #8a2033);
  color: white;
  border: none;
  border-radius: 0.625em;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* apply the Bordeaux .btn behavior to existing site button classes */
.button,
.footer-links a,
.btn,
.nav-links a {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.5em;
  height: 2.3em;
  margin: 0.5em;
  background: linear-gradient(135deg, #b93b51, #8a2033);
  color: white;
  border: none;
  border-radius: 0.625em;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(185, 59, 81, 0.22);
}

.nav-links a,
.footer-links a {
  width: auto;
  min-width: 5em;
  height: 1.9rem;
  margin: 0.15rem;
  padding: 0 0.75rem;
  font-size: 0.88rem;
}

.button:hover,
 .email-btn:hover,
.btn:hover,
.nav-links a:hover {
  color: white;
  background: linear-gradient(135deg, #d8576d, #b83b52);
}

.nav-links a.active {
  background: linear-gradient(135deg, #d8576d, #8a2033);
  box-shadow: 0 18px 44px rgba(185, 59, 81, 0.28);
}

.nav-links a.active::after {
  transform: skewX(-45deg) scale(1, 1);
  background: rgba(255, 255, 255, 0.18);
}

.button::after,
.email-btn::after,
.footer-links a::after,
.btn::after,
.nav-links a::after {
  content: "";
  background: rgba(255, 255, 255, 0.12);
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: 0;
  bottom: 0;
  transform: skewX(-45deg) scale(0, 1);
  transition: all 0.5s;
}

.button:hover::after,
.email-btn:hover::after,
.footer-links a:hover::after,
.btn:hover::after,
.nav-links a:hover::after {
  transform: skewX(-45deg) scale(1, 1);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #b93b51, #8a2033);
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(185, 59, 81, 0.22);
}

.button.primary:hover {
  background: linear-gradient(135deg, #d8576d, #b83b52);
  color: white;
}

.button.primary,
.button.secondary {
  color: #ffffff;
  background: linear-gradient(135deg, #b93b51, #8a2033);
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(185, 59, 81, 0.22);
}
.button.primary:hover,
.button.secondary:hover {
  background: linear-gradient(135deg, #d8576d, #b83b52);
  color: white;
}

/* theme toggle removed; site uses a single Bordeaux theme */

.hero {
  padding: 6rem 0 4rem;
}

.section-gradient {
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.8rem;
  color: var(--accent);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
}

.button.secondary:hover {
  background: linear-gradient(135deg, #d8576d, #b83b52);
  color: white;
}

.hero-card {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
}

.card-panel {
  width: 100%;
  max-width: 42rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 32px;
  padding: 3rem;
  background: var(--card);
  box-shadow: 0 40px 100px -55px rgba(15, 23, 42, 0.38);
  border: 1px solid var(--panel-border);
}

.section.container > .card-panel {
  margin: 0 auto;
  width: min(60rem, 100%);
  max-width: 60rem;
}

.card-panel p {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 30rem;
}

.card-note {
  margin: 1.2rem 0 0.65rem;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.card-panel li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
  color: var(--text-strong);
}

.grid {
  display: grid;
  gap: 2rem;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-list {
  display: grid;
  gap: 1rem;
}

.about-list div {
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--panel-border);
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2rem;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--panel-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 70px -35px rgba(185, 59, 81, 0.25);
}

.project-tag {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.skill-group {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.skill-group h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-strong);
  border-bottom: 1px solid rgba(189, 80, 104, 0.18);
  padding-bottom: 0.75rem;
}

.skill-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.skill-chip {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(185, 59, 81, 0.12);
  color: #f3d1d8;
  font-weight: 600;
  text-align: center;
}


.section-contact {
  padding: 5rem 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 1.5rem;
  padding: 3rem;
  border-radius: 32px;
  background: var(--card);
  border: 1px solid var(--panel-border);
}

.contact-panel > div,
.contact-form {
  width: 100%;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
}

.contact-field {
  display: grid;
  gap: 0.35rem;
}

.contact-field span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(185, 59, 81, 0.55);
  box-shadow: 0 0 0 3px rgba(185, 59, 81, 0.16);
}

.contact-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-status {
  min-height: 0.7rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-status.is-success {
  color: #8fe3a4;
}

.form-status.is-error {
  color: #ff9aa2;
}

/* simple button style for email (fits, but not the .btn look) */
.email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.05rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #b93b51, #8a2033);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  min-width: 10ch;
  box-shadow: 0 16px 40px rgba(185, 59, 81, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
}

.email-btn::after {
  content: "";
  background: rgba(255, 255, 255, 0.12);
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: 0;
  bottom: 0;
  transform: skewX(-45deg) scale(0, 1);
  transition: all 0.5s;
}

.email-btn:hover::after {
  transform: skewX(-45deg) scale(1, 1);
}

.email-btn:hover {
  background: linear-gradient(135deg, #d8576d, #b83b52);
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(185, 59, 81, 0.28);
}

.email-btn:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
  box-shadow: 0 16px 40px rgba(185, 59, 81, 0.22);
}

.email-btn:active {
  transform: translateY(0);
}

.site-footer {
  padding: 3rem 0 1.75rem;
  background: linear-gradient(180deg, rgba(17, 8, 12, 0.96) 0%, var(--surface-strong) 100%);
  border-top: 1px solid rgba(189, 80, 104, 0.18);
}

.footer-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(189, 80, 104, 0.12);
}

.footer-brand {
  display: grid;
  gap: 0.55rem;
}

.footer-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.1;
  color: var(--text-strong);
}

.footer-copy {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-note {
  padding-top: 1.25rem;
}

.footer-note p {
  margin: 0;
  color: var(--text-muted);
  text-align: left;
}

@media (max-width: 840px) {
  .hero-content,
  .contact-panel,
  .two-column,
  .project-grid,
  .skill-grid,
  .footer-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .footer-panel {
    gap: 1rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: none;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .footer-links a {
    flex: 0 1 auto;
    min-width: 32%;
    width: auto;
    margin: 0.25rem;
  }

  .footer-note {
    padding-top: 1rem;
  }

  .footer-note p {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 2;
    justify-content: center;
  }

  .section {
    padding: 3rem 0;
  }

  .button {
    width: 100%;
  }

  /* Stack footer into a single column and center content for small screens */
  .footer-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: none;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  /* Make footer links sit side-by-side but not full-width buttons */
  .footer-links a {
    flex: 0 1 auto;
    min-width: 36%;
    width: auto;
    margin: 0.25rem;
  }

  .footer-note {
    padding-top: 1rem;
  }

  .footer-note p {
    text-align: center;
  }

}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(185, 59, 81, 0.06);
  padding: 0.25rem 0.35rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  border: 1px solid rgba(185, 59, 81, 0.08);
}
.Btn {
  height: 2.1rem;
  min-width: 2.4rem;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  position: relative;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.svgContainer {
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: 6px;
  transition: all 0.18s ease;
  border: 1px solid rgba(185, 59, 81, 0.12);
  z-index: 2;
}

.BG {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(24, 24, 24, 0.18);
  z-index: 0;
  border-radius: 8px;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.2s ease;
  font-size: 0px;
}
.github .BG {
  background: rgba(24, 24, 24, 0.18);
}
.linkdin .BG {
  background: rgba(0, 119, 181, 0.14);
}
.instagram .BG {
  background: rgba(185, 59, 81, 0.20);
}

/* make the instagram svg/icon use subtle bordeaux tint instead of gradient */
.instagram .svgContainer {
  border-color: rgba(185, 59, 81, 0.16);
  background-color: rgba(185, 59, 81, 0.03);
}
.instagram:hover .BG {
  transform: scale(1.32);
  box-shadow: 0 12px 28px rgba(185,59,81,0.14);
  opacity: 1;
}
.instagram:hover .svgContainer {
  background-color: rgba(185,59,81,0.06);
  border-color: rgba(255,255,255,0.18);
}
.discord .BG {
  background: rgba(114, 137, 218, 0.14);
}
.Btn:hover .BG {
  transform: scale(1.28);
  opacity: 1;
  box-shadow: 0 10px 28px rgba(185, 59, 81, 0.12);
}

.Btn:hover .svgContainer {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(3px);
}

/* match the site's skewed highlight hover used on main buttons */
.Btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: -30%;
  right: -30%;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  transform: skewX(-45deg) scale(0, 1);
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
}

.Btn:hover::after {
  transform: skewX(-45deg) scale(1, 1);
}

/* subtle lift on hover for visibility */
.Btn:hover {
  transform: translateY(-2px) scale(1.04);
}
