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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to right, #f9f9f9, #eaeaea);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px
}

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

/* 🔹 TRANSITION */
a,
.btn {
  transition: all 300ms ease;
}

/* 🔹 DESKTOP NAV */
nav {
  display: flex;
  justify-content: space-between; /* Push elements to edges */
  align-items: center;
  height: 17vh;
  padding: 0 2rem;
}

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

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

.nav-links a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
  text-decoration: none; /* Removes underline */
  color: black; /* Sets font color to black */
}


.logo:hover {
  cursor: default;
}

/* 🔹 HAMBURGER MENU (Hidden on Desktop) */
#hamburger-nav {
  margin: auto;
  display: none; /* Hidden by default */
}

.hamburger-menu {
  position: fixed;  /* Fixes it to the top-right */
  top: 20px;        /* Distance from the top */
  right: 20px;      /* Distance from the right */
  z-index: 1000;    /* Ensures it's above other elements */
}

/* Styling the Hamburger Icon */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

/* Hamburger Icon Bars */
.hamburger-icon span {
  width: 100%;
  height: 3px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}



/* 🔹 Mobile Dropdown Menu */
.menu-links {
  position: absolute;
  top: 60px;
  left: 10px; /* Move menu to the left */
  background-color: white;
  width: 200px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.menu-links.open {
  max-height: 300px;
  padding: 10px 0;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.2rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

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

.menu-links li {
  list-style: none;
}

/* 🔹 Hamburger Icon Animation */
.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}


@media (max-width: 768px) {
  /* Hide desktop navigation */
  nav {
    display: none;
  }

  /* Mobile navigation bar */
  #hamburger-nav {
    display: flex;
    justify-content: space-between; /* Ensures logo on left and menu on right */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 1000;
  }

  /* Logo styling */
  .logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-left: 25px; /* Push it towards the left */
    margin-right: auto; /* Ensures it stays on the left */
  }

  /* Hamburger menu (3 dots) styling */
  .hamburger-menu {
    position: fixed;
    right: 20px; /* Positions the icon on the right */
    top: 20px;
    z-index: 1001;
    cursor: pointer;
  }

  /* Styling for dropdown menu */
  .menu-links {
    position: absolute;
    top: 50px;
    right: 0; /* Align to the right */
    transform: translateX(-100%); /* Shift it left */
    background-color: white;
    width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
  }

  /* Show dropdown when active */
  .menu-links.active {
    max-height: 300px;
    padding: 10px 0;
    opacity: 1;
    visibility: visible;
  }

  /* Align text inside dropdown */
  .menu-links {
    text-align: left;
    padding-left: 1rem;
  }

  /* Hamburger icon animation */
  .hamburger-icon.open span:nth-child(1) {
    transform: rotate(45deg);
  }

  .hamburger-icon.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-icon.open span:nth-child(3) {
    transform: rotate(-45deg);
  }
}


/* PROFILE SECTION */

#profile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  height: calc(100vh - 17vh);
  margin-bottom: 2rem;
  padding-bottom: -3rem;
  padding-left: 0rem;
}


/* .section__pic-container {
  width: clamp(400px, 70%, 450px); 
  height: clamp(400px, 60%, 450px);
  aspect-ratio: 1/1; 
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -100px;
  margin-left: 100px; 
} */

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills without cutting */
}



.section__text {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  height : 70%;
  justify-content: center; /* Centers content vertically */
  align-items: center; /* Centers content horizontally */
}


.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

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

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

#socials-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */
.icon {
  cursor: pointer;
  height: 2rem;
}

/* 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: rgb(53, 53, 53) 0.1rem solid;
}

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

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border-color: rgb(53, 53, 53); /* Ensures contrast on light backgrounds */
}



@media (max-width: 768px) {
  #profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 5rem;
    min-height: 100vh;
    padding: 2rem;
    margin-bottom: 7rem;
  }

  /* Hide profile picture on mobile */
  .section__pic-container {
    display: none;
  }

  /* Adjust text container */
  .section__text {
    font-size: 1.3rem;
    width: 90%;
    margin-top: -100px;
  }

  /* Increase subtitle size */
  .section__text__p1 {
    font-size: 1.8rem;
    font-weight: 600;
  }

  /* Increase main heading */
  .section__text__p2 {
    font-size: 2rem;
    font-weight: bold;
  }

  /* Adjust title */
  .title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    text-align: center;
  }

  /* Adjust buttons */
  .btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
  }

  .btn {
    font-size: 1.1rem;
    width: 10rem;
    padding: 0.8rem 1.2rem;
  }
}

/* 📱 Additional Fixes for Smaller Devices */
@media (max-width: 480px) {
  #profile {
    padding: 1.5rem;
  }

  .section__text {
    font-size: 1.2rem;
    width: 95%;
    margin-top: -80px;
  }

  .section__text__p1 {
    font-size: 1.6rem;
  }

  .section__text__p2 {
    font-size: 1.8rem;
  }

  .title {
    font-size: 3.5rem;
  }

  .btn-container {
    gap: 1rem;
  }

  .btn {
    font-size: 1rem;
    width: 9rem;
  }
}

@media (max-width: 375px) {
  .section__text {
    font-size: 1.1rem;
  }

  .section__text__p1 {
    font-size: 1.4rem;
  }

  .section__text__p2 {
    font-size: 1.6rem;
  }

  .title {
    font-size: 3rem;
  }

  .btn {
    font-size: 0.9rem;
    width: 8.5rem;
  }
}




/* ABOUT SECTION */

#about {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers content vertically */
  align-items: center; /* Centers content horizontally */
  height: 100vh;
  scroll-margin-top: -6.5rem;
  padding: 3rem 2rem;
  background: linear-gradient(to right, #f9f9f9, #eaeaea);
}

.section-container-am {
  display: flex;
  gap: 2rem; /* Keeps a controlled spacing */
  width: 100%;
  max-width: 1500px; /* Defines the max width */
  margin: 0 auto;
  align-items: stretch; /* Ensures children stretch vertically */
}



.details-container-am {
  padding: 2rem;
  flex: 1;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 90%;
  max-width: 400px;
  transition: transform 0.3s ease-in-out;
  margin-bottom: 2rem;
}

/* About Containers */
.about-containers {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2rem;
}

.about-details-container-am {
  width: 100%; /* Ensures it takes full width */
  max-width: 100%; /* Prevents unwanted width restrictions */
  display: flex;
  gap: 0rem;
  flex-wrap: wrap; /* Moves to next line if no space */
  justify-content: space-between; /* Evenly distributes items */
  align-items: stretch; /* Ensures child elements stretch */
  padding: 0;
  margin: 0 auto;
}



.about-details-container {
  width: 100%;  /* Ensures it takes full available space */
  display: flex;
  flex-direction: column; /* Ensures proper alignment */
  margin: 0;  /* Remove any extra margins */
  padding: 0; /* Reset padding */
}


/* Experience and Education Boxes */
.details-container {
  padding: 2rem;
  flex: 1;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 90%;
  max-width: 400px;
  transition: transform 0.3s ease-in-out;
  margin-bottom: 2rem;
}

.details-container:hover {
  transform: scale(1.05);
}

.details-container-am:hover {
  transform: scale(1.05);
}

/* About Text Styling */
.text-container {
  background: rgba(255, 255, 255, 0.8);
  padding-left: 0px;
  padding: 20px;
  border-radius: 12px;
  text-align: justify;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: auto;
  
}

/* Headings */
h1 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

/* Icons */
.icon {
  width: 40px;
  height: 40px;
  color: #007bff;
}

/* Adjusting Columns */
.left-column {
  width: 30%; /* 1 part of 3 (1:2 ratio) */
  display: flex;
  flex-direction: column;
}

.right-column {
  width: 70%; /* 2 parts of 3 (1:2 ratio) */
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
}





@media (max-width: 768px) {
  /* 🔹 Main About Section */
  #about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 2rem 1rem;
    margin-bottom: 3rem;
    scroll-margin-top: 10rem;
  }

  /* 🔹 About Containers */
  .about-containers {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 90vw); /* Adjust width dynamically */
    gap: 2rem;
  }

  /* 🔹 Left & Right Columns */
  .left-column,
  .right-column {
    width: min(100%, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  /* 🔹 About Details */
  .about-details-container-am {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: min(100%, 90vw);
  }

  /* 🔹 Ensure Text Doesn't Overflow */
  .text-container {
    max-width: 100%;
    width: min(100%, 90vw);
    padding: 15px;
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
  }

  /* 🔹 Experience & Details Boxes */
  .details-container {
    width: min(100%, 90vw);
    text-align: center;
    padding: 1.5rem;
  }

  /* 🔹 Section Container */
  .section-container-am {
    flex-direction: column;
    align-items: center;
    width: min(100%, 90vw);
    gap: 1rem;
  }

  /* 🔹 Image Container */
  .section__pic-container {
    width: min(100%, 250px);
  }

  /* 🔹 Buttons & Headings */
  .btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .section__text__p1 {
    text-align: center;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 600;
  }

  .title {
    font-size: clamp(2rem, 6vw, 3rem);
    text-align: center;
    font-weight: bold;
  }
}

/* 📱 Fixes for Small Screens (Under 400px) */
@media (max-width: 400px) {
  #about {
    padding: 1.5rem;
    min-height: 100vh;
  }

  .text-container {
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.4;
    padding: 1rem;
    width: min(100%, 95vw);
  }

  .details-container {
    width: min(100%, 90vw);
    padding: 1.2rem;
  }

  .title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.3rem;
    width: 8rem;
    min-width: 6rem;
  }
}

/* 📱 Extra Fixes for Very Small Screens (Under 360px) */
@media (max-width: 375px) {
  #about {
    padding: 1.5rem;
    min-height: 100vh; /* Ensures section fills the screen */
  }

  .text-container {
    font-size: clamp(0.85rem, 2vw, 1rem);
    padding: 0.8rem;
    line-height: 1.4;
    width: min(100%, 95vw); /* Adjust width dynamically */
  }

  .details-container {
    width: min(100%, 90vw);
  }

  .title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    width: 7.5rem;
    min-width: 6rem;
  }
}





/* EXPERIENCE SECTION */
#experience {
  position: relative;
  width: 100%;
  min-height: 100vh; /* Ensures section takes full height but expands if needed */
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem; /* Increased padding for spacing */
  scroll-margin-top: -100px; /* Smooth scrolling adjustment */
  box-sizing: border-box;
}

/* Expanding the section container */
.section-container {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 1900px; /* Increased max-width for a bigger container */
  margin: 0 auto;
}

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

/* Expanding experience details container */
.experience-details-container {
  width: 100%;
  max-width: 2000px; /* Increased for a larger box */
  margin: 0 auto;
  padding: 2rem; /* Added padding for spacing */
}

/* Expanding article layout */
article {
  flex: 1 1 320px; /* Flexible width with a base of 300px */
  max-width: 400px; /* Allows slight expansion but prevents excessive width */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centers content */
  margin-bottom: 2rem;
  padding: 2rem; /* Keeps spacious layout */
  border: 1px solid #ccc; /* Slightly darker border for better contrast */
  border-radius: 1.5rem; /* Slightly larger rounded corners for a modern look */
  background: white;
  font-size: 1rem;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Softer, more noticeable shadow */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth hover effect */
}

/* Hover Effect */
article:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}


/* Expanding the details container */
.details-container_exp {
  width: 95%;
  max-width: 1200px; /* Expanded width */
  padding: 3rem; /* Increased padding */
  background: white;
  border-radius: 2rem;
  border: 0.1rem solid rgb(163, 163, 163);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}


/* 🔹 For Mobile Screens */
@media (max-width: 768px) {
  #experience {
    height: auto; /* Allow content to expand */
    min-height: 90vh;
    padding: 1rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    scroll-margin-top: -3rem;
    padding-top: 4rem;
    margin-top: 3rem;
    width: min(100%, 95vw);
  }

  /* 🔹 Reduce Title Size */
  .experience-sub-title {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    margin-bottom: 0.4rem;
  }

  /* 🔹 Reduce Experience Item Spacing */
  .experience-item,
  .education-item {
    margin-bottom: 4px;
    width: min(100%, 90vw);
  }

  .experience-item h1,
  .education-item h4 {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }

  /* 🔹 Reduce Spacing for Content */
  .experience-content,
  .education-content {
    margin-top: 2px;
  }

  /* 🔹 Reduce Arrow Size */
  .arrow {
    width: 20px;
    height: 20px;
    margin-top: 10px;
  }

  /* 🔹 Reduce Section Container Width */
  .section-container {
    max-width: 100%;
    gap: 10px;
  }

  /* 🔹 Make Experience Details Smaller */
  .experience-details-container {
    width: min(100%, 90vw);
  }

  /* 🔹 Reduce Article Container Spacing */
  .article-container {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  /* 🔹 Reduce Article Size */
  article {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    text-align: center;
  }
}

/* 📱 Fixes for Screens Below 400px */
@media (max-width: 400px) {
  #experience {
    padding: 1rem;
    min-height: auto;
  }

  .experience-sub-title {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .experience-item h1,
  .education-item h4 {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
  }

  .arrow {
    width: 18px;
    height: 18px;
  }

  .article-container {
    gap: 0.3rem;
  }

  article {
    width: 100%;
    padding: 0.8rem;
  }
}

/* 📱 Extra Fixes for Very Small Screens (Under 360px) */
@media (max-width: 360px) {
  .experience-sub-title {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .experience-item h1,
  .education-item h4 {
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  }

  .arrow {
    width: 16px;
    height: 16px;
  }

  article {
    padding: 0.6rem;
  }
}







/* CERTIFICATIONS SECTION */
#certifications {
  position: relative;  
  display: flex;  
  flex-direction: column;  
  justify-content: flex-start;  
  align-items: center;  
  padding: 2rem;
  width: 90%;  
  max-width: 1200px;  
  margin-bottom: 20%;
}


/* CERTIFICATIONS CONTAINER */
.certifications-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Reduce gap slightly for better spacing */
  flex-wrap: wrap;
  width: 100%;
  max-width: 1400px; /* Increased max-width to accommodate 4 items */
  margin: 0 auto;
}

/* CERTIFICATION ITEM */
.certification-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 calc(25% - 2rem); /* 4 items per row, accounting for gaps */
  max-width: 300px; /* Prevent excessive stretching */
  padding: 1.5rem;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  transition: transform 0.3s ease;
}

/* CERTIFICATION BADGE */
.certification-badge {
  width: 220px; /* Adjust for consistency */
  height: auto;
  margin-bottom: 1rem;
}

/* CERTIFICATION NAME */
.certification-name {
  font-size: 1.4rem; /* Adjust font size slightly */
  font-weight: bold;
  margin-top: 1rem;
}



@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center; /* Ensures nav items are centered */
    height: auto;
    margin-top: 5rem;
  }

  #Certifications {
    min-height: 100vh; /* Ensures proper spacing */
    scroll-margin-top: -20px;
    padding-top: 1rem; /* Prevents navbar from overlapping */
    margin-top: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* Centers the nav links */
  }

  .section-container {
    flex-direction: column;
    gap: 2rem;
    align-items: center; /* Centers content */
  }

  .title {
    font-size: 3rem; /* Adjusted for smaller screens */
    text-align: center;
    padding-top: 50rem /* Ensures it looks good on mobile */
  }

  article {
    width: 90%; /* Adds some spacing on the sides */
    max-width: 600px; /* Prevents excessive stretching */
  }

  .certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 1.5rem; /* More spacing for clarity */
    justify-items: center; /* Centers items */
  }

  .certification-item {
    width: 80%; /* Increases width for better visibility */
    max-width: 300px; /* Prevents boxes from being too wide */
  }
}


/* PROJECTS SECTION */
/* PROJECT SECTION */
#projects {
  position: relative;
  margin: 6em auto 0 auto; /* Adjust margin */
  width: 85%;
  scroll-margin-top: -60px;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 3rem;
}

/* Project Grid Layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
  gap: 2.5rem; /* Adjusts space between cards */
  justify-content: center;
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* Project Cards */
.color-container {
  background: white;
  border-radius: 1.2rem;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 350px;
  height: 100%; /* Ensures all cards have the same height */
}

/* Hover Effect */
.color-container:hover {
  transform: translateY(-8px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

/* Project Images */
.project-img {
  border-radius: 0.8rem;
  width: 100%;
  max-width: 280px;
  height: 180px; /* Ensures uniform height */
  object-fit: cover;
}

/* Project Titles */
.project-title {
  margin: 0.8rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
}

/* Project Button */
.project-btn {
  font-size: 1rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  width: 140px;
  text-align: center;
  border: 2px solid #007bff;
  background: transparent;
  color: #007bff;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.project-btn:hover {
  background: #007bff;
  color: white;
}


@media (max-width: 768px) {
  #projects {
    position: relative;
    margin-top: 12em; /* ✅ Moves section further down */
    width: 80%;
    font-size: 1rem;
    scroll-margin-top: 1rem;
    margin-bottom: 5rem;
  }
  
  

  .color-container {
      max-width: 100%; /* Use full width on smaller screens */
      padding: 1rem;
  }

  .project-img {
      max-width: 100%; /* Prevent images from shrinking too much */
      max-height: 200px; /* Reduce height for better fit */
  }

  .project-btn {
      font-size: 0.9rem; /* Slightly smaller button text */
  }
}


/* CONTACT SECTION */
#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 70vh;
  scroll-margin-top: -20rem;
  width: 100%; /* ✅ Allows full width usage */
}

/* CONTACT INFO UPPER CONTAINER */
.contact-info-upper-container {
  display: flex;
  flex-direction: column; /* ✅ Ensures vertical alignment */
  justify-content: center; /* ✅ Centers content vertically */
  align-items: center; /* ✅ Centers content horizontally */
  border-radius: 2rem;
  width: 100%;
  max-width: 1000px;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  margin: 2rem auto;
  padding: 2rem; /* ✅ Adds spacing so content isn't too close */
  width: 100% !important; /* ✅ Ensures it takes full width */
  max-width: 1000px !important;
}


/* CONTACT INFO CONTAINER */
.contact-info-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem; /* ✅ Increased gap for better spacing */
  margin: 1.5rem; 
  width: 100%;/* ✅ Slightly increased margins */
}


@media (max-width: 600px) {
  #contact {
    position: relative; /* Ensures it's placed correctly in the flow */
    min-height: 100vh; /* Allows the section to expand if needed */
    padding: 3rem 1rem; /* Internal spacing */
    margin-top: 8rem; /* Pushes the section down to avoid overlap */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10; /* Moves it above other sections if needed */
  }
}



  .contact-info-upper-container {
    padding: 1rem; /* Add padding for spacing */
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensure content stays centered */
    justify-content: center;
    width: 100vw; /* Allows it to scale with screen */
    max-width: 400px; /* Prevent it from becoming too large */
    margin: 0 auto; /* Ensures it is fully centered */
  }

  .contact-info-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content */
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }

  .contact-info-container p {
    font-size: 1rem;
    word-wrap: break-word; /* Prevent text from overflowing */
    text-align: center;
  }

  .contact-icon,
  .email-icon {
    width: 2rem; /* Adjust icon size */
    height: 2rem;
  }

  /* Centering Section Text and Title */
  .section_text_p1,
  .title {
    text-align: center; /* Ensure text is centered */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%; /* Ensure it spans the full width */
    padding: 0 1rem; /* Add some padding for better layout */
    margin: 0 auto; /* Ensures full centering */
  }




/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
  display: flex;  /* Enables flexbox */
  justify-content: center;  /* Centers content horizontally */
  align-items: center;  /* Centers content vertically */
}

footer p {
  text-align: center;
  width: 100%;  /* Ensures full width for proper centering */
}


@media (max-width: 768px) {
  footer {
    display: none;
  }
}

/* 📌 Chat Widget Position */
#chat-widget {
  position: fixed;
  bottom: 40px;
  right: 20px;
  font-family: Arial, sans-serif;
}

/* 📌 Chat Box */
#chat-box {
  display: none; /* Initially hidden */
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 500px;
  max-height: 450px;
  background: white;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease-in-out;
}

/* Show chat box when active */
#chat-box.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* 📌 Chat Header */
#chat-header {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  font-weight: bold;
  position: relative;
}



/* Move AI Powered text to the right */
#ai-powered {
  font-size: 16px;
  color: #fff;
  padding: 5px 10px;
  border-radius: 10px;
  position: absolute;
  right: 45px; /* Moves AI Powered text closer to the close button */
  top: auto;
  transform: translateY(-50%);
  animation: fadeEffect 2s infinite alternate;
  transition: all 0.3s ease;
}

@keyframes fadeEffect {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}



/* 📌 Close Chat Button */
#close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* 📌 Chat Body */
#chat-body {
  max-height: 300px;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 📌 Chat Footer */
#chat-footer {
  display: flex;
  padding: 10px;
  background: #f1f1f1;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

#chat-footer input {
  flex-grow: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  outline: none;
}

#send-btn {
  margin-left: 5px;
  padding: 8px 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#send-btn:hover {
  background: #0056b3;
}

/* 📌 Chat Messages */
.user-msg {
  align-self: flex-end;
  background: #007bff;
  color: white;
  padding: 8px 12px;
  border-radius: 10px 10px 0 10px;
  max-width: 70%;
  word-wrap: break-word;
}

.bot-msg {
  align-self: flex-start;
  background: #f9f9f9;
  color: black;
  padding: 8px 12px;
  border-radius: 10px 10px 10px 0;
  max-width: 80%;
  word-wrap: break-word;
}

/* 📌 Styling for Bot Messages Containing Lists */
.bot-msg ul {
  padding-left: 20px;
  margin: 5px 0;
  list-style-type: none; /* Removes default bullets */
}

.bot-msg ul li {
  background: #e3f2fd;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.bot-msg ul li::before {
  content: "✅"; /* Adds a checkmark before each certification */
  margin-right: 10px;
  color: #007bff;
  font-weight: bold;
}

/* 📌 Chat Notification Bubble */
#chat-notify {
  position: fixed;
  bottom: 50px; /* Adjust based on chat button */
  right: 135px; /* Aligns beside chat button */
  background: white;
  color: black;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 16px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  animation: fadeInOut 3s infinite alternate;
  white-space: nowrap;
}

/* 📌 Speech Bubble Arrow */
.chat-arrow {
  position: absolute;
  top: 50%;
  right: -10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid white;
  transform: translateY(-50%);
}

/* 📌 Animation for Bubble */
@keyframes fadeInOut {
  0% {
      opacity: 0;
      transform: translateY(10px) scale(0.9);
  }
  100% {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}

/* 📌 Hide Notification when Chat is Open */
.hidden {
  display: none;
}

/* 📌 Chat Button (Increased Size) */
#chat-toggle {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #007bff;
  border: none;
  width: 80px;  /* Bigger button */
  height: 80px; /* Bigger button */
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Remove extra padding */
}

/* 📌 Adjust Icon Size Inside Button */
#chat-toggle img {
  width: 60px;  /* Bigger image */
  height: 60px; /* Bigger image */
  object-fit: contain; /* Ensures proper scaling */
}

/* 📌 Hover Effect */
#chat-toggle:hover {
  transform: scale(1.1);
}

@media (max-width: 767px) {
  /* 📌 Chat Widget Position */
  #chat-widget {
    bottom: 20px;
    right: 10px;
  }

  /* 📌 Chat Box */
  #chat-box {
    bottom: 70px; /* Adjusted for mobile */
    right: 10px;
    width: 90%; /* Full width on small screens */
    max-width: 350px; /* Ensures it doesn’t get too large */
    max-height: 400px; /* Slightly smaller height */
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
  }

  /* 📌 Show chat box when active */
  #chat-box.active {
    display: block;
    opacity: 1;
    transform: scale(1);
  }

  /* 📌 Chat Header */
  #chat-header {
    padding: 10px; /* Reduce padding */
    font-size: 14px; /* Adjust font size */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  /* 📌 AI Powered Text */
  #ai-powered {
    font-size: 12px; /* Smaller size */
    right: 40px; /* Adjusted positioning */
  }

  /* 📌 Close Chat Button */
  #close-chat {
    font-size: 16px; /* Reduce button size */
  }

  /* 📌 Chat Body */
  #chat-body {
    max-height: 250px; /* Smaller scroll area */
    padding: 10px; /* Reduce padding */
    font-size: 14px;
  }

  /* 📌 Chat Footer */
  #chat-footer {
    padding: 8px; /* Reduce padding */
  }

  #chat-footer input {
    padding: 8px;
    font-size: 14px;
  }

  #send-btn {
    padding: 6px 10px; /* Reduce button size */
    font-size: 14px;
  }

  /* 📌 User & Bot Messages */
  .user-msg, .bot-msg {
    padding: 6px 10px; /* Reduce message padding */
    font-size: 13px;
    max-width: 75%; /* Adjust message width */
  }

  /* 📌 Chat Notification Bubble */
  #chat-notify {
    bottom: 40px; /* Adjusted for mobile */
    right: 110px;
    padding: 8px 12px;
    font-size: 14px;
  }

  /* 📌 Chat Button (Smaller on Mobile) */
  #chat-toggle {
    bottom: 20px;
    right: 20px;
    width: 60px; /* Smaller button */
    height: 60px; /* Smaller button */
  }

  /* 📌 Adjust Chat Icon Size */
  #chat-toggle img {
    width: 40px; /* Adjusted for smaller screens */
    height: 40px;
  }
}


.typing-indicator {
  font-size: 1.2rem;
  font-weight: bold;
  color: #007bff; /* Blue color */
  text-align: center;
  animation: typing 1.5s infinite steps(5);
}

@keyframes typing {
  0% {
    content: "Typing";
  }
  25% {
    content: "Typing.";
  }
  50% {
    content: "Typing..";
  }
  75% {
    content: "Typing...";
  }
  100% {
    content: "Typing";
  }
}


/* Timeline Section */
#timeline-section {
  width: 100%;
  min-height: 100vh;
  flex-direction: column; /* Align title and timeline vertically */
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 80px 0; /* Ensures content is not stuck to the top */
  margin-top: 18rem; /* Creates space after the previous section */
  z-index: 2; /* Keeps it above other elements */
  padding-right: 2%;
  padding-left: 2%;
}

/* Timeline Line */
line {
  stroke: #007bff;
  stroke-width: 4;
}

/* Timeline Dots */
.timeline-dot {
  fill: black;
  stroke: white;
  stroke-width: 2;
  transition: transform 0.3s, fill 0.3s ease-in-out;
}

.timeline-dot:hover {
  fill: #007bff;
  transform: scale(1.3);
}

/* Highlight for Sciera (Still Working) */
.glowing-dot {
  fill: red;
  animation: glowEffect 1.5s infinite alternate;
}

@keyframes glowEffect {
  0% {
    filter: drop-shadow(0 0 5px red);
  }
  100% {
    filter: drop-shadow(0 0 15px red);
  }
}

/* Year Labels (Alternating) */
.event-label {
  font-size: 0.9rem;
  fill: #333;
  font-weight: bold;
  text-anchor: middle;
}

/* Event Descriptions (Alternating) */
.event-desc {
  font-size: 0.8rem;
  fill: #666;
  text-anchor: middle;
}

/* Blinking Effect */
.blinking {
  font-weight: bold;
  font-size: 1.2rem;
  animation: blinkRed 1.5s infinite;
}

@keyframes blinkRed {
  0%, 100% { color: red; opacity: 1; }
  50% { color: red; opacity: 0.5; }
}

/* Title Positioned at the Top Center */
.timeline-title {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  #timeline-section {
    padding: 40px 0; /* Add space above/below */
  }

  .timeline-title {
    font-size: 1.4rem; /* Smaller title */
    top: 2%;
    width: 90%;
  }

  .event-label, .event-desc {
    font-size: 0.7rem;
  }
}

/* This rule will override any conflicting rules and fix the timeline size */
#timeline-section .timeline-container svg {
  width: 100% !important;
  height: auto;
}
