* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%; 
}

html, body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}


/* Desktop header/nav (your existing styles remain) */
header {
  width: 100%;
  padding: 1.5rem 0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.nav-center {
  display: flex;
  justify-content: center;
}

.nav-logo img {
  height: 125px;
  width: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-logo {
  transform: translateX(-50px); /* move left */
}

.nav-logo:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

.nav-left,
.nav-right .social-icons {
  display: flex;
  gap: 2.5rem;
}

.nav-left a,
.nav-right a {
  text-decoration: none;
  color: #111;
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 300;
}

.nav-right a i {
  font-size: 2rem;
  color: #111;
  transition: all 0.25s ease;
}

.nav-right a:hover i {
  color: #f3c400;
  transform: translateY(-2px);
}

/* Hamburger - hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  position: relative;  /* ensures it's above the menu */
  z-index: 1001;       /* higher than .mobile-menu */
}


.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center; /* so it rotates around center */
}


/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #f3c400;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-nav-links li {
  margin: 2rem 0;
}

.mobile-nav-links li a {
  font-size: 2rem;
  font-weight: 400;
  text-decoration: none;
  color: #111;
  transition: color 0.25s ease;
}

.mobile-nav-links li a:hover {
  color: #ffffff;
}

/* Socials at bottom */
.mobile-socials {
  position: absolute;
  bottom: 3rem;
  display: flex;
  gap: 2rem;
}

.mobile-socials a i {
  font-size: 2rem;
  color: #111;
  transition: color 0.25s ease;
}

.mobile-socials a:hover i {
  color: #ffffff;
}

/* Responsive: mobile nav */
@media (max-width: 768px) {
  .nav-left {
    display: none; /* hide desktop links */
  }

  .nav-right .social-icons {
    display: none; /* hide desktop social icons */
  }

  .nav-right {
    display: flex;           /* ensure it stays a flex container */
    justify-content: flex-end; /* push hamburger to the right */
  }

  .hamburger {
    display: flex;           /* show hamburger */
  }

  .nav-logo img {
    margin-right: 0;         /* center logo properly */
    height: 100px;           /* adjust for mobile */
  }
}


/* Hamburger spans (your existing style) */
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate hamburger into X */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0; /* middle bar disappears */
}

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



.intro-section {
    text-align: center;
    padding: 6rem 2rem 4rem 2rem;
    background: #ffffff;
}

.intro-section h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111;
}

.intro-section h2 {
    font-size: 1rem;
    font-weight: 300;
    color: #777777;
}




#hero {
    padding-top: 6vh;      
    padding-bottom: 0vh;   
    display: flex;
    justify-content: center;
    align-items: center;
}


.hero-wrapper {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    height: 50vh;          
    overflow: hidden; 
    padding: 0.4rem 0rem;
}

.hero-video {
    position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  }
  


.hero-click-area {
    display: block;       
    width: 100%;          
    text-decoration: none; 
    color: inherit;       
}


/* DARK OVERLAY */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .35s ease;
}

/* SHOW ON HOVER */
.hero-wrapper:hover .hero-overlay {
    opacity: 1;
    cursor: pointer;
}

/* TEXT STYLING */
.overlay-content {
    text-align: center;
    color: white;
    pointer-events: none; /* so the whole hero stays clickable */
}

.overlay-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
}

.overlay-content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: .5rem;
    opacity: .85;
}

.projects-section {
    background: #ffffff;
    max-width: 1500px;
    margin: 0 auto;
    padding: .4rem 2rem;
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
    max-width: 1500px;  /* same as your container */
    margin: 0 auto;
}

.project-card {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    cursor: pointer;
}

.project-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Video behind poster */
.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.project-card video.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover video.project-video {
    transform: scale(1.05);
}

/* Overlay text */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0,0,0,0.35);
}

.overlay-text {
    text-align: center;
}

.overlay-text .title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
}

.overlay-text .subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.3rem;
    opacity: 0.8;
    display: block;
}

/* Show overlay on hover */
.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}




/* INFO PAGE ---------------------------- */

.info-wrapper {
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.info-image {
    width: 100%;
    height: 650px; /* adjust this height for how tall you want it */
    overflow: hidden;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* CROPS the horizontal image */
    object-position: center; /* keeps your face centered */
    display: block;
    border-radius: 4px;
}

.info-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.info-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 600px;
}

.email-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: black;
    padding-bottom: 4px;
}

.email-link:hover {
    opacity: 0.6;
}

/* Make it responsive like Javier */
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* PLAY PAGE ------------------------ */

.play-wrapper {
    padding: 8rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.play-wrapper h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 3rem;
}

.play-gif img {
    width: 280px;   /* adjust bigger or smaller */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

/*REEL PAGE */

.reel-page-section {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reel-container {
    max-width: 1500px;
    width: 100%;
}

.reel-video {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* PROJECT PAGE */

/* Container for video + blurb */
.reel-container-with-blurb {
    display: flex;
    gap: 2rem; /* space between video and blurb */
    max-width: 1500px;
    margin: 0 auto;
    align-items: flex-start; /* top align blurb with video */
}

/* Video takes roughly 80% width */
.video-wrapper {
    flex: 0 0 80%;
}

/* Blurb takes roughly 20% width */
.blurb-wrapper {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.blurb-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #111;
}

.blurb-wrapper h1 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #111;
}

.blurb-wrapper p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 900px) {
    .reel-container-with-blurb {
        flex-direction: column;   /* stack video above blurb */
        align-items: stretch;     /* fill full width, don’t center */
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .video-wrapper {
        width: 100%;
        flex: none;              /* don’t let flex shrink the height */
    }

    .project-gif, .reel-video {
        width: 100%;
        height: auto;            /* let height scale naturally */
        max-height: none;        /* remove old 60vh limit */
        border-radius: 8px;
        display: block;
        object-fit: contain;     /* optional, preserves aspect ratio */
        margin-bottom: 1rem;    /* spacing from blurb */
    }

    .blurb-wrapper {
        width: 100%;
        flex: none;
        margin-top: 0;           /* spacing handled by margin-bottom of video */
        padding: 1.5rem;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .blurb-wrapper h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .blurb-wrapper h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .blurb-wrapper p {
        font-size: 1rem;
        line-height: 1.6;
        color: #555;
    }
}



.styleframe-section {
    text-align: center;
    padding: 8rem 0rem 5rem 0rem;
    background: #ffffff;

}

.styleframe-section h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111;
}

.styleframes {
    background: #ffffff;
    max-width: 1600px;
    margin: 0 auto;
}


.styleframe-grid {
    display: grid;
    gap: .4rem;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto;
}

.sf-card {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sf-card img {
    width: 100%;
    height: auto;
    display: block;   /* THIS removes the row gap */
}

.scroll-hint {
    margin-top: 11rem;
    font-weight: bolder;
    color: #111;
    font-size: 1.1rem;
}

.scroll-hint .arrow {
    display: inline-block;
    margin-left: 0.5rem;   /* small space between text and arrow */
    font-size: 1.2rem;
    color: #000000;        /* optional: match nav hover yellow */
    animation: bounce 1.2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(6px);
    }
    60% {
        transform: translateY(3px);
    }
}







/* RESUME SECTION ON INFO PAGE*/

.resume-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.resume-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.75rem;

    width: 100%;
    height: 4px;
    background: #111;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease;
}



.resume-button {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #111;
    border: 1px solid #111;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease;
}

.resume-button:hover {
    background: #f3c400;
    color: #000000;
}


.resume-section {
    max-width: 1275px;   /* same as info-grid */
    margin: 6rem auto;
    padding: 0 2rem;
}


.resume-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: 20rem;
    margin-bottom: 5rem;
    margin-top: 5rem;
}

.resume-left h3 {
    margin: 0;
    font-size: smaller;
    font-weight: 400;
}

.resume-section h2 {
    font-size: 3rem;
    font-weight: 700;
}

.resume-heading {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
}


.resume-section.visible .resume-header::after {
    transform: scaleX(1);
}


.resume-left span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.resume-left .year {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #999;
}

.resume-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume-right li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}


.resume-item h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111;
}

.resume-item ul {
    list-style-type: none;
    padding-left: 1.5rem;  /* matches indentation of headings */
}

.resume-item ul li {
    margin-bottom: 2rem; /* space between list items */
    line-height: 1.6;       /* slightly airy, like hers */
    font-size: 0.95rem;     /* smaller than heading, clean look */
}


.resume-item:last-child {
    margin-bottom: 0;  /* remove extra space after the last item */
}

@media (max-width: 768px) {
    .resume-item {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }
}

/* Start hidden */
.resume-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.1s;
    
}

/* When visible */
.resume-section.visible {
    opacity: 1;
    transform: translateY(0);
}





/* PLAY PAGE */

.play-gallery {
    column-count: 3;
    column-gap: 1rem;
    max-width: 1500px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

@media (max-width: 1000px) {
    .play-gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .play-gallery {
        column-count: 1;
    }
}

