/* =========================================
   Password Meter – Project Page (Full CSS)
   - Keeps your green theme
   - Centers hero text (no image)
   - Matches video card width
   - Bigger, more readable typography
========================================= */

/* ---- Reset & Base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --primary: #207a43;       /* deep green */
  --secondary: #4b0082;     /* elegant indigo/purple */
  --light: #fefef9;         /* creamy white */
  --bg-soft: #f5fff7;       /* pale green */
  --ink-1: #111;
  --ink-2: #333;
  --ink-3: #555;
  --border: #e7efe7;
  --shadow: 0 6px 14px rgba(0,0,0,.08);

  /* Shared layout so hero and video align perfectly */
  --content-width: 960px;
  --card-pad: 16px;
}

html, body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-1);
  background: #e9fbe9;  /* match landing page */
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

/* ---- Header (same look as landing) ---- */
.site-header{
  background: linear-gradient(to right, #b0f0c2, var(--primary));
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
  padding: 15px 20px;
  position: sticky; top: 0; z-index: 1000;
}

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

.logo-img{ height: 60px; width: auto; display: block; }

.nav-links{ display: flex; gap: 24px; }
.nav-links .tab{
  background: #fff; color: var(--ink-2);
  font-weight: 600; font-size: 1rem;
  padding: 10px 18px; border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  text-decoration: none; transition: .2s ease;
}
.nav-links .tab:hover{ background: #c3f2d2; color: var(--primary); transform: translateY(-1px); }

/* =========================================
   HERO – Text only (centered, no image)
========================================= */
#hero{ background: var(--light); border-bottom: 1px solid var(--border); }

/* Hide any old image column if present */
#hero .hero-right{ display: none !important; }

/* Keep the hero block centered and same width as video */
.hero-solo{
  max-width: var(--content-width);
  padding: 84px var(--card-pad) 56px;   /* top / sides / bottom */
  margin: 0 auto;
  text-align: center;                   /* center the text */
}

/* Beautiful, readable, larger typography */
.hero-kicker{
  font-size: 2.6rem;        /* desktop size */
  line-height: 1.18;
  font-weight: 800;
  color: var(--secondary);  /* purple */
  letter-spacing: .2px;
  margin-bottom: 14px;
}

.hero-solo p{
  max-width: 820px;         /* comfortable line length */
  margin: 0 auto;
  font-size: 1.15rem;       /* bigger body text */
  line-height: 1.9;         /* airy and readable */
  color: var(--ink-2);
  letter-spacing: .1px;
}

/* =========================================
   VIDEO SECTION
========================================= */
.project-video{ background: var(--bg-soft); padding: 56px 0 90px; }

.video-card{
  max-width: var(--content-width);
  padding: var(--card-pad);
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.video-player{
  width: 100%; height: auto; display:block;
  border-radius: 8px; background: #000;
}

.video-meta{ text-align: center; margin-top: 18px; }

.btn{
  display: inline-block; padding: 12px 22px;
  background: var(--primary); color: #fff;
  border-radius: 8px; font-weight: 600;
  text-decoration: none; transition: background .2s, transform .2s;
}
.btn:hover{ background: #3ca672; transform: translateY(-1px); }

/* =========================================
   FOOTER
========================================= */
footer{
  background: #f0f0f0; color: var(--ink-3);
  text-align: center; padding: 28px 0;
  font-size: .95rem; border-top: 1px solid #eee;
}

/* =========================================
   ANIMATIONS (subtle)
========================================= */
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: translateY(0); }
}
.hero-solo{ animation: fadeUp .6s ease both; }
.video-card {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px){
  .hero-kicker{ font-size: 2.2rem; }
  .hero-solo p{ font-size: 1.1rem; }
}

@media (max-width: 600px){
  .logo-img{ height: 52px; }
  .nav-links{ flex-wrap: wrap; justify-content: center; gap: 12px; }
  .nav-links .tab{ font-size: .95rem; padding: 8px 14px; }

  .hero-solo{ padding: 68px var(--card-pad) 44px; }
  .hero-kicker{ font-size: 1.85rem; }
  .hero-solo p{ font-size: 1.03rem; line-height: 1.85; }

  .video-card{ max-width: 100%; margin: 0 16px; }
}


/* =========================
   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;
}

.hero-left h1{
  text-align: center;
  margin-bottom: 30px;
}

.hero-left{
  max-width: 900px;
  margin: 0 auto;
}

.view-paper{
  display: block;
  margin-top: 12px;
}