/* ================= GLOBAL VARIABLES ================= */
:root {
  --chocolate-cosmos: #561d25;
  --caramel: #ce8147;
  --flax: #ecdd7b;
  --mindaro: #d3e298;
  --tea-green: #cde7be;
  --max-width: 1100px;
  --gutter: 24px;
  --radius: 12px;
  --transition: 220ms ease;
  --accent-contrast: #fff;
}

/* ================= RESET & BASE ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--tea-green);
  color: var(--chocolate-cosmos);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================= CONTAINER ================= */
.container {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ================= HEADER ================= */
header {
  padding: 18px 0;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-left { display: flex; align-items: center; }
.initials-icon {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--caramel);
  background: var(--flax);
}
.brand-name {
  display: flex; align-items: center; justify-content: center; flex:1;
  pointer-events: none;
}
.brand-name img { height: 42px; object-fit: contain; }
.nav-right { display: flex; gap: 18px; align-items: center; justify-content: flex-end; }
.nav-right a {
  color: var(--chocolate-cosmos);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-right a:hover, .nav-right a.active {
  background: var(--caramel); color: var(--chocolate-cosmos);
}

/* ================= MAIN SECTIONS ================= */
main { flex:1 0 auto; padding: 28px 0; }
.section { padding: 36px 0; }
.page-title { font-size: 28px; margin-bottom: 18px; }
.center { text-align: center; margin:0 auto; }

/* ================= HOME HERO ================= */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 36px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  padding: 40px 20px;
}

/* Left intro section */
.hero-intro {
  z-index: 2;
}

.hero-intro h1 {
  font-size: 40px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-intro p {
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.75);
  max-width: 640px;
}

/* Buttons */
.btn-primary {
  background: var(--flax);
  color: var(--chocolate-cosmos);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 12px;
}

.btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid var(--caramel);
  color: var(--chocolate-cosmos);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease-in-out;
}

.btn:hover,
.btn-primary:hover {
  transform: scale(1.05);
}

/* Photo & circle background */
.hero-photo-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.hero-photo {
  max-width: 420px;
  width: 100%;
  height: auto;
  border: 6px solid var(--flax);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.circle {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--caramel);
  clip-path: circle(600px at right 800px);
  z-index: 0;
  transition: background 0.3s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}


/* ================= ABOUT PAGE ================= */
.about-grid { display:grid; grid-template-columns:1fr 360px; gap:28px; max-width:var(--max-width); margin:0 auto; }
.about-sections { display:grid; gap:18px; }
.about-card { background: var(--mindaro); padding:18px; border-radius:var(--radius); border:2px solid var(--caramel); box-shadow:0 6px 18px rgba(0,0,0,0.06); }
.about-right { text-align:center; }
.about-right img { width:220px; height:220px; object-fit:cover; border-radius:12px; border:4px solid var(--flax); }

/* ================= PROJECTS ================= */
.project-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; max-width:var(--max-width); margin:0 auto; }
.project-card { background: var(--flax); border-radius:12px; padding:18px; border:2px solid var(--caramel); display:flex; flex-direction:column; gap:12px; transition:transform var(--transition), box-shadow var(--transition); cursor:pointer; }
.project-card:hover { transform:translateY(-8px); box-shadow:0 14px 30px rgba(0,0,0,0.12); }
.project-card img { width:100%; height:160px; object-fit:cover; border-radius:8px; }
.project-card h3 { color: var(--chocolate-cosmos); margin-top:6px; }
.project-card p { color: rgba(0,0,0,0.7); flex:1; }
.project-card .card-links { display:flex; gap:12px; justify-content:flex-end; }

/* ================= RESUME ================= */
.resume-hero { position: relative; margin-bottom: 28px; padding-top: 40px; }
.resume-hero .hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.resume-hero .hero-inner img { width: 220px; height: 220px; object-fit: cover; border-radius: 12px; border: 4px solid var(--flax); }
.resume-hero h1 { font-size: 28px; color: var(--chocolate-cosmos); margin-top: 12px; }
.resume-blurb { background: var(--mindaro); padding: 18px 24px; border-radius: 10px; border: 2px solid var(--caramel); max-width: 680px; margin-top: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.resume-blurb p { margin-bottom: 12px; font-size: 16px; color: var(--chocolate-cosmos); line-height: 1.5; }
.resume-blurb .btn-primary { background: var(--caramel); color: var(--chocolate-cosmos); padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.2s ease-in-out; }
.resume-blurb .btn-primary:hover { background: var(--flax); transform: scale(1.05); }

/* ================= CONTACT ================= */
.contact-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; max-width:var(--max-width); margin:0 auto; }
.contact-card { background: var(--mindaro); padding:18px; border-radius:12px; border:2px solid var(--caramel); display:flex; flex-direction:column; gap:8px; align-items:center; text-align:center; }
.contact-card a { color: var(--chocolate-cosmos); text-decoration:none; font-weight:600; }

/* ================= FOOTER ================= */
footer { margin-top:36px; background:transparent; padding:26px 0; }
.footer-grid { display:grid; grid-template-columns:1fr 120px 1fr; gap:12px; align-items:center; max-width:var(--max-width); margin:0 auto; }
.footer-quote { text-align:left; font-style:italic; color: rgba(0,0,0,0.65); }
.footer-center { display:flex; align-items:center; justify-content:center; }
.footer-center img { width:84px; height:84px; object-fit:cover; border-radius:12px; border:3px solid var(--caramel); }
.footer-contacts { display:flex; justify-content:flex-end; gap:12px; align-items:center; }
.footer-contacts a img { width:28px; height:28px; object-fit:contain; filter:saturate(0.1) brightness(0.3); transition:filter var(--transition), transform var(--transition); }
.footer-contacts a:hover img { transform:scale(1.08); filter:none; }

/* ================= CLEAN RESPONSIVE + HAMBURGER FIX ================= */

/* ----- Global image scaling ----- */
img { max-width: 100%; height: auto; }

/* ----- NAVBAR & HAMBURGER (final version) ----- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--chocolate-cosmos);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Animate hamburger lines when open */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar {
    position: relative;
    padding: 12px 20px;
  }

  .nav-right {
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--flax);
    border: 2px solid var(--caramel);
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 16px;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
  }

  .nav-right.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .brand-name img {
    height: 36px;
  }
}

/* ----- HERO RESPONSIVENESS (final version) ----- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo-wrap {
    justify-content: center;
    padding-right: 0;
    margin-top: 20px;
  }

  .hero-photo {
    max-width: 340px;
  }

  .circle {
    clip-path: circle(400px at center);
  }
}
