* {
    margin: 0;
    font-family: "Inter";
    box-sizing: border-box;
}

body {
    background-color: #faf9f9;
}

.icon {
    display: block;
    width: 32px;
    height: 32px;
}

nav {
    padding-left: 8px;
    background-color: #faf9f9;
    
    /*position: fixed;
    width: 100%; 
    top: 0; 
    display: flex; 
    align-items: center;  */
}

ul {
  display: flex;
  flex-direction: row;
  padding: 0;
  list-style-type: none;
  width: 100%;
}

li {
    padding: 10px;
    font-size: 18px;
}

a {
    color: rgb(27, 26, 26);
    text-decoration: none;
}

li a:hover {
    color: rgb(248, 27, 130);
    text-decoration: underline;
    text-decoration-thickness: 2px; 
    text-underline-offset: 4px;
}

/* Desktop styles */
.icon-nav {
  display: none; /* Hide icons by default */
}

.text-nav li:last-child {
  margin-left: auto;
}

/* Mobile styles */
@media screen and (max-width: 737px) {
  
  nav {
      position: fixed;
      bottom: 0;
      width: 100%;
      z-index: 1;
      background:  rgb(160, 156, 156); 
  }

  .text-nav {
      display: none; /* Hide text links on mobile */
  }

  .navigation {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    
    z-index: 1;
    border-radius: 10px;
  }
  .navigation ul {
    display: flex;
    width: 350px;
  }
  .navigation ul li {
    position: relative;
    list-style: none;
    width: 70px;
    height: 70px;
    z-index: 1;
  }
  .navigation ul li a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .navigation ul li a .icon {
    position: relative;
    display: block;
    line-height: 75px;
    font-size: 1.5em;
    text-align: center;
    transition: 0.5s;
    opacity: 0.75;
  }
  .navigation ul li.active a .icon {
    transform: translateY(-8px);
    opacity: 1;
  }
  
  .indicator {
    position: absolute;
    top: -10px;
    width: 70px;
    height: 70px;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    border: 6px solid var(--clr);
    background: var(--clr);
    cursor: pointer;
    transition: 0.5s;
  }
  .indicator::before {
    content: "";
    position: absolute;
    top: 4px;
    left: -25.75px;
    width: 20px;
    height: 20px;
    border-top-right-radius: 20px;
    box-shadow: 4px -6px 0 2px var(--clr);
  }
  
  .indicator::after {
    content: "";
    position: absolute;
    top: 4px;
    right: -25.75px;
    width: 20px;
    height: 20px;
    border-top-left-radius: 20px;
    box-shadow: -4px -6px 0 2px var(--clr);
    z-index: -1;
  }
  .navigation ul li:nth-child(2).active ~ .indicator {
    transform: translateX(calc(58px * 1));
  }
  .navigation ul li:nth-child(3).active ~ .indicator {
    transform: translateX(calc(58px * 2));
  }
  .navigation ul li:nth-child(4).active ~ .indicator {
    transform: translateX(calc(58px * 3));
  }
  .navigation ul li:nth-child(5).active ~ .indicator {
    transform: translateX(calc(58px * 4));
  }
  .navigation ul li:nth-child(6).active ~ .indicator {
    transform: translateX(calc(58px * 5));
  }
  .indicator span {
    position: absolute;
    bottom: 3px;
    left: -1px;
    width: 60px;
    height: 60px;
    border: 4px solid rgb(248, 27, 130);
    background: #fff;
    border-radius: 50%;
    transform-origin: bottom;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: scale(0.85);
  }
}

  /*Style for home page text*/
  #home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #faf9f9;
    width: 100%;
  }

  .home-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px 0px;
    width: 100%;
    max-width: 900px;
  }
  .home-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 32px;
  }

  h1 {
    color: rgb(19, 17, 17);
    text-align: center;
    font-size: 48px;
  }

  h2 {
    color: rgb(19, 17, 17);
    text-align: center;
    font-size: 32px;
    color:rgb(248, 27, 130)
  }

  .hire {
    width: 30%;
    color: white;
    font-size: 14px;
    background-color: rgb(248, 27, 130);
    padding: 4px;
    border-radius: 20px;
    text-align: center;
    border-style: none;
    margin: 7px;
  }

  /*Style for images in home page*/
  .container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 800px;
    height: 400px;
    gap: 16px;
    transition: all 400ms;
  }
  .card {
    flex: 1;
    height: 100%;
    transition: all 400ms;
    cursor: pointer;
  }
  .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .time-overlay {
    position: relative;
    top: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.5);
    font-family: "Roboto Mono", monospace;
    color: white;
    padding: 10px;
    display: none;
    font-size: 24px;
    text-align: center;
  }

  .container:hover > .card:not(:hover) {
    filter: grayscale(100%);
  }
  .card:hover {
    flex:3;
  }
  .card:hover .time-overlay {
    display: block;
  }

  /*Style for whoami*/
  .whoami {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    width: 100%;
    background-color: #faf9f9;
  }
  
  .whoami-image-container {
    width: 250px;
    height: 350px;
    position: relative;
  }

  .whoami-image {
    width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
  }

  .whoami-header {
    padding: 16px 0px;
    color: rgb(19, 17, 17);
    align-self: flex-start;
  }

  .whoami-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
  }

  .whoami-card {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .image-text {
    position: absolute; /* Allows positioning inside the whoami-image */
    bottom: 0; /* Position text at the bottom */
    left: 1; /* Align text to the left */
    background-color: none; 
    color: white; /* Ensure text visibility */
    padding: 16px; /* Add padding around the text */
    width: 100%; /* Ensure the background covers the width of the image */
    box-sizing: border-box; /* Ensures padding doesn't affect width */
  }

  .image-text h6 {
    padding-bottom: 4px;
    font-size: 10px;
  }

  .outline {
    border: 1px solid white;
    border-radius: 20px;
    padding: 2px 8px;
  }

  .buttonlike-text {
    display: flex;
    gap: 10px;
    padding-top: 8px;
  }

  .whoami-text {
    padding-left: 32px;
    font-size: 15px;
    width: 100%;
    line-height: 2;
  }

  .skills-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
  }
  .skills h4 {
    margin: 24px 0px;
  }

  .skills-icon {
    width: 40px;
    height: 40px;
    margin: 8px;
  }

 /*Style for project section*/

  .projects {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    background-color: #faf9f9;
    max-width: 900px;
  }

 .project-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    
    padding-bottom: 8px;
  }

  .project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 6px 4px 18px -4px #000000;
    width: 224px;
    padding: 16px 16px;
    margin: 8px;
  }

  .project-card:hover {
    box-shadow: 0px 4px 18px -4px #000000;
  }

  .project-icons {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .project-button {
    width: 60%;
    color: white;
    background-color: rgb(248, 27, 130);
    padding: 4px 8px;
    border-radius: 20px;
    text-align: center;
    border-style: none;
    font-size: 14px;

  }

  h5 {
    padding-top: 8px;
  }

/* Style for contact section*/


#contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background-color: #faf9f9;
}

.contact-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  width: 100%;
  max-width: 700px;
}

.contact-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.input-container {
  position: relative;
  width: 100%;
  padding-bottom: 16px;
}

.input-container img {
  position: absolute;
}

.input-icon {
  width: 16px;
  height: 16px;
  text-align: center;
  left: 10px; 
  top: 30%;
  transform: translateY(-50%);
}

input {
  padding: 8px; 
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  padding-left: 30px;
}

textarea {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  height: 100px;
  margin-bottom: 24px;
}

.button-send {
  width: 30%;
  color: white;
  background-color: rgb(248, 27, 130);
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 14px;
  text-align: center;
  border-style: none;
}

.button-send:hover, .hire:hover, .project-button:hover {
  background-color: rgb(199, 13, 100);
}

@media screen and (max-width: 737px) {
  
  #home {
    padding-top: 20px;
  }
  .home-text {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center; 
  }
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }

  .hire {
    width: 50%;
  }
  
  .home-left {
    margin-top: 16px;
  }
  .container {
    display: none; /* Hide container on mobile*/
  }

  .whoami-header {
    display: none;

  }

  .whoami-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .whoami-text {
    display: none; /* Hide text on mobile */
  }

  .skills {
    padding: 24px;
    text-align: center;
  }
  .skills-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  .projects {
    display: flex;
    flex-direction: column;
  }

  #contact {
    margin-bottom: 80px;
  }

}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

