/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
html {
  font-size: 16px; /* base font size, scalable with rem */
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #fffdf9;
  color: #2e2e2e;
  line-height: 1.6;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fdfcf9;
  border-bottom: 1px solid #ddd4c4;
  z-index: 999;
}

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

.logo {
  font-size: 1.75rem;
  font-weight: bold;
  color: #7d4e2d;
}

.nav-links a {
  color: #3b3b3b;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #9c6f4d;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: linear-gradient(to right, #f4efe6, #e3d9c6);
  text-align: center;
  padding: 3rem 2%;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #4e3b2a;
}

.hero-text p {
  font-size: 1rem;
  color: #6b5844;
}

/* Sections */
.section {
  padding: 3rem 5%;
  max-width: 1000px;
  margin: auto;
  background-color: #ffffff;
}

.section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #7a994e;
}

.section p {
  line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

/* Projects */
.projects {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background: #f8f6f1;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e0dacb;
  box-shadow: 0 4px 10px rgba(130, 110, 90, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(130, 110, 90, 0.15);
}

.project-card h3 {
  margin-bottom: 0.75rem;
  color: #d9822b;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: #6c4c25;
  font-weight: bold;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s;
}

.project-link:hover {
  border-bottom: 1px solid #6c4c25;
}

/* Contact */
.socials {
  margin-top: 1rem;
}

.socials a {
  margin-right: 1rem;
  text-decoration: none;
  color: #7a994e;
  font-weight: 500;
}

.socials a:hover {
  text-decoration: underline;
  color: #4e6e29;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 5%;
  background: #f5f3ed;
  font-size: 0.9rem;
  color: #6f6f6f;
}

/* Responsive Design */
@media (min-width: 576px) {
  .hero-text h2 {
    font-size: 2.2rem;
  }
  .hero-text p {
    font-size: 1.1rem;
  }
}

@media (min-width: 768px) {
  .projects {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2%;
  }

  .project-card {
    flex: 1 1 45%;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }

  .nav-links a {
    margin-left: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-text h2 {
    font-size: 2.8rem;
  }
  .hero-text p {
    font-size: 1.3rem;
  }
}
