/* =========================
   GLOBAL RESET + BASE
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand */
  --primary: #207a43;
  --secondary: #17705a;
  --light: #f9fefb;
  --hover: #3c5ea6;

  /* Typography */
  --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji", sans-serif;

  /* Ink */
  --ink-1: #111;
  --ink-2: #333;
  --ink-3: #777;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ui-font);
  background: #e9fbe9; /* very light green */
  color: var(--ink-1);
  line-height: 1.6;
}

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

h1, h2, h3 {
  margin-bottom: 20px;
}

/* =========================
   HEADER / NAV
========================= */
.site-header {
  background: linear-gradient(to right, #b0f0c2, var(--primary));
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 70px;
  width: auto;

}

.nav-links {
  display: flex;
  gap: 25px;
}



.nav-links .tab {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-2);
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 8px;
  background-color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-links .tab:hover {
  background-color: #c3f2d2;
  color: var(--primary);
  transform: translateY(-2px);
}

/* =========================
   HERO
========================= */
#hero {
  padding: 80px 20px;
  background: var(--light);
}

#hero .hero-split {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.hero-left {
  flex: 1;
  min-width: 320px;
}

.hero-left h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--secondary);
  text-shadow: 2px 2px 6px rgba(75, 0, 130, 0.1);
}

.hero-title {
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink-2);
  margin-bottom: 15px;
}

.hero-left p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #444;
}

.hero-left a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.hero-left a:hover {
  text-decoration: underline;
}

.hero-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
}

.hero-portrait {
  width: 100%;
  max-width: 420px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 12px 12px 0 var(--secondary);
  transition: transform 0.35s ease;
}

.hero-portrait:hover {
  transform: scale(1.05);
}

/* =========================
   PROJECTS (4 SQUARE CARDS)
========================= */
#projects {
  background: #f5fff7;
  padding: 80px 20px;
}

#projects h2 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-1);
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 35px;
}

.project-box {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.project-image,
.project-img {
  width: 100%;
  height: 45%;
  object-fit: cover;
}

.project-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 55%;
}

.project-info small {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.project-box h3 {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 0;
}

.project-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1;
}

.read-more {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  margin-top: 20px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

.more-projects {
  text-align: center;
  margin-top: 50px;
}

/* =========================
   CONTACT
========================= */
#contact {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

#contact p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.socials a {
  margin: 0 12px;
  font-size: 1.2rem;
  color: var(--secondary);
  text-decoration: none;
}

.socials a:hover {
  color: var(--primary);
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 30px 0;
  background: #f0f0f0;
  color: #555;
  font-size: 0.9rem;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.project-box,
.hero-left,
.hero-right {
  animation: fadeUp 0.8s ease both;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-left h1 {
    font-size: 2.4rem;
  }

  .hero-title {
    font-size: 1.2rem;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .nav-container {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-links .tab {
    font-size: 0.9rem;
    padding: 8px 14px;
  }

  .hero-left h1 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  #hero .hero-split {
    padding: 40px 20px;
  }

  .hero-right img {
    max-width: 280px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-box {
    aspect-ratio: auto;
  }

  .project-image {
    height: 200px;
  }

  .project-info {
    height: auto;
  }

  footer {
    font-size: 0.8rem;
  }
}

.project-image--dissertation {
  object-fit: cover;
  object-position: center 72% !important;
}

/* =========================
   VIEW MORE PROJECTS (FIX)
========================= */

/* Always hidden by default (ID wins against .project-grid display:grid) */
#moreProjects {
  display: none;
}

/* Shown state */
#moreProjects.is-visible {
  display: grid;
  animation: fadeUp .45s ease both;
}

/* spacing */
.more-grid {
  margin-top: 18px;
}

/* Show FULL GIF for specific cards */
.project-image--contain{
  object-fit: contain !important;   /* no cropping */
  height: 90%;                      /* slightly smaller so it fits */
  background: #ffffff;              /* nice neutral background */
  padding: 10px;                    /* breathing room */
}

/* Tech Transition gif: show bottom-to-middle */
.project-image.project-image--tech{
  object-fit: cover;
  object-position: center 85% !important;
}

/* =========================
   HEADER / NAV (FIXED HEIGHT)
========================= */
.site-header{
  background: linear-gradient(to right, #b0f0c2, var(--primary));
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 1000;

  /* keep header stable */
  padding: 10px 20px;
}

.nav-container{
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

  /* lock header height so it doesn't expand */
  min-height: 86px;
}

/* Make sure logo doesn't affect layout weirdly */
.logo{
  display: flex;
  align-items: center;
}

/* Option A (recommended): larger logo but still “contained” */
.logo-img{
  height: 82px;     /* try 78–90 */
  width: auto;
  display: block;
}

/* If you want it to LOOK even bigger without changing header height: */
.logo-img{
  transform: scale(1.08);      /* try 1.05–1.15 */
  transform-origin: left center;
}

.fake-profile-image {
  object-fit: contain !important;
  padding: 30px;
  background: white;
}