/* =============================================
   angevi.design — Portfolio Stylesheet
   Earthy palette  ·  Cormorant Garamond
   ============================================= */

:root {
  /* Muted earth + natural tones */
  --bg: #355c46;
  --bg-dark: #2a4a38;
  --fg: #f6f1e7;
  --c6: #d2b48c;            /* tan accent */
  --c6-rgb: 210, 180, 140;
  --c7: #d6cdbc;            /* muted beige/stone */
  --c12: #e7d7bd;           /* title beige */
  --c15: #f6f1e7;           /* primary text */
  --card-bg: rgba(24, 32, 26, .55);
  --card-border: rgba(246, 241, 231, .10);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, .25);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, .35);
  --e-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --transition: .3s ease;
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────── */
.section { padding: 7rem 1.5rem 5rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--c12);
  margin-bottom: .6rem;
  letter-spacing: .02em;
}
.section-subtitle {
  font-size: 1.15rem;
  color: var(--c7);
  margin-bottom: 3rem;
  max-width: 60ch;
}

.grid { display: grid; gap: 2rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards-centered { justify-items: center; }

/* ── Typography helpers ───────────────────── */
.strong { color: #fff; font-weight: 600; }
.dim { color: var(--c7); }
.muted { color: var(--c7); }
.mini { font-size: .95rem; }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 600;
  padding: .65rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--c6);
  color: var(--bg-dark);
  border-color: var(--c6);
}
.btn-primary:hover {
  background: transparent;
  color: var(--c6);
}
.btn-outline {
  background: transparent;
  color: var(--c6);
  border-color: rgba(var(--c6-rgb), .45);
}
.btn-outline:hover {
  background: rgba(var(--c6-rgb), .12);
  border-color: var(--c6);
}
.btn-sm { font-size: .9rem; padding: .45rem 1.2rem; }

/* ── Navbar ───────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 2.5rem;
  background: linear-gradient(180deg, rgba(42, 74, 56, .92), rgba(42, 74, 56, .85));
  border-bottom: 1px solid rgba(246, 241, 231, .08);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c12);
  letter-spacing: .04em;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c15);
  position: relative;
  padding: .2rem 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--c6);
  transition: width .3s var(--e-bounce);
}
.nav-link:hover { color: var(--c6); }
.nav-link:hover::after { width: 100%; }
.nav-link-cta {
  color: var(--c6);
  border: 1px solid rgba(var(--c6-rgb), .35);
  padding: .3rem .9rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
}
.nav-link-cta::after { display: none; }
.nav-link-cta:hover {
  background: rgba(var(--c6-rgb), .12);
  border-color: var(--c6);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c15);
  border-radius: 2px;
  transition: all .3s ease;
}

/* ── Home / Landing ───────────────────────── */
.section-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}
.home-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.home-greeting {
  font-size: 1.1rem;
  color: var(--c7);
  margin-bottom: .2rem;
  letter-spacing: .12em;
  font-weight: 400;
  font-style: italic;
}
.home-name {
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--c15);
  line-height: 1.15;
  margin-bottom: .5rem;
}
.home-tagline {
  font-size: 1.15rem;
  color: var(--c6);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.home-philosophy {
  font-size: 1.1rem;
  color: var(--c7);
  max-width: 50ch;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}
.home-status {
  font-size: 1rem;
  color: var(--c15);
  margin-bottom: 2rem;
}
.home-status strong {
  color: var(--c6);
}
.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.home-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 500px;
}

/* ── Cards ────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  transition: transform .35s var(--e-bounce), box-shadow var(--transition);
  width: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-title {
  margin: 0 0 .4rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c6);
}
.card-list {
  margin: .35rem 0 0 1.1rem;
  padding: 0;
  list-style: none;
  color: var(--c7);
}
.card-list li {
  margin: .5rem 0;
  line-height: 1.6;
}

/* ── Projects ─────────────────────────────── */
.project {
  width: 100%;
  text-align: left;
  overflow: hidden;
}
.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: transform .4s ease;
}
.project:hover .project-img {
  transform: scale(1.03);
}
.project-info { padding: 0 .2rem; }
.project-type {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c6);
  background: rgba(var(--c6-rgb), .1);
  border: 1px solid rgba(var(--c6-rgb), .2);
  padding: .15rem .55rem;
  border-radius: 4px;
  margin-bottom: .6rem;
}
.project-software {
  font-size: .85rem;
  color: var(--c7);
  margin-top: .4rem;
}
.project-cta {
  font-size: .9rem;
  color: var(--c6);
  margin-top: .8rem;
  font-weight: 600;
  transition: letter-spacing var(--transition);
}
.project-clickable { cursor: pointer; }
.project-clickable:hover .project-cta { letter-spacing: .04em; }
.project-clickable:focus { outline: 2px solid rgba(var(--c6-rgb), .5); outline-offset: 4px; }

/* ── Resume ───────────────────────────────── */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.resume-card { padding: 1.8rem; }

/* ── About Me ─────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
}
.about-heading {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--c15);
  margin-bottom: 1rem;
}
.about-subheading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c6);
  margin-top: 2rem;
  margin-bottom: .5rem;
}
.about-text p {
  color: var(--c7);
  max-width: 60ch;
  line-height: 1.8;
  margin-bottom: .5rem;
}

/* ── Contact ──────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-item { margin-bottom: 1.5rem; }
.contact-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c6);
  margin-bottom: .3rem;
}
.email {
  color: var(--c15);
  text-decoration: none;
  border-bottom: 1px dashed rgba(var(--c6-rgb), .35);
  transition: border-color var(--transition), color var(--transition);
}
.email:hover {
  color: var(--c6);
  border-color: rgba(var(--c6-rgb), .8);
}

/* Contact Form */
.contact-form-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c6);
  margin-bottom: 1.2rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--c7);
  margin-bottom: .3rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  color: var(--c15);
  background: rgba(24, 32, 26, .5);
  border: 1px solid rgba(246, 241, 231, .12);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(var(--c6-rgb), .5);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── Footer ───────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .9rem;
  color: var(--c7);
  border-top: 1px solid rgba(246, 241, 231, .06);
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--c6);
  text-decoration: none;
  border-bottom: 1px dashed rgba(var(--c6-rgb), .3);
  transition: border-color var(--transition), color var(--transition);
}
.footer-links a:hover {
  border-color: var(--c6);
}
.footer-dot { color: var(--c7); }

/* ── Modal ────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 20000;
}
.modal-overlay.active { display: flex; }
.modal-card {
  width: min(1000px, 100%);
  max-height: min(88vh, 920px);
  overflow: hidden;
  background: rgba(30, 42, 34, .96);
  border: 1px solid rgba(246, 241, 231, .10);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  position: relative;
}
.modal-close {
  position: absolute;
  top: .8rem; right: .8rem;
  border: none;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.1rem;
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255, 255, 255, .16); }
.modal-title {
  margin: 1.4rem 1.8rem 0;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
}
.modal-content {
  padding: 1rem 1.8rem 1.8rem;
  overflow: auto;
  max-height: calc(min(88vh, 920px) - 4.2rem);
}
.modal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.modal-software {
  font-size: .85rem;
  color: var(--c7);
}

/* Process sections inside modals */
.process-section { margin-top: 1.5rem; }
.process-heading {
  font-size: 1.25rem;
  color: var(--c6);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(var(--c6-rgb), .2);
}
.process-step {
  font-size: 1rem;
  color: var(--c15);
  font-weight: 600;
  margin: 1.5rem 0 .6rem;
}
.placeholder-note {
  font-style: italic;
  padding: 1rem;
  text-align: center;
}

/* Modal gallery */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: .5rem;
}
.modal-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, .06);
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}
.modal-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

/* ── Image Lightbox ───────────────────────── */
.image-lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 21000;
}
.image-lightbox.active { display: flex; }
.image-lightbox-inner {
  position: relative;
  width: min(1100px, 100%);
  max-height: 90vh;
}
.image-lightbox-img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .08);
  cursor: zoom-out;
}
.image-lightbox-close {
  position: absolute;
  top: -.6rem; right: -.6rem;
  border: none;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 1.1rem;
  border-radius: 12px;
  width: 44px; height: 44px;
  cursor: pointer;
  transition: background var(--transition);
}
.image-lightbox-close:hover { background: rgba(255, 255, 255, .2); }

/* ── Animations ───────────────────────────── */
.fade-in { opacity: 0; animation: fadeIn .8s ease forwards; }
.fade-in-up { opacity: 0; transform: translateY(24px); animation: fadeInUp .9s var(--e-bounce) forwards; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Scroll-triggered fade (JS adds .visible) */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s var(--e-bounce);
}
.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Active nav link */
.nav-link.active { color: var(--c6); }
.nav-link.active::after { width: 100%; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .home-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .home-text { order: 1; }
  .home-image { order: 0; }
  .home-philosophy { max-width: 100%; margin-left: auto; margin-right: auto; }
  .home-cta-row { justify-content: center; }
  .home-name { font-size: 2.5rem; }

  .about-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-photo { max-width: 240px; margin: 0 auto; }
  .about-text p { max-width: 100%; margin-left: auto; margin-right: auto; }

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

  .grid.two { grid-template-columns: 1fr; }
  .resume-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .navbar { padding: .6rem 1.2rem; }
  .nav-logo { font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    flex-direction: column;
    background: rgba(30, 42, 34, .97);
    backdrop-filter: blur(16px);
    padding: 5rem 2rem 2rem;
    gap: 1.2rem;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; }
  .nav-link-cta { text-align: center; }

  .section { padding: 5rem 1rem 3rem; }
  .section-title { font-size: 1.9rem; }
  .home-name { font-size: 2rem; }

  .modal-gallery {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

@media (max-width: 480px) {
  .home-cta-row { flex-direction: column; }
  .btn { width: 100%; }
}

/* ── Work Experience Entries ──────────────── */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.experience-entry {
  padding: .8rem 1rem;
  background: rgba(255, 255, 255, .03);
  border-left: 3px solid rgba(var(--c6-rgb), .35);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: border-color var(--transition), background var(--transition);
}
.experience-entry:hover {
  border-left-color: var(--c6);
  background: rgba(255, 255, 255, .05);
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
}
.exp-role {
  color: var(--c15);
  margin: .2rem 0 .1rem;
  font-size: .95rem;
}
.exp-location {
  font-size: .85rem;
  margin: 0;
}

/* ── Skills Group ─────────────────────────── */
.skills-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .5rem;
}
.skill-item {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  padding: .5rem .8rem;
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(246, 241, 231, .06);
}

/* ── Skill Tags (compact inline pills) ────── */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.skill-tag {
  padding: .35rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c12);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(246, 241, 231, .12);
  border-radius: 2rem;
  white-space: nowrap;
  transition: var(--transition);
}
.skill-tag:hover {
  background: rgba(210, 180, 140, .15);
  border-color: var(--c6);
}
.skill-level {
  font-size: .8rem;
  color: var(--c6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.skill-item .dim {
  font-size: .85rem;
}

/* ── Staggered card entrance ──────────────── */
.card {
  opacity: 0;
  transform: translateY(16px);
  animation: cardReveal .6s ease forwards;
}
@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}
.grid .card:nth-child(1)  { animation-delay: .05s; }
.grid .card:nth-child(2)  { animation-delay: .12s; }
.grid .card:nth-child(3)  { animation-delay: .19s; }
.grid .card:nth-child(4)  { animation-delay: .26s; }
.grid .card:nth-child(5)  { animation-delay: .33s; }
.grid .card:nth-child(6)  { animation-delay: .40s; }
.grid .card:nth-child(7)  { animation-delay: .47s; }
.grid .card:nth-child(8)  { animation-delay: .54s; }
.grid .card:nth-child(9)  { animation-delay: .61s; }
.grid .card:nth-child(10) { animation-delay: .68s; }
.grid .card:nth-child(11) { animation-delay: .75s; }
.resume-grid .card:nth-child(1)  { animation-delay: .05s; }
.resume-grid .card:nth-child(2)  { animation-delay: .10s; }
.resume-grid .card:nth-child(3)  { animation-delay: .15s; }
.resume-grid .card:nth-child(4)  { animation-delay: .20s; }
.resume-grid .card:nth-child(5)  { animation-delay: .25s; }
.resume-grid .card:nth-child(6)  { animation-delay: .30s; }
.resume-grid .card:nth-child(7)  { animation-delay: .35s; }
.resume-grid .card:nth-child(8)  { animation-delay: .40s; }
.resume-grid .card:nth-child(9)  { animation-delay: .45s; }

/* ── Section divider line ─────────────────── */
.section + .section {
  border-top: 1px solid rgba(246, 241, 231, .06);
}

/* ── Smooth image load ────────────────────── */
.project-img {
  opacity: 0;
  animation: imgFadeIn .5s ease forwards;
  animation-delay: .2s;
}
@keyframes imgFadeIn { to { opacity: 1; } }

/* ── Home hero image subtle float ─────────── */
.home-image img {
  animation: gentleFloat 6s ease-in-out infinite;
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* About description bigger */
#about .lead{font-size:1.35rem}
