@font-face {
    font-family: 'ClashDisplay';
    src: url(fonts/ClashDisplay/ClashDisplayVariable.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url(fonts/Montserrat/MontserratVariableFontwght.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}


html {
    --background: #181818;
    --primary: #FFFFF0;
    --secondary: #a9afb5;
    --gradient: linear-gradient(90deg, #73f440, #a9afb5);
    --font-sans: 'ClashDisplay';
    --font-serif: 'Montserrat';
    background: var(--background);
    color: var(--secondary);
}

a img {
  cursor: pointer
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.menu-toggle {
    display: none;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.pokemon_project,
.another_project {
  flex: 1 1 45%;
  position: relative;
  overflow: hidden;
}

.pokemon_project img,
.another_project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
  filter: blur(2px);
}

/* --- FIXED HOVER BLUR BUG --- */
.pokemon_project:hover img,
.another_project:hover img {
  transform: scale(1.05);
  filter: blur(0) brightness(100%); /* Added blur(0) */
}

.pokemon_project span,
.another_project span {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background-color 0.4s ease;
}

.pokemon_project:hover span,
.another_project:hover span {
  background-color: rgba(0, 0, 0, 0.5);
}

.pokemon_project p,
.another_project p {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: white;
  font-size: 1.25rem;
  z-index: 2;
}

@viewport {
  width: device-width;
  zoom: 1.0;
}

@media (max-width: 768px) {
  .pokemon_project,
  .another_project {
    flex: 1 1 100%;
  }
}

.header {
  text-align: left;
  margin-left: 0; 
  color: var(--primary);
}

.header-section {
  background-color: #181818;
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-text {
    font-family: var(--font-sans), sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0;
}

.header-block h4 {
    font-family: var(--font-sans), sans-serif;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1.5rem; 
    transition: color 0.2s ease;
}

.header-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10rem;

}

.header-text-column {
    flex-grow: 1;
    width: clamp(320px, 40vw, 800px); 
    align-items: center;
}

.image-text-container {
    display: block;
    gap: 0;
    margin-top: 0;
    align-items: center;
}

.mast-text {
    display: flex;
    flex-direction: column; 
    max-width: 100%;
    margin-top: 0;
    line-height: 30px;
}

img.me-main {
    width: clamp(300px, 15vw, 600px);
    height: auto; 
    flex-shrink: 0;
    margin-left: 0;
    margin-top: 0;
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
}

.navbar {
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    background-color: var(--background);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

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

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    text-transform: uppercase;
    margin: 0 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FFFFF0;
    text-decoration: underline;
}

a.sri {
  text-decoration: underline;
  color: #FFFFF0;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,2,2,0.6);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
  padding: 2rem;
}
.overlay[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.overlay-panel {
  background: var(--background);
  color: var(--primary);
  max-width: 900px;
  width: 100%;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(8px);
  transition: transform 0.25s ease;
}
.overlay[aria-hidden="false"] .overlay-panel {
  transform: translateY(0);
}

.overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 2.25rem;
  cursor: pointer;
}

.overlay-content {
  margin-top: 1rem;
  line-height: 1.6;
}

.arrow span {
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #FFFFF0;
    animation: moveDown 1s infinite;
}

.arrow {
  margin: 0 auto;
  margin-top: 2rem;
}

.arrow span:nth-child(1) { animation-delay: 0s; }
.arrow span:nth-child(2) { animation-delay: 0.2s; }
.arrow span:nth-child(3) { animation-delay: 0.4s; }

@keyframes moveDown {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
    100% { transform: translateY(20px); opacity: 0; }
}

.slides {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.slides img {
    max-width: 100%;
    margin: 10px 0;
    border-radius: 20px;
}

.footer {
    margin-top: 10rem;
    margin-bottom: 2rem;

    display: flex;
    justify-content: space-between; 
    align-items: center;            

    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; 
    box-sizing: border-box;
}

.footer p {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    color: #a9afb5;
    margin: 0; 
}

.footer-nav a {
  text-decoration: none;
  color: var(--secondary);
  font-size: 2rem;
  transition: color 0.3s ease;
  font-family: var(--font-sans);
  text-decoration: none;
  list-style: none;  
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer ul {
  list-style-type: none;

  display: flex; 
  gap: 1.5rem;   
  margin: 0;     
  padding: 0;    
}

#pdfContainer {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

embed {
    margin-top: 10rem;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 90vh;
    border: none;
}

#pdf-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toolbar {
    display: none;
}

p.PDF {
    font-family: var(--font-serif);
    display: flex;
    justify-content: center;
    margin-top: 5rem;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    margin-top: 10rem;
}

p {
    font-family: var(--font-serif);
    margin-bottom: 0;
    color: #FFFFF0;
}

h2 {
  text-align: center;
  margin-top: 50px;
  font-family: var(--font-sans);
  font-size: 2.5rem;
  color: var(--primary);
  letter-spacing: 3px;
}

h5 {
    margin: 0 auto;
    font-family: var(--font-serif);
    width: 600px;
    text-align: left;
    color: white;
    margin-top: 0.5rem;
}

a {
    text-decoration: none;
}

.section-divider {
    width: 65%;
    height: 2px;
    background-color: var(--primary);
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.me {
  max-width: 400px;
  max-height: 700px;
}

.about-me img {
  margin: auto 0;
}

.about-me {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 3rem;
}

.about-header {
    font-size: 2.5rem;
    color: var(--primary);
    font-family: var(--font-sans);
    text-align: center;
    margin-top: 5rem;
}

/* --- REPLACED .about-text WITH .about-text-container --- */
.about-text-container {
  flex: 2 1 500px;
  max-width: 650px;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: var(--secondary);
}

/* --- ADDED new rule for <p> tags in about-me --- */
.about-text-container p {
    font-family: var(--font-serif);
    margin-bottom: 1.5rem; /* Creates space between paragraphs */
}

.games, .movies, .books {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.movies img,
.books img,
.games img {
  width: 300px;
  height: 418px;
  object-fit: cover;
  margin-bottom: 50px;
}

.image-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-hover-effect:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.contact-header {
    font-size: 2.5rem;
    font-family: var(--font-sans);
    color: var(--primary);
    text-align: center;
    margin-top: 5rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form label {
  font-family: var(--font-serif);
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--secondary);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-serif);
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--secondary);
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
}

.contact-form button {
    background: var(--primary);
    color: black;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    font-family: var(--font-serif);
    cursor: pointer;
    border-radius: 20px;
    width: 100%;
    transition: background 0.3s ease-in-out;
}

.contact-form button:hover {
    background: #4a9b26;
}

#contact-divider {
  display: flex;
    width: 50%;
    height: 2px;
    background-color: var(--primary);
    margin: 0 auto;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.socials img {
  max-width: 100px;
  max-height: 100px;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  margin-top: 2rem;
}

.download {
  text-align: center;
  margin-top: 2rem;
}

.download button {
  background: #FFFFF0;
	height: 50px;
	color: black;
	font-family: 'Montserrat';
	transition: background-color 0.3s ease;
	font-size: 1.5rem;
	padding-left: 1rem;
	padding-right: 1rem;
  border: none;
  border-radius: 8px;
}

.download button:hover {
  background-color: #A09B8C;
}

.resume a {
  color: black;
}

.search button:hover {
	background-color: black;
}

.resume h3 {
  text-align: left;
  margin-bottom: 0;
  font-family: var(--font-sans);
  margin-top: 0;
  font-size: 41px;
}

.resume-header {
  font-family: var(--font-sans);
  margin: 0 auto;
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary);
  margin-top: 5rem;
  margin-bottom: 0;
}

.resume-name {
    margin: 0 auto;
    width: 50rem;
}

.resume-education {
  font-family: var(--font-serif);
  width: 50rem;
  margin: 0 auto;
}

.resume-skills {
  font-family: var(--font-serif);
  width: 50rem;
  margin: 0 auto; 
}

.resume-experience {
  font-family: var(--font-serif);
  width: 50rem;
  margin: 0 auto; 
}

.resume-experience2 {
  font-family: var(--font-serif);
  width: 50rem;
  margin: 0 auto; 
}

.resume-skills h3 {
  font-family: var(--font-sans);
  font-size: 41px;
}

.case-study-wrapper {
    max-width: 1100px;
    margin: 4rem auto 0 auto;
    padding: 0 1rem;
}

/* --- FIXED RESPONSIVENESS (align-items) --- */
.cs-section {
    display: flex;
    flex-wrap: wrap; 
    align-items: flex-start; /* Changed from center */
    gap: 2rem;
    margin-bottom: 5rem;
}

.cs-section.stacked {
    flex-direction: column;
    align-items: center; 
}
.cs-section.stacked .cs-text {
    width: 100%;
    max-width: 750px; 
}

.cs-section.reverse {
    flex-direction: row-reverse;
}

.cs-text {
    flex: 4;
    min-width: 300px; 
}

/* --- FIXED RESPONSIVENESS (min-width) --- */
.cs-image {
    flex: 1;
    width: 100%; /* Added */
    max-width: 800px; /* Changed from min-width */
    min-width: 300px; /* Added */
    text-align: center;
}

.cs-image-IX img {
    height: 550px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); 
}

.cs-image-IX {
  text-align: center;
}

/* --- FIXED RESPONSIVENESS (width) --- */
.cs-image img {
    width: 100%; /* Changed from 800px */
    max-width: 800px; /* Added */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }

.cs-image video,
.cs-image-grid video,
.cs-image-IX video {
    width: 100%;    
    max-width: 800px; 
    height: auto;     
    border-radius: 10px; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); 
}

.cs-image-grid {
    flex: 1;
    width: 100%; /* Added */
    max-width: 800px; /* Changed from min-width */
    min-width: 300px; /* Added */
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.cs-section.stacked .cs-image-grid img {
    max-width: 100%;
    flex-basis: 100%;
}

/* --- FIXED RESPONSIVENESS (width, flex) --- */
.cs-image-grid img {
    width: 100%; /* Changed from 800px */
    max-width: 380px; /* Added to allow side-by-side */
    flex: 1 1 300px; /* Added for flexible wrapping */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cs-text h3 {
    font-family: var(--font-sans);
    font-size: 2.25rem;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.cs-text p {
    font-family: var(--font-serif);
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.6; 
    margin: 0 auto; 
    text-align: left;
    width: 90%;
    max-width: 750px;
}

.cs-text ul {
    font-family: var(--font-serif);
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.6; 
    margin: 0 auto; 
    text-align: left;
    width: 90%;
    max-width: 750px;
    list-style: none;
}

p.bold {
  margin-top: 1rem;
}

.cs-text li {
    font-family: var(--font-serif);
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.75rem; 
}

.cs-text li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.cs-solution-section {
    text-align: center;
    margin-bottom: 5rem;
}

.cs-solution-section h3 {
    font-family: var(--font-sans);
    font-size: 2.25rem;
    color: var(--primary);
}

.cs-solution-section p {
    font-family: var(--font-serif);
    color: var(--secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 750px;
    margin: 1rem auto 2rem auto;
}

.cs-image-large img {
    width: 100%;
    max-width: 900px; 
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pokemon_images img {
   display: none; 
}
.pokemon_images {
   display: none;
}

@media (max-width: 768px) {
    .cs-section {
        margin-bottom: 3rem;
    }

    .cs-section.reverse {
        flex-direction: column; 
    }
    
    .cs-section {
        flex-direction: column;
    }

    /* This rule is now redundant thanks to fixes above */
    /*
    .cs-image-grid {
        grid-template-columns: 1fr; 
    }
    */

    .cs-text h3, .cs-solution-section h3 {
        font-size: 1.75rem;
    }
}

.bergo_CS, .league_CS {
    width: 90%;
    height: 400px;
    margin: 0 auto;
    border-radius: 15px;
    padding: 10px 15px;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

/* --- RENAMED .pokemon_CS to .project-intro --- */
.project-intro {
  margin: 0 auto;
    width: 90%;
    max-width: 1100px; 
    padding: 5rem;
    padding-bottom: 0 !important; /* This was in your original code */
    text-align: left; 
}

.project-intro p {
  margin: 0 auto;
    text-align: left; 
    color: #a9afb5;
    font-family: var(--font-serif);
    width: 90%; 
    max-width: 750px; 
    line-height: 1.6;
    margin-bottom: 1.5rem; /* Added spacing */
}

.project-intro h2 {
    color: #FFFFF0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-align: center;
    margin: 0;
    margin-bottom: 2rem;
}

.bergo_CS .buttons, .league_CS .buttons {
  justify-content: left;
    text-align: center;
    margin: 0;
}

.project-intro .buttons {
    text-align: center;
    margin: 0;
    padding: 0;
}

.case_study {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* --- RENAMED .pokemon_CS > * to .project-intro > * --- */
.bergo_problem > *, .bergo_role > *, .bergo_tech > *, .bergo_outcome > *, .bergo_CS > *,
.league_problem > *, .league_role > *, .league_tech > *, .league_outcome > *, .league_CS > *,
.pokemon_role > *, .pokemon_tech > *, .pokemon_outcome > *, .project-intro > * {
  position: relative;
  z-index: 1;
}

.case_study h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: white;
    text-align: center;
    margin-top: 0;
}

.case_study p {
    color: white;
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 30px;
}

.pokemon_image h4 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color:  white;
    width: 600px;
    margin:  0 auto;
    text-align: left;
    margin-top: 0;
    margin-bottom: 1rem;
}

.pokemon_image {
    width: 812px;
    height: 500px;
    border-radius: 5px;
    transition: filter 0.6s ease, box-shadow 0.6s ease;
    filter: grayscale(100%);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.pokemon_image::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('Graphics/pokemon.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.pokemon_image > * {
    position: relative;
    z-index: 1;
}

.pokemon_image:hover {
    filter: grayscale(0%);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.front_buttons {
  background: #FFFFF0;
  color: black;
  border: 2px solid black;
  padding: 10px 15px;
  font-size: 18px;
  font-family: var(--font-serif);
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  width: auto;
  margin-bottom: 2rem;
  margin-top: 2rem;
  width: 200px;
  height: 40px;
  transition: background 0.3s ease-in-out;
}

.buttons {
    margin-left: 7rem;
}

.buttons button:hover {
    background: #A09B8C;
}

.pokemon_images img{
    width: 800px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.pokemon_images {
    margin: 0 auto;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    display: none; 
}

.Lexend {
    font-family: 'Lexend';
}

.Noto_Sans {
    font-family: 'Noto-Sans';
}

.red {
    background: #FF646A;
}

.gray {
    background: #3d3d3d;
}

.white {
    background: #FFFFFF;
    color: black;
}

.gold {
    background: #C89B3C;
}

.tan {
    background: #A09B8C;
    color: black;
}

.navy {
    background: #010A13;
}
 /*
.cursor {
    ...
}
*/

/* --- RENAMED .about-text --- */
@media screen and (min-width: 1800px) {
  .about-text-container {
    max-width: 30vw;
  }

  .about-me {
    margin-top: 3rem;
  }

  .me {
    max-height: 600px
  }

  #resume-divider {
    display: flex;
    width: 35%;
    height: 2px;
    background-color: var(--primary);
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
    .header-block {
        flex-direction: column; 
        text-align: center; 
    }

    .header {
        margin-left: 0;
        padding: 0 1rem; 
    }

    .movies, .books, .games {
        display: none;
    }

    .contact-header {
        font-size: 7rem;
    }

    .nav-block {
      padding: 1rem;
      position: relative;
    }

    .navbar {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
    }

    .menu-toggle {
      background: transparent;
      border: none;
      color: var(--primary);
      font-size: 3rem;
      cursor: pointer;
      padding: 1rem;
      display: block;
      position: absolute;
      z-index: 100;
      right: 1rem;
      margin-top: 3rem;
    }

    .nav-links {
      display: flex;
      flex-direction: column;
      list-style: none;
      margin: 0;
      padding: 2rem;
      gap: 1.5rem;
      position: fixed;
      top: 0;
      left: 0;
      width: 70%;
      height: 100vh;
      background-color: #222;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
      z-index: 100;
    }

    .nav-links[data-visible="true"] {
      transform: translateX(0);
    }

    .nav-links li {
      padding: 1rem 0;
      border-bottom: 1px solid #444;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      font-size: 2rem;
      transition: color 0.3s ease;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 99;
      display: none;
    }

    .overlay[data-visible="true"] {
      display: block;
    }

    .project-covers {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 0 20px;
      margin: 0 auto;
    }

    .bergo_image,
    .league_image {
      width: 95%;
      height: 500px;
      filter: grayscale(0%);
    }

    .league_image h4,
    .bergo_image h4,
    .bergo_solo,
    .league_solo {
      text-align: center;
    }

    .bergo_goal,
    .league_goal {
      font-size: 20px;
      max-width: 90%;
    }

    .buttons {
      text-align: center;
      margin: 0;
    }

    .front_buttons {
      background: white;
      color: black;
      border: 2px solid black;
      padding: 10px 15px;
      font-size: 15px;
      font-family: var(--font-serif);
      cursor: pointer;
      border-radius: 10px;
      text-decoration: none;
      display: inline-block;
      width: 175px;
      height: 50px;
      transition: background 0.3s ease-in-out;
    }

    .header-text {
      font-family: var(--font-sans), sans-serif;
      font-size: 7rem;
      font-weight: bold;
      margin-top: 10rem;
      margin-bottom: 0;
      color: #FFFFF0;
    }

    .arrow {
      margin-bottom: 10rem;
    }

    .resume-header {
      font-size: 8rem;
      display: flex;
      text-align: center;
      justify-content: center;
      margin-top: 10rem;
    }

    .resume h3 {
      text-align: left;
      width: 40rem;
      margin:  0 auto;
      margin-bottom: 2rem;
    }

    .footer p {
      text-align: center !important;
    }

    .resume p {
      text-align: left;
      width: 40rem;
      margin: 0 auto;
      line-height: 2rem;
      margin-bottom: 1rem;
    }

    .resume h4 {
      text-align: left;
      width: 40rem;
      margin: 0 auto;
      margin-bottom: 2rem;
      margin-top: 2rem;
      line-height: 2rem;
      font-size: 1.5rem;
      font-family: var(--font-sans);
    }

    .section-divider {
          width: 95%;
          height: 2px;
          background-color: var(--primary);
          margin: 0 auto;
          margin-top: 2rem;
          margin-bottom: 2rem;
    }

    /* .about-text is gone, replaced by .about-text-container */
    .about-text-container {
        max-width: 90%;
        margin: 0 auto;
    }

    .about-me {
        display: block;
    }

    .me {
        display: none;
    }

    .about-header {
        font-size: 7rem;
        font-family: var(--font-sans);
        color: var(--primary);
        text-align: center;
        margin-top: 10rem;
        margin-bottom: 2rem;
    }

    .carousel-container {
        position: relative;
        overflow: hidden;
        max-width: 500px;
        margin: 2rem auto;
        display: block;
    }

    .carousel-track {
      display: flex;
      transition: transform 0.4s ease;
      will-change: transform;
    }

    .carousel-image {
      min-width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 10px;
    }

    .carousel-button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      border: none;
      color: white;
      font-size: 2rem;
      padding: 0.5rem;
      cursor: pointer;
      z-index: 10;
    }

    .carousel-button.prev {
      left: 10px;
    }

    .carousel-button.next {
      right: 10px;
    }

    .carousel-button {
      font-size: 1.5rem;
      padding: 0.3rem;
    }
}

.favorites-section {
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.favorites-section h2 {
    color: var(--primary);
    font-size: 2.5rem;
    font-family: var(--font-sans);
    text-align: center;
    margin-bottom: 3rem;
}

.favorites-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    flex-wrap: wrap;
    gap: 3rem;
}

.fav-card {
    width: 300px; 
    color: #fff;
    font-family: var(--font-serif);
}

.movie-card {
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: scale(1.03);
}

.movie-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.movie-details {
    padding: 1.5rem;
}

.movie-details .movie-title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.movie-details .movie-tagline {
    font-style: italic;
    color: var(--secondary);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.movie-details .movie-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
    margin: 0;
}

/* ===== INDEX RESPONSIVENESS FIX (FINAL + IMAGE HIDE BELOW 1000PX) ===== */

/* HEADER SECTION */
.header-section {
  padding: 2rem 1rem;
  height: auto;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-text-column {
  flex: 1 1 400px;
  min-width: 280px;
}

.header-text {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.header-text2 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 1.5rem;
}

.mast-text p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 500px;
  text-align: center;
}

.me-main {
  flex: 1 1 300px;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Hide image and adjust layout below 1000px */
@media (max-width: 1000px) {
  .me-main {
    display: none;
  }

  .cursor {
    display: none;
  }

  .header-block {
    flex-direction: column;
    gap: 2rem;
  }

  .arrow {
    display: none;
  }

  /* --- RENAMED .about-text --- */
  .about-text-container {
    max-width: 90%;
    text-align: center;
  }

  /* --- ADDED rule for <p> tags --- */
  .about-text-container p {
    text-align: center;
  }
}

/* PROJECTS SECTION */
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.pokemon_project,
.another_project {
  flex: 1 1 50%;
  width: 50%;
  position: relative;
  overflow: hidden;
}

.pokemon_project img,
.another_project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.pokemon_project:hover img,
.another_project:hover img {
  transform: scale(1.05);
  filter: brightness(100%);
}

@media only screen and (min-height: 932px) and (orientation: portrait) {

}


/* Stack vertically and full-width below 1000px */
@media (max-width: 1000px) {
  .pokemon_project,
  .another_project {
    flex: 1 1 100%;
    width: 100%;
  }
}
/* ===== ABOUT PAGE RESPONSIVENESS FIX ===== */

/* General cleanup */
body, html {
  overflow-x: hidden;
}

/* About Me Section */
.about-me {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 4rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

.about-header {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.me {
  max-width: 400px;
  height: auto;
  flex: 1 1 300px;
  border-radius: 10px;
  object-fit: cover;
}

/* .about-text is now .about-text-container */
/* ... */

.download {
  margin-top: 2rem;
  text-align: center;
}

/* Favorites Section */
.favorites-section {
  padding: 0 1rem 5rem 1rem;
  margin: 0 auto;
  max-width: 1200px;
}

.favorites-section h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
}

.favorites-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.fav-card {
  width: 100%;
  max-width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fav-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.movie-details {
  padding: 1.5rem;
}

.movie-description {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Adjust layout on tablets */
@media (max-width: 1000px) {
  .about-me {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  img.me {
    display: none;
  }

  .me {
    max-width: 300px;
  }

  /* .about-text is now .about-text-container (rule is above) */
}

/* Further tighten layout on small phones */
@media (max-width: 600px) {
  .about-header {
    font-size: 2rem;
  }

  .about-me {
    margin: 2rem auto;
  }

  .me {
    display: none; /* optional if you want to hide the image on small screens */
  }

  /* --- ADDED rule for <p> tags --- */
  .about-text-container p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .favorites-section {
    padding-bottom: 3rem;
  }
}


/* --- STRONG MOBILE FIX FOR SIZZLE & POKEMON PAGES --- */
@media (max-width: 768px) {


  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .cursor {
    display: none;
  }

  /* --- RENAMED .pokemon_CS, REMOVED !important --- */
  .cs-image,
  .cs-image-grid,
  .cs-image-IX,
  .cs-image-large,
  .pokemon_image,
  .project-intro {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  /* Resize large videos and images */
  .cs-image img,
  .cs-image video,
  .cs-image-grid img,
  .cs-image-grid video,
  .cs-image-IX img,
  .cs-image-IX video,
  .pokemon_images img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
  }

  /* Stack text and visuals properly */
  .cs-section,
  .cs-section.reverse {
    flex-direction: column !important; /* Keeping this one for simplicity */
    align-items: center !important;
    justify-content: center;
    gap: 2rem !important;
    text-align: center;
  }

  .cs-text {
    width: 100% !important; /* Keeping this one */
    padding: 0 1rem !important;
  }

  /* --- RENAMED .pokemon_CS, REMOVED !important --- */
  .project-intro,
  .case-study-wrapper {
    padding: 1.5rem 1rem;
  } 

  /* Make sure embedded frames scale */
  iframe {
    width: 100% !important; /* Keeping this one */
    height: 56vw !important;
    max-width: 100%;
  }

  /* Center everything */
  .cs-solution-section,
  .project-intro, /* Renamed */
  .cs-section {
    text-align: center !important; /* Keeping this one */
  }

  /* Buttons */
  .front_buttons {
    width: auto !important; /* Keeping this one */
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
    margin: 1rem auto !important;
    display: inline-block;
  }

  /* --- RENAMED .pokemon_CS h2 --- */
  .project-intro h2 {
    margin-top: 2rem;
  }

}