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



html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  font-family: 'Playfair Display', serif;
  background: linear-gradient(to bottom, #f2f2f2, #f2f2f2);
  color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}



/* Navigation */
header {
  padding: 1rem 2rem;
  background-color: #173614;  /* This sets the nav section background */
  border-bottom: none;
  letter-spacing: 0.5px;
}

nav {
  background-color: #173614;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  font-family: 'Playfair Display', serif;
}


.nav-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* makes the text left-aligned */
  line-height: 1.2;
}

.site-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}


.site-tagline {
  font-size: 0.95rem;
  color: #cccccc;
  font-weight: 400;
  margin-top: 0.25rem;
  font-family: 'Playfair Display', serif;
}

.navbar {
  background-color: #173614;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  color: white;
  font-family: 'Playfair Display', serif;
}


.nav-right {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}


.navbar ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.navbar li a {
  color: white;
  font-size: 1.4rem; /* previously 1.1rem */
  text-decoration: none;
  font-weight: 600;  /* optional: makes them a bit bolder */
}


.nav-right a:hover,
.nav-right a:focus {
  color: #94c4a0; /* or any hover color you prefer */
}

 
nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
}

nav a:hover {
  color: #a9c4e2;
}

/* Dropdown container */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
 display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none; /* removes bullets */
  margin: 0;
  padding: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  min-width: 220px;
  z-index: 999;
}

.nav-links .dropdown-menu li a {
  color: #173614;
  padding: 0.75rem 1rem;
  display: block;
  text-decoration: none;
  font-weight: 500;
}

.nav-links .dropdown-menu li a:hover {
  background-color: #f3f3f3;
}

/* Show dropdown on hover */
.nav-links .dropdown:hover .dropdown-menu {
  display: block;
}


/* Hero Section */
.hero {
  animation: fadeIn 1s ease;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'Playfair Display', serif;
}

.hero h1 {
 font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: normal;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.5rem;
  color: #d8d8d8;
  font-family: 'Playfair Display', serif;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-img {
  width: 220px;
  height: 220px;
  object-fit: cover;       /* crops and centers image */
  border-radius: 25%;      /* makes it circular */
  margin: 2rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.gallery-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* Always 3 columns */
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}



.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: 250px;               /* fixed height for uniformity */
  object-fit: cover;           /* crops without squishing */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
 transform: scale(1.05);
}

.gallery-item p {
  margin-top: 0.5rem;
  color: #444;
  font-size: 1rem;
}

.gallery-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.gallery-scroll-container {
  max-height: calc(100vh - 160px); /* adjust if needed for nav/footer */
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.gallery-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* always 3 columns */
  gap: 2rem;
}


.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 250px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover Effect */
.image-container:hover img {
  transform: scale(1.05);
}

.image-container:hover .overlay-text {
  opacity: 1;
  transform: translateY(0);
}

.contact-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: -1;
}


.contact-page {
  font-family: 'Playfair Display', sans-serif;
  background-color: #f3f3f3;
  margin: 0;
  padding: 0;
}

.contact-overlay-title {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  font-weight: 800;
  text-align: center;
  z-index: 2;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
  font-family: 'Playfair Display', serif;
}


.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 60vh;
  margin-top: 2rem;
   position: relative; /* <-- This makes the ::before background behave properly */
  z-index: 1;
}

.contact-container::before {
  content: "";
  background-image: url("images/pexels-alex-andrews-271121-821754.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.contact-box {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  top: 50%;
  transform: translateY(20%);
}


.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem;
  gap: 2rem;
}

.contact-box {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
}

.contact-box h2 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.contact-box a {
  color: #183d1b;
  text-decoration: none;
  font-weight: bold;
}

.contact-image {
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.split-section {
  display: flex;
  height: 100vh; /* Full viewport height */
  margin: 0;
  padding: 0;
}

.panel {
  flex: 1;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  transition: flex 0.3s ease;
}

.panel-link {
  color: white;
  text-decoration: none;
}

.panel-button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid white;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.panel-button:hover {
  background: white;
  color: #333;
}

/* Woodworking section */
.panel.woodworking {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0,0,0,0.4)), url('images/Experiencepic.jpg') center/cover no-repeat;
}

/* CompSci section */
.panel.compsci {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0,0,0,0.4)), url('images/Contactbground.png') center/cover no-repeat;
}

/* Optional hover grow effect */
.panel:hover {
  flex: 1.2;
}

.site-footer {
  background-color: #173614;
  color: white;
  padding: 30px 20px;
  text-align: center;
  font-family: 'Playfair Display', sans-serif;
  margin-top: 0;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-icons a {
  color: white;
  font-size: 1.3rem;
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-icons a:hover {
  color: #98cdbf;
}

.contact-header {
  padding: 6rem 0 2rem;
  text-align: center;
  color: white;
  font-size: 3rem;
}

.contact-hero {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  text-align: center;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/pexels-alex-andrews-271121-821754.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  flex-direction: column;
  padding-top: 4rem;
}


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

.contact-card {
  background: rgba(255, 255, 255, 0.1); /* keep the glass effect */
  padding: 2.5rem 3rem;
  border-radius: 1rem;
  color: white;
  text-align: center;
  backdrop-filter: blur(10px);
  width: 350px;
  margin-bottom: 3rem;
}
.contact-card a {
  color: #aadfd6;
  font-weight: 600;
  text-decoration: none;
}
.contact-card a:hover {
  text-decoration: underline;
}

.contact-overlay-title {
  font-size: 5rem;
  margin: 0;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}


.email-link:hover {
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .contact-card {
    width: 90%;
    padding: 1.5rem;
  }

  .contact-overlay-title {
    font-size: 3rem;
  }
}

.contact-card {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .contact-card {
    padding: 4rem 5rem;
    font-size: 1.125rem;
  }
}

.experience-section {
  background-color: #f2f2f2;
  padding: 1rem 1rem;
  color: #222;
  font-family: 'Playfair Display', sans-serif;;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 20px;

}

.job-card, .project-card {
  background-color: white;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.job-card h3, .project-card h3 {
  color: #173614;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.job-card p.date {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.job-card ul, .project-card ul {
  padding-left: 1.2rem;
}

.panel-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #173614;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  margin-top: 1rem;
}
.project-entry {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  border-bottom: 2px solid #e0e0e0;
}

.project-entry h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #173614;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.project-gallery figure {
  flex: 1 1 300px;
  max-width: 400px;
  margin: 0;
}

.project-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-gallery figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

.project-description p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.back-arrow {
  position: absolute;
  top: 2rem;
  left: 2rem;
  text-decoration: none;
  font-size: 1rem;
  color: #173614;
  font-weight: bold;
  transition: color 0.2s ease;
  z-index: 1000;
}

.back-arrow:hover {
  color: #4d8442;
  text-decoration: underline;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.inline-back-arrow {
  font-size: 1.5rem;
  text-decoration: none;
  color: #173614;
  transition: color 0.2s ease;
}

.inline-back-arrow:hover {
  color: #4d8442;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-left {
    margin-bottom: 1rem;
    text-align: left;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    padding-left: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 0;
    width: 100%;
  }

  .dropdown-menu {
    position: relative;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
  }

  .dropdown-menu li {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .gallery-wall {
    display: grid;
    grid-template-columns: 1fr; /* Stack gallery items */
    gap: 1rem;
    padding: 1rem;
  }

  .gallery-item img {
    width: 100%;
    height: auto;
  }

  .image-container {
    width: 100%;
  }

  .overlay-text {
    font-size: 1rem;
  }
}

