@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
}

body {
  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,
.nav-links {
  display: flex;
}

nav {
  background-color: #000;
  justify-content: space-around;
  align-items: center;
  height: 17vh;

}

/* HAMBURGER MENU STYLES (IF NEEDED) */
#hamburger-nav {
  display: none;
  justify-content: flex-end; /* Moves the hamburger menu to the right */
}

/* DESKTOP NAVIGATION STYLES */
.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1rem;
}

.nav-links a {
  background-color: transparent;
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  text-decoration: none; /* No underline */
  font-weight: 600;
  font-size: small;
  transition: 0.3s;
  opacity: 1;
  color: antiquewhite;

}

.nav-links a:hover {
  color: grey; /* Hover color */
  border-bottom: 1.5px solid grey;
  border-top: 1.5px solid grey; /* Add top line */
  padding-top: 5px; /* Space between text and top line */
  padding-bottom: 5px;
  text-decoration: none; /* Prevent underline on hover */
}

/* GENERAL ANCHOR STYLES */
a {
  color: black;
  text-decoration: none;
}

a:hover {
  color: grey; /* General hover color */
  text-decoration: underline; /* Underline on hover */
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

/* Prevent underline for nav links specifically */
.nav-links a:hover {
  text-decoration: none; /* Override general style */
}



/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
  justify-content: flex-end; /* Moves the hamburger menu to the right */
}

.hamburger-menu {
  position: relative;
  display: inline-block;
  margin-right: 2rem;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: antiquewhite;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

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

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

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

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

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

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

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */


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

.section-container {
  margin-top: 3vh;
  display: flex;
}

/* PROFILE SECTION */

#profile {
  margin: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  background-color: #141414;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  
  overflow: hidden; /* Ensure content doesn't overflow the curved edges */
}


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

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

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1.6rem;
  font-size: small;
  animation: slideLeft 1.5s ease forwards;
  animation-delay: 1.5s;
}

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

.title1 {
  font-size: 4rem;
  text-align: center;
  font-family: "Times New Roman", Times, serif;


  color: antiquewhite;
  animation: slideBottom 1.5s ease forwards;
  animation-delay: 1.5s;
 

}
.title {
  font-size: 3rem;
  text-align: center;
  font-family: "Times New Roman", Times, serif;

 


}
#socials-container {
  display: flex;
  justify-content: center;
  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;
  color: antiquewhite;
  
}

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

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

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}
.btn-color-1
{
  animation: slideLeft 1.5s ease forwards;
  animation-delay: 1.5s;
}

.btn-color-2 {
  background: none;
  animation: slideRight 1.5s ease forwards;
  animation-delay: 1.5s;
}

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

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}
.aboutdetailscontainer {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#ee {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}
.intro-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}
.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}
.article-container1 {
  
  text-align: initial;
  
  gap: 2.5rem;
  justify-content: space-around;
}
/* Existing article styling */
article {
  display: flex;
  width: 100%;
  justify-content: start;
  gap: 1.2rem;
  align-items: center;
}

.icon {
  width: 2rem; /* Adjust icon size */
}

/* Container for the skill item */
.skill-container {
  gap: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: start; /* Center vertically within the container */
  margin-bottom: 2.5rem; /* Space between skill items */
}

/* Icon styling */
.skill-icon {
  width: 2rem; /* Adjust icon size */
}

/* Content styling */
.skill-content {
  flex-grow: 1; /* Allow content to take remaining space */
  text-align: left;
  
}

/* Skill title styling */
.skill-title {
  margin: 0; /* Remove default margin */
}

/* Skill bar container */
.skill-bar {
  width: 90%;
  height: 0.5rem; /* Height of the bar */
  background-color: #e0e0e0; /* Background color of the empty bar */
  border-radius: 0.25rem; /* Rounded corners */
 
  margin-top: 0.8rem; /* Space between title and skill bar */
  position: relative; /* Relative positioning for percentage */
}

/* Animated skill level */
.skill-level {
 
  height: 100%;
  width: 0%; /* Start with 0% */
  background-color: #000; /* Change the skill level fill to black */
  border-radius: 0.25rem; /* Match the rounded corners of the container */
  display: flex;
  align-items: center; /* Center align percentage text vertically */
  position: relative; /* Position for percentage */
}

/* The percentage display */
.skill-percentage {
  font-size: 0.6rem; /* Font size for the percentage text */
  color: #000; /* Color of the percentage text */
  font-weight: bold;
  position: absolute; /* Absolute positioning */
  right: 0; /* Align to the right end of the skill bar */
  top: -1rem; /* Adjust position above the skill bar */
}

/* Animation for filling the skill bar */
@keyframes fillSkill {
  from {
    width: 0%;
  }
  to {
    width: var(--skill-width); /* Use a CSS variable for dynamic width */
  }
}


/* Animation trigger */
.skill-animate {
  animation: fillSkill 2s ease forwards; /* Animation duration and easing */
}


.education-item, .experience-item {
  display: flex; /* Flexbox for layout */
  align-items: flex-start; /* Align items to the top */
  justify-content: start;
  margin-bottom: 40px; /* Space between items */
 
}
.education-item i, .experience-item i {
  color: #000000; /* Yellow color */
  margin-left: 10px;
  margin-right: 20px; 
  /* Space between icon and text */
  font-size: 1.4em; /* Adjust size as needed */
  position: relative; /* Needed for the line to be relative to icon */
}
.details {
  display: flex;
  flex-direction: column; /* Stack details vertically */
  align-items: start;
}

.details p {
  margin: 0; /* Remove margin from p elements */
}

/* PROJECTS SECTION */

#skills {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

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

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
  gap: 1rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
 
  height: 25px;
  width: 25px;
}
.linkedin-icon {
 
  height: 20px;
  width: 25px;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}


.infocontainer {
  line-height: 35px;
 
  
 
  display: flex;
  justify-content: center; /* Center items horizontally */
 
  
}

.details-left-column,
.details-right-column {

  flex: 1; /* Equal width columns */
  align-items: flex-end; /* Push the column to the right */
  text-align: left; /* Align text to the left */
}

.details-left-column {
  flex: 1; /* Take up only as much space as needed */
  text-align: left; /* Left align text in left column */
}
.details-left-column p,
.details-right-column p {

margin: 0.5rem 0; /* Add spacing between the paragraphs */
}


.email:hover {
    color: grey;; /* Highlight color on hover */
  text-decoration: underline; /* Add underline on hover */
  
   /* Optional: Add a light background highlight */
}

.about-paragraph2 {
  text-align: justify;
 
}


 /* Fullscreen loader container */
 #loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white; /* White background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's above all other content */
}

/* Spinner styling */
.spinner {
  border: 12px solid #f3f3f3; /* Light gray */
  border-top: 12px solid #141414; /* Blue */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1.2s linear infinite;
}

/* Animation for spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Animations */
@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideTOP {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
