/* GENERAL STYLING */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* NAVIGATION STYLING */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-link {
  position: relative;
  color: grey;
  text-decoration: none;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

/* Underline Effect */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease;
}

/* Hover Effect */
.nav-link:hover::after {
  width: 100%;
}

/* Keep underline for active section */
.nav-link.active {
  color: black;
}

.nav-link.active::after {
  width: 100%; /* Keep the underline visible */
}




/* BUTTON STYLING */
.btn__contact {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn__contact:hover {
  background-color: #333;
  transform: scale(1.05);
}



body {
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(230, 230, 230);
}

/* TRANSITIONS */
a,
.btn {
  transition: all 300ms ease;
}

/* NAVIGATION */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 10vh;
  padding: 0 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 999;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links li {
  font-size: 1rem;
}

a {
  color: grey;
  text-decoration: none;
}

a:hover {
  color: black;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: black;
  cursor: pointer;
}

/* HAMBURGER MENU */
#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 3px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.menu-links.open {
  max-height: 300px;
}

.menu-links li {
  list-style: none;
  padding: 10px;
  text-align: center;
}

.menu-links a {
  color: grey;
}

.menu-links a:hover {
  color: black;
}

/* SECTIONS */
section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40rem;
}

.section-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 30rem; /* Try increasing or decreasing this if needed */
  gap: 1.5rem;
  padding: 0 2rem; /* Add consistent padding to avoid shifting */
  margin-bottom: 29rem;
}

.section__pic-container {
  width: 20rem;
  height: 20rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5rem;
}

.section__text {
  text-align: center;
  max-width: 90%;
  margin-left: 0;
}
.section__text__p1 {
  text-align: center;
}
.section__text__p2 {
  text-align: center;
}

.title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
/* Container for circular image */

.section__text__p1,
.section__text__p2 {
  color: #969696;
}

.section__text__p1 {
  font-size: 1.25rem;
  font-weight: bold;
}

.section__text__p2 {
  font-size: 1.5rem;
  padding-bottom: 1rem;
}

.title {
  font-size: 7rem;
  margin-bottom: 1rem;
}

#socials-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* BUTTON STYLING */
.btn__contact {
  display: inline-block;
  padding: calc(1rem * 2) calc(3rem * 2); /* Scale padding */
  font-size: calc(1rem * 2); /* Scale font size */
  font-weight: bold;
  color: black;
  background-color: rgba(255, 255, 255, 0);
  border: 2px solid black;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: background-color 300ms ease, transform 300ms ease;
}

.btn__contact:hover {
  background-color: black;
  color: white;
  transform: scale(1.1);
}

/* For tablets and smaller devices */
@media (max-width: 768px) {
  nav {
    justify-content: space-between;
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

  section {
    padding: 2rem;
  }

  .section__pic-container {
    height: 200px;
    width: 200px;
  }

  .title {
    font-size: 2rem;
  }

  .btn__contact {
    padding: 0.8rem 2rem;
    font-size: 0.875rem;
  }
}

/* ABOUT SECTION */
#about {
  flex-direction: column;
  display: flex;
  gap: 2rem;
  margin-top: 20rem;
  margin-bottom: 4rem;
  margin-top: 30rem;
  padding: 0; /* Remove inner padding to fix width restriction */
  margin: 0 auto; /* Center the section */
  max-width: 1200px;
}

.about__start {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.h4 {
  color: #5a5a5a;
  font-weight: 300;
  font-size: 1rem;
}

#about h3 {
  font-size: 1.5rem;
}

.about__start h1 {
  color: black;
  font-weight: bold;
  font-size: 6rem;
  
  white-space: nowrap; /* Prevents wrapping if text is long */
}

.about-containers {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-container p {
  color: rgb(46, 46, 46);
  font-size: 1.4rem;
  margin: 0;
}

.about-containers,
.about-details-container {
  display: flex;
  gap: 2rem;
  flex: 1;
  max-width: 100%;
}

.details-container {
  padding: 2rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
  white-space: nowrap;
}

.details-container p {
  color: rgb(80, 80, 80);
}

/* WORK */

#work {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Ensures it takes the full viewport height */
  text-align: center;
  margin-top: 30rem;
}

.work-heading {
  margin-bottom: 20px; /* Space between the heading and the projects */
  text-align: center;
}

.section__text1__p1 {
  font-size: 1.5rem;
  margin-bottom: 10px; /* Space between "Browse My" and "Projects" */
  text-align: center;
  color: #5a5a5a;
}

.title1 {
  font-size: 7rem;
  font-weight: bold;
  margin-bottom: 5rem;
}

.work-container {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat( 1fr); /* Creates 3 equal-width columns */
  gap: 30px; /* Space between images */
  max-width: 1200px; /* Limits the container's width */
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  max-width: 1200px;
  
}

.work-item {
  position: relative; /* Makes the item position relative for the title */
  width: 700px;
  text-align: center;
  overflow: hidden; /* Ensures the title stays inside the container during transformations */
  
}

.work-item a {
  display: block;
}

.work-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(50%); /* Darkens the image by 50% */
}

.work-image:hover {
  transform: scale(1.05);
  filter: brightness(100%); /* Restores original brightness on hover */
}

.work-title {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: bold;
  color: #d4d4d4;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s ease, color 0.3s ease;
}

.work-item:hover .work-title {
  transform: translateX(-50%) translateY(-10px);
  color: #ffffff;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 11rem;
  padding: 2rem;
  margin-bottom: 20rem;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Vertically center the left and right sections */
  width: 100%;
  max-width: 1800px; /* Limiting the container width */
  gap: 15rem; /* Space between the two sections */
  flex-wrap: wrap; /* Allows wrapping if necessary */
}

.contact-text {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center text vertically within this section */
  white-space: nowrap; /* Prevent text from wrapping */
}

.contact-text h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  color: black;
  white-space: nowrap; /* Prevent wrapping */
}

.contact-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgb(46, 46, 46);
  white-space: nowrap; /* Prevent wrapping */
}

.contact-form {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.btn__contact1 {
  display: inline-block;
  padding: 1rem 3rem; /* Scale padding */
  font-size: calc(1rem * 1); /* Scale font size */
  font-weight: bold;
  color: black;
  background-color: white;
  border: 2px solid black;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 300ms ease, transform 300ms ease;
}

.btn__contact1:hover {
  background-color: black;
  color: white;
  transform: scale(1.1);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

label {
  font-size: 1rem;
  color: rgb(80, 80, 80);
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 5px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #26baff; /* Match button color for consistency */
}

textarea {
  resize: none;
}

footer {
  border-top: 1px solid rgba(0, 0, 0, 0.2); /* Light grey line */
  padding: 20px 50px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding-top: 10px;
}

.footer-logo h1 {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
}

.footer-socials {
  display: flex;
  flex-direction: column; /* Stack socials vertically */
  align-items: flex-end; /* Align to the right */
  gap: 10px;
}

.footer-socials a {
  color: rgb(177, 177, 177);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #030303; /* Changes color on hover */
}

.footer-bottom p {
  text-align: center;
  font-size: 14px;
  margin-top: 15px;
  color: rgb(177, 177, 177) !important; /* Ensures the text is black */
  font-weight: bold;
}

@media (max-width: 768px) {
  #contact {
    flex-direction: column;
    align-items: center;
  }

  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-text {
    text-align: center;
    flex: 0; /* Take no additional space on smaller screens */
  }

  .contact-form {
    width: 100%;
  }

  .contact-text h1 {
    font-size: 2.5rem;
  }

  .contact-text p {
    font-size: 1rem;
  }
}
