@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Fuzzy+Bubbles:wght@400;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
* {
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
}

.hero-section {
    width: 100%;
    height: 100vh;
    background-image: url("./assets/background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: serif;
}

/*Navigation Bar*/
.hero-section nav {
    height: 10%;
    background-color: rgba(255,255,255,0.1);
    box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
    font-size: 150%;
    font-family: "Fuzzy Bubbles", sans-serif;
    font-weight: 700;
    animation: fadeInUp 0.6s ease-out;
}

.hero-section nav ul {
    height: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-section nav ul li {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.hero-section nav ul a {
    width: 100%;
    color: white;
    text-decoration: none;
    margin: 0 30px;
}

.hero-section nav ul li:not(:first-child) a:hover {
    background-color: rgba(255,0,0,0.5);
}

.hero-section nav ul li:first-child{
    margin-right: auto;
    padding-left: 3%;
}
/*Navigation Bar*/

.hero {
    width: 100%;
    height: 90%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2%
}

.description {
    font-size: 170%;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    animation: fadeInLeft 0.6s ease-out;
}

.description a {
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
}

.button {
    display: inline-block;
    padding: 2% 9%;
    margin: 5% 10% 0 0;
    cursor: pointer;
    background-color: #21bcf4;
    border: transparent;
    border-radius: 20px;
    color: white;
    font-size: 80%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover{
    background-color: #187ea3;
    border: transparent;
    transform: scale(1.05);
}

#name {
    font-size: 150%;
    font-weight: 900;
    background-image: linear-gradient(
        to right,
        #A0BCF6,
        #AFC0F1,
        #BEC3EB,
        #CCC7E6,
        #DBCAE0,
        #EACEDB,
        #EACEDB,
        #DBCAE0,
        #CCC7E6,
        #BEC3EB,
        #AFC0F1,
        #A0BCF6
    );
    background-clip: text;
    color: transparent;
    background-size: 200%;
    animation: text-gradient-move 2s linear infinite;
}

.hero img {
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 3px 3px 5px rgba(255,255,255,0.2);
    animation: fadeInRight 0.6s ease-out;
}

.about {
    width: 100%;
    background-color: rgb(11, 11, 37);
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
}

.contact {
    width: 100%;
    background-color: rgb(11, 37, 34);
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;   
}

.self-description, .self-contact {
    width: 70%;
    font-family: 'Segoe UI', 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-top: 2%;
    margin-bottom: 2%;
}

.self-description img, .self-contact img {
    width: 25%;
}

.big-title {
    font-size: 490%;
    font-family: "Bagel Fat One", system-ui;
    font-weight: 500;
    color: #ddcbf3;
}

.self-description p, .self-contact p {
    font-size: 120%;
    margin: 1% 0 4% 0;
}

.project {
    width: 100%;
    background-color: rgb(37, 11, 28);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3%;
    padding-bottom: 3%;
}

.project-container {
    width: 70%;
    min-height: 2000px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 2%;
}

.project-item-container {
    position: relative;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.card:hover {
    transform: rotateY(180deg);
}

.front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2%;
    padding: 0 5% 0 5%;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50px;
}

.front span h3, .back h3 {
    font-size: 220%;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.front span p, .back span {
    font-size: 120%;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    margin-top: 5%;
}

.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.back h3 {
    margin-top: 5%;
}

.back ul, .back li{
    list-style-position: inside;
    text-align: left;
}

.back a {
    text-decoration: none;
    font-size: 150%;
    margin: 2%;
    padding: 2% 5%;
}

.back div {
    display: block;
    width: 100%;
    margin: 5%;
}

.book-note img {
    width: 50%;
    border: 3px solid black;
    border-radius: 10px;
}

.ip-camera img {
    width: 40%;
    border: 3px solid black;
    border-radius: 10px;  
}

.weather img {
    width: 25%;
    border: 3px solid black;
    border-radius: 10px;
}

.reach img, .others img {
    width: 5%;
    margin: 0 1% 1% 1%;
    border-radius: 50%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.reach img:hover, .others img:hover {
    box-shadow: 0 0 20px 5px rgba(113, 180, 204, 0.7);
    transform: scale(1.1);
}

footer {
    width: 100%;
    background-color:  rgb(11, 37, 34);
    color: white;
}

.footer-container {
    background-color: rgba(255,255,255,0.1);
    box-shadow: 2px -3px 5px rgba(11, 37, 34, 0.5);
}

.footer-container nav ul {
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
    font-size: 110%;
}

.footer-container nav ul li {
    padding: 0 2%;
    margin: 2% 0 1% 0;
}

.footer-container nav ul li:first-child{
    margin-right: auto;
}

.footer-container nav ul li a {
    text-decoration: none;
    color: white;
}

.footer-container nav ul li:not(:first-child) a:hover {
    color: #73f3f3;
}

@keyframes text-gradient-move {
    from {
        background-position: 0;
    }
    to {
        background-position: 200%;
    }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1000px) {
    .hero-section {
        width: 100vw;
        height: 100vh;
        font-size: 50%;
    }

    .hero {
        font-size: 115%;
    }

    .hero img{
        width: 40%;
    }
}