@import url("https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Kalam&family=Permanent+Marker&family=Press+Start+2P&family=Rock+Salt&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap");

/* =====================
   BASE & VARIABLES
   ===================== */
:root {
  /* Typography */
  --font-body: "Inter", Arial, Helvetica, system-ui, sans-serif;
  --font-marker: "Permanent Marker", cursive;
  --font-sticker-greeting: Arial, Helvetica, sans-serif;
  --font-sticker-handwritten: "Permanent Marker", cursive;

  /* Color Palette */
  --accent-purple: #b9aaff;
  --accent-purple-dark: #6d5fd6;
  --accent-redorange: #ff6b3d;
  --accent-redorange-dark: #d13a00;
  --color-accent: #2563eb;
  --color-accent-alt: #e11d48;
  --color-bg: #fffbe9;
  --color-bg-footer: #fffbe9;
  --color-bg-footer-box: #fffbe9;
  --color-bg-section: #fffbe9;
  --color-bg-socials: #b9aaff;
  --color-bg-sticker: #ffe066;
  --color-border: #181a1b;
  --color-card: #ffd34e;
  --color-link: #2563eb;
  --color-link-hover: #e11d48;
  --color-social: #ff6b3d;
  --color-sticker-text: #181a1b;
  --color-sticker-text-dark: #fffbe9;
  --color-text: #181a1b;
  --color-text-muted: #444;
  --colorful-accent: #e11d48;
  --sticker-bg: #fffbe9;
  --sticker-border-color: #d80000;
  --sticker-greeting-text: #000000;
  --sticker-intro-text: #333333;
  --sticker-yellow: #ffd34e;
  --toggle-bg-light: #fffbe9;
  --toggle-slider-light: #181a1b;
  --text-color-light: #181a1b;
  --text-color-dark: #fffbe9;
  --toggle-bg-dark: #44444a;

  /* Shadows */
  --shadow-card: 4px 4px 0px 0px var(--color-border);
  --shadow-card-hover: 8px 8px 0px 0px var(--color-border);
  --shadow-footer-box: 0 -4px 16px 0 rgba(24, 26, 27, 0.04);
  --shadow-sticker: 16px 16px 0px 0px var(--color-border);
  --shadow-image: 8px 5px 0px 0px var(--color-border);

  /* Border Radius */
  --radius-lg: 36px;
  --radius-md: 18px;
  --radius-sm: 8px;

  /* Spacing */
  --space-card: 1.5em;
  --space-footer: 2em;
  --space-section: 8.5em;
}

/* =====================
   THEME-SPECIFIC OVERRIDES (DARK MODE)
   ===================== */

html[data-theme="dark"] {
  /* Variables */
  --accent-purple: #6d5fd6;
  --accent-purple-dark: #6d5fd6;
  --accent-redorange: #ff6b3d;
  --accent-redorange-dark: #d13a00;
  --color-accent: #7ec4fa;
  --color-accent-alt: #e11d48;
  --color-bg: #32343a;
  --color-bg-footer: var(--color-bg);
  --color-bg-footer-box: #282a2f;
  --color-bg-section: var(--color-bg);
  --color-bg-socials: #6d5fd6;
  --color-bg-sticker: #ffe066;
  --color-border: #181a1b;
  --color-card: #ffd34e;
  --color-link: #7ec4fa;
  --color-link-hover: #ffe066;
  --color-social: #ff6b3d;
  --color-sticker-text: var(--color-sticker-text-dark);
  --color-text: #181a1b;
  --color-text-muted: #b0b0b8;
  --colorful-accent: #e11d48;
  --sticker-bg: #ffffff;
  --sticker-border-color: #d80000;
  --sticker-greeting-text: #000000;
  --sticker-intro-text: #333333;
  --sticker-yellow: #ffd34e;
  --shadow-card: 4px 4px 0px 0px var(--color-border);
  --shadow-card-hover: 8px 8px 0px 0px var(--color-border);
  --shadow-footer-box: 0 -4px 16px 0 rgba(255, 255, 255, 0.04);
  --shadow-sticker: 16px 16px 0px 0px var(--color-border);
  --radius-lg: 36px;
  --radius-md: 18px;
  --radius-sm: 8px;
  --space-card: 1.5em;
  --space-footer: 2em;
  --space-section: 8.5em;
  --toggle-bg-dark: #ffd34e;
}

/* Layout overrides */
html[data-theme="dark"] .about-section-bg {
  border-top: 6px solid var(--color-border);
  color: var(--color-text);
}
html[data-theme="dark"] .skills-section-bg {
  border-top: 6px solid var(--color-border);
}
html[data-theme="dark"] .socials-section-bg {
  border-top: 6px solid var(--color-border);
  border-bottom: 6px solid var(--color-border);
}

/* Component overrides */
html[data-theme="dark"] .sticker,
html[data-theme="dark"] .skill-card,
html[data-theme="dark"] .footer-box {
  border-color: #181a1b;
}
html[data-theme="dark"] .sticker,
html[data-theme="dark"] .sticker-greeting,
html[data-theme="dark"] .sticker-intro,
html[data-theme="dark"] .skill-card,
html[data-theme="dark"] .footer-box {
  color: #181a1b;
}
html[data-theme="dark"] .intro-cta-text {
  color: var(--text-color-dark);
}
html[data-theme="dark"] footer {
  background-color: var(--color-bg-footer);
  color: var(--color-text-dark);
}

/* =====================
   BASE STYLES
   ===================== */
html {
  height: 100%;
  background: var(--color-bg);
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  transition: background 0.3s, color 0.3s;
  line-height: 1.7;
  overflow-x: hidden;
}

/* =====================
   LAYOUT
   ===================== */
.main-content-area {
  background: var(--color-bg);
  transition: background 0.3s;
}
.section-bg,
.skills-section-bg,
.socials-section-bg,
.about-section-bg {
  box-sizing: border-box;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.about-section-bg {
  background: var(--color-bg-sticker);
  border-top: 6px solid var(--color-border);
}
.skills-section-bg {
  background: var(--color-bg-section);
  border-top: 6px solid var(--color-border);
}
.socials-section-bg {
  background: var(--color-bg-socials);
  border-top: 6px solid var(--color-border);
  border-bottom: 6px solid var(--color-border);
}

/* =====================
   CARD & BOX UTILITIES
   ===================== */
.card {
  border: 4px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: var(--color-card);
}

/* =====================
   COMPONENTS
   ===================== */
.sticker-viewport-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em 2em 15em 2em;
  background: var(--color-bg);
}
.sticker {
  /* Card-like styles extracted to .card if possible */
  border: 8px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sticker);
  background: var(--color-card);
  padding: 3.5em 2.5em 5em 2.5em;
  max-width: 900px;
  width: 100%;
  text-align: center;
  margin: 0 auto 4.5em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sticker-greeting {
  font-family: var(--font-marker);
  color: var(--color-text);
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 0.1em;
  letter-spacing: 0.04em;
}
.sticker-intro {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 0.4em;
  letter-spacing: 0.01em;
}
.sticker-name {
  font-family: var(--font-marker);
  color: var(--color-sticker-text);
  text-transform: uppercase;
  width: 100%;
}
.sticker-name-line {
  display: block;
  font-size: 6.2em;
  font-weight: 900;
  line-height: 1.02;
  margin: 0.08em 0;
  text-align: center;
  letter-spacing: -0.04em;
}
.sticker-name-box {
  background: var(--color-bg);
  border: 8px solid var(--color-border);
  border-radius: var(--radius-md);
  margin: 2.5em auto;
  padding: 0.2em 0.1em 0.1em 0.1em;
  max-width: 98%;
  width: 98%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  z-index: 1;
}
.intro-cta-text {
  text-align: center;
  font-size: 1.35em;
  font-family: var(--font-body);
  color: var(--color-text);
  margin: 2.5em 0 2em 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.scroll-down-indicator {
  display: flex;
  background: var(--color-card);
  border: 5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  font-family: var(--font-marker);
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  padding: 0.5em 1.5em 0.4em 1.5em;
  opacity: 0.95;
  transition: opacity 0.3s, box-shadow 0.2s;
  line-height: 1.3;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2em;
}
.scroll-down-indicator:hover {
  opacity: 1;
  box-shadow: var(--shadow-card-hover);
}
.scroll-down-text {
  font-family: var(--font-marker);
  font-size: 1em;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 0.1em;
  margin-right: 0.4em;
}
.scroll-down-indicator .arrow {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0.1em;
  animation: bounce 2s infinite;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 18px solid var(--color-border);
  margin-left: auto;
  margin-right: auto;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 900px) {
  @keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-6px);
    }
    60% {
      transform: translateY(-3px);
    }
  }
}

@media (max-width: 600px) {
  @keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-3px);
    }
    60% {
      transform: translateY(-1px);
    }
  }
}

/* Return to Top Button */
.return-to-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 7em;
  right: 0.5em;
  background: var(--color-card);
  border: 4px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  z-index: 1000;
}

.return-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.return-to-top-text {
  font-family: var(--font-body);
  font-weight: bold;
  color: var(--color-text);
  margin-right: 10px;
}

.return-to-top .arrow-up {
  display: block;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid var(--color-border);
  animation: bounce 2s infinite;
}

/* Theme Switch Styles */
.theme-switch-wrapper-top-right {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--toggle-bg-light);
  border: 4px solid var(--color-border);
  border-radius: 34px;
  transition: 0.4s;
  box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .slider {
  background-color: var(--toggle-bg-dark);
}

.slider:before {
  position: absolute;
  content: "☀️";
  height: 26px;
  width: 26px;
  left: 0px;
  bottom: 1px;
  background-color: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .slider:before {
  background-color: var(--toggle-bg-light);
  border: 2px solid var(--color-border);
}

html[data-theme="dark"] input:checked + .slider {
  background-color: var(--toggle-bg-light);
}

input:checked + .slider:before {
  transform: translateX(26px);
  content: "🌙";
}

.slider:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .theme-switch-wrapper-top-right {
    top: 1rem;
    right: 1rem;
  }

  .theme-switch {
    width: 50px;
    height: 28px;
  }

  .slider:before {
    height: 20px;
    width: 20px;
    font-size: 12px;
  }

  input:checked + .slider:before {
    transform: translateX(22px);
  }
}

.content-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

/* Sections will now stack by default */
.content-wrapper #info,
.content-wrapper #skills,
.content-wrapper #socials {
  border: none;
  padding: 0;
  margin-bottom: 0;
}

section h2 {
  font-family: var(--font-marker);
  color: var(--color-text);
  font-size: 2.2em;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 1.2em;
  letter-spacing: 0.01em;
  text-shadow: none;
}

#skills ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em 2em;
}

#skills li {
  font-family: var(--font-body);
  font-size: 1em;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.01em;
}

#skills li::before {
  content: none;
}

#socials ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em 2em;
}

#socials li {
  margin-bottom: 0;
}

#socials p {
  margin-top: 0;
  margin-bottom: 0.8em;
  font-size: 0.95em;
}

a {
  color: var(--accent-color-light);
  text-decoration: none;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 5em 1em 0 1em;
  background-color: var(--color-bg-section);
  color: var(--color-text);
  font-size: 1.15em;
  border: none;
  margin-top: 0;
  box-shadow: none;
  position: relative;
}

/* =====================
   RESPONSIVE & MEDIA QUERIES
   ===================== */

/* 900px breakpoint */
@media (max-width: 900px) {
  .sticker-viewport-container {
    padding-top: 3em;
    padding-bottom: 0.5em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .sticker {
    padding: 1.2em 0.7em 1.2em 0.7em;
    max-width: 80vw;
    width: 100%;
    margin: 0 auto 0.5em auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .sticker-name-box {
    min-height: 120px;
    margin: 1.2em auto;
    padding: 0.1em 0.1em 0.1em 0.1em;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  /* Button just below the sticker */
  .scroll-down-indicator {
    display: flex;
  }
  /* Section tab headers visible and styled */
  .about-tab-header,
  .skills-tab-header,
  .socials-tab-header {
    display: flex !important;
    background: var(--color-bg-sticker);
    border: 3px solid #181a1b;
    border-radius: 16px 16px 0 0;
    box-shadow: 2px 2px 0px 0px #181a1b;
    color: #181a1b;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 95vw;
    width: auto;
    margin-left: 0.2em !important;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1em;
    padding: 0.3em 1em 0.3em 1em;
    position: static;
  }
  .about-tab-label,
  .skills-tab-label,
  .socials-tab-label {
    font-size: 1.1em;
    color: #181a1b;
  }
  .main-content-area {
    padding: 2em 0.5em 1.5em 0.5em;
  }
  section {
    padding: 1.5em 1em 1.2em 1em;
  }
  .about-tags-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5em;
  }
  .about-section-purple {
    max-width: 100%;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em 1.5em;
  }
  /* Sticker font sizes */
  .sticker-greeting {
    font-size: 2.2em;
  }
  .sticker-intro {
    font-size: 1.2em;
  }
  .sticker-name-line {
    font-size: 2.8em;
  }
  .intro-cta-text {
    font-size: 1em;
  }
  /* Button font size */
  .scroll-down-indicator {
    font-size: 1.1em;
    padding: 0.4em 1em 0.3em 1em;
  }
  /* Regular text size */
  body,
  .about-section-box,
  .skills-section-box,
  .socials-section-box,
  .footer-box {
    font-size: 0.98em;
  }
  /* Section tabs (About, Skills, Socials) */
  .about-tab-header,
  .skills-tab-header,
  .socials-tab-header {
    font-size: 0.8em;
    padding: 0.2em 0.7em 0.2em 0.7em;
    min-width: 0;
    max-width: 95vw;
    width: auto;
    margin-left: 0.2em;
  }
  .about-tab-label,
  .skills-tab-label,
  .socials-tab-label {
    font-size: 1.2em;
  }
  .scroll-down-indicator .arrow {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid var(--color-border);
    width: 0;
    height: 0;
  }
}

/* 700px breakpoint */
@media (max-width: 700px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1em 1em;
  }
  .skill-card {
    width: 100px;
    height: 100px;
  }
  .skills-tab-header {
    margin-left: -0.5em !important;
    font-size: 0.9em;
  }
  .skills-tab-label {
    font-size: 1.5em;
  }
  .skills-tab-icon {
    font-size: 1.2em;
  }
  .about-section-bg .about-section-box {
    padding: 0 0.5em;
  }
  .about-tab-header {
    margin-left: 0.5em;
    font-size: 0.9em;
    padding: 0.2em 1.2em 0.2em 0.7em;
  }
  .socials-section-bg .socials-section-box {
    padding: 0 0.5em;
  }
  .socials-tab-header {
    margin-left: 0.5em;
    font-size: 0.9em;
    padding: 0.2em 1.2em 0.2em 0.7em;
  }
  .custom-acute {
    left: 0.78em;
    bottom: 1.18em;
    font-size: 0.65em;
  }
  .sticker-greeting {
    font-size: 1.5em;
  }
  .sticker-intro {
    font-size: 1em;
  }
  .sticker-name-line {
    font-size: 1.7em;
  }
  .intro-cta-text,
  #about,
  #socials,
  .footer-box p {
    font-size: 0.9em;
  }
  .scroll-down-indicator {
    font-size: 0.95em;
    padding: 0.3em 0.7em 0.2em 0.7em;
  }
  body,
  .about-section-box,
  .skills-section-box,
  .socials-section-box,
  .footer-box {
    font-size: 0.93em;
  }
  .about-tab-header,
  .skills-tab-header,
  .socials-tab-header {
    font-size: 0.7em;
    padding: 0.1em 0.4em 0.1em 0.4em;
    min-width: 0;
    max-width: 99vw;
    width: auto;
    margin-left: 0.1em;
  }
  .about-tab-label,
  .skills-tab-label,
  .socials-tab-label {
    font-size: 1em;
  }
  .scroll-down-indicator .arrow {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid var(--color-border);
    width: 0;
    height: 0;
  }
}

/* 600px breakpoint */
@media (max-width: 600px) {
  .sticker-viewport-container {
    padding-top: 2em;
    padding-bottom: 0.2em;
    min-height: 103vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .sticker {
    padding: 0.7em 0.2em 0.7em 0.2em;
    max-width: 320px;
    width: 100%;
    margin: 0 auto 0.3em auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .sticker-name-box {
    min-height: 70px;
    margin: 0.7em auto;
    padding: 0.05em 0.05em 0.05em 0.05em;
    width: 98%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .scroll-down-indicator {
    display: flex;
  }
  .about-tab-header,
  .skills-tab-header,
  .socials-tab-header {
    display: flex !important;
    background: var(--color-bg-sticker);
    border: 2px solid #181a1b;
    border-radius: 12px 12px 0 0;
    box-shadow: 1px 1px 0px 0px #181a1b;
    color: #181a1b;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 99vw;
    width: auto;
    margin-left: 0.1em;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    font-size: 0.95em;
    padding: 0.2em 0.5em 0.2em 0.5em;
    position: static;
  }
  .about-tab-label,
  .skills-tab-label,
  .socials-tab-label {
    font-size: 1em;
    color: #181a1b;
  }
  .main-content-area {
    padding: 1.2em 0.2em 1em 0.2em;
  }
  section {
    padding: 1em 0.5em 0.8em 0.5em;
  }
  section h2 {
    font-size: 1.1em;
    margin-bottom: 0.8em;
  }
  #skills ul,
  #socials ul {
    gap: 0.7em 1em;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1em 0;
  }
  .sticker-greeting {
    font-size: 1.5em;
  }
  .sticker-intro {
    font-size: 1em;
  }
  .sticker-name-line {
    font-size: 1.7em;
  }
  .intro-cta-text {
    font-size: 0.9em;
  }
  .scroll-down-indicator {
    font-size: 0.95em;
    padding: 0.3em 0.7em 0.2em 0.7em;
  }
  body,
  .about-section-box,
  .skills-section-box,
  .socials-section-box,
  .footer-box {
    font-size: 0.93em;
  }
  .about-tab-header,
  .skills-tab-header,
  .socials-tab-header {
    font-size: 0.7em;
    padding: 0.1em 0.4em 0.1em 0.4em;
    min-width: 0;
    max-width: 99vw;
    width: auto;
    margin-left: 0.1em;
  }
  .about-tab-label,
  .skills-tab-label,
  .socials-tab-label {
    font-size: 1em;
  }
  .scroll-down-indicator .arrow {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid var(--color-border);
    width: 0;
    height: 0;
  }
}

/* 480px breakpoint (if present) */
/* Additional media query for very small screens (max-width: 480px) */
/* This can be merged or adjusted if 600px covers enough */
/* Styles for header h1, p are removed as header is gone */
/* Theme toggle, main padding etc. from previous 480px query still apply or are covered by 600px */

.footer-box {
  /* Card-like styles extracted to .card if possible */
  border-top: 3px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-right: 3px solid var(--color-border);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: var(--shadow-footer-box);
  background: var(--sticker-yellow);
  width: 100%;
  text-align: center;
  font-size: 1.1em;
  font-family: var(--font-body);
  font-weight: 600;
}

/* =====================
   COMPONENTS
   ===================== */

/* Skills Tab Header */
.skills-tab-header {
  display: flex;
  align-items: center;
  background: var(--color-bg-section);
  border: 6px solid #181a1b;
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: none;
  padding: 0 2.2em 0 2.5em;
  width: max-content;
  margin-left: 2.5em;
  margin-top: -81px;
  position: absolute;
  height: 75px;
  top: 0;
  z-index: 2;
}

.skills-tab-icon {
  display: flex;
  align-items: center;
  margin-right: 0.7em;
}

.skills-tab-label {
  font-family: var(--font-marker);
  font-size: 2.2em;
  font-weight: bold;
  color: #181a1b;
  letter-spacing: 0.01em;
}

#skills {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0 2.5em 0;
  margin: 0 auto 0 auto;
  max-width: 1100px;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  margin-bottom: 0;
  justify-items: center;
}

.skill-card {
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  background: var(--sticker-yellow);
  transition: transform 0.1s;
  padding: 0;
}

.skill-icon img,
.skill-icon svg {
  width: 2.5em;
  height: 2.5em;
  max-width: 48px;
  max-height: 48px;
}

.skill-label {
  font-family: var(--font-body);
  font-size: clamp(0.9em, 2vw, 1.15em);
  font-weight: 700;
  color: #181a1b;
  text-align: center;
  margin-top: 0.2em;
}

@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
  }
  .skill-card {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2em;
  }
  .skill-card {
    width: 90px;
    height: 90px;
  }
  .skill-icon img,
  .skill-icon svg {
    width: 2em;
    height: 2em;
    max-width: 36px;
    max-height: 36px;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8em;
  }
  .skill-card {
    width: 80px;
    height: 80px;
  }
  .skill-label {
    font-size: 0.85em;
  }
  .skill-icon img,
  .skill-icon svg {
    width: 1.5em;
    height: 1.5em;
    max-width: 28px;
    max-height: 28px;
  }
}

/* Remove sticker card look from skills section */
#skills {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0 2.5em 0;
  margin: 0 auto 0 auto;
  max-width: 1100px;
  position: relative;
}

.skills-section-box {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 auto 3em auto;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

.skills-section-box .skills-tab-header {
  position: absolute;
  top: -38px;
  left: 32px;
  z-index: 2;
}

.skills-section-bg .skills-tab-header {
  display: flex;
}

.skills-section-bg .skills-section-box {
  margin: 0 auto;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 2.5em;
  max-width: 1100px;
}

.socials-section-bg {
  border-top: 6px solid #181a1b;
  border-bottom: 6px solid #181a1b;
  border-radius: 0;
  width: 100vw;
  position: relative;
  padding-top: 3.5em;
  padding-bottom: 5.5em;
  z-index: 0;
}

.socials-tab-header {
  display: flex;
  align-items: center;
  background: var(--color-bg-socials);
  border: 6px solid #181a1b;
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: none;
  padding: 0 2.2em 0 2.5em;
  width: max-content;
  margin-left: 2.5em;
  margin-top: -81px;
  height: 75px;
  top: 0;
  position: absolute;
  z-index: 2;
}

.socials-tab-icon {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  margin-right: 0.7em;
}

.socials-tab-label {
  font-family: var(--font-marker);
  font-size: 2.2em;
  font-weight: bold;
  color: #181a1b;
  letter-spacing: 0.01em;
}

.socials-section-box {
  margin: 0 auto;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 2.5em;
  max-width: 700px;
}

#socials ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em 2em;
  flex-direction: column;
}

#socials li {
  margin-bottom: 0;
}

#socials p {
  margin-top: 0;
  margin-bottom: 0.8em;
  font-size: 1.35em;
}

@media (max-width: 700px) {
  .socials-section-bg .socials-section-box {
    padding: 0 0.5em;
  }
  .socials-tab-header {
    margin-left: -0.5em !important;
    font-size: 0.9em;
  }
  .socials-tab-label {
    font-size: 1.5em;
  }
  .socials-tab-icon {
    font-size: 1.2em;
  }
}

.about-tab-header {
  display: flex;
  align-items: center;
  background: var(--color-bg-sticker);
  border: 6px solid #181a1b;
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  box-shadow: none;
  padding: 0 2.2em 0 2.5em;
  height: 75px;
  width: max-content;
  margin-left: 2.5em;
  margin-top: -81px;
  position: absolute;
  top: 0;
  z-index: 2;
}

.about-tab-icon {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  margin-right: 0.7em;
}

.about-tab-label {
  font-family: var(--font-marker);
  font-size: 2.2em;
  font-weight: bold;
  color: #181a1b;
  letter-spacing: 0.01em;
}

.about-section-box {
  margin: 0 auto;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 2.5em;
  max-width: 700px;
}

#about p {
  margin-top: 0;
  margin-bottom: 0.8em;
  font-size: 1.35em;
}

@media (max-width: 700px) {
  .about-section-bg .about-section-box {
    padding: 0 0.5em;
  }
  .about-tab-header {
    margin-left: -0.5em !important;
    font-size: 0.9em;
  }
  .about-tab-label {
    font-size: 1.5em;
  }
  .about-tab-icon {
    font-size: 1.2em;
  }
}

.social-card {
  /* Card-like styles extracted to .card if possible */
  border: 4px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  background: var(--accent-redorange);
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.8em 1.5em 0.8em 1em;
  min-width: 220px;
  margin-bottom: 1.2em;
  transition: transform 0.1s;
}

.social-card:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 8px 8px 0px 0px #181a1b;
  text-decoration: underline;
  text-decoration-color: #181a1b;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.social-icon {
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-label {
  font-family: var(--font-body);
  font-size: 1.15em;
  font-weight: 700;
  color: #181a1b;
  text-align: left;
  margin-left: 0.2em;
}

.section-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 0.5em;
  padding-right: 0.5em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 950px) {
  .section-content-wrapper {
    max-width: 98vw;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

.custom-c-wrapper {
  position: relative;
  display: inline-block;
}
.custom-acute {
  position: absolute;
  left: 0.82em;
  bottom: 1.32em;
  font-size: 0.7em;
  font-family: var(--font-marker);
  color: currentColor;
  transform: rotate(32deg) scaleX(0.7);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  margin-left: 0.12em;
  text-transform: none;
}
@media (max-width: 700px) {
  .custom-acute {
    left: 0.78em;
    bottom: 1.18em;
    font-size: 0.65em;
  }
}

.scroll-anchor {
  scroll-margin-top: 110px;
}

.about-tab-header,
.skills-tab-header,
.socials-tab-header {
  margin-left: -240px;
}

html[data-theme="dark"] .skills-tab-label {
  color: var(--color-sticker-text);
}
html[data-theme="dark"] .skills-tab-icon svg {
  color: var(--color-sticker-text) !important;
  fill: var(--color-sticker-text) !important;
}

.about-tab-icon,
.skills-tab-icon,
.socials-tab-icon {
  display: flex;
  align-items: center;
  margin-right: 0.7em;
}

.about-tab-icon svg,
.skills-tab-icon svg,
.socials-tab-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .about-tab-icon svg,
  .skills-tab-icon svg,
  .socials-tab-icon svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 700px) {
  .about-tab-icon svg,
  .skills-tab-icon svg,
  .socials-tab-icon svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 600px) {
  .about-tab-icon svg,
  .skills-tab-icon svg,
  .socials-tab-icon svg {
    width: 28px;
    height: 28px;
  }
}

.about-flex-row {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 2.5em;
}

.about-text-content {
  flex: 2 1 0;
  min-width: 0;
}

.about-image-wrapper {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-profile-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #181a1b;
  box-shadow: var(--shadow-image);
  background: #fffbe9;
  max-width: 100%;
  max-height: 60vw;
}

@media (max-width: 1100px) {
  .about-profile-img {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 900px) {
  .about-flex-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 1.5em;
  }
  .about-image-wrapper {
    justify-content: center;
    margin-bottom: 1.2em;
  }
  .about-profile-img {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .about-profile-img {
    width: 120px;
    height: 120px;
  }
}
