body {
  background-color: #141236;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  margin: 0;
}

.wrapper {
  min-height: 100vh; /* Full viewport height */
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #141236;
  color: #f54dc6;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

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

.nav-links a {
  color: #f54dc6;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #efd1d1;
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 4px;
  background: #f54dc6;
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    align-items: center;
    background: #141236;
    width: 100%;
    display: none;
  }

  .nav-links a {
    color: #efd1d1;
  }

  .nav-links a:hover {
    color: #f54dc6;
  }

  .menu-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }

  /* Transform hamburger into an X */
  .menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(13px);
  }

  .menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-13px);
  }

  .hamburger {
    display: flex;
    z-index: 20;
  }
}

.logo-link {
  text-decoration: none;
  color: #f54dc6;
  font-size: 1.5rem;
  font-weight: bold;
  transition: color 0.2s;
}

.logo-link:hover {
  color: #efd1d1;
}

.nav-item {
  padding-bottom: 6px; /* controls the gap */
  border-bottom: 2px solid transparent;
  transition: transform 0.2s ease;
}

.nav-item:hover {
  transform: scale(1.1);
}

.nav-item.active {
  border-bottom-color: #f54dc6;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2rem;
  background-color: #141236;
  color: #efd1d1;
  flex: 1;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
  color: #f54dc6;
}

.hero h1 span {
  color: #efd1d1;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}

/* Optional: Make it responsive */
@media (max-width: 768px) {
  .hero {
    padding: 0 5%;
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    max-width: 90%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

.footer {
  padding: 1rem 2rem;
  background: #141236;
  color: #efd1d1;
  text-align: center;
  font-size: 0.8rem;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* @media (max-width: 1440px) {
  .projects-container {
    max-width: 75vw;
  }
} */

.project-card {
  display: flex;
  flex-direction: row;
  background-color: #141236;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px rgba(0, 0, 0, 0.3);
  color: #efd1d1;
  flex-wrap: wrap;
}

.project-img {
  width: 200px;
  height: auto;
  border-radius: 0.5rem;
  margin-right: 2rem;
  align-self: flex-start;
}

.project-info {
  flex: 1;
  min-width: 250px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin: 0;
  color: #a19be0;
}

.project-subtitle {
  color: #aaa4b5;
  font-style: italic;
  margin-top: 0.1rem;
}

.project-info a {
  color: #efd1d1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-info a:hover {
  color: #f54dc6;
}

.tag {
  display: inline-block;
  background-color: #410e54;
  color: #f54dc6;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

  .project-img {
    margin: 0 0 1.5rem 0;
    width: 100%;
    max-width: 100%;
  }

  .project-info {
    text-align: left;
  }
}

.main {
  flex: 1;
}

.content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

/* Wider on large screens */
@media (max-width: 768px) {
  .content-container {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .content-container {
    padding: 1rem;
  }
}

.about-text {
  color: #efd1d1;
  font-size: 1.5rem;
  line-height: 1.6;
  align-items: center;
}

.about-text p {
  margin: 0 0 1rem;
  padding: 0;
}

.about-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 430px) {
  .about-text {
    font-size: 1rem;
  }
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.skill-card {
  background-color: #141236;
  border-radius: 1rem;
  box-shadow: 0 4px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  color: #efd1d1;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 360px) {
  .skill-card {
    width: 90%;
  }
}

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #efd1d1;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.skill-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-card {
  width: 100%; /* take full width of parent */
  max-width: none; /* remove any internal limit */
  background-color: #141236;
  border-radius: 1rem;
  box-shadow: 0 4px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  color: #efd1d1;
  /* max-width: 600px; */
  margin-top: 3rem;
}

@media (max-width: 360px) {
  .contact-card {
    padding: 1rem;
  }
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: center;
  color: #f54dc6;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #f54dc6;
}

.contact-list a {
  color: #efd1d1;
  text-decoration: none;
}

.contact-list a:hover {
  color: #f54dc6;
}

/* For Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1c1534; /* dark background to blend with your layout */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background-color: #f54dc6; /* your accent pink */
  border-radius: 4px;
  border: 2px solid #1c1534; /* adds padding effect */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ff78da; /* lighter on hover */
}

/* Firefox only */
html {
  scrollbar-width: thin;
  scrollbar-color: #f54dc6 #1c1534;
}

.heart-icon:hover {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.fade-in-top {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 2.5s ease-out forwards;
}

.fade-in-top.delay {
  animation-delay: 0.3s;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px #000;
}

::selection {
  background-color: #f54dc6; /* highlight color */
  color: #141236; /* text color on highlight */
}

.about-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  gap: 3rem;
}

.about-image {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .about-wrapper {
    flex-direction: column-reverse;
    align-items: center;
  }
  .about-image {
    max-width: 250px;
  }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #8f88b8;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.25em;
}

h2.section-title {
  margin-top: 0;
  margin-bottom: 2rem;
}

.section-title::after {
  content: "";
  width: 85px;
  height: 1px;
  background-color: #4a4668;
}

.page-title {
  color: #f0ecff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 430px) {
  .page-title {
    font-size: 1.5rem;
  }
}
