/* GENERAL */

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

/* Reset default margins and padding */
* {
  margin: 0;
  padding: 0;
}

/* Base body styles with custom font and background */
body {
  font-family: "Poppins", sans-serif;
  background-color: #3B3355;
  
}

/* Enable smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* Default paragraph color */
p {
  color: rgb(0, 119, 182);
}

/* Override paragraph color within text containers */
.text-container > p {
  color: black;
}

/* Large first letter styling for about paragraphs */
p.about::first-letter {
  font-size: 2em;
}

/* TRANSITION */

/* Add smooth transitions to links and buttons */
a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

/* Flex layout for navigation elements */
nav,
.nav-links {
  display: flex;
}

/* Main navigation bar styling */
nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  color: white;
  background-color: rgba(48, 41, 71, 0.183);
}

/* Navigation links container */
.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

/* Active state for nav links */
nav a:active{
  color:RGB(24, 242, 178);
}

/* Reduce opacity for non-active nav items */
.nav-links li:not(.active) {
  opacity: 0.8;
}

/* Focus state for nav links */
nav a:focus {
  color:RGB(24, 242, 178);;
}

/* Active link styling */
.nav-links li a.active {
  color:RGB(24, 242, 178);
  text-decoration: underline;
}

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

/* Hover effects for links */
a:hover {
  color:RGB(24, 242, 178);
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: RGB(24, 242, 178)
}

/* Logo styling */
.logo {
  font-size: 2rem;
  color: black;
  text-transform: uppercase;
}

/* Logo hover effect */
.logo:hover {
  cursor: default;
  color: azure;
  transition: 0.5s ease-in;
}

/* HAMBURGER MENU */

/* Hide hamburger nav by default */
#hamburger-nav {
  display: none;
}

/* Hamburger menu container */
.hamburger-menu {
  position: relative;
  display: inline-block;
  z-index: 1 ;
}

/* Hamburger icon styling */
.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: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

/* Mobile menu links container */
.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;
}

/* Mobile menu link styling */
.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;
}

/* Remove bullets from mobile menu */
.menu-links li {
  list-style: none;
}

/* Open state for mobile menu */
.menu-links.open {
  max-height: 300px;
}

/* Hamburger icon animations */
.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);
}

/* Reset hamburger icon states */
.hamburger-icon span:first-child {
  transform: none;
  opacity: 1;
}

/* SECTIONS */

/* General section styling */
section {
  padding-top: 4vh;
  height: auto;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

/* Flex container for sections */
.section-container {
  display: flex;
}

/* PROFILE SECTION */

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

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

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

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  color: white;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid black;
  animation: typing 5s steps(30, end), blink 0.5s infinite alternate;
}

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

.section-title::before {
  content: "◆ ";
  color: RGB(24, 242, 178);
}

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

img{
  border-radius: 100rem;

}

img.icon:hover{
  transform: scale(1.1);
}

.section-bio{
  text-align: justify;
  color: white;
  margin: 20px;
}

p.section-bio::first-letter {
  font-size: 2em;
}

/* 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 {
  background: rgb(0, 119, 182);
  border: rgb(24, 242, 178) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
  background: rgb(24, 242, 178);

}

.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 .details-container:nth-child(odd) {
  background-color: #a8b7cc;
}

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

[company = "position"]{
  font-style: italic;
}

[company = "company"]{
  color: darkslategray;
}

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

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: #BFCDE0;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
  box-shadow: 9px 10px 20px 0px #060509;
}

.details-container.color-container:hover {
  transform: scale(1.1);
  transition: 0.5s ease-in;
}

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

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

/* EXPERIENCE SECTION */

#experience {
  position: relative;
  margin-top: 100px;
}

.experience-sub-title {
  color: rgb(0, 119, 182);
  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;
}

/* PROJECTS SECTION */

#projects {
  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;
  margin-bottom: 26px;
    margin-top: 30px;
}

#projects .article-container {
  height: 240px;
}

.project-btn {
  color: black;
  border-color: rgb(24, 242, 178);
}

#e-commerce {
  margin-bottom: 70px;
}

/* CONTACT */

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

form {
  display: grid;
  margin: 20px;
  padding: 20px;
  border:0.1rem solid;
  border-color: white;
  background-image: radial-gradient(rgba(0, 0, 0, 0),rgb(22, 18, 35));
  border-radius: 2rem;
  padding-right: 40px;
}

label {
  color:white;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius : 2rem;
}

input:valid {
  border-color: rgb(0, 0, 0);
}

input:invalid {
  border-color: rgb(255, 0, 0);
}

input:required:invalid {
  border-color: rgb(255, 0, 0);
}

button {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  background: rgb(0, 119, 184);
  border: rgb(24, 242, 178) 0.1rem solid;
}

button:hover{
  cursor: pointer;
  background: rgb(24, 242, 178);
}



.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border:0.1rem solid;
  border-color: white;
  background-image: radial-gradient(rgba(0, 0, 0, 0),rgb(22, 18, 35)); 
  margin: 2rem auto;
  padding: 0.5rem;
  animation: bounce 2s infinite ;

}

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

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

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 15vh;
  margin: 0 rem;
  background-color: rgba(48, 41, 71, 0.183);
}

footer p {
  text-align: center;
  margin-top: 1rem;
  color: black;
}

footer .icon {
  height: 1rem;
}

.contact-footer{
  position: relative;
  bottom: 0px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0); /* Start at the original position */
  }
  40% {
      transform: translateY(-30px); /* Move up */
  }
  60% {
      transform: translateY(-15px); /* Move down slightly */
  }
}



@media screen and (max-width: 1400px) {
  #profile {
    height: 83vh;
    margin-bottom: 6rem;
  }
  .about-containers {
    flex-wrap: wrap;
  }
  #contact,
  #projects {
    height: fit-content;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from {
    border-right-color: black;
  }
  to {
    border-right-color: transparent;
  }
}

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
  }
  #experience,
  .experience-details-container {
    margin-top: 2rem;
  }
  #profile,
  .section-container {
    display: block;
  }
  .arrow {
    display: none;
  }
  section,
  .section-container {
    height: fit-content;
  }
  section {
    margin: 0 5%;
  }
  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }
  .about-containers {
    margin-top: 0;
  }
}

@media screen and (max-width: 600px) {
  #contact,
  footer {
    height: 40vh;
  }
  #profile {
    height: 83vh;
    margin-bottom: 0;
  }
  article {
    font-size: 1rem;
  }
  footer nav {
    height: fit-content;
    margin-bottom: 2rem;
  }
  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }
  .contact-info-container {
    margin: 0;
  }
  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
  }
  .experience-sub-title {
    font-size: 1.25rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .section__pic-container {
    width: auto;
    height: 46vw;
    justify-content: center;
  }
  .section__text__p2 {
    font-size: 1.25rem;
  }
  .title {
    font-size: 2rem;
  }
  .text-container {
    text-align: justify;
  }
}