@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

body {
  font-family: 'DM Sans', sans-serif;
  background: #fafafa;
  color: #1e1e1e;
  margin: 0;
  line-height: 1.6;
}

/* Headings */
h1, h3 {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 800;
  color: #1e1e1e;
}

h1 {
    font-size: 68px;
    margin-bottom: 0;
}

h2 {
  font-weight: 800;
  color: #1e1e1e;
}

h2.role {
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: #1e1e1e;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.intro-text p {
    font-size: 22px;
}

/* NAVIGATION */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  /* animation: slideDown 0.8s ease-out forwards; */
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 800;
  color: #1e1e1e;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 18px;
  text-decoration: none;
  color: #959595;
  font-weight: 800;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #333;
  /* font-weight: 700; */
}

.active-page {
  color: #333 !important; 
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Intro Section */
.intro-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 6rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1.2; /* This makes the text section wider */
  min-width: 280px;
}

.about-photo {
  flex: 1; /* This makes the photo section slightly narrower relative to the text */
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.intro-photo {
  flex: 1; /* This makes the photo section slightly narrower relative to the text */
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.about-photo img {
  max-width: 100%;
  height: auto;
  /* border-radius: 12px; */
  max-height: 500px; /* This makes the image taller */
  object-fit: cover;
}

.intro-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  max-height: 550px; /* This makes the image taller */
  object-fit: cover;
}


/* Projects */
.projects-section {
  margin-top: 8rem; /* Increased spacing */
  margin-bottom: 8rem;
}

.divider {
  border: none;
  border-top: 2px solid #ddd;
  margin: 4rem 0 2rem;
}

.section-heading {
  font-size: 40px;
  margin-top: 6rem;
  margin-bottom: 2rem;
  text-align: left;
  font-family: 'Red Hat Display', sans-serif;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem; /* Increased spacing between project columns */
  margin-bottom: 4rem;
}

.project-card {
  /* Only contain the image */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden; /* Ensure the image is clipped to the card's rounded corners */
}

.project-card:hover {
  transform: scale(1.05); /* Get bigger on hover */
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.project-card img {
  width: 100%;
  height: 300px; /* Increased height to make boxes taller */
  object-fit: cover;
  display: block; /* Remove any extra spacing below the image */
}

/* New styles for the text below the project image */
.projects .reveal.slide-up {
  display: flex;
  flex-direction: column;
}

.projects .reveal.slide-up h3 {
  font-family: 'DM Sans', sans-serif; /* Changed font family to match body */
  font-weight: 400; /* Made project titles not bold */
  font-size: 2rem; /* Made project titles the same size as the section heading */
  margin-top: 1.5rem; /* More space between image and title */
  margin-bottom: 1rem;
}

.projects .reveal.slide-up p {
  font-size: 1.2rem; /* Made the description text bigger */
  margin-top: 0;
  margin-bottom: 1rem; /* Added some spacing below the description */
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 6rem; /* Increased spacing */
  padding-top: 2rem;
  border-top: 1px solid #eee;
  padding-bottom: 5rem;
}

.footer-heading {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #1e1e1e;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.footer-subheading {
  font-size: 18px;
  color: #4a4a4a;
  margin-bottom: 2rem; /* Increased spacing */
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 3rem; /* Increased spacing */
}

.footer-icons a {
  /* No need for color here, as it's an SVG */
  font-size: 30px;
  transition: color 0.3s ease;
}

/* Style for the circular background of the icons */
.icon-circle {
  width: 50px;
  height: 50px;
  background-color: #f1f1f1; /* Light gray background */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Change the background color on hover */
.footer-icons a:hover .icon-circle {
  background-color: #e0e0e0; /* Slightly darker gray on hover */
  transform: scale(1.1); /* Zoom in effect */
}

/* Change the SVG color on hover */
.footer-icons a:hover .icon-circle img {
  filter: brightness(0.8); /* Darken the SVG on hover */
}

/* Fade-in */
.reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.reveal.active {
  opacity: 1;
}

.reveal.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.reveal.slide-up.active {
  opacity: 1;
  transform: translateY(0);
}


/* Contact Form */
.contact-form-section {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: #1e1e1e;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #4a4a4a;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 0.95;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 1rem 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  h1 {
    font-size: 48px;
    text-align: center;
  }

  .intro-section {
    flex-direction: column;
    text-align: center;
  }

  .intro-text {
    margin-bottom: 2rem;
  }

  .project-card img {
    height: 200px; /* Adjusted for mobile view */
  }

  .projects .reveal.slide-up h3 {
    font-size: 1.8rem;
  }

  .projects .reveal.slide-up p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 38px;
  }

  .project-card img {
    height: 180px; /* Adjusted for mobile view */
  }

  h2.role {

  font-size: 28px;

}

.projects .reveal.slide-up h3 {
    font-size: 1.5rem;
  }
}