
/* General website styling */

:root {
  --dark: #183029;
  --lime: #b9ed48;
  --background: #f7faf6;
  --text: #25352d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: white;
  line-height: 1.7;
}

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

/* Navigation */

header {
  background: var(--dark);
  border-bottom: 5px solid var(--lime);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 85px;
  gap: 20px;
}

.logo {
  color: white;
  font-size: 21px;
  font-weight: bold;
  text-decoration: none;
}

.logo span {
  color: var(--lime);
}

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

.nav-links a {
  color: white;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--lime);
}

/* Homepage hero */

.hero {
  background: var(--dark);
  color: white;
  padding: 95px 0;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.2;
  max-width: 850px;
}

.hero p {
  max-width: 780px;
  color: #e3eee5;
  font-size: 18px;
}

.eyebrow {
  color: var(--lime) !important;
  font-size: 14px !important;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Interior page heading */

.page-heading {
  background: var(--dark);
  color: white;
  padding: 55px 0;
}

.page-heading h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0;
}

.page-heading p {
  color: #d8e6dc;
}

/* Content sections */

.section {
  padding: 65px 0;
}

.section.light {
  background: var(--background);
}

h2 {
  font-size: 29px;
  margin-top: 0;
  color: var(--dark);
}

h3 {
  color: var(--dark);
}

p, li {
  font-size: 16px;
}

li {
  margin-bottom: 10px;
}

.date {
  color: #66766b;
  font-weight: bold;
}

/* Project and skill cards */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.card {
  border: 1px solid #e2e9df;
  border-radius: 10px;
  padding: 25px;
  background: white;
  overflow: hidden;
}

.card:hover {
  border-color: #9dcf39;
}

.card a {
  color: #376525;
  font-weight: bold;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* Image placeholders */

.image-placeholder {
  height: 185px;
  background: #edf3e8;
  color: #5d7553;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  border: 2px dashed #bdceae;
  border-radius: 7px;
  margin-bottom: 20px;
}

/* Photo gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 23px;
  background: var(--lime);
  color: var(--dark);
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 12px;
}

.btn:hover {
  background: #d1fa7e;
}

/* Dividers */

hr {
  border: none;
  border-top: 1px solid #e0e8df;
  margin: 38px 0;
}

/* Footer */

footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 28px;
}

footer p {
  font-size: 14px;
  margin: 0;
}

/* Mobile responsive layout */

@media (max-width: 750px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .nav-links {
    gap: 15px;
  }

  .hero {
    padding: 60px 0;
  }

  .grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 45px 0;
  }
}



.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.25;
}

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero > *:not(.video-background) {
    position: relative;
    z-index: 1;
}


/* PROJECT CARDS WITH ONLINE IMAGES */

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    margin-top: 0;
}

.project-content a {
    margin-top: auto;
    padding-top: 16px;
    font-weight: 600;
    text-decoration: none;
}

/* Subtle hover effect */

.project-card {
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

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



/* MOBILE REFINEMENTS: desktop styles above remain unchanged */
.mobile-menu-toggle { display: none; }
@media (max-width: 750px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  .container { padding-left: 20px; padding-right: 20px; }
  header nav.container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
  }
  .logo {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.35;
    overflow-wrap: normal;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    color: white;
    font-size: 25px;
    cursor: pointer;
  }
  .mobile-menu-toggle:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
  .nav-links {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 10px 2px; font-size: 16px; }
  .hero { padding: 48px 0 45px; }
  .hero h1 { font-size: clamp(29px, 8vw, 36px); line-height: 1.14; margin: 18px 0 20px; }
  .hero p { font-size: 16px; line-height: 1.62; }
  .eyebrow { font-size: 12px !important; letter-spacing: .7px; line-height: 1.6 !important; }
  .page-heading { padding: 42px 0 45px; }
  .page-heading h1 { font-size: clamp(28px, 7.5vw, 34px); line-height: 1.23; overflow-wrap: break-word; }
  .page-heading p { font-size: 16px; line-height: 1.6; margin: 17px 0 0; }
  .section { padding: 40px 0; }
  h2 { font-size: 26px; line-height: 1.25; margin-bottom: 20px; }
  h3 { font-size: 20px; line-height: 1.35; }
  p, li { font-size: 16px; line-height: 1.65; }
  ul, ol { padding-left: 23px; }
  .grid, .gallery { gap: 18px; }
  .card { padding: 20px; }
  .project-card { padding: 0; }
  .project-content { padding: 19px; }
  .btn { max-width: 100%; text-align: center; border-radius: 8px; padding: 14px 22px; }
  img, video { max-width: 100%; }
  .homepage-video-area .hero .hero-layout { gap: 26px; }
  .hero-portrait { width: 185px; height: 185px; flex-basis: auto; }
}
@media (max-width: 380px) {
  .container { padding-left: 17px; padding-right: 17px; }
  .logo { font-size: 14px; }
  .hero h1 { font-size: 28px; }
  .page-heading h1 { font-size: 27px; }
  .hero-portrait { width: 170px; height: 170px; }
}

/* Professional project links without emoji arrows */
.project-content a { text-decoration: none; }
.project-content a:hover, .project-content a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
