/*Mouse Follower*/
.mouse-follower {
    position: fixed; 
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-color: #C8A2C8; 
    border-radius: 50%; 
    pointer-events: none; 
    z-index: 9999;
    transform: translate(-50%, -50%); 
    transition: transform 0.1s ease-out; 
}

/* Navbar */
nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    justify-content: center;
    align-items: center;
    background-color: #FCC8B2;
    height: 50px;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(104,83,105,0.08);
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
}

nav a {
    color: #333;
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 10rem;
    list-style: none;
    margin: 0;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
}

.nav-icons {
    display: flex;
    font-size: large;
    gap: 2.5rem;
    padding: 10px 24px;
    align-items: center;
    justify-content: center;
}

nav a:hover {
    color: #F2F2F2;
    background-color: #C8A2C8;
    text-decoration: none;  
    padding: 8px 20px;
    border-radius: 8px;
}

.hamburger {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Intro Section */
.intro {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 60vh;
    overflow: hidden;
    padding-left: 2vw;
}

.intro-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: none;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px 32px;
}

.intro-greeting {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5em;
    letter-spacing: 1px;
}

.intro-name {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5em;
    letter-spacing: 2px;
}

.intro-aka {
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    background: #685369;
    border-radius: 12px;
    padding: 2px 10px;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(104,83,105,0.12);
}

.underline {
    display: block;
    width: 80%;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="10" viewBox="0 0 100 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 5 Q 25 0 50 5 Q 75 10 100 5" stroke="%23FCC8B2" stroke-width="3" fill="none"/></svg>');
    margin: 0 auto;
    margin-top: 8px;
}

.intro-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-top: 1em;
    letter-spacing: 1px;
}

.na-animate {
    animation: naBounce 1.2s cubic-bezier(.68,-0.55,.27,1.55) 1;
}

@keyframes naBounce {
    0% { transform: scale(0.7) translateY(-40px); opacity: 0; }
    60% { transform: scale(1.1) translateY(10px); opacity: 1; }
    80% { transform: scale(0.95) translateY(-4px); }
    100% { transform: scale(1) translateY(0); }
}

.intro-image {
  width: 500px;
  height: 500px;
  object-fit: cover;
  border-radius: 50%;
  border-width: 10px;
  border-color: #FCC8B2;
  border-style: outset;
  margin-top: 3rem;

}

.rotating-list-container {
  width: 500px; 
  height: 100px; 
  overflow: hidden;

}

.rotating-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.2rem;
  animation: scroll-up 15s linear infinite;
}

.rotating-list li {
  padding: 5px;
  text-align: center;
}

@keyframes scroll-up {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

/* General Styles */
body{
    font-family: 'Courier New', Courier, monospace;
    background-color: #C6D8AF;
    color: #333;
    margin: 0;
    padding: 20px;
    text-align: center;
}

main {
    
    padding: 20px;
}

/* About Section */
.about{
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.about a{
    color: black;
    text-decoration: none;
}

.about a:hover{
    color: #F2F2F2;
    background-color: #C8A2C8;
    text-decoration: none;  
    padding: 8px 20px;
    border-radius: 8px;
}

.about-paragraph{
    text-align: justify;
    width: 500px;
    font-size: 1.1rem;
    max-width: 500px;
    line-height: 1.6;
}

.resume-about-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.resume-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(104,83,105,0.12);
    margin-top: 2rem;
}

/* Projects Section */
.projects-header{
    text-align: justify;
    width: 500px;
    font-size: 1.1rem;
    max-width: 1200px;
    margin-left: 100px;
}

.projects{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1000px;
    margin-left: 100px;
    margin: auto;
}

.projects a{
    text-decoration: none;
    color: #333;
}

.projects a:hover {
    color: #F2F2F2;
    background-color: #C8A2C8;
    text-decoration: none;  
    padding: 8px 20px;
    border-radius: 8px;
}

.project-card {
    background-color: #FCC8B2;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-card .image-box {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.project-card .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card h3 {
    margin: 0.25rem 0 0;
}

.project-card p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

/* Contact Section */
.contact{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.contact-pic{
    flex: 0 0 320px;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(104,83,105,0.12);
    margin-top: 0;
}

.contact-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.contact-paragraph{
    flex: 1 1 320px;
    min-width: 260px;
    max-width: 500px;
    text-align: justify;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 8px;
        padding-top: 60px;
    }

    /*Disable Mouse Follower*/
    .mouse-follower {
        display: none;
    }

    /*Navigation*/
    nav {
        flex-direction: row;
        height: 50px;
        padding: 0 12px;
        justify-content: space-between;
    }
    nav ul {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background-color: #FCC8B2;
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        padding: 0;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
    }
    nav ul.active {
        max-height: 400px;
        padding: 1rem 0;
    }
    .nav-icons {
        display: none;
    }
    .hamburger {
        display: flex;
        position: absolute;
        top: 10px;
        right: 20px;
    }

    /*Intro Section*/
    .intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 50vh;
        padding: 1rem;
        justify-content: center;
    }

    .intro-image {
        order: -1;
        margin-bottom: 1rem;
        width: 70vw;
        max-width: 280px;
        height: auto;
    }

    .intro-content {
        padding: 0.5rem;
    }

    .intro-greeting {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
        margin-bottom: 0.3em;
    }
    .intro-name {
        font-size: clamp(1.4rem, 5vw, 2.5rem);
        margin-bottom: 0.3em;
    }
    .intro-title {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        margin-top: 0.5em;
    }
    .underline {
        width: 95%;
        height: 6px;
    }
    .rotating-list-container {
        width: 95vw;
        max-width: 300px;
        height: auto;
    }

    /*About Section*/
    .resume-about-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    .resume-image img {
        max-width: 95vw;
    }
    .about-paragraph {
        font-size: 1rem;
        padding: 0 4px;
        max-width: 95vw;
        text-align: justify;
    }

    /*Projects Section*/
    .projects {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        margin: 2rem auto;
    }
    .projects-header {
        text-align: center;
        font-size: 1rem;
        margin: 1rem auto;
        max-width: 90vw;
    }

    /*Contact Section*/
    .contact-container {
        flex-direction: column-reverse;
        align-items: center;
        gap: 1.5rem;
    }
    .contact-pic {
        max-width: 90vw;
    }
    .contact-paragraph {
        max-width: 90vw;
        font-size: 1rem;
    }
}
