/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Fraunces", serif;
  color: #1f2d24;
  background: #f7f7f5;
}

h1, h2, h3 {
  font-weight: 450;
  letter-spacing: -1px;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

p {
  line-height: 1.6;
}

.logo {
  font-size: 1.5rem;
  font-weight: 500;
}

/* COLORS */
:root {

  --dark-green: #27493d;
  --green: #3f6b5a;
  --sage: #9eb4a4;
  --light-sage: #d6e2d8;
  --cream: #f5f4ef;

  /* HERO */
  --hero-gradient:
    linear-gradient(
      180deg,
      #e8efe9 0%,
      #c6d6ca 100%
    );

  /* ABOUT */
  --about-gradient:
    linear-gradient(
      180deg,
      #d9e3dd 0%,
      #bcc9c1 100%
    );

  /* PROJECTS */
  --projects-gradient:
    linear-gradient(
      180deg,
      #dbe7de 0%,
      #bfd0c3 100%
    );

  /* CONTACT */
  --contact-gradient:
    linear-gradient(
      180deg,
      #cad6cf 0%,
      #aebbb4 100%
    );
}

/* NAVBAR */
.navbar {
  background: #f5f5f5;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
}

.nav-links a.btn {
  color: white;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* HERO */
.hero {
  background: var(--about-gradient);
  text-align: center;
  padding: 120px 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  margin-bottom: 20px;
}

/* BUTTON */
.btn {
  background: var(--green);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
}

.btn.small {
  padding: 6px 12px;
}

/* ABOUT */
.about {
  background: var(--about-gradient);
  padding: 80px 20px;
  justify-content: center;
  text-align: center;
}

.about-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

/* PROJECTS */
.projects {
  background: var(--projects-gradient);
  padding: 80px 20px;
  text-align: center;
}

.carousel {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.project-card {
  min-width: 100%;
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* ARROWS */
.arrow {

  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 60px;
  height: 60px;

  border-radius: 50%;
  border: none;

  background: rgba(255,255,255,0.95);

  font-size: 2rem;
  color: var(--dark-green);

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 8px 20px rgba(0,0,0,0.08);

  z-index: 10;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.left { left: -80px; }
.right { right: -80px; }

/* CONTACT */
.contact {
  background: var(--contact-gradient);
  padding: 80px 20px;
  text-align: center;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.email {
  margin-top: 10px;
  font-size: 14px;
}

/* MOBILE */
@media (max-width: 768px) {

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 60px;
    background: white;
    padding: 10px;
    border-radius: 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 32px;
  }

  .arrow {
    display: flex; /* override the display:none */
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
  
  .left {
    left: 5px;
  }

  .right {
    right: 5px;
  }
}