@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ===== Color Palette ===== */
:root {
  --sage: #EDF2EE;
  --green: #06402B;
  --green-light: #0a5c3e;
  --accent: #4A8B7F;
  --accent-light: #5fa89a;
  --charcoal: #2D2D2D;
  --text-light: #5A5A5A;
  --white: #FFFFFF;
  --divider: rgba(6, 64, 43, 0.15);
  --transition: 0.25s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--sage);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: 'Poppins', sans-serif; }

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

main { flex: 1; }

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sage);
  border-bottom: 1px solid var(--divider);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.4rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
  transition: all var(--transition);
}

.nav-links a:hover {
  background: var(--green);
  color: var(--white);
}

.nav-links a.active {
  background: var(--green);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  margin: 5px 0;
}

/* ===== Section Headings ===== */
.section-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* ===== Highlighted text ===== */
.highlight {
  color: var(--accent);
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  padding: 2rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 0.4rem;
}

.hero-name .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 300px;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  background: #d9ddd9;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-green:hover {
  background: var(--green-light);
  border-color: var(--green-light);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #3a7568;
  border-color: #3a7568;
}

.btn-accent-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-accent-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-green-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-green-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
}

/* ===== ABOUT ME ===== */
.about {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--divider);
}

.about-inner {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.about-greeting {
  flex-shrink: 0;
  min-width: 220px;
}

.about-greeting h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--green);
}

.about-greeting h2 .accent { color: var(--accent); }

.about-content {
  flex: 1;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 1.5rem;
}

.about-icons {
  display: flex;
  gap: 0.75rem;
}

.about-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition: all var(--transition);
}

.about-icons a:hover {
  background: var(--green);
  color: var(--white);
}

.about-icons a svg {
  width: 20px;
  height: 20px;
}

/* ===== EDUCATION ===== */
.education {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--divider);
}

.education-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.edu-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}

.edu-icon svg {
  stroke: var(--white);
}

.edu-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.edu-degree {
  font-size: 0.92rem;
  color: var(--charcoal);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.edu-tracks {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.edu-details {
  display: flex;
  gap: 2rem;
  font-size: 0.88rem;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.edu-honors {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.edu-honor-tag {
  background: rgba(6, 64, 43, 0.08);
  color: var(--green);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(6, 64, 43, 0.12);
}

.edu-involvement {
  font-size: 0.88rem;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.edu-courses {
  margin-top: 1.25rem;
}

.edu-courses h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.courses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.course-tag {
  background: rgba(6, 64, 43, 0.08);
  color: var(--green);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(6, 64, 43, 0.12);
}

/* ===== SKILLS ===== */
.skills {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--divider);
}

.skills-columns {
  display: flex;
  gap: 0;
}

.skill-column {
  flex: 1;
  padding: 0 2rem;
  border-right: 1px solid var(--divider);
}

.skill-column:first-child { padding-left: 0; }
.skill-column:last-child { border-right: none; padding-right: 0; }

.skill-column h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 500;
}

.skill-dash {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}


/* ===== REFERENCES ===== */
.references {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--divider);
}

.references-layout {
  display: flex;
  gap: 0;
}

.reference {
  flex: 1;
  padding: 0 2.5rem;
  border-right: 1px solid var(--divider);
}

.reference:first-child { padding-left: 0; }
.reference:last-child { border-right: none; padding-right: 0; }

.reference h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.15rem;
}

.reference .ref-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.reference .ref-company {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.reference .ref-contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--charcoal);
}

.reference .ref-contact a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}

.reference .ref-contact a:hover { color: var(--green); }

.reference .ref-contact span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.reference .ref-contact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--green);
  color: var(--white);
  padding: 1.25rem 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer a:hover { color: var(--white); }

.footer svg {
  width: 18px;
  height: 18px;
}

/* ===== PROJECTS PAGE ===== */
.projects-header {
  padding: 3.5rem 0 1rem;
}

/* Sub-tabs */
.sub-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 1rem;
}

.sub-tab {
  padding: 0.5rem 1.1rem;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.88rem;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.sub-tab:hover {
  color: var(--green);
}

.sub-tab.active {
  color: var(--green);
  border-bottom-color: var(--accent);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-blurb {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--divider);
  max-width: 850px;
}

/* Project items */
.project-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--divider);
}

.project-item:last-child { border-bottom: none; }

.project-top {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.project-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -2px;
  opacity: 0.85;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.project-images {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.project-images img {
  width: calc(50% - 0.5rem);
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  background: #d9ddd9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-description {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 1rem;
  max-width: 750px;
}

.project-meta {
  font-size: 0.85rem;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.project-meta strong {
  color: var(--charcoal);
  font-weight: 700;
}

.project-outcomes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.outcome-tag {
  background: rgba(6, 64, 43, 0.08);
  color: var(--green);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(6, 64, 43, 0.12);
}

.project-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--sage);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--divider);
  }

  .nav-links.open { display: flex; }

  .hero { padding: 1.5rem 0 1rem; }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 0.75rem;
  }

  .hero-name { font-size: 2.5rem; }

  .hero-buttons { justify-content: center; }

  .hero-photo img {
    width: 200px;
    height: 240px;
    margin: 0 auto;
  }

  .about-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-greeting h2 { font-size: 2rem; }

  .skills-columns {
    flex-direction: column;
    gap: 2rem;
  }

  .skill-column {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--divider);
    padding-bottom: 1.5rem;
  }

  .skill-column:last-child { border-bottom: none; padding-bottom: 0; }

  .references-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .reference {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--divider);
    padding-bottom: 1.5rem;
  }

  .reference:last-child { border-bottom: none; padding-bottom: 0; }

  .project-images { flex-direction: column; }
  .project-images img { height: 180px; }

  .project-top { gap: 0.75rem; }
  .project-number { font-size: 2.5rem; }
  .project-title { font-size: 1.1rem; }

  .container { padding: 0 1.25rem; }

  .sub-tabs { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2rem; }

  .footer-content {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ===== ANIMATIONS ===== */

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-in-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-children.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.fade-in-children.visible > *:nth-child(5) { transition-delay: 0.4s; }

.fade-in-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Floating hero background */
@keyframes float-drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -8px); }
  50% { transform: translate(-3px, 5px); }
  75% { transform: translate(6px, 3px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.1; r: 6; }
  50% { opacity: 0.25; r: 8; }
}

.hero-bg .float-group {
  animation: float-drift 12s ease-in-out infinite;
}

.hero-bg .float-group-2 {
  animation: float-drift 15s ease-in-out infinite reverse;
}

.hero-bg .pulse {
  animation: pulse-dot 4s ease-in-out infinite;
}

.hero-bg .pulse-slow {
  animation: pulse-dot 6s ease-in-out infinite 1s;
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--green);
  margin-left: 4px;
  animation: blink-cursor 0.8s step-end infinite;
  vertical-align: baseline;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero text entrance */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  animation: slide-up 0.6s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-subtitle {
  animation: slide-up 0.6s ease forwards;
  animation-delay: 1.8s;
  opacity: 0;
}

.hero-buttons {
  animation: slide-up 0.6s ease forwards;
  animation-delay: 2.2s;
  opacity: 0;
}

.hero-photo {
  animation: slide-up 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}
