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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f7f6f2;
  color: #333;
}

header {
  background: #000000;
  color: #f7f6f2;
  padding: 1rem 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
}

nav a {
  color: #f7f6f2;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
    color: #60b7cb;
}

nav a.active {
  color: #60b7cb;
  position: relative;
  text-decoration: none;
}

nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: #60b7cb;
    border-radius: 2px;
    box-shadow: 0 0 6px #60b7cb;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto
}

h1 {
    font-family: 'Cinzel Decorative', serif;
}

h2 {
    font-family: 'Cinzel Decorative', serif;
}

p {
    font-family: 'Source Sans Pro', sans-serif;
}

.hero {
    background: linear-gradient(to right, #60b7cb, #2e6f7d);
  color: #f7f6f2;
  text-align: center;
  padding: 3rem 1rem;
}

.page-hero {
  background: linear-gradient(to right, #60b7cb, #2e6f7d);
  color: #f7f6f2;
  text-align: center;
  padding: 3rem 1rem;
}

.about-me-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
}

.about-me-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.about-me-image img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-me-content {
  flex: 2;
}

@media (max-width: 768px) {
  .about-me-container {
    flex-direction: column;
    align-items: center;
  }

  .about-me-image img {
    max-width: 80%;
  }
}

section.content {
  max-width: 650px;
  margin: 2rem auto;
  padding: 1rem;
}

section.projects {
    max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #f7f6f2;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.project-card img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem;
  border: 1px solid #b9b8b6;
  border-radius: 6px;
}

.contact-form button {
  background: #2e6f7d;
  color: #f7f6f2;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #2e6f7d;
}

footer {
  background: #000000;
  color: #f7f6f2;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

/* Modal overlay */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

/* Modal content box */
.modal-content {
  background-color: #f7f6f2;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  position: relative;
  color: #333;
}

/* Close button */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}

/* Carousel layout */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.carousel img {
  max-width: 250px;
  height: auto;
  border-radius: 8px;
}

.carousel button {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #2e6f7d;
  transition: color 0.3s;
}

.carousel button:hover {
  color: #60b7cb;
}

.modal-text h2 {
  font-family: 'Cinzel Decorative', serif;
  margin-bottom: 0.5rem;
}

.modal-text p {
  font-family: 'Source Sans Pro', sans-serif;
}