:root {
  --bg: #fdf9f0;
  --bg2: #f5ede0;
  --bg3: #ede3d2;
  --ink: #1a1208;
  --ink2: #3d2f1a;
  --ink3: #7a6044;
  --line: #c8b89a;
  --line2: #e0d0b8;
  --yellow: #ffd85c;
  --yellow-dark: #e6b800;
  --pink: #ffb3c6;
  --pink-dark: #d4456e;
  --green: #b8e8c4;
  --green-dark: #2a7a3b;
  --blue: #b8d8f8;
  --blue-dark: #1a5fa0;
  --orange: #ffd0a0;
  --orange-dark: #b85e00;
  --purple: #ddd0f8;
  --purple-dark: #5a38b0;
  --red: #ffa0a0;
  --red-dark: #a01828;
  --shadow: rgba(60, 40, 10, 0.18);
  --shadow-strong: rgba(60, 40, 10, 0.32);
  --tape: rgba(200, 185, 150, 0.55);
  --accent: #e84545;
}
[data-theme="dark"] {
  --bg: #1a1510;
  --bg2: #221c13;
  --bg3: #2a2218;
  --ink: #f5ead8;
  --ink2: #d4c4a0;
  --ink3: #8a7558;
  --line: #3d3020;
  --line2: #2a2218;
  --yellow: #b88a00;
  --yellow-dark: #ffd85c;
  --pink: #7a1838;
  --pink-dark: #ffb3c6;
  --green: #1a4a28;
  --green-dark: #80d898;
  --blue: #0e2d4a;
  --blue-dark: #80c0f8;
  --orange: #4a2800;
  --orange-dark: #ffb870;
  --purple: #281850;
  --purple-dark: #c8b0f8;
  --red: #4a0808;
  --red-dark: #ff9090;
  --shadow: rgba(0, 0, 0, 0.5);
  --shadow-strong: rgba(0, 0, 0, 0.7);
  --tape: rgba(80, 60, 30, 0.55);
  --accent: #ff6666;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition:
    background 0.3s,
    color 0.3s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 27px,
    var(--line2) 27px,
    var(--line2) 28px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  transition: background 0.3s;
}

.nav-logo {
  font-family: "Caveat", cursive;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
  position: relative;
}
.nav-logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(-1deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: "Caveat", cursive;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink2);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
  border-radius: 2px;
  transform: rotate(-0.5deg);
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--bg2);
  border: 2px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  box-shadow: 3px 3px 0 var(--line);
}
.theme-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--line);
}
.theme-toggle:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}
.fa-sun {
  color: #facc15;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Kalam", cursive;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  transform: rotate(-2deg);
  margin-bottom: 20px;
  border: 1.5px solid var(--yellow-dark);
  box-shadow: 2px 2px 0 var(--yellow-dark);
}

.hero-name {
  font-family: "DM Serif Display", serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 12px;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
  font-size: 0.85em;
}

.hero-role {
  font-family: "Caveat", cursive;
  font-size: 26px;
  color: var(--ink2);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-tagline {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink2);
  margin-bottom: 32px;
  max-width: 460px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  font-style: italic;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  font-family: "Caveat", cursive;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  border: 2.5px solid var(--ink);
  position: relative;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--bg2);
}
.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.hero-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-socials a {
  font-family: "Caveat", cursive;
  font-size: 15px;
  color: var(--ink3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.hero-socials a:hover {
  color: var(--accent);
}

.hero-card-wrap {
  position: relative;
}

.hero-card {
  background: var(--bg2);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
  transform: rotate(1.5deg);
}

.tape {
  position: absolute;
  width: 60px;
  height: 22px;
  background: var(--tape);
  border: 1px solid var(--line);
  border-radius: 3px;
  z-index: 2;
}
.tape-tl {
  top: -11px;
  left: 20px;
  transform: rotate(-3deg);
}
.tape-tr {
  top: -11px;
  right: 20px;
  transform: rotate(3deg);
}

.hero-card h3 {
  font-family: "Caveat", cursive;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
  border-bottom: 1.5px dashed var(--line);
  padding-bottom: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
  flex: 1;
}
.stat-num {
  font-family: "DM Serif Display", serif;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: "Kalam", cursive;
  font-size: 12px;
  color: var(--ink3);
  margin-top: 4px;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  font-family: "Kalam", cursive;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1.5px solid;
  font-weight: 700;
}
.chip-react {
  background: var(--blue);
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}
.chip-django {
  background: var(--green);
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.chip-pg {
  background: var(--purple);
  border-color: var(--purple-dark);
  color: var(--purple-dark);
}
.chip-tw {
  background: var(--orange);
  border-color: var(--orange-dark);
  color: var(--orange-dark);
}
.chip-js {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  color: var(--yellow-dark);
}
.chip-py {
  background: var(--pink);
  border-color: var(--pink-dark);
  color: var(--pink-dark);
}
.chip-e {
  background: var(--red);
  border-color: var(--red-dark);
  color: var(--red-dark);
}

.deco-arrow {
  position: absolute;
  font-family: "Caveat", cursive;
  font-size: 13px;
  color: var(--ink3);
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--ink);
  position: relative;
}
.section-heading h2 span {
  position: relative;
  z-index: 1;
}
.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 12px;
  background: var(--yellow);
  z-index: 0;
  transform: rotate(-0.5deg);
  opacity: 0.6;
}
.section-num {
  font-family: "Caveat", cursive;
  font-size: 16px;
  color: var(--ink3);
  font-weight: 700;
}

#about {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.notebook-card {
  background: var(--bg2);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 32px;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
}
.notebook-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 48px;
  bottom: 0;
  width: 1px;
  background: var(--pink);
  opacity: 0.5;
}
.notebook-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink2);
  margin-bottom: 16px;
  padding-left: 8px;
}
.notebook-card p:last-child {
  margin-bottom: 0;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fact-card {
  padding: 20px 24px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.fact-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.fact-card:nth-child(1) {
  background: var(--yellow);
  transform: rotate(-1deg);
}
.fact-card:nth-child(2) {
  background: var(--blue);
  transform: rotate(0.5deg);
}
.fact-card:nth-child(3) {
  background: var(--green);
  transform: rotate(-0.5deg);
}
.fact-card:nth-child(1):hover {
  transform: rotate(-1deg) translate(-2px, -2px);
}
.fact-card:nth-child(2):hover {
  transform: rotate(0.5deg) translate(-2px, -2px);
}
.fact-card:nth-child(3):hover {
  transform: rotate(-0.5deg) translate(-2px, -2px);
}

.fact-card h4 {
  font-family: "Caveat", cursive;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.fact-card h4 i {
  color: var(--accent);
  font-size: 18px;
}

.fact-card p {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
}

#skills {
  padding: 100px 0;
  background: var(--bg2);
}

.skills-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.skill-group {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.skill-group:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.skill-group-title {
  font-family: "Caveat", cursive;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  border-bottom: 1.5px dashed var(--line);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.skill-group-icon {
  font-size: 18px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  font-family: "Kalam", cursive;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  background: var(--bg2);
  color: var(--ink2);
  transition: all 0.15s;
}
.skill-tag:hover {
  border-color: var(--ink);
  transform: rotate(-1deg) scale(1.05);
  background: var(--yellow);
  color: var(--ink);
}
.skill-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.skill-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  width: 24px;
}

#experience {
  padding: 100px 0;
}

.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0,
    var(--line) 8px,
    transparent 8px,
    transparent 14px
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
}

.timeline-card {
  background: var(--bg2);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 24px 28px;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.timeline-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.timeline-company {
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  color: var(--ink);
}
.timeline-date {
  font-family: "Kalam", cursive;
  font-size: 13px;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1.5px solid var(--yellow-dark);
  font-weight: 700;
}
.timeline-role {
  font-family: "Caveat", cursive;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.timeline-stack {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--ink3);
  margin-bottom: 14px;
  background: var(--bg3);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-list li {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.timeline-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

#projects {
  padding: 100px 0;
  background: var(--bg2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.project-card:nth-child(1) {
  transform: rotate(-0.5deg);
}
.project-card:nth-child(2) {
  transform: rotate(0.8deg);
}
.project-card:nth-child(3) {
  transform: rotate(-0.3deg);
}
.project-card:nth-child(1):hover {
  transform: rotate(-0.5deg) translate(-3px, -3px);
}
.project-card:nth-child(2):hover {
  transform: rotate(0.8deg) translate(-3px, -3px);
}
.project-card:nth-child(3):hover {
  transform: rotate(-0.3deg) translate(-3px, -3px);
}

.project-pin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  border: 2px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.project-type {
  font-family: "Kalam", cursive;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1.5px solid;
  display: inline-block;
  margin-bottom: 14px;
  margin-top: 8px;
}
.type-freelance {
  background: var(--orange);
  border-color: var(--orange-dark);
  color: var(--orange-dark);
}
.type-personal {
  background: var(--purple);
  border-color: var(--purple-dark);
  color: var(--purple-dark);
}
.type-fullstack {
  background: var(--green);
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.project-title {
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
}
.project-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.project-achievement {
  background: var(--yellow);
  border: 1.5px solid var(--yellow-dark);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: "Kalam", cursive;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.stack-tag {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  padding: 2px 8px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink3);
}

.project-links {
  display: flex;
  gap: 12px;
}
.project-links .btn {
  font-size: 15px;
  padding: 7px 16px;
  flex: 1;
  justify-content: center;
}

#achievements {
  padding: 100px 0;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.achievement-card {
  text-align: center;
  padding: 28px 20px;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  position: relative;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.achievement-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.achievement-card:nth-child(odd) {
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1.2deg);
}
.achievement-card:nth-child(even) {
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(1deg);
}
.achievement-card:nth-child(3) {
  background: var(--blue);
}
.achievement-card:nth-child(4) {
  background: var(--green);
}
.achievement-card:nth-child(odd):hover {
  transform: rotate(-1.2deg) translate(-2px, -2px);
}
.achievement-card:nth-child(even):hover {
  transform: rotate(1deg) translate(-2px, -2px);
}

.achievement-num {
  font-family: "DM Serif Display", serif;
  font-size: 52px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.achievement-label {
  font-family: "Kalam", cursive;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink2);
  line-height: 1.4;
}

#contact {
  padding: 100px 0;
  background: var(--bg2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-card {
  background: var(--bg);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 7px 7px 0 var(--ink);
  position: relative;
}

.contact-headline {
  font-family: "DM Serif Display", serif;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}
.contact-headline em {
  font-style: italic;
  color: var(--accent);
}

.contact-sub {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s;
}
.contact-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--yellow);
}
.contact-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}
.icon-email {
  background: var(--red);
}
.icon-github {
  background: var(--bg3);
}
.icon-web {
  background: var(--blue);
}
.icon-phone {
  background: var(--green);
}

.contact-link-text {
  font-family: "Caveat", cursive;
  font-size: 18px;
  font-weight: 600;
}
.contact-link-sub {
  font-size: 12px;
  color: var(--ink3);
  font-family: "DM Mono", monospace;
}

.contact-form-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hand-label {
  font-family: "Caveat", cursive;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink2);
  margin-bottom: 6px;
  display: block;
}

.sketch-input,
.sketch-textarea {
  width: 100%;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: "Kalam", cursive;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  box-shadow: 3px 3px 0 var(--line);
  transition: all 0.2s;
}
.sketch-input:focus,
.sketch-textarea:focus {
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--bg2);
}
.sketch-textarea {
  resize: vertical;
  min-height: 120px;
}

footer {
  text-align: center;
  padding: 32px;
  background: var(--bg3);
  border-top: 2px solid var(--line);
  font-family: "Caveat", cursive;
  font-size: 16px;
  color: var(--ink3);
  position: relative;
  z-index: 1;
}

footer strong {
  color: var(--ink);
}

.footer-tagline {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink2);
}

.footer-socials {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-socials a {
  color: var(--ink2);
  font-size: 24px;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.footer-socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  padding: 20px 32px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: "Caveat", cursive;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  nav {
    padding: 12px 20px;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .container {
    padding: 0 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-card {
    transform: rotate(0deg);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  #hero {
    padding: 90px 0 40px;
  }
  #about,
  #skills,
  #experience,
  #projects,
  #achievements,
  #contact {
    padding: 60px 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-board {
    grid-template-columns: repeat(2, 1fr);
  }
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .skills-board {
    grid-template-columns: 1fr;
  }
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .stat-row {
    flex-direction: column;
    gap: 8px;
  }
}
