/* General */

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


* {
    margin: 0;
    padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to left, rgb(182, 181, 181), rgb(110, 97, 79), rgb(137, 119, 94));
}

html {
    scroll-behavior: smooth /* smooth transition for each pg link NOT INSTANT */
}

p{
    color: rgb(4, 4, 4);
}
/* Transition for links and class button between two styles */

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

/* Desktop Navigation */

nav, 
.nav-links {
    display: flex;      /* flex allows you to adjust with the view width */
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;      /* the height will take up 17% of the screen */
}

.nav-links {
    gap: 2rem;         /* adds gap between elements that are flexed */
    list-style: none;  /* removes bullet points */
    font-size: 1.5rem; /* increased .5 above standard 'root element'(rem) will keep font size consistent & responsive across different devices and screen sizes */
}

a {                    /* styling link element */
    color:black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: white;
    text-decoration: underline;    /* puts a line under the text */ 
    text-underline-offset: .5rem;   /* adds space between text & underline */
    text-decoration-color: rgb(181, 181, 181);
}

.logo {
    font-size: 1.5rem;    
}

.logo:hover {
    cursor: default;      /* keeps the cursor as you hover instead on changing to a line when hovering over logo */
}

/* Hamburger Menu */

#hamburger-nav {          /* when in desktop it will NOT show */
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

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

.hamburger-icon span {  /* turn hamburger menu into X when clicked */
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0%;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border: transparent;
  border-radius: 1.3rem;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, margin 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.menu-links.menu-open {
  max-height: 500px; /* Adjust based on content */
  padding: 10px;
  margin: 29px;
  background-color: rgba(255, 255, 255, 0.334);
}


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

.menu-links li{
    list-style: none;   /* removes bullet points */
}

.menu-links.open{
    max-height: 300px;  /* pertains to line 4 in JS script */
}

.hamburger-icon.open span:first-child {  /* moving in both X & Y directions as it slightly rotates */
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {  /* moving 2nd line completely */
    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 */
/* each pg is divided into sections */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;          /* top & bottom @ 0 and side @ 10rem */
    box-sizing: border-box;
    min-height: fit-content;  /* makes sure there's no overlapping */

}

.section-container {
    display: flex;
}

/* Profile Section */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 1200;
}

.section__text__p1 {
    text-align: center;
}

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

#cwd {
  display: block;
}

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

#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: 4rem;
  }
  
  .btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 10rem;
    border-radius: 8%;
  }

.btn-color-1,
.btn-color-2 {
  border: rgb(2, 1, 1) 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(1, 1, 1);
}

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

.btn-color-2:hover {
    border: rgb(246, 240, 240) 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 {   /* styling for both profile pics */
    border: .8px solid black;
    border-radius: 2rem;
    box-shadow: 0 0 25px black;
  }

  .about-pic:hover {
    -webkit-box-reflect: below 2px linear-gradient(transparent, black);
    box-shadow: 0 0 5px;
    margin-bottom: 4.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: black;
    text-align: center;
  }
  
  .section-container {
    gap: 4rem;
    height: 80%;
  }
  
  .section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
  }
  
  /* Experienc Section */

#experience {
    position: relative;
  }

  .experience-sub-title {
    color: rgb(7, 7, 7);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 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 {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
  }
  
  article .icon {
    cursor: default;
  }

  #certs:hover {
    background: rgba(27, 27, 27, 0.757);
    padding: .5rem;
    border-radius: 6%;
  }

  /* Project Section */

#projects {
  margin-block: 10rem;
}

figure {
  width: 20vw;
  height: 45vh;
}

.img-cover {
  width: 100%;
  height: 30vh;
  border: 5px double #232121;
  border-radius: 5%;
}

.carousel-container {
  display: flex;
  align-items: center;
  min-width: 100%;
  max-width: 980px;
  position: relative;
}

.carousel {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  scroll-snap-align: center; /* Ensures snapping to each item */
}

.project-card {
  min-width: calc(100% / 3.8); /* Show 3 items on larger screens */
  padding: 20px;
  margin: 15px;
  background-color: rgba(39, 39, 39, 0.264);
  color: #fff;
  text-align: center;
  border: 2px solid rgb(46, 45, 45);
  border-radius: 8.1%;
  box-shadow: 5px 5px 10px 10px rgba(249, 246, 246, 0.377);
}

#prevBtn,
#nextBtn {
background: rgba(249, 246, 246, 0.377);
padding: 3px;
border: 1.3px solid black;
border-radius: 1rem;
box-shadow: 0 0 10px black;
}
  
  /* Contact */
  
  #follow {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
  }
  
  .contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: 0.1rem solid rgb(53, 53, 53);
    border-color: rgb(6, 6, 6);
    background: rgb(250, 250, 250);
    margin: 2rem auto;
    padding: 0.5rem;
  }
  
  .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: 2.5rem;
  }

  #con_:hover {
    color:rgb(133, 98, 2);
  }
  
  /* Footer Section */
  
  footer {
    height: 26vh;
    margin: 0 1rem;
  }
  
  footer p {
    text-align: center;
  }
  
  .popover-container {
    position: relative;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 3rem;
  }

  .popover-content {
    position: absolute;
    font-size: .8rem;
    background: #333;
    color: #fff;
    padding: 8px;
    border-radius: 8%;
    top: 100%;
    left: -50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
  }

  .popover-container:hover .popover-content {
    opacity: 1;
    visibility: visible;
  }

/* New site */

  .free {
    display: inline;
    max-width: 50vw;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border: 4rem solid rgb(36, 36, 36); 
    border-radius: 8%;
    box-shadow: 0 0 25px black;
  }

/* Contact Form Section */

.contact-form {
  display: flex; 
  flex-direction: column; /* Ensure proper stacking of inputs */
  align-items: center; /* Center form elements */
  width: 100%;
  padding: 2rem;
}

.contact-form input, .contact-form textarea {
    background: #f0efef35;
    color: rgb(39, 39, 39);
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1.2px solid #ccc;
    border-radius: 8%;
}
::placeholder {
  color: #333333;
  opacity: 1;
}

.contact-form button {
  padding: 10px;
  background: rgb(39, 39, 39); 
  color: white;
}

.contact-form button:hover {
    background: black;
}
