/* 
   THEME
*/
:root {
  --bg1: #f4e7d6;
  --bg2: #efc58f;
  --ink: #1b140c;
  --brown: #6d4300;
  --muted: #463a2d;
  --radius: 16px;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.14);
  --line: rgba(0, 0, 0, 0.06);
}

/*
   RESET
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: linear-gradient(115deg, var(--bg1), var(--bg2));
  line-height: 1.6;
}

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

/* Unified link style (NOT buttons or icons) — no underline anywhere */
a {
  text-decoration: none;
}

/* hard stop: no underlines globally */

a:not(.btn):not(.btn-outline):not(.icon) {
  color: var(--brown);
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
}

a:not(.btn):not(.btn-outline):not(.icon):hover {
  color: #8a5500;
  transform: translateY(-1px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: clamp(56px, 8vw, 110px) 0;
}

.sec__title {
  text-align: center;
  font-size: clamp(1.8rem, calc(1.2rem + 2vw), 2.4rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.muted {
  color: var(--muted);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

/* Focus outlines */
:where(a, button, .btn, .btn-outline, .icon):focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
}

/* 
   NAVBAR
*/
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8%;
  background: linear-gradient(to right, #fcecd9, #f7d7ad);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Logo animation */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

  60% {
    opacity: 1;
    transform: translateY(2px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav__logo {
  animation: fadeSlideIn 1.5s ease forwards;
  font-size: 1.8rem;
  font-weight: 800;
  color: #5a3300;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform .3s ease, color .2s ease;
  line-height: 1;
}

.nav__logo:hover {
  transform: translateY(-2px) scale(1.03);
  color: var(--ink);
 
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-weight: 700;
  color: var(--brown);
  transition: color 0.2s, transform 0.2s;
}

.nav__links a:hover {
  color: #8a5500;
  transform: translateY(-1px);
}

.nav__checkbox {
  display: none;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive nav */
@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(to right, #fcecd9, #f7d7ad);
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
  }

  .nav__links a {
    padding: 15px 8%;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__checkbox:checked~.nav__links {
    max-height: 500px;
  }

  .nav__checkbox:checked+.nav__toggle span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .nav__checkbox:checked+.nav__toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav__checkbox:checked+.nav__toggle span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

/* Extra small phones */
@media (max-width: 420px) {
  .navbar {
    padding: 12px 16px;
  }

  .nav__logo {
    font-size: 1.4rem;
    
  }
}

/* 
   HERO
*/
.hero {
  padding-top: clamp(50px, 6vw, 70px);
  margin-bottom: clamp(48px, 7vw, 96px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  min-height: 60vh;
}

@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr 420px;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img {
    opacity: 0.6;
  width: clamp(220px, 34vw, 360px);
  height: clamp(220px, 34vw, 360px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brown);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  
}

.hero__text {
  max-width: 520px;
  margin-left: auto;
}

.hero__title {
  font-size: clamp(1.3rem, calc(2rem + 5vw), 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  margin-bottom: clamp(12px, 2vw, 20px);
}

.hero__line {
  font-weight: 800;
  font-size: clamp(1.2rem, calc(0.9rem + 2.2vw), 2.2rem);
  color: var(--ink);
  margin-bottom: clamp(12px, 2vw, 18px);
}

.hero__line .word b {
  background: linear-gradient(180deg, #6d4300 0%, #b28038 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  color: #2b2219;
  max-width: 60ch;
  font-size: clamp(1rem, calc(0.9rem + 0.4vw), 1.1rem);
  margin: 2px 0 clamp(12px, 2vw, 18px);
}

.hero__icons {
  display: flex;
  gap: clamp(16px, 2.2vw, 24px);
  margin: clamp(16px, 2vw, 20px) 0;
}

.icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3px solid var(--brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  background: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.icon i {
  font-size: 24px;
}

.icon:hover {
  background: var(--brown);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 800;
  background: var(--brown);
  color: #fff;
  border: 2px solid var(--brown);
  box-shadow: 0 8px 20px rgba(109, 67, 0, 0.25);
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--brown);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(109, 67, 0, 0.35);
}

.btn:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  border: 2px solid var(--brown);
  color: var(--brown);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(109, 67, 0, 0.2);
}

/* 
   ABOUT
*/
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 3.5vw, 44px);
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 1.7;
  max-width: 700px;
}

.about-content p {
  margin: 0;
}

.about-title {
  text-align: left;
  margin-bottom: 14px;
}

.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.about-photo {
  opacity: 0.8;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto;
  width: 100%;
  max-width: clamp(220px, 26vw, 340px);
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .about-content {
    align-items: center;
  }

  .about-links {
    justify-content: center;
  }

  .about-photo {
    justify-self: center;
    max-width: 280px;
  }
}

/* 
   SKILLS
*/
.skills-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0;
}

.skills-grid li {
  background: var(--bg1);
  border: 2px solid var(--brown);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 560px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .skills-grid li {
    font-size: 0.92rem;
    padding: 10px;
  }
}

/* 
   PROJECTS
*/
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card img {
  width: 100%;
  height: clamp(345px, 28vw, 260px);
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform 0.45s ease;
}

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

.project-body {
  padding: 10px 12px;
  background: transparent;
}

.project-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Actions row */
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .project-body {
    padding: 8px 10px;
  }

  .project-body h3 {
    font-size: 0.98rem;
  }

  .actions .btn,
  .actions .btn-outline {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .project-card,
  .project-card img {
    transition: none;
  }
}

/* 
   EDUCATION
*/
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 760px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
}

.edu-card {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

.edu-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
}

.edu-link {
  width: max-content;
  font-weight: 700;
  color: var(--brown);
  transition: color 0.2s, transform 0.2s;
  /* no border underline */
}

.edu-link:hover {
  color: #8a5500;
  transform: translateY(-1px);
}

/* 
   HOBBIES
*/
.hobbies-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

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

@media (max-width: 900px) {
  .hobbies-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hobbies-grid--3 {
    grid-template-columns: 1fr;
  }
}

.hobby-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.hobby-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 8px;
  overflow: hidden;
}

.hobby-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
  transform-origin: center;
}

.hobby-body {
  padding: 1rem 1rem 1.15rem;
}

.hobby-body h3 {
  margin: 0.25rem 0 0.35rem;
  font-weight: 700;
  color: var(--ink);
}

.hobby-body p {
  color: #463a2d;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Hover animation */
.hobby-card:hover {
  transform: translateY(-8px) rotate3d(0.5, 1, 0, 0.6deg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 0, 0, 0.08);
}

.hobby-card:hover .hobby-media img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

/* 
   FOOTER
*/
.footer {
  text-align: center;
  padding: 16px 0;
  color: #3a2e22;
  border-top: 1px solid var(--line);
}

.footer__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.footer__icons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.footer__top {
  justify-self: end;
  font-weight: 700;
  color: var(--brown);
  transition: color 0.2s, transform 0.2s;
  /* no border underline */
}

.footer__top:hover {
  color: #8a5500;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .footer__row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__top {
    justify-self: center;
  }
}