/* ========================================
FONTS
======================================== */

.vend-sans{
  font-family: "Vend Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}
.alan-sans{
  font-family: "Alan Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}
.gravitas-one-regular {
  font-family: "Gravitas One", serif;
  font-weight: 400;
  font-style: normal;
}
.abril-fatface-regular {
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  font-style: normal;
}
.gloock-regular {
  font-family: "Gloock", serif;
  font-weight: 400;
  font-style: normal;
}

/* ========================================
 RESET & BASE STYLES
 ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden; /* prevent any horizontal scroll from layout shifts */
}

body {
  font-family: "Vend Sans", sans-serif;
  background-color: #ECEAE2 !important;
  color: #3E2723 !important;
  line-height: 1.5;
}

/* ========================================
NAVIGATION BAR
======================================== */
.navbar {
  background-color: #83512e;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar-brand {
  font-family: "Abril Fatface", monospace;
  font-size: clamp(24px, 5vw, 36px);
  color: #e0bfd6;
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.navbar-brand:hover {
  color: #FAD6D3;
}

/* Hamburger Menu */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #e0bfd6;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-family: "Vend Sans", sans-serif;
  color: #e0bfd6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #eceae2;
}

.nav-menu a:active{
  color: #eceae2;
}

/* Social Icons */
.nav-socials {
  display: flex;
  gap: 1rem;
}

.nav-socials img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-socials img:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ========================================
HERO SECTION
-- FIX: Changed from fixed min-height to
   viewport-relative height so it never
   dominates the entire screen on any device,
   and edges are always flush (no side gaps).
======================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Desktop: 65% of viewport height — cinematic but not full-screen */
  height: clamp(320px, 65vh, 560px);
  width: 100%; /* always full bleed, no gutters */
}

.hero-reel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#heroVideoContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#heroVideoContainer iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Overlay tint */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(131, 81, 46, 0.3);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.roles {
  margin-bottom: 30px;
}

.role-item {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 15px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: "Vend Sans", sans-serif;
  font-weight: 600;
  border: 2px solid white;
  cursor: pointer;
  background-color: transparent;
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: #e0bfd6;
}

.btn-primary {
  background-color: white;
  color: #83512e;
  border-color: white;
}

.btn-primary:hover {
  background-color: transparent;
  color: white;
  border-color: #e0bfd6;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: #83512e;
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active{
  background-color: #e0bfd6;
  border-color: #ECEAE2;
}

/* ========================================
   ABOUT SECTION
   -- FIX: Replaced fixed padding with
      clamp() so it breathes proportionally
      across all screen sizes instead of
      feeling cramped on iPad or tight on
      mobile.
   ======================================== */
.about {
  display: flex;
  /* Fluid padding: shrinks gracefully from desktop → tablet → mobile */
  padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 40px);
  margin: 0;
  width: 100%; /* full bleed, matches hero */
  align-items: flex-start;
  background-color: #f5eee6;
  gap: clamp(20px, 3vw, 40px);
}

.headshot-title-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 250px;
}

.about .name {
  font-size: 48px;
  color: #83512e;
  font-family: "Abril Fatface", serif;
  text-align: center;
  margin: 0;
}

.about .headshot {
  width: 250px;
  height: auto;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about .headshot.revealed {
  opacity: 1;
  transform: translateY(0);
}

.about section {
  flex: 1;
  min-width: 0;
}

.about-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.about-header #about {
  font-family: "Abril Fatface", serif;
  font-size: 28px;
  color: #83512e;
  margin: 0;
}

.about-header .nickname {
  color: #f699ad !important;
  font-size: 32px;
  font-family: "Abril Fatface", serif;
  text-decoration: underline;
  text-decoration-color: #83512e;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  display: inline-block;
  opacity: 0;
  animation: slideGlow 1s ease-out 0.5s forwards;
  margin: 0;
}

.about section p {
  font-family: "Vend Sans", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #3E2723;
  margin: 0;
  text-align: left;
}

/* ========================================
   MY WORK / GALLERY SECTION
   -- FIX: Removed max-width + auto margin
      so the pink band always stretches edge
      to edge, matching the hero and about
      sections. The inner scroll container
      still gets padding for breathing room.
   ======================================== */
.divider {
  width: 100%; /* full bleed — no side gaps */
  padding: 40px clamp(20px, 4vw, 40px);
  background-color: #e0bfd6;
}

.my-work-title {
  font-family: "Abril Fatface", serif;
  font-size: 42px;
  color: #83512e;
  margin-bottom: 40px;
  text-align: center;
}

.gallery-wrapper {
  position: relative;
  margin: 20px 0 0 0;
}

.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: #83512e #eceae2;
}

.scroll-container::-webkit-scrollbar {
  height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #eceae2;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #83512e;
  border-radius: 4px;
}

.image-card {
  flex: 0 0 auto;
  width: 400px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.image-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #eceae2;
  border-top-color: #83512e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.lazy-image.loaded ~ .image-loader {
  display: none;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #83512e;
  color: #eceae2;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.scroll-btn:hover {
  background-color: #6d4222;
  transform: translateY(-50%) scale(1.1);
}

.scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-btn-left {
  left: 0px;
}

.scroll-btn-right {
  right: 0px;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 clamp(20px, 4vw, 40px); /* fluid side padding instead of fixed 20px */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.recently,
.whats-next {
  background-color: rgba(131, 81, 46, 0.05);
  padding: 40px;
  border-radius: 12px;
  border-left: 4px solid #83512e;
}

.recently header,
.whats-next header {
  font-family: "Abril Fatface", serif;
  font-size: 28px;
  color: #83512e;
  margin-bottom: 15px;
}

.recently p,
.whats-next p {
  color: #3E2723;
  margin-bottom: 20px;
  font-size: 16px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background-color:#e0bfd6;
  padding: 40px 20px 2rem;
  color: #83512e;
  text-align: center;
  font-size: 16px;
}

footer h3 {
  font-size: 96px;
  font-family: "Abril Fatface", serif;
  margin-top: 20px;
}

#socials-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 20px 0;
  color: #83512e;
  list-style: none;
  margin: 0;
}

#socials-links li {
  position: relative;
}

#socials-links li a {
  color: #83512e;
  font-size: 18px;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-family: "Vend Sans", sans-serif;
}

#socials-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #83512e;
  transform: scaleX(0);
  transition: transform 300ms ease;
}

#socials-links li a:hover {
  color: #83512e;
}

#socials-links li a:hover::after {
  transform: scaleX(1);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideGlow {
  0% {
    opacity: 0;
    transform: translateX(-30px);
    text-shadow: none;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   RESPONSIVE DESIGN - TABLET (≤900px)
   ======================================== */
@media (max-width: 900px) {
  .navbar {
    padding: 1rem;
  }

  .navbar-brand {
    font-size: clamp(20px, 4vw, 28px);
  }

  .nav-toggle {
    display: flex;
    order: 1;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: #83512e;
    flex-direction: column;
    padding: 80px 2rem 2rem;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    font-size: 18px;
  }

  .nav-socials {
    order: 3;
    gap: 0.5rem;
  }

  /* Hero: shorter on tablet, no wasted vertical space */
  .hero {
    height: clamp(260px, 55vh, 420px);
  }

  .roles {
    margin-bottom: 20px;
  }

  .role-item {
    font-size: 14px;
    padding: 8px 12px;
    margin: 0 8px;
  }

  .about {
    flex-direction: column;
    gap: 30px;
  }

  .headshot-title-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .about .name {
    font-size: 36px;
  }

  .about .headshot {
    width: 100%;
    max-width: 250px;
  }

  .about-header {
    padding-top: 0;
    text-align: center;
    justify-content: center;
  }

  .about-header #about {
    font-size: 32px;
  }

  .about-header .nickname {
    font-size: 28px;
  }

  .about section {
    text-align: center;
  }

  .about section p {
    text-align: left;
  }

  .download-buttons {
    flex-direction: column;
  }

  .my-work-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .image-card {
    width: 300px;
    height: 225px;
  }

  .scroll-btn-left {
    left: 10px;
  }

  .scroll-btn-right {
    right: 10px;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px auto;
  }

  .recently,
  .whats-next {
    padding: 30px;
  }

  footer h3 {
    font-size: 64px;
  }

  #socials-links {
    gap: 24px;
  }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE (≤700px)
   ======================================== */
@media screen and (max-width: 700px) {
  .role-item {
    font-size: 12px;
    padding: 6px 10px;
    margin: 0 5px;
  }
}

/* ========================================
   RESPONSIVE DESIGN - SMALL MOBILE (≤480px)
   -- FIX: Hero height uses clamp so it
      never over-extends vertically on a
      phone, showing below-the-fold content
      immediately.
   ======================================== */
@media (max-width: 480px) {
  .navbar-brand {
    font-size: 20px;
  }

  .nav-socials img {
    width: 20px;
    height: 20px;
  }

  /* Hero: on small phones just 45% of viewport height */
  .hero {
    height: clamp(220px, 45vh, 320px);
  }

  .roles {
    margin-bottom: 15px;
  }

  .role-item {
    font-size: 11px;
    padding: 5px 8px;
    margin: 0 3px;
  }

  .download-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
  }

  .about .name {
    font-size: 28px;
  }

  .headshot-title-wrapper {
    max-width: 200px;
  }

  .about .headshot {
    max-width: 200px;
  }

  .about-header #about {
    font-size: 28px;
  }

  .about-header .nickname {
    font-size: 24px;
  }

  .about section p {
    font-size: 14px;
    line-height: 1.6;
  }

  .my-work-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .image-card {
    width: 250px;
    height: 187px;
  }

  .projects {
    margin: 30px auto;
  }

  .recently,
  .whats-next {
    padding: 25px 20px;
  }

  .recently header,
  .whats-next header {
    font-size: 24px;
  }

  .recently p,
  .whats-next p {
    font-size: 14px;
  }

  footer {
    padding: 30px 15px 1.5rem;
  }

  footer h3 {
    font-size: 48px;
  }

  #socials-links {
    flex-direction: column;
    gap: 15px;
  }
}