/* static-site styling */
body{
    font-family: "Montserrat", sans-serif !important;
    background-position: center;
    background-size: cover;
}

html{
    scroll-behavior: smooth;
    box-sizing: border-box;
    overflow-x: hidden;
}

.buttons {
    background-color: #DABCFF;
    box-shadow: 5px 5px #282828;
    border: 1px solid #282828;
    text-decoration: none;
    font-size: 0.9rem;
    width: 10rem;
    border-radius: 2.0rem;
    text-align: center;
    padding: 10px;
}

.buttons:hover{
    box-shadow: 2px 2px #282828; 
    transform: translateY(4px);
    color: #fff;
}

.buttons:active {
    box-shadow: 0px 0px #282828; 
    transform: translateY(6px);
}

/* Navigation style */

body>header {
    width: 100%;
}

    /* ----------------- Hamburger -------------- */

    .hamburger {
        display: none; /* Hidden by default */
    }

#nav {
    position: sticky;
    width: 100vw;
    top: 2.0rem;
    left: 0;
    z-index: 1000;
    color: #000;
    min-height: 2.5rem;
    line-height: 3.0rem;
}

.home {
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid grey;
    padding: 1.0rem 3.0rem;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1.5em;
    margin-top: 0;
}

.home img {
    width: 5%;
}
.home a {
    color: #000;
}
  
.flex-container {
    display: flex;
    justify-content: center;
}
  
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5.0rem;
    background-color: #DABCFF;
    border-radius: 2.5rem;
    width: 60%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
  
.nav-links a {
    text-decoration: none;
    color: #282828;
    font-size: 1.1em;
    font-weight: 500;
}
  
.nav-links a:hover {
    color: #fff;
}

.nav-buttons {
    display: flex;
    flex-direction: row;
    gap: 1.0rem;
    height: 3.0rem;
}

.click-home {
    cursor: pointer;
}

/* --------------- HERO ------------------ */

#hero-image {
    margin-top: 5.0rem;
    height: auto;
    position: relative;
    width: 80%;
    display: flex;
    flex-direction: column;
}

#hero-image h1{
    font-family: 'ivymode', sans-serif;
    font-size: 11.0rem;
    text-transform: uppercase;
}

.hero-name {
    display: inline-flex;
    align-items: center;
    position: relative;
    justify-content: center;
  }

.hero-name img {
    width: 30%; 
    height: auto;
    position: relative;
    z-index: 2; 
}

.hero-name h1 {
    font-size: 13.0rem !important;
    margin-left: 3.0rem;
    
}

.hero-name-last {
    margin-top: -2.0rem;
    text-align: center;
}

.msg1{
    position: absolute;
    width: 15%;
    left: 5%;
    top: 2%;
}

.msg2 {
    position: absolute;
    width: 20%;
    top: 40%;
    left: 25%;
}

h1 {
    display: inline;
    position: relative;
}
  
.hero-running {
    display: flex;
    flex-direction: row;
    gap: 1.0rem;
    background-color: #E1FFBC;
    margin-top: 3.0rem;
    white-space: nowrap;
    animation:  runAnimation 50s  infinite linear;
    /* overflow: hidden; */
}

.hero-line {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    background-color: #E1FFBC;
    margin-left: -1.0rem;
    animation: swap 50s linear infinite;
}

.hero-running p {
    padding: 0.5rem 1.0rem;
}

@keyframes runAnimation {
    from {
      transform: translateX(0%);
    }
    to {
      transform: translateX(-100%);
    }
}

@keyframes swap {
    0%, 50% {
      transform: translateX(0%); 
    }
    50.01%, 100% {
      transform: translateX(100%); 
    }
  }


/*-------------- Main sections style ----------------*/

main > section{
    width: 80.0rem;
    /* max-width: 1280px; */
    margin: 0 auto;
}

.footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 40px;
    color:#868686;
    font-size: 0.8rem;
    height: 4rem;
    line-height: 4rem;
    border-top: 1px solid #282828;
}

.up-button {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}

.up-button:hover {
    transform: scale(1.1);
}

.up-button img {
    width: 40px;
    height: 40px;
}

/* Contact section styling */

.star3{
    position: absolute;
    bottom: -3.0rem;
    right: -124px;
    width: 28%;
    rotate: 64deg;
}

.star4{
    position: absolute;
    top: -3.5rem;
    left: -3.3rem;
    width: 10%;
    rotate: 30deg;
}

.contact-me2 {
    text-align: center;
    padding: 2rem;
    line-height: 2rem;
    animation: fadeIn 0.5s ease-in-out forwards;
    color: #333;
    font-family: 'ivymode', sans-serif;
  }

  .contact-me2 h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .contact-me2 p {
    font-size: 2rem;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

.content-contact{
    height: auto;
    margin: 3.0rem auto;
    position: relative;
}
  
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    background-color: #EDDEFF;
    box-shadow: 10px 10px #D9D9D9;
    border: 1px solid grey;
    padding: 1.5rem 0;
}

.contact-container h1{
    font-family: "ivymode", sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
}
  
.contact-info-box,.contact-form-box {
    width: 30rem;
    height: auto; 
    padding: 20px;
    border-radius: 8px;
}

.contact-form-box{
    color:#333;
    font-size: 1rem;
    line-height: 1.4rem;
    margin: 0 auto;
}

label {
    font-size: 1.0rem;
}

.contact-form input, textarea{
    width: 100%;
    background-color: #E1FFBC;
    padding: 1.0rem;
    color: #282828;
    border-radius: 2rem;
    margin: 0.2rem 0 0.6rem 0;
    border: 1px solid #252525;
    font-family: "Montserrat", sans-serif !important;
}

.contact-form input::placeholder, textarea::placeholder{
    color: #7b7b7b;
    font-family: "Montserrat", sans-serif !important;
}

.contact-form p:last-child {
    text-align: center;
}

#submit {
    background-color: #DABCFF;
    box-shadow: 5px 5px #282828;
    border: 1px solid #282828;
    width: 50%;
}

#submit:hover {
    box-shadow: 2px 2px #282828; 
    transform: translateY(4px);
}

#submit:active {
    box-shadow: 0px 0px #282828; 
    transform: translateY(6px); 
}

/* About Me Section Styling */
  
.about-container {
    height: auto;
    padding: 50px;
    display: flex;
    gap: 50px;
    justify-content: center;
}

.resume{
    margin: 1.5rem 0 2.0rem 0;
    display: block;
    text-decoration: none;
    font-size: 0.9rem;
}
  
.about-info,.about-skills {
    height: auto;
    padding: 20px; 
    border-radius: 8px;
}

.about-info{
    width: 45%
}

.about-skills{
    width: 20%;
}
  
.about-info h2,.about-skills h2 {
    font-size: 2.0rem;
    margin-bottom: 20px;
    font-weight: 500;
    font-family: "ivymode", sanf-serif;
}

.about-skills p{
    line-height: 1.8rem;
}

.about-info p {
    line-height: 1.6rem;
    color: #333;
}

.about-info>a{
    text-decoration: none;
    color:#212121;
    font-weight: 400;
}

.about-logo {
    display: inline-block;
    /* margin-right: 20px; */
    width: 25%;
}

.about-logo img{
    width: 90%;
}

.about-skills div{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Projects styling */

.title {
    width: 70.0rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    padding: 20px;
    color: black;
    font-family: "ivymode", sans-serif;
}

.project-skills {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
}

.skills {
    background-color: #dfdfdf;
    border-radius: 2rem;
    padding: 0.5rem 0.8rem;
    display: inline-block;
}

.content-projects{
    height: auto;
    padding: 40px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    vertical-align: center;
    gap: 2.0rem 4.0rem;
}

.card{
    position: relative;
    overflow: hidden;
    width: 25%;
    height: auto;
    line-height: 22px;
    border-radius: 2.0rem;
    padding: 20px;
    text-decoration: none;
    color: black;
    font-size: 12px;
    border: 1px solid grey;
    cursor: pointer;
}

.card::before {
    border-radius: 2.0rem;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: rgba(225, 255, 188, 0.6); 
    z-index: -5; 
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .card:hover::before {
    height: 100%;
    cursor: pointer;
  }

.card h3{
    padding: 10px 0px;
    font-weight: 500;
    font-size: 1.7rem;
    font-family: "ivymode", sans-serif;
    font-weight: 400;
}

.prj-skills{
    border-radius: 50px;
    border: 1px solid grey;
    padding: 5px 15px;
}

.card p{
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin-top: 10px;
}

.card img{
    margin-bottom: 15px;
}

/*------------------------ Mobile view ----------------------------*/
  
 @media only screen and (max-width: 600px) {

    .nav-links img {
        display: none;
    }

    .back-btn {
        padding: 0 0.2rem;
        font-size: 0.8rem;
        /* height: 2.0rem; */
    }

    /* Main body styling */

    main>section {
        width: 95%;
    }

    /* Nav Mobile */

    .hamburger {
        width: 100vw;
        display: flex;
        pointer-events:all;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 2.0rem 0;
        padding-left: 3.0rem;
        top: 0;
        z-index: 1100;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: #7036b7;
        transition: 0.3s;
    }

    /* Hamburger Animation */
    .hamburger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hide nav links initially */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 50vw;
        height: 100vh;
        padding: 3.0rem 0;
        background: rgba(221, 195, 234, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        border-radius: 0;
    }

    /* Show menu when active */
    .nav-links.show {
        transform: translateX(0);
    }

    /* Keep logo inside the mobile menu */
    .nav-logo {
        width: 50px;
        margin-bottom: 20px;
    }

    /* Hero Mobile */

    #hero-image {
        width: 100%;
        overflow: hidden;
        margin: 2.0rem auto;
    }

    .hero-name {
        margin-left: -2.5rem;
    }

    .hero-name h1 {
        font-size: 5.5rem !important;
    }

    .hero-name-last {
        font-size: 4.4rem !important;
        margin-top: 0.2rem;
    }

    /* .hero-running {
        display: none;
    } */

    .msg1 {
        width: 18%;
        left: 12%;
    }

    .msg2 {
        width: 25%;
    }

    .card {
        width: 100%;
        height: auto;
        font-size: 1rem;
        padding: 15px;
    }

    .card img {
        width: 100%;
    }

    td>p {
        margin: 0.2rem 0.5rem;
    }

    /* ------------------ About Mobile ------------------- */

    .about-container {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0px;
        padding: 0 0;
    }

    .about-info {
        width: 90%;
    }

    .about-logo, .about-skills {
        width: 40%;
    }

    /* ------------------ Contact Mobile ------------------- */
    .contact-form-box {
        width: 80%;
        padding-left: 0;
    }

    .contact-container h1 {
        font-size: 2.0rem;
    }
    
    #contact {
        width: 90%;
    }

    label {
        font-size: 0.8rem;
    }

    .star3 {
        bottom: -2.0rem;
        right: -24px;
        width: 22%;
    }

    .star4 {
        top: -1.5rem;
        left: -1.3rem;
        width: 15%;
    }

    /* ------------------ Footer Mobile ------------------- */

    .footer {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .footer-links, .footer-logo {
        display: none;
    }

    .up-button {
        position: fixed;
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        z-index: 1000;
    }

    .up-button img {
        width: 55px;
        height: 55px;
    }
 }



/* Tablet view */
@media only screen and (min-width: 769px) and (max-width: 1300px) {

    /* Nav Tablet */

    .nav-links {
        gap: 4.0rem;
        width: 70%;
        font-size: 0.8rem;
    }

    .nav-links img {
        width: 4% !important;
    }

    /* hero table */

    #hero-image {
        width: 90%;
    }

    .hero-name img {
        width: 30%; 
        height: auto;
        position: relative;
        z-index: 2; 
    }
    
    .hero-name h1 {
        font-size: 11.0rem !important;
    }

    .hero-name-last {
        font-size: 8.5rem !important;
    }

    main>section {
        width: 100%;
    }

    .card {
        width: 40%;
        height: auto;
        font-size: 1rem;
        padding: 1rem;
    }

    .content-projects {
        gap: 1.5rem;
    }

    #about {
        width: 100%;
    }

    .about-container {
        gap: 1.0rem;
    }


    /* ------------------ Contact Tablet ------------------- */
    #contact {
        width: 90% !important;
    }
    
    .star3 {
        bottom: -4.0rem;
        right: -4.0rem;
        width: 25%;
    }
    
    .star4 {
        top: -1.5rem;
        left: -1.3rem;
        width: 15%;
    }
}