:root {
    --background-color: #ffffff;
    --light-gray: #F8F8F8;
    --gray-font: #666666;
    --lighter-font: #999999;
    --pink-font: #FFB3D1;
    --primary: #FF6B9D;
    --secondary: #FFF0F5;
    --contrast: #2D1920;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
    letter-spacing: 0.05em;
}

h1 {
    font-family: "Fraunces", serif;
    font-size: 80px;
}

h2 {
    font-family: "Fraunces", serif;
    font-size: 32px;
}

h3 {
    font-family: "Fraunces", serif;
}

h4 {
    font-family: "Nunito", sans-serif;
    color: var(--primary);
    font-weight: 500;
    font-size: 16px;
}

p {
    font-family: "Nunito", sans-serif;
    color: var(--gray-font);
}

ul {
    font-family: "Nunito", sans-serif;
}

span {
    font-family: "Nunito", sans-serif;
}

.highlight {
    color: var(--primary);
}

button {
    font-family: "Nunito", sans-serif;
}

a {
    font-family: "Nunito", sans-serif;
    text-decoration: none;
}

section {
    padding: 8rem clamp(1.5rem, 15vw, 20rem);
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
        text-align: center;
    }
}

/* -- Header --*/
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  box-sizing: border-box;
  z-index: 1000;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#main-header.scrolled {
  background-color: var(--background-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 15px 50px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 18px;
  transition: opacity 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -24px; 
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  #main-header {
    padding: 15px 24px;
    flex-wrap: wrap;
  }

  .burger {
    display: flex;
  }

  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.open {
    max-height: 300px;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 10px 0 20px;
  }

  .nav-links li a {
    display: block;
    padding: 12px 0;
  }

  .nav-links a::after {
    bottom: 0;
  }
}

#main-header.menu-open {
  background-color: var(--background-color);
}

/* -- Hero -- */ 

.role-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    color: var(--primary);
    padding: 0;
    font-size: 16px;
}

.role-list li {
    display: flex;
    align-items: center;
}

.role-list li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-left: 10px;
    flex-shrink: 0;
}

.view-btn {
    background-color: var(--primary);
    color: #ffffff;
    border: 1.5px solid var(--primary);
    border-radius: 20px;
    padding: 24px 44px;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.contact-btn {
    background-color: var(--secondary);
    border: 1.5px solid var(--contrast);
    border-radius: 20px;
    padding: 24px 44px;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    color: var(--contrast);

}

.view-btn:hover {
    background-color: #ffffff;
    color: var(--primary);
    border-color: var(--primary);
}

.contact-btn:hover {
    background-color: var(--contrast);
    color: #ffffff;
}

.hero-wrapper {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
}

.hero-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 850px;
    width: 100%;
    gap: 30px;
    position: relative;
}

.hero-wrapper::after {
    content: "";
    position: absolute;
    right: -350px;
    top: 50%;
    transform: translateY(-50%);
    width: 1000px; 
    height: 1200px;
    border-radius: 50%;
    background: linear-gradient(to bottom, var(--secondary), #ffffff);
    z-index: -1;
}

.hero-cta {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 30px;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    
    animation: scroll-bounce 2s infinite ease-in-out;
    z-index: 10;
}

.scroll-line {
    width: 3px;
    height: 60px;
    background-color: var(--primary);
}

.scroll-icon {
    width: 24px;
    height: auto;
    display: block;
    margin-top: -3px;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 15px);
    }
}

@media (max-width: 768px) {
    .hero-section {
        align-items: center;
        margin: 0 auto;
    }

    .role-list {
        justify-content: center;
        gap: 30px; 
        font-weight: 600;
        letter-spacing: 0.1em;
    }

    .role-list li:not(:last-child)::after {
        display: none; 
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .view-btn, .contact-btn {
        width: 100%;
        padding: 18px 30px;
    }

    .hero-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        width: 200%; 
        height: 100%;
        right: -140%; 
        bottom: 0;
        transform: none;
        border-radius: 50%;
        background: linear-gradient(to bottom, var(--secondary), #ffffff);
        opacity: 0.5;
        z-index: -1;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }
}

/* -- About -- */

.about {
    display: flex;
    flex-direction: row;
    gap: 100px;
    background-color: var(--light-gray);
    align-items: center;
}

.about-content {
    display: flex;
    gap: 90px;
    max-width: 800px;
}

/* first div of about-content */
.about-content > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about h2 {
    padding-bottom: 20px;

}

.about-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 30px;
}

.about-icons {
    display: flex;
    gap: 20px;
}

.about-icons img {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.selfie {
    width: 100%; 
    max-width: 450px;
    height: auto; 
    border-radius: 20px;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .selfie {
        width: 200px;
        height: auto;
        object-fit: cover;
        margin: 0 auto;
    }

    .about-bottom > img {
        display: none;
    }
}

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

    .selfie {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
        order: -1;
    }

    .about-bottom > img {
        display: none;
    }

    .about-bottom {
        justify-content: center;
        padding-top: 20px;
    }
}

/* -- Skills -- */
 
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: var(--background-color);
}
 
.skills-section h2 {
    padding-bottom: 10px;
}
 
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}
 
.skill-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-left: 3px solid var(--primary);
    padding: 8px 0 8px 28px;
}
 
.skill-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}
 
.skill-title {
    font-family: "Fraunces", serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--contrast);
}
 
.skill-icon img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    width: 26px;
}
 
.skill-description {
    color: var(--gray-font);
    max-width: 560px;
}
 
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
 
.skill-tag {
    color: var(--primary);
    font-weight: 500;
}
 
@media (max-width: 768px) {
    .skills-section {
        text-align: center;
    }
 
    .skill-card {
        padding: 8px 0 8px 20px;
    }
 
    .skill-header {
        justify-content: flex-start;
    }
 
    .skill-tags {
        gap: 14px;
    }
 
    .skill-description {
        max-width: 100%;
    }
}

/* -- Projects -- */

.projects {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: var(--contrast);
}

.projects h2 {
    color: var(--background-color);
}

.projects p {
    color: var(--lighter-font);
}

.project-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 80px;
}

.project-card--reverse {
    flex-direction: row;
    justify-content: space-between;
}

.project-img {
    height: 100%;
    max-height: 400px;
    width: auto;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 650px;
}

.project-category {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.project-tags span {
    font-size: 14px;
    color: var(--pink-font);
}

.project-tags span:not(:last-child)::after {
    content: '•';
    margin-left: 8px;
    color: var(--pink-font);
}

.project-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
}

.project-buttons .view-btn,
.project-buttons .contact-btn {
    padding: 10px 22px;
    font-size: 16px;
}

.project-outline-btn {
    background-color: transparent;
    border-color: var(--pink-font);
    color: #ffffff;
}

.project-outline-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.project-divider {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.flower-icon {
    width: 32px;
    height: 32px;
    opacity: 0.7;
}

@media (max-width: 1200px) {
    .project-card,
    .project-card--reverse {
        gap: 50px;
    }

    .project-img {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .project-card,
    .project-card--reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .project-img {
        max-width: 100%;
        border-radius: 16px;
    }

    .project-tags {
        justify-content: center;
    }

    .project-buttons {
        justify-content: center;
    }
}

.container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-content {
    display: flex;
    flex-direction: row;
    gap: 90px;
}

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

/* -- Contact -- */

.contact {
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    text-align: center;
}

.contact-socials {
    display: flex;
    gap: 25px;
}

.contact-socials img {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.cta-btn {
    background-color: var(--primary);
    color: #ffffff;
    border: 1.5px solid var(--primary);
    border-radius: 20px;
    padding: 24px 44px;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    max-width: 250px;
    margin-top: 35px;
    font-family: "Nunito", sans-serif;
}

.cta-btn:hover {
    background-color: #ffffff;
    color: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .cta-btn {
        width: 100%;
        max-width: none;
        padding: 18px 30px;
    }
}

.stuff {
    max-width: 300px;
    height: auto;
}

/* -- Footer -- */

footer {
    background-color: var(--contrast);
    text-align: center;
    padding: 50px 0;
}

footer p {
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    color: #ffffff;
}

/* -- Animations -- */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-flower {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50%       { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

.role-list {
    animation: fade-up 0.6s ease both 0.1s;
}

.hero-section h1 {
    animation: fade-up 0.6s ease both 0.25s;
}

.hero-section > p {
    animation: fade-up 0.6s ease both 0.4s;
}

.hero-cta {
    animation: fade-up 0.6s ease both 0.55s;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

.selfie {
    animation: float 5s ease-in-out infinite;
}

.flower-icon {
    animation: pulse-flower 3s ease-in-out infinite;
}

.view-btn,
.contact-btn,
.cta-btn {
    transition: background-color 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, transform 0.2s ease,
                box-shadow 0.2s ease;
}

.view-btn:hover,
.contact-btn:hover,
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 157, 0.25);
}

.project-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-img:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.contact-socials img,
.about-icons img {
    transition: transform 0.25s ease;
}

.contact-socials img:hover,
.about-icons img:hover {
    transform: translateY(-5px);
}

.skill-tag {
    display: inline-block;
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
}

.logo img {
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: rotate(20deg) scale(1.1);
}