/* CSS Variables for Color Palette */
:root {
  --light-yellow: #f8fcda;
  --cream: #e3e9c2;
  --cream-2: #f9fbb2;
  --coyote: #7c6354;
  --cadet-gray: #a5aba;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--light-yellow);
  color: var(--coyote);
  line-height: 1.6;
}

/* Header and Navigation */
header {
  background-color: var(--cream);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--coyote);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--coyote);
  padding: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--coyote);
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--cream-2);
}

/* Hero Section */
#hero {
  background: linear-gradient(
    135deg,
    var(--cream) 0%,
    var(--light-yellow) 100%
  );
  padding: 120px 2rem 4rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--coyote);
}

#hero p {
  font-size: 1.2rem;
  color: var(--coyote);
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--coyote);
  text-align: center;
}

/* About Section */
#about p {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--coyote);
}

/* Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project {
  background-color: var(--cream);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s;
}

.tags {
  margin-top: 1rem;
}

.tags span {
  display: inline-block;
  background-color: var(--cream-2);
  color: var(--coyote);
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.project:hover {
  transform: translateY(-2px);
}

.project iframe,
.project video,
.project img {
  width: 100%;
  border-radius: 5px;
  margin-top: 1rem;
}

/* Skills Section */
#skills ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

#skills li {
  background-color: var(--cream-2);
  color: var(--coyote);
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

/* Contact Section */
#contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--cadet-gray);
  border-radius: 5px;
  background-color: var(--light-yellow);
  color: var(--coyote);
}

#contact-form button {
  padding: 1rem;
  background-color: var(--cream-2);
  color: var(--coyote);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#contact-form button:hover {
  background-color: var(--cream);
}

/* Footer */
footer {
  background-color: var(--cream);
  text-align: center;
  padding: 2rem;
  color: var(--coyote);
}

/* Responsive Design */

/* Mobile: < 768px */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--cream);
    display: none;
    padding: 1rem 0;
  }

  nav ul.show {
    display: flex;
  }

  #hero h1 {
    font-size: 2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

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

  #skills ul {
    grid-template-columns: 1fr;
  }
}

/* Tablet: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .hamburger {
    display: none;
  }

  nav ul {
    display: flex;
  }

  #hero h1 {
    font-size: 3.5rem;
  }

  #hero p {
    font-size: 1.3rem;
  }

  section {
    padding: 3rem 2rem;
  }

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

  #skills ul {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Desktop: > 1024px */
@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }

  nav ul {
    display: flex;
  }

  #hero h1 {
    font-size: 3.5rem;
  }

  #hero p {
    font-size: 1.3rem;
  }

  section {
    padding: 4rem 2rem;
  }

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

  #skills ul {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  section h2 {
    font-size: 2.8rem;
  }
}
