/* RAFA.DEV — Playful Cartoon / Pixel Indie */
:root {
  --cream: #fff4df;
  --paper: #fffaf0;
  --paper-deep: #f4e6cc;
  --ink: #49392f;
  --muted: #877566;
  --brown: #76543d;
  --brown-dark: #39291f;
  --orange: #d98b59;
  --sage: #9eaa83;
  --line: #e8d8bd;
  --shadow: 0 18px 45px rgba(83, 58, 37, .10);
  --pixel: "DM Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--cream); color: var(--ink); font-family: "Nunito", sans-serif; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: #e8b58d; color: var(--brown-dark); }
.page-noise { position: fixed; inset: 0; pointer-events: none; opacity: .12; z-index: -1; background-image: radial-gradient(#a88b6b 0.6px, transparent .6px); background-size: 7px 7px; }
.section { width: min(1120px, 88%); margin: auto; padding: 105px 0; }
.navbar { height: 78px; padding: 0 6%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 20; background: rgba(255,244,223,.9); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(118,84,61,.13); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 900; letter-spacing: -1px; }
.logo-mark { display: grid; place-items: center; width: 29px; height: 29px; background: var(--brown); color: var(--cream); border: 2px solid var(--brown-dark); box-shadow: 3px 3px 0 var(--brown-dark); font-family: var(--pixel); font-size: .9rem; }
.logo-dot { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: .9rem; font-weight: 800; color: var(--muted); }
.nav-links a { transition: color .2s, transform .2s; }
.nav-links a:hover { color: var(--brown); transform: translateY(-2px); }
.nav-links .nav-contact { padding: 9px 17px; background: var(--paper); color: var(--brown); border: 1px solid var(--line); border-radius: 7px; box-shadow: 3px 3px 0 var(--line); }
.nav-contact span { color: var(--orange); margin-left: 5px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--brown); margin: 4px 0; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; position: relative; padding-top: 75px; padding-bottom: 115px; }
.availability, .eyebrow, .section-kicker, .hero-meta, .float-label, .project-type, .project-status, .skill-level, .card-stats, .role, .scroll-cue, .coming-badge, .footer > span { font-family: var(--pixel); }
.availability { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid #d8dfc7; background: #f1f2df; border-radius: 5px; color: #687653; font-size: .62rem; letter-spacing: .4px; margin-bottom: 24px; }
.pixel-dot { width: 7px; height: 7px; background: #8c9b67; box-shadow: 2px 2px 0 #c6d0a9; }
.eyebrow { color: var(--orange); font-size: .72rem; letter-spacing: 1.5px; margin-bottom: 13px; }
.hero h1 { font-size: clamp(3rem, 5.8vw, 5.2rem); line-height: 1.04; letter-spacing: -3px; font-weight: 900; color: var(--brown-dark); }
.highlight { color: var(--orange); position: relative; white-space: nowrap; }
.period { color: var(--sage); }
.hero-description { max-width: 510px; margin-top: 23px; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 12px 19px; border-radius: 6px; font-size: .88rem; font-weight: 900; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translate(-2px,-2px); }
.btn-primary { color: var(--paper); background: var(--brown); border: 1px solid var(--brown-dark); box-shadow: 4px 4px 0 var(--brown-dark); }
.btn-primary:hover { box-shadow: 6px 6px 0 var(--brown-dark); }
.btn-secondary { background: var(--paper); color: var(--brown); border: 1px solid var(--line); box-shadow: 4px 4px 0 var(--line); }
.hero-meta { display: flex; align-items: center; gap: 13px; margin-top: 42px; color: #a08d79; font-size: .58rem; letter-spacing: .4px; }
.hero-meta i { width: 25px; height: 1px; background: #cdb99d; }
.hero-art { min-height: 440px; display: grid; place-items: center; position: relative; }
.sun-shape { position: absolute; width: 310px; height: 310px; border-radius: 50%; background: #f1d9ad; top: 45px; right: 35px; }
.game-window { width: min(390px, 90%); position: relative; z-index: 2; background: var(--paper); border: 2px solid var(--brown-dark); border-radius: 8px; box-shadow: 9px 9px 0 rgba(73,57,47,.17); transform: rotate(2deg); overflow: hidden; }
.game-window-top, .game-window-bottom { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: #ead9bd; color: var(--brown); font-family: var(--pixel); font-size: .62rem; }
.window-title { font-weight: 500; }
.window-controls { letter-spacing: 3px; color: var(--orange); }
.game-scene { height: 270px; position: relative; overflow: hidden; background: #d9e5d0; }
.cloud { position: absolute; width: 56px; height: 15px; background: #fff8e9; border-radius: 10px; top: 48px; }
.cloud:before, .cloud:after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud:before { width: 23px; height: 23px; left: 9px; top: -10px; }.cloud:after { width: 18px; height: 18px; right: 9px; top: -7px; }
.cloud-one { left: 45px; }.cloud-two { right: 38px; top: 85px; transform: scale(.7); }
.hill { position: absolute; bottom: 28px; width: 300px; height: 130px; border-radius: 50% 50% 0 0; }
.hill-back { left: -90px; background: #a9bb91; transform: rotate(-8deg); }.hill-front { right: -90px; bottom: 14px; background: #81996f; transform: rotate(8deg); }
.ground { position: absolute; bottom: 0; height: 35px; width: 100%; background: #b77e58; border-top: 5px solid #8d684a; }
.pixel-character { position: absolute; z-index: 3; width: 58px; height: 105px; left: 48%; bottom: 29px; transform: translateX(-50%); image-rendering: pixelated; }
.char-hair { position: absolute; width: 38px; height: 16px; left: 10px; top: 0; background: #594033; box-shadow: -5px 8px #594033, 5px 8px #594033; }
.char-face { position: absolute; width: 34px; height: 29px; left: 12px; top: 13px; background: #e8ad7e; box-shadow: inset 0 -5px #cf8d69; }
.char-face:after { content: "▪ ▪"; position: absolute; top: 5px; left: 8px; color: #49392f; font-size: 9px; letter-spacing: 4px; }
.char-shirt { position: absolute; width: 44px; height: 31px; left: 7px; top: 42px; background: #d78c5d; box-shadow: -5px 5px #b86e4b, 5px 5px #b86e4b; }
.char-leg { position: absolute; width: 13px; height: 24px; top: 72px; background: #52677a; }.leg-left { left: 13px; }.leg-right { right: 13px; }
.scene-caption { position: absolute; left: 18px; top: 17px; color: #718467; font-family: var(--pixel); font-size: .55rem; line-height: 1.8; letter-spacing: .5px; }
.scene-caption strong { color: #52664a; }
.game-window-bottom { height: 35px; background: #f3e7d2; }
.game-window-bottom span:first-child { color: #c87961; letter-spacing: 3px; }
.float-label { position: absolute; z-index: 3; padding: 8px 11px; background: var(--paper); border: 1px solid var(--line); box-shadow: 3px 3px 0 var(--line); color: var(--brown); font-size: .58rem; transform: rotate(-4deg); }
.label-top { top: 36px; left: 2px; }.label-bottom { bottom: 37px; right: 0; transform: rotate(3deg); }
.label-bottom span { color: var(--orange); }
.pixel-spark { position: absolute; z-index: 3; color: var(--orange); font-size: 2rem; }.spark-one { top: 75px; right: 22px; }.spark-two { bottom: 88px; left: 15px; color: var(--sage); }
.tiny-note { position: absolute; right: 2px; bottom: 4px; color: #a08d79; font-family: var(--pixel); font-size: .52rem; line-height: 1.7; transform: rotate(-5deg); }
.scroll-cue { position: absolute; left: 0; bottom: 38px; display: flex; align-items: center; gap: 12px; color: #a08d79; font-size: .57rem; letter-spacing: 1px; }
.scroll-line { display: inline-block; width: 38px; height: 1px; background: #cdb99d; }
.section-heading { margin-bottom: 42px; }
.section-kicker { color: var(--orange); font-size: .66rem; letter-spacing: 1.3px; margin-bottom: 11px; }
.section-heading h2, .contact-card h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -1.8px; color: var(--brown-dark); font-weight: 900; }
.section-intro { margin-top: 12px; color: var(--muted); }
.about-section { border-top: 1px dashed #ddc9aa; }
.about-layout { display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 65px; }
.about-note { position: relative; padding: 28px; background: #f5e7cf; border: 1px solid #dfc8a5; border-radius: 7px; box-shadow: 6px 6px 0 #e7d5b8; text-align: center; transform: rotate(-2deg); }
.sticker { position: absolute; top: -12px; right: -15px; padding: 5px 9px; background: var(--sage); color: white; font-family: var(--pixel); font-size: .55rem; transform: rotate(5deg); }
.avatar-pixel { width: 86px; height: 86px; margin: 8px auto 12px; display: grid; place-items: center; background: #e8c49e; border: 3px solid var(--brown); box-shadow: 5px 5px 0 #cba77f; color: var(--brown); font-family: var(--pixel); font-size: 2rem; font-weight: 500; }
.about-note h3 { font-size: 1.4rem; font-weight: 900; }.role { margin-top: 2px; color: #9b8269; font-size: .55rem; }
.note-divider { height: 1px; background: #ddc7a5; margin: 17px 0; }.note-copy { color: #806c59; font-size: .85rem; font-style: italic; }
.card-stats { display: flex; justify-content: space-between; margin-top: 23px; color: #9b8269; font-size: .5rem; }.card-stats b { color: #687653; font-weight: 500; }
.large-copy { color: var(--brown-dark); font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.45; font-weight: 800; margin-bottom: 17px; }
.about-text > p:not(.large-copy) { max-width: 650px; color: var(--muted); }
.interest-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }.interest-tags span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--brown); font-size: .8rem; font-weight: 800; }
.skills-section { border-top: 1px dashed #ddc9aa; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skill-card { position: relative; display: flex; align-items: center; gap: 17px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; box-shadow: 3px 3px 0 #eadcc5; transition: transform .2s, box-shadow .2s; }
.skill-card:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 #eadcc5; }
.skill-symbol { width: 49px; height: 49px; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--brown); border-radius: 6px; font-family: var(--pixel); font-weight: 500; font-size: 1.25rem; box-shadow: 3px 3px 0 var(--line); }
.html-symbol { background: #f6d5bc; color: #b85e3e; }.css-symbol { background: #d8e4e8; color: #587e8c; }.js-symbol { background: #f1e4ad; color: #8a7134; font-size: .9rem; }.cpp-symbol { background: #dce3d1; color: #667b59; }
.skill-card h3 { font-size: 1rem; font-weight: 900; }.skill-card p { color: var(--muted); font-size: .8rem; margin: 1px 0 6px; }.skill-level { color: #9b8269; font-size: .52rem; letter-spacing: .3px; }.skill-index { margin-left: auto; align-self: flex-start; color: #c4ad8d; font-family: var(--pixel); font-size: .6rem; }
.honest-note { margin-top: 22px; color: #9b8269; font-size: .78rem; }
.projects-section { border-top: 1px dashed #ddc9aa; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 4px 4px 0 #eadcc5; transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 #e5d2b3; }
.project-art { height: 210px; position: relative; display: grid; place-items: center; overflow: hidden; }
.art-profile { background: #dce5d1; }.art-logic { background: #ead8bd; }.art-creative { background: #e9c9b4; }
.project-number { position: absolute; bottom: 10px; left: 13px; color: rgba(73,57,47,.65); font-family: var(--pixel); font-size: .55rem; }
.art-browser { width: 72%; background: #fffaf0; border: 2px solid var(--brown); border-radius: 5px; box-shadow: 5px 5px 0 rgba(73,57,47,.18); transform: rotate(-3deg); overflow: hidden; }
.browser-bar { height: 23px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: #f0dfc5; }.browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #c98262; }.browser-bar span { margin-left: 7px; color: #8c7863; font-family: var(--pixel); font-size: .42rem; }
.browser-content { position: relative; padding: 15px; min-height: 125px; color: var(--brown-dark); }.mini-label { display: block; color: #9aab7f; font-family: var(--pixel); font-size: .45rem; }.browser-content b { display: block; margin-top: 5px; font-size: 1.15rem; line-height: 1.05; }.mini-portrait { position: absolute; right: 15px; top: 26px; display: grid; place-items: center; width: 43px; height: 43px; background: #e7bd99; border: 2px solid var(--brown); color: var(--brown); font-size: 1.4rem; }.mini-skeleton { height: 4px; width: 65%; background: #e5d8c4; margin-top: 11px; }.mini-skeleton.short { width: 40%; margin-top: 5px; }
.calculator-art { width: 65%; padding: 15px; background: #fff8e9; border: 2px solid var(--brown); border-radius: 7px; box-shadow: 5px 5px 0 rgba(73,57,47,.18); transform: rotate(3deg); }.calculator-art > span { color: #9b8269; font-family: var(--pixel); font-size: .48rem; }.calculator-art strong { display: block; padding: 8px 0; color: var(--brown-dark); font-family: var(--pixel); font-size: 1rem; }.calculator-art em { color: var(--orange); font-style: normal; }.calc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }.calc-grid i { display: grid; place-items: center; height: 22px; background: #eee0c8; border: 1px solid #dfc8a5; border-radius: 3px; color: var(--brown); font-family: var(--pixel); font-size: .6rem; font-style: normal; }
.creative-poster { position: relative; width: 65%; min-height: 155px; padding: 17px; background: #fff1d9; border: 2px solid var(--brown); box-shadow: 5px 5px 0 rgba(73,57,47,.18); transform: rotate(-4deg); }.creative-poster > span { color: #9a826b; font-family: var(--pixel); font-size: .48rem; }.creative-poster strong { display: block; margin-top: 8px; color: var(--brown-dark); font-size: 1.5rem; line-height: .9; letter-spacing: -1px; }.creative-poster strong span { color: var(--orange); }.poster-star { position: absolute; right: 15px; top: 25px; color: var(--sage); font-size: 2.4rem; }.poster-block { position: absolute; right: 18px; bottom: 15px; width: 35px; height: 9px; background: var(--orange); }
.project-details { padding: 19px; }.project-type { display: flex; justify-content: space-between; gap: 8px; color: #9b8269; font-size: .49rem; letter-spacing: .3px; }.project-type span { color: #8c9b72; }.project-details h3 { margin-top: 10px; color: var(--brown-dark); font-size: 1.1rem; font-weight: 900; }.project-details p { min-height: 68px; margin-top: 6px; color: var(--muted); font-size: .82rem; }.project-status { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: #9b8269; font-size: .5rem; }.project-status b { color: var(--orange); font-size: .95rem; }
.coming-soon { display: flex; align-items: center; gap: 15px; margin-top: 24px; padding: 17px 20px; background: #f2ecd9; border: 1px dashed #d5c4a5; border-radius: 6px; }.coming-icon { color: var(--orange); font-size: 1.5rem; }.coming-soon p { color: var(--muted); font-size: .78rem; line-height: 1.5; }.coming-soon p b { color: var(--brown); font-size: .9rem; }.coming-badge { margin-left: auto; color: #89966f; font-size: .53rem; }
.contact-section { padding-top: 60px; }.contact-card { position: relative; overflow: hidden; text-align: center; padding: 70px 25px; background: #f1e3ca; border: 1px solid #dfc8a5; border-radius: 9px; box-shadow: 7px 7px 0 #e4d2b4; }.contact-card h2 { font-size: clamp(2.7rem, 6vw, 4.4rem); }.contact-card > p:not(.section-kicker) { max-width: 500px; margin: 17px auto 25px; color: var(--muted); }.contact-doodle { position: absolute; top: 25px; right: 8%; color: #c5a77e; font-size: 3rem; transform: rotate(15deg); }.contact-email { display: block; margin-top: 20px; color: #9b8269; font-family: var(--pixel); font-size: .58rem; }
/* SOCIAL MEDIA */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.social-links a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 170px;
  padding: 15px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-light);
  transition: 0.3s ease;
}

.social-links a:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.social-links span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
}

.social-links strong {
  color: var(--cyan);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .social-links {
    flex-direction: column;
  }

  .social-links a {
    width: 100%;
  }
}
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 27px 6%; border-top: 1px solid var(--line); color: #9b8269; font-size: .75rem; }.footer p span { color: var(--orange); }.footer .logo { color: var(--brown); font-size: 1.05rem; }.footer .logo-mark { width: 25px; height: 25px; font-size: .75rem; }
.reveal { opacity: 1; transform: none; }.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }.js-reveal .reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 15px; padding-top: 70px; }.hero-copy { max-width: 650px; }.hero-art { min-height: 400px; }.about-layout { gap: 35px; }.projects-grid { grid-template-columns: repeat(2,1fr); }.project-card:last-child { grid-column: 1 / -1; }.project-card:last-child .project-art { height: 230px; } }
@media (max-width: 620px) { .section { width: 88%; padding: 78px 0; }.navbar { height: 68px; padding: 0 6%; }.menu-toggle { display: block; }.nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 17px 6% 23px; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 5px; }.nav-links.open { display: flex; }.nav-links a { padding: 9px 0; }.nav-links .nav-contact { text-align: center; margin-top: 5px; }.hero { min-height: auto; padding-top: 65px; padding-bottom: 105px; }.hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); letter-spacing: -2px; }.hero-description { font-size: .94rem; }.hero-meta { flex-wrap: wrap; font-size: .5rem; margin-top: 30px; }.hero-art { min-height: 350px; margin-top: 5px; }.sun-shape { width: 250px; height: 250px; right: 8%; top: 35px; }.game-window { width: 90%; }.game-scene { height: 230px; }.label-top { left: -3px; }.label-bottom { right: -3px; bottom: 25px; }.tiny-note { right: 0; bottom: -8px; }.scroll-cue { bottom: 30px; }.about-layout { grid-template-columns: 1fr; gap: 38px; }.about-note { width: min(290px, 90%); margin: auto; }.skills-grid, .projects-grid { grid-template-columns: 1fr; }.project-card:last-child { grid-column: auto; }.project-card:last-child .project-art { height: 210px; }.section-heading h2 { font-size: 2.2rem; }.coming-soon { align-items: flex-start; flex-wrap: wrap; }.coming-badge { width: 100%; margin-left: 37px; }.contact-card { padding: 55px 20px; }.contact-doodle { top: 12px; right: 5%; font-size: 2rem; }.footer { flex-direction: column; text-align: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1 !important; transform: none !important; } }
