:root {
  --primary: #0b6623;
  --primary-light: #148030;
  --secondary: #2c3e50;
  --accent: #f39c12;
  --light: #f8f9fa;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.9);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--secondary);
  background-color: var(--white);
  overflow-x: hidden;
}

header {
  background: var(--glass);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

nav a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 2rem;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

nav a:hover::after {
  width: 100%;
}

.hero {
  height: 90vh;
  background-size: cover;
  background-position: center top;
  /* Ensure face is visible at the top */
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.light {
  background: #fdfdfd;
  max-width: 100%;
}

.about {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
}

.about img {
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff;
  transition: var(--transition);
}

.about img:hover {
  transform: scale(1.02);
}

.about-content h2 {
  text-align: left;
}

.about-content h2::after {
  left: 0;
  transform: none;
}

.about-content p {
  font-size: 1.1rem;
  color: #555;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--primary);
  transition: var(--transition);
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: var(--primary);
  color: #fff;
}

.work-list {
  list-style: none;
  max-width: 800px;
  margin: auto;
}

.work-list li {
  background: var(--light);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: var(--transition);
}

.work-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  margin-right: 15px;
  font-size: 1.2rem;
}

.work-list li:hover {
  background: #eef5ef;
  transform: translateX(10px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 350px;
  /* Increased height for better aspect ratio */
  object-fit: cover;
  object-position: top center;
  /* Focus on the top part of the image where faces usually are */
  border-radius: 15px;
  transition: var(--transition);
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social {
  text-align: center;
}

.social a {
  font-size: 2.5rem;
  color: var(--primary);
  margin: 0 15px;
  transition: var(--transition);
  display: inline-block;
}

.social a:hover {
  transform: scale(1.2) rotate(10deg);
  color: var(--accent);
}

footer {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  font-weight: 300;
  letter-spacing: 1px;
}

@media(max-width: 992px) {
  .about {
    flex-direction: column;
    text-align: center;
  }

  .about-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media(max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  nav a {
    margin: 0;
    font-size: 0.8rem;
  }

  .hero {
    height: 65vh;
    background-attachment: scroll;
    background-position: center 0%;
    /* Aligns the image to the top for faces */
  }

  .section {
    padding: 40px 20px;
  }

  .section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 300px;
  }
}

/* Scroll Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}