/* Reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* CSS Variables */
:root {
  --text-color: #2d1a1a; 
  --link-color: #154f28;
  --background-color: #eeeff1;
}
/* Base styles */
body {
  font-family: 'roboto', sans-serif;
  background-color: #f5f2ed;
  color: #2d1a1a;
}

/* Navbar styles */
.navbar {
  background-color: rgb(25, 88, 82);
  position: fixed;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  top: 0;
  z-index: 1000;
}

.logo {
  color: #fff;
  font-size: 12px;
  flex-grow: 2;
}

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

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 12px 12px;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #828181;
  border-radius: 1px;
  transition: background-color 0.5s ease;
}

/* Main content styling */
#main-content {
  margin-top: 66px; 
  padding: 20px;
}

#main-content h1,
#main-content h2 {
  margin-bottom: 10px; 
  margin-left: 20px;
}

#main-content p {
  margin-bottom: 15px; 
  margin-left: 40px;
}

/* Projects grid */
.projects-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
  gap: 20px;
  margin-left: 20px;
}

.project-card {
  background-color: #fff;
  padding: 15px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  transition: transform 0.6s ease;
}

/* Add a hover effect to the project cards */
.project-card:hover {
  box-shadow: 0 0 29px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 600px) {
  .nav-links {
      flex-direction: column;
      background-color: #333;
      position: absolute;
      top: 60px;
      right: 0;
      width: 200px;
      display: none;
  }

  .nav-links li {
      margin-left: 0;
  }

  .nav-links a {
      display: block;
      padding: 10px;
  }

  
}


/* Gallery Styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 60px 20px;
  margin-top: 100px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

/* Optional: Caption Overlay */
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(25, 88, 82, 0.7); /* Semi-transparent overlay matching your navbar color */
  color: #fff;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}


/* SECTION 1: Hero */
.hero-section {
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 100px 0;
  margin-bottom: 100px;
  gap: 40px;
}

.hero-section .text {
  flex: 5;
}

.hero-section .text h2 {
  font-size: 100px;
}

.hero-section .text .links {
  margin-top: 100px;
}

.hero-section .text .links a {
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid var(--link-color);
  border-radius: 5px;
  margin-right: 10px;
  margin-left: 90px;
  margin-bottom: 10px;
  transition: .5s;
}

.hero-section .text .links a:hover {
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.hero-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
}

.hero-section .headshot img {
  width: 500px;
  border-radius: 12%;
}


/* SECTION 4: Contact */
.contact-section {
  padding: 0 px;
  margin-bottom: 100px;
  margin-top: 66px;
  margin: 100px ;
}

.contact-section h2 {
  font-size: 35px;
  margin-bottom: 30px;
  text-align: center;
}

.contact-section .group {
  display: flex;
  gap: 50px;
  
}

.contact-section .group .text {
  flex: 3;
  margin-top: 30px;
}

.contact-section .group form {
  flex: 3;
  display: flex;
  flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--link-color);
  background-color: transparent;
  padding: 10px;
  margin-bottom: 15px;
  outline: none;
  resize: none;
}

.contact-section .group form button {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background-color: var(--link-color);
  border: none;
  height: 50px;
  cursor: pointer;
  transition: .1s;
}

.contact-section .group form button:hover {
  filter: brightness(.7);
}



@media (max-width: 850px) {
  /* SECTION 1: Hero */
  .hero-section .text h2 {
    font-size: 35px;
  }
}

@media (max-width: 740px) {
  /* SECTION 1: Hero */
  .hero-section {
    flex-direction: column-reverse;
  }

  .hero-section .headshot img {
    width: 250px;
  }

  


  /* SECTION 4: Contact */
  .contact-section .group {
    flex-direction: column;
  }
}

/* Responsive Adjustments */

@media (max-width: 600px) {
  /* NAVBAR */
  nav {
    padding: 0 20px;
  }

  nav .right a {
    font-size: 22px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .right a span {
    display: none;
  }

  /* SECTION 1: Hero */
  .hero-section {
    padding: 0 20px;
  }

  .hero-section .text h2 {
    font-size: 30px;
  }

  /* SECTION 4: Contact */
  .contact-section {
    padding: 0 20px;
  }
}