/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #333;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav {
  background-color: #78866B; /* Semi-transparent black background */
  backdrop-filter: blur(10px); /* Blur effect */
  color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80px; /* Adjust height as needed */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-size: 1.5rem;
}

.nav-links li {
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  text-decoration-color: white;
}

.nav-links a:hover {
  color: white !important;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: white;
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #78866B;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.hamburger-menu {
  display: flex;
  align-items: center;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-links {
  position: fixed; /* Fixed positioning ensures it overlays correctly */
  top: 100%; /* Start below the nav */
  right: 0;
  background-color: #333;
  border: 1px solid #ccc;
  border-top: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100vw; /* Full width of the viewport */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.menu-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-links li {
  border-top: 1px solid #ccc;
}

.menu-links a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.menu-links a:hover {
  background-color: #555;
}

.hamburger-icon.open {
  transform: rotate(90deg);
}

.menu-links.open {
  max-height: 100vh;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */
#profile {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;  
  margin: 0;    
  padding: 0;   
  overflow: hidden; 
}

#profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://i.ibb.co/BVzyx8t/ef6542d2bd04e89f4714ea7594d7505a.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px); 
  opacity: 0.7; 
  z-index: -1; 
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
  z-index: 1; 
}

.section__text {
  align-self: center;
  text-align: center;
  z-index: 1; 
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  font-weight: 600;
  color: #78866B !important;
  text-align: center;
}

.section__text__p2 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
  z-index: 1; 
}

/* ICONS */
.icon {
  cursor: pointer;
  font-size: 2rem; /* Adjust size to make icons larger */
  color: #fff !important; /* Apply color to font-based icons */
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: #A9B9AD;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: #78866B;
  color: white;
}

.btn-color-1:hover {
  background: #fff;
  color: #78866B;
}

.btn-color-2 {
  background: #fff;
  color: #78866B;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

#bg {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://i.ibb.co/ThLSjDr/0f3486981b58b8cfc09260aabb0900d5.jpg') no-repeat center center fixed;
  background-size: cover;
  filter: blur(4px); 
  opacity: 0.7; 
  z-index: -1;
}

/* ABOUT SECTION */
#about {
  position: relative;
  color: #fff;
  height: auto;
  width: 100%;  
  margin: 0;    
  padding: 0;
  padding: 4rem 2rem;
  text-align: center;
}

.section__text__p1_about {
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.title {
  font-size: 3rem;
  margin-bottom: 2rem;
}

/* Container for the profile picture and details */
.section-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.section__pic-container {
  width: 300px;
  flex-shrink: 0;
  margin-right: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.about-pic {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

/* Container for the details */
.about-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.details-container {
  position: relative; /* Ensure stacking context for pseudo-elements */
  flex: 1 1 calc(50% - 1rem); /* Two cards per row with gap of 2rem */
  padding: 2rem;
  background: transparent; /* Transparent black background */
  border-radius: 1rem;
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 2rem; /* Space between rows */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Box shadow for depth */
  backdrop-filter: blur(10px); /* Blurring effect */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

.details-container:hover {
  background-color: rgba(255, 255, 255, 0.9); /* Light white background on hover */
  color: #78866B; /* Black text on hover */
}

.details-container img.icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.details-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.details-container p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.details-container:hover p {
  color: #78866B; /* Black text color on hover */
}

/* Container for the main text content */
.text-container {
  max-width: 800px;
  margin: 2rem auto;
  text-align: justify; /* Justify text for better readability */
}

.text-container p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.8; /* Slightly increased line height for easier reading */
}

/* Arrow icon for navigation */
.arrow {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 50px;
  cursor: pointer;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
  color: #fff;
  height: auto;
  width: 100%;  
  margin: 0;  
  padding: 0;
  padding: 4rem 2rem;
  text-align: center;
}

#experience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://i.ibb.co/BVzyx8t/ef6542d2bd04e89f4714ea7594d7505a.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;  
  filter: blur(3px);
  opacity: 0.7; /* Adjust opacity as needed */
  z-index: -1; /* Ensure the pseudo-element is behind the content */
}

.section__text__p1 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.title {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.details-container {
  flex: 1 1 calc(50% - 2rem);
  background: transparent;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s, color 0.3s;
}

.details-container:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #78866B;
}

.experience-sub-title {
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.article-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

article {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100px;
}

article .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

article h3 {
  font-size: 1rem;
  color: #fff;
  margin: 0;
  transition: color 0.3s;
}

.details-container:hover h3 {
  color: #78866B;
}

.arrow {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 50px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .details-container {
    flex: 1 1 100%;
  }
}



/* PROJECTS SECTION */

#projects { 
  position: relative;
  color: white;
  height: auto;
  width: 100%;  
  margin: 0;    
  padding: 0;
  padding: 4rem 2rem;
  text-align: center;
}

.section__text__p1 {
  color: white !important;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.title {
  color: white;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.about-containers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.color-container {
  flex: 1 1 calc(33.333% - 2rem);
  background: transparent;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, color 0.3s;
  margin-bottom: 2rem;
}

.color-container:hover {
  background-color: white;
  color: black;
}

.project-img {
  border-radius: 2rem;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.project-title {
  margin: 1rem 0;
  color: white;
}

.color-container:hover .project-title {
  color: #78866B;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.project-btn {
  color: #78866B;
  background: #fff;
  border: 1px solid #aaa;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.project-btn:hover {
  background-color: #78866B;
  color: #fff;
}

.arrow {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 50px;
  cursor: pointer;
}

/* Presentations */
#presentations {
  position: relative;
  color: white;
  height: auto;
  width: 100%;  
  margin: 0;    
  padding: 4rem 2rem;
  text-align: center;
}

#presentations::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://i.ibb.co/BVzyx8t/ef6542d2bd04e89f4714ea7594d7505a.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;  
  filter: blur(3px);
  opacity: 0.7;
  z-index: -1;
}

.presentation-details-container {
  display: flex;
  flex-wrap: nowrap; /* Allow wrapping */
  gap: 2rem;
  justify-content: center; /* Center cards horizontally */
}

.presentation-card {
  flex: 1 1 calc(50% - 2rem); /* 2 cards per row on larger screens */
  max-width: calc(50% - 2rem); /* Prevent cards from growing beyond 50% width */
  min-width: 250px; /* Ensure cards don't shrink too small */
  background: transparent;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.presentation-card:hover {
  background-color: #fff;
  color: #78866B;
  transform: scale(1.05);
}

.presentation-img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.presentation-title {
  margin: 1rem 0;
  color: #fff;
  font-weight: 500;
}

.presentation-card:hover .presentation-title {
  color: #78866B;
}

.btn-container {
  display: flex;
  justify-content: center;
}

.presentation-btn {
  color: #fff;
  background: #78866B;
  border: 1px solid #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.presentation-btn:hover {
  background-color: #78866B;
  color: #fff;
}

/* Responsive Design */

/* 1 card per row on smaller screens (tablets and phones) */
@media (max-width: 1200px) {
  .presentation-card {
    flex: 1 1 calc(100% - 2rem); /* 1 card per row */
    max-width: calc(100% - 2rem); /* Ensure cards take full width */
  }

  .presentation-details-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 2rem;
    justify-content: center; /* Center cards horizontally */
  }
}

/* Testimonials */
#testimonials {
  position: relative;
  height: auto;
  width: 100%;  
  margin: 0;  
  padding: 0;
  padding: 50px 20px;
}

.testimonials-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.about-containers {
  display: flex;
  justify-content: center;
}

.details-container {
  width: 100%;
  max-width: 600px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 8px;
}

.testimonial-image {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.testimonial-image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-text {
  font-style: italic;
  text-align: center;
}

.testimonial-author {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
}


/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 50px 20px;
  height: auto;
  width: 100%;  
  margin: 0;  
  position: relative;  /* Added for positioning the pseudo-element */
  background-color: transparent;
  border-radius: 8px;
  overflow: hidden; /* To ensure the pseudo-element does not overflow */
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://i.ibb.co/BVzyx8t/ef6542d2bd04e89f4714ea7594d7505a.jpg'); /* Background image URL */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;  
  filter: blur(5px); /* Adjust blur amount */
  opacity: 0.7; /* Adjust opacity */
  z-index: -1;
}

.section__text__p1 {
  margin-top: 5%;
  color: #78866B;
  font-size: 1.5rem;
  margin-bottom: 10px;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #78866B;
  padding: 10px 20px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.contact-info-container:hover {
  transform: translateY(-5px);
}

.contact-info-container p {
  font-size: 1rem;
  margin: 0;
  color: #fff;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.contact-info-container a {
  text-decoration: none;
  color: white;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.contact-info-container a:hover {
  text-decoration: underline;
}

.contact-icon {
  height: 2rem;
  width: 2rem;
  color: #78866B;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.contact-form {
  width: 100%;
  width: auto;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 5%;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.contact-form h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: white;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.contact-form input, .contact-form textarea {
  width: 95%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: white;
}

.contact-form button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #78866B;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  position: relative; /* Ensure the content is above the background */
  z-index: 1;
}

.contact-form button:hover {
  background-color: white;
  color: #78866B;
}

/* FOOTER SECTION */

footer {
  background-color: #78866B;
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

footer p {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0;
}