:root {
  --color-yellow: #f5b700;
  --color-red: #ff4d2c;
  --color-cyan: #76d6d6;
  --color-bg: #f4f4f4;
  --color-text: #000000;
  --font-main: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo .dot {
  width: 12px;
  height: 12px;
  background-color: var(--color-yellow);
  border-radius: 50%;
  display: inline-block;
}

.editor-text {
  font-weight: 300;
  opacity: 0.7;
  font-size: 0.9em;
  margin-left: 5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 300;
}

nav a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.6;
}

.separator {
  opacity: 0.3;
}

/* Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem 15rem 2rem;
  /* Large bottom padding pushes content up & footer down */
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 95vh;
}

.profile-container {
  flex: 0 0 auto;
}

.profile-image-wrapper {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  /* Simulating the grayscale/bw filter if image isn't already */
  filter: grayscale(100%);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-container {
  max-width: 500px;
}

h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.about-me h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-me p {
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.action-buttons {
  display: flex;
  gap: 1.5rem;
}

.btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: none;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  text-decoration: none;
  /* Remove underline */
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-resume {
  background-color: var(--color-yellow);
}

.btn-projects {
  background-color: var(--color-red);
}

.btn-contact {
  background-color: var(--color-cyan);
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
}

.footer-column h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-column p {
  margin-bottom: 0.2rem;
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.copyright {
  text-align: right;
}

.copyright p {
  font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .profile-image-wrapper {
    width: 250px;
    height: 250px;
  }

  h1 {
    font-size: 3.5rem;
  }

  .action-buttons {
    justify-content: center;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .copyright {
    text-align: left;
    grid-column: span 2;
  }

  /* Mobile Header Fixes */
  .site-header {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  /* Mobile Typography Tweaks */
  .logo {
    font-size: 1.4rem;
  }

  nav a {
    font-size: 1rem;
    padding: 0.5rem;
    /* Larger tap targets */
  }
}

/* Animations - Soft Blur Reveal */
@keyframes blurFadeIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.profile-image-wrapper,
.content-container h1,
.about-me,
.btn {
  opacity: 0;
  /* Start hidden */
  animation: blurFadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Staggered Delays */
.profile-image-wrapper {
  animation-delay: 0.1s;
}

.content-container h1 {
  animation-delay: 0.3s;
}

.about-me {
  animation-delay: 0.5s;
}

.btn:nth-child(1) {
  animation-delay: 0.7s;
}

.btn:nth-child(2) {
  animation-delay: 0.9s;
}

.btn:nth-child(3) {
  animation-delay: 1.1s;
}

/* Resume Page Styles */
.resume-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
  opacity: 0;
  animation: blurFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.resume-container h1 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  animation: none;
}

.resume-section {
  display: flex;
  margin-bottom: 3rem;
  gap: 2rem;
}

.section-title {
  flex: 0 0 30%;
}

.section-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.resume-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.resume-item {
  display: flex;
  gap: 2rem;
}

.resume-year {
  flex: 0 0 120px;
  font-weight: 600;
  font-size: 0.9rem;
  padding-top: 0.2rem;
}

.resume-content {
  flex: 1;
}

.resume-content h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.resume-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 500px;
}

.resume-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 4rem 0;
}

nav a.active {
  font-weight: 700;
  opacity: 1;
}

@media (max-width: 768px) {
  .resume-section {
    flex-direction: column;
    gap: 1.5rem;
  }

  .resume-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .resume-year {
    font-size: 0.85rem;
    opacity: 0.7;
    flex: auto;
  }
}


/* Projects Page Styles */
.projects-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
  opacity: 0;
  animation: blurFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.projects-container h1 {
  font-size: 2.5rem;
  margin-bottom: 5rem;
  animation: none;
}

.project-item {
  display: flex;
  gap: 4rem;
  margin-bottom: 8rem;
  align-items: center;
}

/* Stagger project reveals */
.project-item:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0;
  animation: blurFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.2s;
}

.project-item:nth-child(3) {
  animation-delay: 0.4s;
  opacity: 0;
  animation: blurFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.4s;
}

.project-text {
  flex: 1;
}

.project-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-text p {
  line-height: 1.7;
  opacity: 0.85;
  font-weight: 300;
  max-width: 400px;
}

.project-image-wrapper {
  flex: 1.2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-radius: 20px;
  background-color: transparent;
  position: relative;
  /* Anchor for absolute positioning */
}

.project-image-wrapper:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Play Button Overlay */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 45px solid rgba(255, 255, 255, 0.7);
  /* Translucent white */
  transition: border-left-color 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  /* So it's visible on light backgrounds */
  margin-left: 15px;
  /* Slight visual centering since it's a triangle */
}

.play-button:hover .play-triangle {
  border-left-color: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
  .project-item {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 6rem;
  }

  .project-text {
    order: 1;
  }

  .project-image-wrapper {
    order: 2;
  }

  .projects-container h1 {
    margin-bottom: 3rem;
  }
}

/* Skills Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.close-modal:hover {
  opacity: 1;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-chip {
  background: var(--color-bg);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}

.skill-chip:hover {
  transform: translateY(-3px);
  background-color: var(--color-yellow);
}


/* Image Carousel Styles */
.project-carousel {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease-in-out;
  align-items: center;
  /* Prevents vertical stretching (squishing) of images with different aspect ratios */
}

.carousel-image {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  /* Extra safeguard for aspect ratio */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 3rem;
  /* Make it bigger */
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s, transform 0.2s;
  padding-bottom: 5px;
  opacity: 0.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  /* Drop shadow so white arrow is visible on white background */
}

.carousel-btn:hover {
  background: transparent;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  /* Slight pop effect instead of changing background */
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

/* Archive Section Styles */
.archive-container {
  margin-top: 8rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.archive-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  /* Increased from 280px */
  gap: 3rem;
  /* Increased gap */
}

.archive-item {
  background: white;
  border-radius: 16px;
  /* Slightly larger radius */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* More prominent shadow */
  transition: transform 0.2s ease;
}

.archive-item:hover {
  transform: translateY(-8px);
}

.archive-image {
  width: 100%;
  height: 280px;
  /* Taller images */
  object-fit: cover;
  background-color: #eee;
}

.image-trigger {
  cursor: pointer;
  transition: opacity 0.2s;
}

.image-trigger:hover {
  opacity: 0.9;
}

.archive-content {
  padding: 1.5rem;
}

.archive-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.archive-content p {
  font-size: 0.9rem;
  opacity: 0.7;
}


/* Video Modal Styles & Updates */
.project-image {
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.project-image:hover {
  transform: scale(1.02);
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.video-container {
  width: 90%;
  max-width: 1000px;
  position: relative;
  aspect-ratio: 16/9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.close-video {
  color: white;
  top: -40px;
  right: -10px;
  opacity: 0.8;
}

.close-video:hover {
  opacity: 1;
}