/* 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-color: rgb(230, 222, 213);
} 

html {
    scroll-behavior: smooth;
}

p {
    color: rgb(85, 85, 85);
}

/* Transition */

a,
.btn {
    transition: all 300ms ease;
}

/* Header */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7); 
    color: rgb(230, 222, 213);
    backdrop-filter: blur(8px);
    opacity: 1;
    width: 100%;
}

/* Desktop nav */

nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-between;
    align-items: center;
    height: 8vh;
    padding: 0 4rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    list-style: none;
    font-size: 1.25rem;
}

.nav-link {
  text-decoration: none;
  transition: text-decoration 0.3s;
}

.nav-link.active {
  text-decoration: underline;
  text-decoration-color: grey;
  text-underline-offset: 0.5rem;
}

a {
    color: rgb(230, 222, 213);
    text-decoration-color: white;
    text-decoration: none;

}

a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 0.5rem;    
    text-decoration-color: grey;
}

.logo {
    font-size: 1.5rem;
}

.logo:hover {
    cursor: default;
}

/* Hamburger menu */

#hamburger-nav {
    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{
    width: 100%;
    height: 2px;
    background-color: rgb(230, 222, 213);
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: rgba(255, 237, 222, 0.8);
    border-radius: 5%;
    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 a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 0.3rem;    
    text-decoration-color: grey;}

.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;
}

#hamburger-menu-smaller-span-1 {
    width: 75%;
    align-self: end;
}

#hamburger-menu-smaller-span-2 {
    width: 65%;
    align-self: end;
}

/* Sections */

section {
    padding-top: 4;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}


.section-container {
    display: flex;
}

/* HOME SECTION */

#top, #home {
    cursor: default;
    margin: 0;
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover; 
    z-index: -1;
}

.home-text {
    color: white;
    position: relative;
    width: 75%;
    margin: 0 auto;
    font-size: 2rem;
    text-align: center;
    backdrop-filter: blur(1px);
}
.home-text h2 {
    font-size: 1.25rem;
    letter-spacing: 0.5rem;
}

#home-hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 1rem 0;
}

  /* PROJECTS */

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.older-projects-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    
}

.project-card {
    position: relative;
    width: 40%;
    height: 150px;
    background: none;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 5px 10px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.project-hover-description {
  position: absolute;
  bottom: 0;
  left: 102%; 
  box-sizing: border-box;
  overflow-wrap: break-word;   
  word-wrap: break-word;       
  white-space: normal;  
  overflow: hidden;
  width: 200px;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 5px 10px 10px rgba(0,0,0,0.4);
  padding: 1rem;
  opacity: 0;
  transform: translate(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
  border-radius: 8px;
}

.project-hover-description p {
    color: rgba(255, 255, 255, 0.9);
}

.project-hover-description:hover {
    cursor: default;
}

#description-right {
    left: -49%;
    width: 225px;
    font-size: 0.9rem;
}

.project-card:hover {
    cursor: pointer;
    transform: scale(1.02);
}

.project-card:hover .project-hover-description {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.gif-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none; 
}

.project-card:hover .gif-img {
    opacity: 1;
}

.project-card:hover .static-img {
    opacity: 0;
}

.project-info {
    padding: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 0.8rem;
    border-radius: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.project-info h3 {
    margin-bottom: 1rem;
}

.project-info p{
    color: #92d9ff;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

#project-1 {
    align-self: center;
}

#others-card {
    width: 30%;
    align-self: center;
}

/* Profile section*/

#profile-pic {
    border-radius: 10%;
    clip-path: circle(405px at top left);
}

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text{
    align-self: center;
    text-align: center;
}

.section__text p{
    font-weight:  600;
}

.section__text__p1 {
    cursor: default;
    padding-top: 10vh;
    text-align: center;
}

.section__text__p2 {
    font-size:  1.75rem;
    margin-bottom: 1rem;
}

.title {
    cursor: default;
    font-size: 3rem;
    text-align: center;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top:  1rem;
    gap: 1rem;
    padding-bottom: 1rem;
}

/* Icons */

.icon {
    cursor: pointer;
    height: 2rem;
}

.non-clickable-icon {
    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;
}

.btn-color-1:hover, .btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1, .btn-color-2:hover {
    background: rgb(62, 62, 62);
    color: rgb(230, 222, 213);
}

.btn-color-1:hover {
    background: rgb(0, 0, 0);
    border:  rgb(230, 222, 213) 0.1rem solid;
}

.btn-color-2 {
    background: none;
}

.btn-color-2:hover {
    border:  rgb(230, 222, 213) 0.1rem solid;
}

.btn-container {
    padding-top: 1rem;
    gap: 1rem;
}

hr {
    border: 1.5px solid grey;
    border-radius: 100%;
}

/* 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: 1rem;
    flex: 1;
    background:  rgb(230, 222, 213);
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
}

.section-container {
    gap: 2rem;
    height: 70%;
    display: flex;
    justify-content: center;
    cursor: default;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

span.bold {
    color: rgb(40, 40, 40);
    font-size: 1.1rem;
}

span a {
    color: rgb(40, 40, 40);
    text-decoration: underline;
    text-decoration-color: rgb(40, 40, 40);
    text-underline-offset: 0.3rem;
}

span a:hover {
    cursor: pointer;
    text-underline-offset: 0.3rem;
}

/* Contact */

.contact-info-container  a{
    color: rgb(44, 44, 44);
}

.contact-info-container a:hover{
    color: grey;
}

#contact {
    display: flex;

    justify-content: center;
    flex-direction: column;
    height: 80vh;
}

.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: 100px auto 10px;
    padding: 1rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.email-icon {
    height: 2.5rem;
}

/* Footer */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer a{
    color: rgb(44, 44, 44);
}

footer nav {
    justify-content: space-around;
}

footer p {
    text-align: center;
    padding-top: 2rem;
}

