/* ================= PROJECT SHOWCASE TEMPLATE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.meta-item {
  color: #fff;
}

.project-hero-text {
  color: #fff;
  text-transform: uppercase;
}

.section-title {
  color: #fff;
}

.project-nav {
  padding: 40px clamp(20px, 5vw, 100px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

#back-footer {
  margin-bottom: 3rem;
}

.back-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #8c9070;
}

.project-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-image-wrapper {
  width: 100%;
  height: 100%;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.project-hero-text {
  position: absolute;
  bottom: 5vh;
  left: clamp(20px, 5vw, 100px);
}

.project-hero-text .main-title {
  font-size: clamp(3rem, 10vw, 8rem);
  margin: 0;
}

/* --- 2. Project Brief --- */
.project-brief {
  padding: 15vh clamp(20px, 5vw, 100px);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8vw;
  background: #0a070f;
}

.brief-description {
  font-size: clamp(1rem, 1.2vw, 1.5rem);
  line-height: 1.6;
  color: #a9a9a9;
  margin-top: 40px;
}

.brief-meta {
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 40px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-label {
  font-size: 0.75rem;
  color: #666;
  font-weight: 700;
  letter-spacing: 2px;
}

.meta-value {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- 3. Creative Gallery --- */
.project-gallery {
  padding: 0 clamp(20px, 5vw, 100px) 10vh;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  background: #1a1a1a;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.span-full {
  grid-column: span 2;
  aspect-ratio: 21/9; /* Ultra-wide cinematic shot */
}

/* --- NEXT PROJECTS GRID (DESKTOP) --- */
.next-projects-section {
  padding: 10vh clamp(20px, 5vw, 100px) 15vh;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0d0d0d;
}

/* --- 3 Equal Columns --- */
.next-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 6vh;
  width: 100%;
}

/* Force cards to fit the grid and override any homepage clamp() rules */
.next-projects-grid .project-card {
  width: 100% !important;
  flex-shrink: 1;
  cursor: pointer;
}

/* Setup the image wrapper to be a perfect 4:3 rectangle */
.next-projects-grid .card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #1a1a1a;
  overflow: hidden;
  border-radius: 2px; /* Smooth corners */
}

/* Ensure the background image stretches to fill the whole wrapper */
.next-projects-grid .placeholder-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Hover Zoom Effect */
.next-projects-grid .project-card:hover .placeholder-img {
  transform: scale(1.08);
}

.card-footer {
  color: #fff;
  margin-top: 2rem;
}

/* =========================================
   MOBILE APP VIDEO SHOWCASE
   ========================================= */
.project-video-showcase {
  padding: 0 clamp(20px, 5vw, 100px) 15vh;
}

.video-presentation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
}

/* --- Left Side: Features --- */
.video-features {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.feature-item {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 25px;
}

.feature-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
  letter-spacing: 2px;
}

.feature-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #999;
}

/* --- Right Side: The Phone Bezel --- */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
}

.phone-bezel {
  width: 100%;
  max-width: 320px; /* Limits size on huge monitors */
  aspect-ratio: 9/19.5; /* Modern flagship phone ratio */
  background: #000;
  border: 12px solid #1a1a1a; /* Creates the hardware bezel */
  border-radius: 40px; /* Rounded device corners */
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 0 2px #333; /* Inner hardware lip */
}

/* Optional: The iPhone 'Dynamic Island' / Camera Notch */
.phone-bezel::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 25px;
  background: #1a1a1a;
  border-radius: 20px;
  z-index: 10;
}

.app-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures your screen recording fills the whole frame */
  display: block;
}

/* =========================================
   APP SCREENS GALLERY
   ========================================= */
.app-screens-section {
  padding: 10vh 0 10vh clamp(20px, 5vw, 100px); /* Removes right padding so the scroll bleeds off the edge */
  background: #0d0d0d;
}

/* Ensure the title still respects the right padding even though the track doesn't */
.app-screens-section .projects-title-wrap {
  padding-right: clamp(20px, 5vw, 100px);
  margin-bottom: 6vh;
}

.screens-scroll-wrapper {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 40px; /* Space for the scrollbar/shadows */
  padding-right: clamp(20px, 5vw, 100px); /* Safe area at the end of the scroll */
  /* Native scrolling behavior */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hides scrollbar in Firefox */
}

.screens-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Hides scrollbar in Chrome/Safari */
}

/* The individual screenshot cards */
.app-screen-card {
  flex: 0 0 22vw; /* Shows roughly 4 screens at a time on desktop */
  min-width: 260px; /* Prevents them from getting too skinny */
  aspect-ratio: 9/19.5; /* Perfect modern phone ratio */
  border-radius: 24px; /* Soft, premium UI corners */
  background: #1a1a1a;
  overflow: hidden;
  scroll-snap-align: start;
  /* Subtle drop shadow to lift them off the dark background */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-screen-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.app-screen-card:hover img {
  transform: scale(1.03); /* Tiny hover zoom for interactivity */
}

/* =========================================
   PROJECT LINKS / CTAs
   ========================================= */
.project-links-section {
  padding: 5vh clamp(20px, 5vw, 100px) 15vh; /* Gives breathing room before the Up Next section */
  display: flex;
  justify-content: center;
  background: #0d0d0d;
}

.cta-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.primary-btn, .secondary-btn {
  padding: 18px 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

/* GitHub Button - The main attraction */
.primary-btn {
  background: #ffffff;
  color: #000;
}

.primary-btn:hover {
  background: transparent;
  color: #e2ff00;
}

/* Figma Button - Sleek and secondary */
.secondary-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Slick diagonal arrow hover animation */
.arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.primary-btn:hover .arrow,
.secondary-btn:hover .arrow {
  transform: translate(4px, -4px); /* Shoots the arrow up and to the right */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .project-links-section {
    padding: 5vh 20px 10vh;
  }
  .cta-container {
    flex-direction: column; /* Stacks the buttons vertically */
    gap: 15px;
  }
  .primary-btn, .secondary-btn {
    width: 100%; /* Makes buttons full-width for easy thumb tapping */
    justify-content: center;
  }
}
/* ================= FOOTER ================= */
.footer {
  padding: 80px 10%;
  background: #0a0a0a;
  color: #aaa;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: #aaa;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-socials {
  display: flex;
  gap: 25px;
  font-size: 18px;
}

.footer-socials a {
  color: #aaa;
  transition: 0.3s ease;
}

.footer-socials a:hover {
  color: white;
}

.footer-divider {
  margin: 60px 0 40px;
  height: 1px;
  background: #333;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 4px;
  color: #666;
}

/* ================= BACKGROUND BIG TEXT ================= */
.footer {
  position: relative;
  overflow: hidden;
}

.footer-bg-text {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 180px;
  font-weight: 700;
  letter-spacing: 10px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.footer-top,
.footer-divider,
.footer-bottom {
  position: relative;
  z-index: 2;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}
/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .app-screens-section {
    padding: 8vh 0 8vh 20px;
  }
  .app-screens-section .projects-title-wrap {
    padding-right: 20px;
  }
  .screens-scroll-wrapper {
    gap: 15px; /* Tighter gap on phones */
    padding-right: 20px;
  }
  .app-screen-card {
    flex: 0 0 75vw; /* Takes up 75% of the screen, letting the next one peek in */
    min-width: auto;
    scroll-snap-align: center; /* Centers the active image on mobile */
  }
}
/* --- Mobile Responsiveness --- */
/* --- MOBILE: Horizontal Swipe Area --- */
@media (max-width: 768px) {
  .next-projects-section {
    padding: 8vh 20px 15vh;
  }
  .next-projects-grid {
    display: flex; /* Switches from grid to flex row */
    overflow-x: auto;
    gap: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    /* Hide scrollbars for a clean app feel */
    scrollbar-width: none;
  }
  .next-projects-grid::-webkit-scrollbar {
    display: none;
  }
  .next-projects-grid .project-card {
    width: 82vw !important; /* Forces the cards to just fit the screen width */
    flex: 0 0 82vw !important;
    scroll-snap-align: center;
  }
  .video-presentation {
    grid-template-columns: 1fr; /* Stacks everything */
    gap: 60px;
  }
  /* Move the phone ABOVE the features on mobile */
  .phone-mockup-wrapper {
    order: -1;
  }
  .phone-bezel {
    max-width: 80vw; /* Scales the phone up slightly for mobile viewing */
    border-width: 8px; /* Slightly thinner bezel for small screens */
    border-radius: 35px;
  }
}
/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {
  .project-hero {
    height: 60vh;
  }
  .project-brief {
    grid-template-columns: 1fr; /* Stacks text on top of meta details */
    gap: 50px;
    padding: 8vh 20px;
  }
  .brief-meta {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 30px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .project-gallery {
    padding: 0 20px 8vh;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  } /* Stacks all images */
  .span-full {
    grid-column: span 1;
    aspect-ratio: 4/3;
  } /* Resets wide images to standard ratio */
  .next-projects-section {
    padding: 8vh 20px 15vh;
  }
  /* Transforms the 3-column grid into a native horizontal swipe, exactly like the homepage! */
  .next-projects-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    scrollbar-width: none;
  }
  .next-projects-grid::-webkit-scrollbar {
    display: none;
  }
  .next-projects-grid .project-card {
    flex: 0 0 82vw;
    scroll-snap-align: center;
  }
}/*# sourceMappingURL=newproject.css.map */