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

/* Body Styling */
body {
  font-family: "Inter", sans-serif;
  background-color: #fff;
  color: #333;
  padding-top: 70px;
}

/* Header Styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background-color: transparent;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: top 0.3s ease, background-color 0.5s ease, box-shadow 0.3s ease;
}

header.scrolled {
  top: 0;
  background-color: #f9d62e;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Logo Styling */
header .logo a {
  font-size: 3rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .logo a svg {
  fill: none;
  transition: stroke 0.3s ease;
}

header .logo a svg path {
  stroke: #333;
}

header .logo a:hover svg path {
  stroke: #f9d62e;
}

/* Navigation Styling */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #f9d62e;
}

/* Main Content Styling */
main {
  padding: 3rem 0rem;
}

/* Hero Section */
#home {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  line-height: 1.2;
  margin-top: -20px;
}

#home h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0rem;
  color: #000;
}

#home p {
  color: #777;
  white-space: normal;
  word-wrap: break-word;
  max-width: 600px;
  margin: 1rem auto;
  font-size: 1rem;
  line-height: 1.5;
}

/* Decorative Line */
.separator {
  width: 100px;
  height: 3px;
  background-color: #ff4e50;
  border-radius: 2px;
  margin: 0.9rem auto;
  position: relative;
}

/* Circle in the middle */
.separator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #ff4e50;
  border-radius: 50%;
}

/* Categories Section */
.categories-container {
  position: relative;
  width: 63%;
  margin: 25px auto 2rem;
}

#categories {
  background-color: #f9d62e;
  padding: 1rem;
  text-align: center;
}

#categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#categories li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

#categories li a:hover {
  color: #d88a00;
}

#categories ul li a.active {
  color: #fff;
  background-color: #f9d62e;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.categories-underline {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 10px;
  background-color: rgba(248, 173, 157, 0.4);
}

/* Projects Section */
#projects {
  padding: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 200px;
  display: flex;          /* Enable flexbox */
  flex-wrap: wrap;       /* Allow items to wrap to the next line */
  justify-content: space-between; /* Distribute items evenly */
}

.project {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: calc(30.333% - 20px); /* Adjust width for 3 columns with gap */
  margin-bottom: 35px; /* Bottom margin for spacing */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

.project-details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.project:hover .project-details {
  opacity: 1;
}

.project:hover img {
  opacity: 0.3;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.project-link i {
    font-size: 1.2rem;
}


/* About Section */
#about {
  background-color: #f6faff;
  padding: 2rem;
  border-radius: 10px;
  margin: 0 auto 3rem;
  width: 100%;
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-image {
  flex: 0.8;
}

.about-image img {
  width: 70%;
  border-radius: 2px;
}

.about-text {
  flex: 2;
  font-size: 1.2rem;
  line-height: 1.5;
}

.about-text p {
  margin-bottom: 1rem;
}

/* Combined "Work With Me" and Footer Section */
#footer {
  background-color: #f9d62e;
  text-align: center;
  padding: 2rem 0;
}

#footer h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

#footer .social-icons a {
  color: #333;
  font-size: 1.7rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

#footer .social-icons a:hover {
  color: #d88a00;
}

#footer p {
  font-size: 1rem;
  color: #333;
}

/* Media query for responsiveness */
@media (max-width: 768px) {
  .project {
    width: calc(50% - 18px); /* Adjust for 2 columns on medium screens */
  }
}

@media (max-width: 480px) {
  .project {
    width: 100%; /* Full width on small screens */
  }
}
