/* This website was designed by Nir Sommer - nir-sommer.com. All web-design rights reserved for Nir Sommer and the content creators. */

/* Base Styles and Reset */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&family=Klee+One:wght@400;600&display=swap");

:root {
  --primary-color: #febca3;
  --secondary-color: #f25e9d;
  --middle-color: #f78ab9a1;
  --dark-color: #2c2c2c;
  --light-color: #ffffff;
  --gray-color: #f5f5f5;
  --text-color: #333333;
  --text-secondary: #6c757d;
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Playfair Display", serif;
  --font-main-title: "Klee One", serif; /* Main title font weight 400 or 600 */
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 10px; /* 1rem = 10px */
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: 4rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  color: var(--dark-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
}

.primary-btn:hover {
  background-color: #f25e9d;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.secondary-btn {
  background-color: transparent;
  color: var(--dark-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Navbar Styles */
#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo {
  font-family: var(--font-primary);
  color: var(--primary-color);
  margin: 0;
  line-height: 1;
}

.logo h1 {
  font-weight: 700;
  font-size: 4rem;
  margin: 0;
  white-space: nowrap;
}

.logo p {
  font-size: 1.5rem;
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 1.6rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px;
  border-radius: 3px;
  transition: var(--transition);
}

/* Welcome Section Styles */
#welcome-section {
  height: 100vh;
  height: 100dvh; /* For mobile use 100dvh for dynamic viewport height */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(45deg, #fdc5b077, #fde7d555);
  padding: 0 1rem;
  padding-top: 60px;
}

.welcome-image {
  height: 85vh; /* Match section height */
  height: 85dvh; /* For mobile use 85dvh for dynamic viewport height */
  width: 95vw; /* Match section width */
  background-image: url("Pink Wings full.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 10%; /* Shift image down by 10% */
  display: flex; /* Ensure content inside is centered */
  justify-content: center;
}

.welcome-content {
  max-width: 800px;
  height: 100%;
}

.main-title,
.sub-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-wrap: nowrap;
}

.main-title {
  justify-content: center;
  height: 50%;
}

.welcome-content h1 {
  top: 20%;
  text-align: center;
  font-family: var(--font-main-title);
  font-size: 8rem;
  font-weight: 600;
  width: 100%;
  margin-top: -20%;
  color: var(--primary-color);
  text-shadow: 3px 1px 1px var(--middle-color),
    2px 2px 1px var(--secondary-color), 4px 2px 1px var(--middle-color),
    3px 3px 1px var(--secondary-color), 5px 3px 1px var(--middle-color),
    4px 4px 1px var(--secondary-color), 6px 4px 1px var(--middle-color),
    5px 5px 1px var(--secondary-color), 7px 5px 1px var(--middle-color),
    6px 6px 1px var(--secondary-color), 8px 6px 1px var(--middle-color),
    7px 7px 1px var(--secondary-color), 9px 7px 1px var(--middle-color);

  span {
    display: block;
    position: relative;
    &:before {
      content: attr(data-text);
      position: absolute;
      text-shadow: 2px 2px 1px #fff3fa, -1px -1px 1px #faebff,
        -2px 2px 1px #fff3fa, 1px -1px 1px #faebff;
      z-index: 1;
    }
  }
}

.sub-title {
  justify-content: center;
  height: 50%;
}

.subtitle {
  font-size: 2.7rem;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

.welcome-cta {
  display: flex;
  margin-top: 1rem;
  gap: 1rem;
  font-size: 1.6rem;
}

/* About Section Styles */
#about {
  background-color: #fde7d544;
  padding: 70px 0;
  overflow: hidden;
}

.about-content {
  display: flex;
  justify-content: center;
  /* gap: 40px; */
  align-items: center;
}

.about-text {
  top: 50%;
  left: 25%;
  height: 100%;
  width: 50%;
  float: left;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 2vw, 2.24rem);
}

.profile {
  max-height: 80%;
  max-width: 30%;
  float: right;
}

.profile-image {
  max-height: 80vh;
  width: auto;
  margin: auto;
}

/* Projects Section Styles */
#projects {
  padding: 30px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-tile {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-tile:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-video {
  height: 200px;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-img {
  height: 200px;
  overflow: hidden;
}

.project-img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 2.1rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-info h4 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-tags span {
  background-color: #f0f0f0;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 1.3rem;
}

.project-tags .warning {
  background-color: red;
  color: white;
}

.project-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.9rem;
  transition: var(--transition);
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.project-link:hover {
  color: var(--secondary-color);
}

[popover] {
  border: none;
  position: fixed;
  border-radius: 15px;
  inset: 0;
  width: 95%;
  height: 80vh;
  height: 80dvh; /* For mobile use 80dvh for dynamic viewport height */
  margin: auto;
  padding: 1rem;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background-color: #fff7ee;
  text-align: center;
}

[popover]::backdrop {
  background-color: var(--middle-color);
  filter: blur(10px);
  filter: opacity(60%);
}

[popover] .project-tags {
  display: flex;
  justify-content: center;
}

[popover] .project-tags span {
  background-color: var(--middle-color);
  color: white;
  font-size: 1.5rem;
}

[popover] .project-tags .warning {
  background-color: red;
  color: white;
}

[popover] p {
  font-size: 1.8rem;
}

[popover] .project-images {
  height: auto;
  line-height: 1.7em;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 20px;
  margin-left: 0;
  width: 100%;
}

[popover] .project-images img {
  margin: 5px 5px;
  height: auto;
  aspect-ratio: auto; /* Explicitly tells browser to use original ratio */
  width: 22%;
  min-width: 300px; /* Ensures images are not too small */
  max-width: 600px; /* Ensures images are not too large */
}

/* Contact Section Styles */
#contact {
  background-color: #fde7d544;
  padding: 30px 0;
}

.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-text p {
  font-size: 1.76rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.social-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 5px 10px;
  background-color: transparent;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

#sns {
  height: 30px;
}

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  text-align: center;
  padding: 3px 0;
  font-size: 1.6rem;
}

footer .container {
  padding: 5px 0;
}

/* Back to Top Button */
.wings {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 140px;
  height: 67.5px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.wings * {
  position: absolute;
}

.left-wing,
.right-wing {
  height: 100%;
  width: 70px;
}

.left-wing {
  top: 25%;
  right: 50%;
  margin-right: 0.25px;
  /*transform: rotate(20deg);*/
  transition: all 0.3s ease;
  animation: left-wing-flap 2s infinite;
}

.right-wing {
  top: 25%;
  left: 50%;
  margin-left: 0.25px;
  /*transform: rotate(160deg);*/
  transition: all 0.3s ease;
  animation: right-wing-flap 2s infinite;
}

.base-wing {
  border-radius: 50%;
  width: 60px;
  height: 22.5px;
  background-color: var(--primary-color);
}

.left-wing .base-wing {
  transform: rotate(20deg); /* Slight angle for left wing */
  top: 7.5px;
  left: 7.5px;
}

.right-wing .base-wing {
  transform: rotate(-20deg); /* Slight angle for right wing */
  top: 7.5px;
  right: 7.5px;
}

.inner-wing {
  border-radius: 50%;
  width: 22.5px;
  height: 22.5px;
  background-color: var(--primary-color);
}

.middle-wing {
  border-radius: 50%;
  width: 26.5px;
  height: 26.5px;
  background-color: var(--primary-color);
}

.outer-wing {
  border-radius: 50%;
  width: 33.75px;
  height: 33.75px;
  background-color: var(--primary-color);
}

/* Position inner-wing */
.left-wing .inner-wing {
  top: 17.25px;
  right: 7.5px; /* Bottom right of left-wing */
}

.right-wing .inner-wing {
  top: 17.25px;
  left: 7.5px; /* Bottom right of right-wing */
}

/* Position middle-wing */
.left-wing .middle-wing {
  top: 26.25px;
  left: 33.75px;
  transform: translate(-50%, -50%); /* Center in parent */
}

.right-wing .middle-wing {
  top: 26.25px;
  right: 7.5px;
  transform: translate(-50%, -50%); /* Center in parent */
}

/* Position outer-wing */
.left-wing .outer-wing {
  top: 0.75px;
  left: 2.25px; /* Top left of left-wing */
}

.right-wing .outer-wing {
  top: 0.75px;
  right: 2.25px; /* Top right of right-wing */
}

#back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

#back-to-top.shoot-up {
  animation: shoot-up 1s forwards;
}

@keyframes right-wing-flap {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(-15deg);
  }
  35% {
    transform: rotate(10deg);
  }
}

@keyframes left-wing-flap {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(15deg);
  }
  35% {
    transform: rotate(-10deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes shoot-up {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-100px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-300px);
    opacity: 0;
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .project-img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  #navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 5%;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 1rem;
    right: 5%;
  }

  #welcome-section h1 {
    font-size: 6rem;
  }

  .welcome-image {
    background-image: url("Pink Wings mobile.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .subtitle {
    font-size: 1.9rem;
  }

  .welcome-cta {
    flex-direction: column;
    align-items: center;
    /*margin-top: 2rem;*/
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .social-links {
    flex-direction: column;
  }

  .social-btn {
    width: 100%;
    margin: 5px auto;
  }

  .section-title {
    font-size: 3.2rem;
  }
}

@media (max-height: 900px) {
  .subtitle {
    margin-top: 10%;
  }
}

@media (max-height: 800px) and (min-width: 1600px) {
  .subtitle {
    margin-top: 30%;
  }
}

@media (max-height: 750px) and (min-width: 900px) {
  .welcome-image {
    background-size: contain;
  }

  .subtitle {
    margin-top: 10%;
  }
}

@media (max-height: 600px) and (min-width: 900px) {
  .welcome-content h1 {
    font-size: 6rem;
  }
}

@media (max-height: 400px) {
  .welcome-content {
    display: none;
  }
}

@media (max-width: 768px) and (max-height: 620px) {
  .subtitle {
    margin-top: 0;
  }

  .welcome-cta {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 480px) {
  #welcome-section h1 {
    font-size: 5rem;
  }

  .sub-title {
    margin-top: -15%;
  }

  .subtitle {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 2.9rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-tile:hover {
    transform: none;
  }

  .welcome-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 400px) {
}
