:root {
  --green-deep: #2f5d50;
  --green-soft: #9dbe9a;
  --green-accent: #3da35d;
  --earth-brown: #6e4e37;
  --offwhite: #f5f7f2;
  --charcoal: #1f2a2b;
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.12);
}

/* Global */

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

body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f0f4f2;
  color: var(--charcoal);
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin-top: 0;
  color: var(--charcoal);
}

p {
  line-height: 1.7;
  margin: 0 0 0.7rem;
}

ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.8rem;
}

a {
  color: var(--green-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* Navbar */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 25, 23, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #77d38d, #0a3220);
  color: #fdfdfd;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.logo-text {
  color: #f5f7f2;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav a {
  color: #edf5ef;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #77d38d, #3da35d);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* Mobile nav button */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 60%;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  width: 70%;
}

.nav-toggle-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 70%;
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(135deg, rgba(5, 29, 21, 0.95), rgba(12, 58, 38, 0.92)),
    url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1650&q=80");
  background-size: cover;
  background-position: center;
  color: #f5f7f2;
  overflow: hidden;
}

.hero-profile-photo {
  position: absolute;
  right: 3%;
  bottom: 6%;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.hero-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at top left, rgba(144, 238, 144, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(61, 163, 93, 0.32), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 4.5rem 0 3.5rem;
}

.hero-text {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  margin-bottom: 1rem;
  color: #f8fff9;
}

.hero p {
  font-size: 1.02rem;
  max-width: 600px;
  margin-bottom: 1.5rem;
  color: #e2f2e6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn.primary {
  background: radial-gradient(circle at 20% 0, #9dbe9a, #3da35d);
  color: #05130c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(220, 241, 228, 0.65);
  color: #e5f7ec;
}

.btn.ghost:hover {
  background: rgba(220, 241, 228, 0.08);
  transform: translateY(-1px);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.hero-link-btn {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 244, 235, 0.7);
  color: #e8f7ee;
  text-decoration: none;
  backdrop-filter: blur(6px);
  background: rgba(3, 25, 13, 0.35);
}

/* Sections */

.section {
  padding: 3.75rem 0;
  background-color: var(--offwhite);
}

.section-alt {
  background: linear-gradient(180deg, #e6f1eb, #f6faf8);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #4c5b57;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.about-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(9, 48, 35, 0.06);
}
.about-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.about-photo img {
  width: 220px;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}



/* Timeline / Experience */

.timeline {
  display: grid;
  gap: 1.4rem;
}

.experience-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--green-accent);
  position: relative;
}

.experience-header h3 {
  margin-bottom: 0.1rem;
}

.experience-header .company {
  display: block;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.1rem;
}

.experience-header .dates {
  display: block;
  font-size: 0.85rem;
  color: #65736e;
  margin-bottom: 0.4rem;
}

.experience-card ul {
  margin-bottom: 0.55rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(61, 163, 93, 0.08);
  color: #134222;
}

/* Projects */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.project-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(9, 48, 35, 0.06);
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.skills-column {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.2rem 1.15rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(9, 48, 35, 0.06);
}

.skills-column h3 {
  margin-bottom: 0.5rem;
}

/* Resume panel */

.resume-panel {
  display: flex;
  justify-content: center;
}

.resume-text {
  max-width: 640px;
  width: 100%;
  background: radial-gradient(circle at top left, #ffffff, #e9f3ec);
  border-radius: 20px;
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(9, 48, 35, 0.07);
}

.resume-text h3 {
  margin-bottom: 0.5rem;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 1.6rem;
}

.contact-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(9, 48, 35, 0.06);
}
.contact-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-photo img {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0,0,0,0.22);
}

.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li + li {
  margin-top: 0.3rem;
}

.contact-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.4rem 1.35rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(9, 48, 35, 0.06);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(16, 62, 42, 0.35);
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-accent);
  box-shadow: 0 0 0 1px rgba(61, 163, 93, 0.35);
}

.form-note {
  font-size: 0.78rem;
  color: #6a756f;
  margin-top: 0.45rem;
}

/* Footer */

.site-footer {
  background: #071411;
  color: #bcd4c5;
  padding: 1.2rem 0 1.4rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.footer-tagline {
  color: #8fb89b;
}

/* Responsive */

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 56px 0 auto 0;
    width: 100%;
    background: rgba(7, 17, 14, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0 0.9rem;
    gap: 0.7rem;
    transform: translateY(-120%);
    transition: transform 0.2s ease-out;
  }

  .nav-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

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

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-content {
    padding: 3.2rem 0 2.6rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn {
    width: auto;
  }
}
/* Fix hero profile photo overlapping title on mobile */
@media (max-width: 768px) {
  .hero-profile-photo {
    position: static;         /* remove absolute positioning */
    margin: 2rem auto 0;      /* center below the text */
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
  }

  .hero-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-content {
    text-align: center;       /* optional — helps layout on small screens */
  }

  .hero-text {
    margin-bottom: 1rem;
  }
}
