* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
}

body {
  background: #ffffff;
  color: #222;
}

/* NAV */
nav {
  background: #ffdaea;
  padding: 15px 40px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
}

.nav-links a {
  margin-left: 30px;
  text-decoration: none;
  color: black;
  position: relative;
}

/* HOVER UNDERLINE */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  background: black;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

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

/* HERO */
.hero {
  text-align: center;
  padding: 18px 20px;
}

.title-gif {
  width: 550px;
  max-width: 80%;
}

.tagline {
  margin-top: 20px;
  font-size: 18px;
}

/* ==========================
   FEATURED PROJECTS
========================== */

.work-section {
  max-width: 1050px;
  margin: 0 auto;
  padding: 60px 40px;
}

.work-section h2 {
  margin-bottom: 20px;
}

/* GRID */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Always 2 columns on desktop */
  gap: 35px;
}

/* CARD */
.work-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease;
}

/* IMAGE */
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #dddddd;
  transition: transform 0.4s ease;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(241, 213, 225, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay p {
  line-height: 1.4;
  font-weight: 500;
}

/* HOVER EFFECTS */
.work-card:hover {
  transform: translateY(-6px);
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card:hover .overlay {
  opacity: 1;
}

/* MOBILE */
@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* HOVER EFFECT */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(241, 213, 225, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.work-card:hover .overlay {
  opacity: 1;
}

/* PAGE */
.page {
  padding: 80px 20%;
}

/* BUTTON */
.resume-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #ffdaea;
  text-decoration: none;
  color: black;
  transition: 0.3s;
}

.resume-btn:hover {
  background: black;
  color: white;
}

/* FOOTER LOOP */
.marquee-footer {
  background: #ffdaea;
  overflow: hidden;
  padding: 15px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
  padding-right: 50px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* GALLERY PAGE */
.gallery-page {
  padding: 60px 10%;
}

.gallery-page h1 {
  margin-bottom: 30px;
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ITEM */
.gallery-item {
  overflow: hidden;
  cursor: pointer;
}

/* IMAGE STYLE */
.gallery-item img,
.gallery-item .placeholder {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
  background: #ddd;
}

/* HOVER ZOOM */
.gallery-item:hover img,
.gallery-item:hover .placeholder {
  transform: scale(1.08);
}

h1 {
  margin-bottom: 25px;
  margin-top: 30px;
}

h2 {
  margin-bottom: 20px;
  margin-top: 75px;
}


p {
  line-height: 2.3rem;
}

.skills-text {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  margin-bottom: 30px;
  margin-top: 20px;
}

.skills-text span {
  padding: 8px 25px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 14px;
  transition: 0.2s ease;
}


.skills-text span:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.1);
}

.marquee-footer {
  margin-top: 80px; /* creates space ABOVE footer only */
}

.contact-item {
  color: black;          /* makes text black */
  text-decoration: none; /* removes underline */
}

.contact-item:visited {
  color: #ffdaea;   /* keeps it black after clicking */
}

.contact-item:hover {
  color: #ffdaea;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 300px;
  max-width: 700px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: black;
  transition: 0.2s ease;
}

.contact-item img {
  width: 40px;
  height: 40px;
}

.contact-item:hover span {
  color: #ffdaea;
}

.contact-item:hover img {
  transform: scale(1.1);
}
.contact-item,
.contact-item:visited {
  color: black;
  text-decoration: none;
}

.contact-item:hover span {
  color: #ffdaea;
}

.resume-footer {
  margin-top: 400px; /* adjust this value */
}

.about-container {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 30px;
  gap: 20px;
  align-items: start; /* aligns image with top of text */
}
.about-text h1 {
  margin-top: 30px;
}
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.page-container {
  max-width: 1000px;
  margin: 0 auto;   /* centers the page */
  padding: 40px;
}
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
  }



}
.skills-heading {
  margin-top: 20px;
}
.contact-heading {
  margin-top: 80px;
}

.about-img {
  width: auto;
  height: auto;
  margin-top: 55px;
}
/* PROJECT PAGE */
.project-hero {
  padding: 60px 15%;
}

.project-title {
  font-family: Arial, Helvetica, sans-serif
  font-size: 40px;
  margin-bottom: 19px;
}

.project-text p {
  margin-bottom: 20px;
  line-height: 2.5;
}

/* SECTION */
.project-section {
  padding: 15px 15%;
}

.project-section h2 {
  margin-bottom: 40px;
}

/* IMAGE */
.project-image {
  width: 100%;
  border-radius: 3px;
}

/* GRID */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 17px;  /* smaller = tighter grid */
}

.project-item img,
.project-item .placeholder {
  width: 100%;       /* fill the grid column */
  height: 190px;
  object-fit: cover;
  background: #ddd;
}

/* HOVER */
.project-item img {
  transition: transform 0.3s;
}

.project-item:hover img {
  transform: scale(1.05);
}
a {
  text-decoration: none;
  color: inherit;
}

.video-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 50px 0;
}

/* controls the size */
.video-box {
  width: 260px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
  background: #ffdaea;
}

/* forces video to fit inside box */
.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.comic-section {
  padding: 60px 15%;
}

.comic-section h2 {
  margin-bottom: 20px;
}

/* Moodboard */
.moodboard-img {
  width: 100%;
  max-width: 900px;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* Text styling */
.comic-text {
  max-width: 1000px;
  line-height: 1.8;
}

/* Webcomic (LONG SCROLL IMAGE FIX) */
.webcomic-img {
  width: 700px;
  max-width: 1500px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.comicl {
  padding: 3px 10%;
}

/* YOUTUBE VIDEO */
.youtube-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.youtube-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}
.prototype-link {
  display: inline-block;
  padding: 10px 18px;
  background: #ffdaea;
  color: black;
  text-decoration: none;
  border-radius: 6px;
}

.prototype-link:hover {
  opacity: 40%;
}
.project-hero iframe {
  margin-bottom: 25px;
}

.project-text {
  line-height: 1.6;
}

