@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(rgb(6, 2, 66), rgba(69, 105, 178, 0.5));
    background-repeat: no-repeat;
    min-height: 100vh;
}

@keyframes spin {
  
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.loading-screen img {
  width: 100px;
  height: auto;
  animation: spin 1s linear infinite; /* Apply spin animation to the image */
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.logo{
    height: 40px;
}

.nav-item {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    line-height: 25px;
    letter-spacing: -0.13px;
    text-decoration: none;
    margin-left: 2.5rem;
    transition: all 0.5s ease;
    color: white;
}

.nav-item:hover {
    color: rgba(168,239,255,0.9);
}

.nav-item:after {
    content: "";
    position: absolute;
    bottom: -0.3rem;
    left: 50%;
    width: 0;
    height: 0.15rem;
    transform: translateX(-50%);
    background-color: rgba(168,239,255,0.9);
    transition: all 0.5s ease;
}

.nav-item:hover:after {
    width: 100%
}

.nav-item.active {
    color: rgba(168,239,255,0.9);
}

.nav-item.resume {
    border: 2px solid rgba(168, 239, 255, 1); 
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-item.resume:hover {
    background: rgba(168, 239, 255, 0.2);
    color: rgba(168, 239, 255, 1);
}

.icons {
    position: absolute;
    right: 5%;
    font-size: 2.3rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

/* HOME CONTENT */

.home-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex: 1;

}

.home-content h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 600;
    -webkit-text-stroke: 2px rgba(168,239,255,0.9);
    color: transparent;
    transition: all 0.5s ease;
    animation: arrowPulse 1.5s ease-in-out infinite;
}


@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.background-video {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* ABOUT CONTENT */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 50px 10%;
    gap: 20px;
}

.about {
    max-width: 600px;
    flex: 1 1 50%;
    text-align: left;
}

.about h1 {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.about h3 {
    font-size: 24px;
    font-weight: 600;
    color:rgba(168, 239, 255, 1);
    margin-bottom: 15px;
}

.about p {
    font-size: 16px;
    line-height: 1.6;
    color: #ededed;
    margin-bottom: 1rem;
}

.about-img {
    flex: 1 1 30%; 
    text-align: center;
}

.about-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}


.down-arrow {
    margin-top: 20px;
    font-size: 2rem;
    color: white;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.7;
    }
}

/* MEDIA QUERIES */


@media (min-aspect-ratio: 16/9) {
    .background-video {
        width: 100%;
        height: auto;
    }
}
@media (max-aspect-ratio: 4/3) {
    .background-video{
        width: auto;
        height: 100%;
    }
}


@media (max-width: 900px) {
    header {
        padding: 1.3rem 5%;
    }
}

@media (max-width: 700px) {
    header::before {
        position: absolute;
        content: "";
        inset: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.1);
        backdrop-filter: blur(50px);
        z-index: -1;
    }

    header::after {
        position: absolute;
        content: "";
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: 0.8s;
    }

    .icons {
        display: inline-flex;
    }

    #check:checked ~ .icons #menu-icon {
        display: none;
    }

    .icons #close-icon {
        display: none;
    }

    #check:checked ~ .icons #close-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(0,0,0,0.9);
        backdrop-filter: blur(50px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
        overflow: hidden;
        transition: all 0.3s ease;
    }

    #check:checked ~ .navbar {
        height: 20rem; /* Increase the height to fit all items */
    }

    .nav-item {
        display: block;
        font-size: 1.1rem;
        margin: 2rem 0;
        text-align: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-item:hover::after {
        width: auto;
    }

    #check:checked ~ .navbar a {
        transform: translateY(0);
        opacity: 1;
        transition-delay: calc(0.15s * var(--i));
    }
}


@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about {
        text-align: center;
    }

    .about-img {
        margin-top: 20px;
    }
}

@media screen and (max-width: 400px) {
    .home-content h1 {
        text-align: center;
    }
}

/* PROJECTS SECTION */
 #projects.content {
    padding: 80px 10% 40px;
    position: relative;
    z-index: 1; 
  }
  
  #projects h1 {
    text-align: center;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 2rem;
  }

  #projects h3 {
    font-size: 24px;
    font-weight: 600;
    color:rgba(168, 239, 255, 1);
    margin-bottom: 30px;
    text-align: center;


  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
    display: flex;
    flex-direction: column;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .project-image {
    margin-top: 20px;
    width: 100px;
    height: 100px; 
    border-radius: 50%;
    object-fit: cover; 
    margin: 20px auto 1rem; 
    display: block;
  }
  
  .project-info {
    padding: 1rem;
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .project-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(168, 239, 255, 1);
    text-align: center;
  }
  
  .project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ededed;
    margin-bottom: 1rem;
    text-align: center;
  }

  .project-tools {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #ededed;
    text-align: center;
    
  }

  .project-tools p.lang {
    font-weight: bold;
    font-size: 1rem;
  }
  
  
  @media screen and (max-width: 600px) {
    #projects h1 {
      font-size: 2.4rem;
    }
    .project-title {
      font-size: 1.3rem;
    }
  }


  /* CONTACT SECTION */
#contact.content {
    padding: 80px 10% 40px;
    position: relative;
    z-index: 1;
  }
  
  #contact h1 {
    text-align: center;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 2rem;
  }
  
  .contact-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
  }
  
  .contact-info {
    flex: 1 1 200x;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
  }
  
  .contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: rgba(168, 239, 255, 1);
    text-align: center;
    text-shadow: 0 0 10px rgba(8, 56, 66, 0.8), 0 0 20px rgba(125, 219, 240, 0.6), 0 0 30px rgba(168, 239, 255, 0.4);
  }
  
  .contact-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ededed;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 750px;
    word-wrap: break-word;
  }
  
  .contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-evenly; 
  }
  
  .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    background-color: transparent;
    border: 2px solid rgba(168, 239, 255, 1);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
  }
  
  .contact-link:hover {
    background-color: rgba(168, 239, 255, 0.2);
    color: rgba(168, 239, 255, 1);
  }
  
    
  .contact-btn {
    align-self: center;
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(168, 239, 255, 1);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .contact-btn:hover {
    background-color: rgba(168, 239, 255, 0.2);
    color: rgba(168, 239, 255, 1);
  }
  
  @media screen and (max-width: 768px) {
    .contact-container {
      flex-direction: column;
      align-items: stretch;
    }
  
    .contact-info,
    .contact-form {
      width: 100%;
      margin: 0 auto;
    }
  }


.email-me {
    flex: 1 1 200px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    color: #fff;
    text-align: center;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.email-me h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: rgba(168, 239, 255, 1);
    text-align: center;
    text-shadow: 0 0 10px rgba(8, 56, 66, 0.8), 0 0 20px rgba(125, 219, 240, 0.6), 0 0 30px rgba(168, 239, 255, 0.4);
}

/* Footer */
footer {
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loading-screen img {
    width: 100px;
    height: auto;
}

