/* ========== VARIABLES ========== */
:root {
  --ivory-white: #FAF7F2;
  --plum-black: #1A121E;
  --royal-mauve: #7D5471;
  --font-sans: 'Unbounded', sans-serif;
  --font-serif: 'Zilla Slab', serif;
}

/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--ivory-white);
  color: var(--plum-black);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ========== NAVBAR ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--royal-mauve);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.logo img {
  height: 40px;
}

.nav-links a {
  margin-left: 2rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ivory-white);
  position: relative;
  font-family: var(--font-sans);
}

.nav-links a.active {
  color: var(--plum-black);
  text-decoration: underline;
}

/* ========== HERO ========== */
.hero {
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 2.8rem;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.4;
}

.name-container {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
}

/* Handwriting SVG Animation */
#signature {
  width: 100%;
  height: 150px;
}

#signature text {
  fill: none;
  stroke: var(--plum-black);
  stroke-width: 2;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  font-size: 120px;
  font-family: 'Caveat', cursive;
  animation: handwriting 9s ease forwards;
}

@keyframes handwriting {
  to {
    stroke-dashoffset: 0;
  }
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ivory-white);
  transition: transform 0.2s ease;
  font-family: var(--font-sans);
}

.btn.mauve {
  background-color: var(--royal-mauve);
}

.btn.dark {
  background-color: var(--plum-black);
}

.btn:hover {
  transform: scale(1.05);
}

/* SCROLL DOWN */
.scroll-down {
  font-family: var(--font-serif);
  margin-top: 3rem;
  position: relative;
  cursor: pointer;
  display: inline-block;
  color: #1A121E;
}

.scroll-down::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--plum-black);
  bottom: -4px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.scroll-down:hover::after {
  transform: scaleX(1);
}

/* ========== MOBILE NAV ========== */
.mobile-menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.mobile-menu-icon span {
  width: 25px;
  height: 3px;
  background-color: var(--ivory-white);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--royal-mauve);
  padding: 1rem 0;
  text-align: center;
}

.mobile-nav a {
  color: var(--ivory-white);
  text-decoration: none;
  padding: 0.75rem 1rem;
}

.mobile-nav a.active {
  color: var(--plum-black);
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-icon {
    display: flex;
  }

  .mobile-nav.show {
    display: flex;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  #signature text {
    font-size: 60px;
  }

  .scroll-down {
    display: none;
  }
}

/* ========== SAMPLE PROJECTS SECTION ========== */

.projects-section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--plum-black);
}

.carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ONE CARD VISIBLE AT A TIME */
.project-card {
  background-color: var(--royal-mauve);
  border-radius: 1rem;
  padding: 2rem;
  color: var(--ivory-white);
  font-family: var(--font-sans);
  width: 90vw;
  max-width: 800px;
  display: none;
  flex-direction: column;
  gap: 1rem;

  min-height: 580px;
  max-height: 580px;
  overflow: hidden;

  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.project-card.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.project-card.slide-left {
  transform: translateX(-30px);
}

.project-card.slide-right {
  transform: translateX(30px);
}

.project-discipline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
}

.project-description {
  font-size: 1.1rem;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-badge {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.read-more {
  background-color: var(--plum-black);
  color: var(--ivory-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  width: fit-content;
  transition: transform 0.2s ease;
}

.read-more:hover {
  transform: scale(1.05);
}

/* Image container with scroll/wrap and max height */
.project-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  max-height: 220px;
  overflow: auto;
  align-items: flex-start;
}

/* === IMAGE TYPES === */
.img-logo {
  height: 200px;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.img-portrait {
  height: 200px;
  width: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

.img-landscape {
  height: 125px;
  width: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}


/* Navigation arrows */
.carousel-controls {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-controls button {
  background-color: var(--plum-black);
  color: var(--ivory-white);
  font-size: 1.8rem;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-controls button:hover {
  background-color: var(--royal-mauve);
  transform: scale(1.1);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .project-card {
    min-height: 520px;
    max-height: 520px;
  }

  .project-title {
    font-size: 1.7rem;
  }

  .project-description {
    font-size: 1rem;
  }

  .project-images {
    max-height: 180px;
  }

  .img-logo {
    height: 50px;
  }

  .img-portrait {
    height: 120px;
  }

  .img-landscape {
    height: 80px;
  }
}

.footer {
  background-color: var(--plum-black);
  color: var(--ivory-white);
  padding: 40px 20px;
  font-family: 'Zilla Slab', serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

.footer-left p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-right a {
  color: var(--ivory-white);
  font-size: 1.8rem;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: var(--royal-mauve);
}
