@font-face {
    font-family: 'Futura Light';
    src: url('fonts/Futura-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Overpass Heavy';
    src: url('fonts/overpassheavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Overpass Heavy';
    src: url('fonts/overpassheavyitalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg-color: #E0E1DD;
    --text-color: #e0e0e0;
    --accent-color: #000000;
    --futura-light: 'Futura Light', Futura, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --overpass-heavy: 'Overpass Heavy', 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Prevent horizontal scroll and improve mobile rendering (iPhone-friendly) */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}
body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

html, body {
    font-family: 'Futura Light', sans-serif;
    background-color: var(--bg-color);
    color: #415A77;
    margin: 0;
    padding: 0;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(to bottom, #778DA9, #E0E1DD);
    font-family: 'Futura Light', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 35px;
    font-size: large;
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(35px, env(safe-area-inset-right));
}

main {
    flex: 5; /* Pushes the footer down */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: space-between;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #1B263B;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

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

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

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background: linear-gradient(to bottom, #778DA9, #E0E1DD);
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    gap: 0;
    display: flex;
}

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

nav a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 15px 0;
    font-size: 22px;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

nav a:last-child {
    border-bottom: none;
}

nav a:hover {
    color: #415A77;
}

/* Overlay when menu is open */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hero, .projects{
    margin: 50px auto;
    max-width: 800px;
    padding-bottom: 50px;
}

.project-details{
    margin: 50px auto;
    max-width: 800px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Adds spacing between buttons */
}

.project-details img {
    height: 300px;
    width: fit-content;
    border-radius: 10px;
}

.project-details p {
    text-align: left;
}

.intro { 
    margin: 15px auto;
    padding-top: 15px;
    padding-bottom: 10px;
    max-width: 1100px;
    display: flex;
    align-items: center; /* Vertically center text */
    text-align: left;
    gap: 30px; /* Adds spacing between image and text */
}

/* About page: text flows under image */
.intro.float-image {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
    position: relative;
}

.intro.float-image img {
    float: left;
    margin-right: 30px;
    margin-bottom: 0;
    margin-left: 70px;
    margin-top: 0;
    transform: none;
    height: auto;
    width: 100%;
    max-width: 400px;
}

.intro.float-image .container {
    display: block;
    overflow: hidden;
    margin-right: 70px; /* Match right margin of full-width container */
    padding-bottom: 0;
    min-height: 100%;
}

.intro h1{
    color: #1B263B;
    font-size: 75px;
    margin-top: 5px;
    margin-bottom: 15px;
    font-family: 'Georgia', sans-serif;
    font-weight: 900;
    min-height: 100px;
    line-height: 1.25;
}

.intro img{
    width: 100%;
    max-width:400px; /* Set same size for both images */
    height: auto; /* Ensures consistent height */
    border-radius: 25%; /* Optional: Adds rounded corners */
    object-fit: cover;
    margin-right: 40px;
    margin-left: 70px;
    transform: translateX(-5%); /* Moves the image slightly to the left */
}

.intro-reverse .container {
    padding-left: 30px;
}

.intro-reverse img {
    margin-left: 0;
    margin-right: 30px;
    transform: translateX(5%); /* Moves the image slightly to the right */
    max-width: 500px;
    max-height: 350px; /* Wider image for project pages */
    border-radius: 5%; /* Reduced border radius */
}

.intro p {
    flex: 1; /* Makes text expand to take more horizontal space */
    font-size: 20px;
    line-height: 1.6; /* Improves readability */
    text-align: left;
    max-width: 600px;
    font-family: 'Futura Light', sans-serif;
    margin-top: 0;
    margin-bottom: 0.3em;
}

.intro subheader + p {
    margin-top: 5px;
}

.intro .container p + p {
    margin-top: 1em;
}

.intro .container p {
    margin-bottom: 0;
}

/* About content wrapper to contain both sections */
.about-content-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 15px auto;
    padding-top: 15px;
    padding-bottom: 10px;
}

.intro.float-image {
    margin: 0;
    padding: 0;
    position: relative;
}

.intro.float-image img {
    position: absolute;
    top: 0;
    left: 70px;
    width: 400px;
    max-width: 400px;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: top;
    float: none;
    margin: 0;
    transform: none;
}

.intro.float-image .container {
    margin-left: calc(70px + 400px + 30px); /* Left margin + image width + gap */
    margin-right: 70px;
    min-height: 100%;
}

.about-content-wrapper .about-full-width {
    margin: 0;
    padding-top: 15px;
    clear: none;
    position: relative;
}

/* Make image extend to cover both sections */
.about-content-wrapper .intro.float-image img {
    height: 100%;
    bottom: 0;
}

/* About page full-width paragraph container */
.about-full-width {
    margin: 0 auto;
    padding-top: 15px;
    padding-bottom: 10px;
    max-width: 1100px;
    clear: both; /* Clear the float from the image above */
    position: relative;
}

.about-full-width-container {
    margin-left: 70px; /* Match left margin of image */
    margin-right: 70px; /* Match right margin for symmetry */
    padding-left: 0;
    padding-right: 0;
}

.about-full-width-container p {
    font-size: 20px;
    line-height: 1.6;
    text-align: left;
    font-family: 'Futura Light', sans-serif;
    margin: 0;
    margin-top: 1em;
    max-width: none; /* Remove max-width restriction to span full width */
}

.about-full-width-container p:first-child {
    margin-top: 0;
}

/* Certifications Section */
.certifications-section {
    margin: 40px auto;
    max-width: 1100px;
    padding: 20px 70px;
}

.certifications-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.certification-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.certification-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.certification-title {
    color: #1B263B;
    font-size: 20px;
    font-family: 'Futura Light', sans-serif;
    font-weight: normal;
    margin: 0;
    text-align: center;
}

/* Resume Section */
.resume-section {
    margin: 40px auto;
    max-width: 1100px;
    padding: 20px 70px;
}

.resume-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.resume-title {
    color: #1B263B;
    font-size: 60px;
    font-family: 'Georgia', sans-serif;
    font-weight: bold;
    margin: 0;
    margin-left: 12.5%;
}

.resume-pdf-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    gap: 5px;
    transition: color 0.3s ease;
    margin-right: 12.5%;
}

.resume-pdf-link:hover {
    color: #1B263B;
}

.resume-pdf-link svg {
    width: 24px;
    height: 24px;
}

.resume-pdf-link span {
    font-size: 14px;
    font-family: 'Futura Light', sans-serif;
}

.resume-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.resume-image {
    width: 75%;
    max-width: 75%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Resume section -alt (carbonfiberplug Plug Tutorial): duplicate for independent styling */
.resume-section-alt {
    margin: 40px auto;
    max-width: 1100px;
    padding: 20px 70px;
}

.resume-header-alt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.resume-title-alt {
    color: #1B263B;
    font-size: 60px;
    font-family: 'Georgia', sans-serif;
    font-weight: bold;
    margin-left:3%;
    margin-top: -2%;
}

.resume-pdf-link-alt {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    gap: 5px;
    transition: color 0.3s ease;
    margin-right: 7.5%;
    margin-top: -4%;
}

.resume-pdf-link-alt:hover {
    color: #1B263B;
}

.resume-pdf-link-alt svg {
    width: 24px;
    height: 24px;
}

.resume-pdf-link-alt span {
    font-size: 14px;
    font-family: 'Futura Light', sans-serif;
}

.resume-content-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}

.resume-text-alt {
    flex: 1;
    min-width: 0;
    margin-left: 3.5%;
    margin-top: -3%;
}

.resume-image-container-alt {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 12px;
    background: #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-right: 3%;
    margin-top: -3%;
}

.resume-pdf-embed {
    width: 480px;
    max-width: 100%;
    height: 640px;
    border: none;
    border-radius: 6px;
    background: #fff;
}

.resume-image-alt {
    max-width: 100%;
    width: auto;
    max-height: 520px;
    height: auto;
    border-radius: 6px;
    display: block;
    background: #fff;
}

.resume-text-alt p {
    font-family: 'Futura Light', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1B263B;
    margin: 0;
    text-align: left;
}

.resume-text-alt p + p {
    margin-top: 1.25em;
}

/* Project Page Specific Styles */
.intro-reverse .container h1 {
    margin-bottom: 20px;
}

.intro-reverse .container .project-subtitle {
    text-decoration: underline;
    font-size: 18px;
    margin-bottom: 5px;
    margin-top: 0;
    font-family: 'Futura Light', sans-serif;
}

.intro-reverse .container .project-date {
    font-size: 18px;
    margin-bottom: 20px;
    margin-top: 0;
    font-family: 'Futura Light', sans-serif;
}

.intro-reverse .container .project-description {
    margin-bottom: 15px;
    font-family: 'Futura Light', sans-serif;
}

.intro-reverse .container p.project-list-item {
    margin: 5px 0;
    margin-left: 5%;
    font-size: 20px;
    font-family: 'Futura Light', sans-serif;
}

/* Full-width paragraph inside intro container: extends to right edge of image (image stays beside full content) */
.intro .container .intro-full-width {
    position: relative;
    left: -30px; /* cancel container padding so block starts at intro left */
    width: calc(100% + 30px + 500px); /* container + gap + image max-width = to image right edge */
    padding: 15px 0 0 30px; /* restore left padding for text */
    box-sizing: border-box;
}
.intro .container .intro-full-width .project-description {
    max-width: none;
    margin-bottom: 0;
}

/* Full-width paragraph in project section (matches intro-full-width look) */
.project-section .intro-full-width {
    width: 100%;
    padding: 5px 0 0;
    box-sizing: border-box;
}
.project-section .intro-full-width .project-description {
    max-width: none;
    margin-bottom: 0;
    font-family: 'Futura Light', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1B263B;
    text-align: left;
}

.intro subheader {
    font-family: 'Georgia', sans-serif;
    font-size: 30px;
    display: block;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #1B263B;
    font-weight: 600;
}

/* Skills: title next to carousel (flex row, no absolute — scrolls correctly) */
.skills-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 5px;
    margin-bottom: 40px;
    margin-left: 7.5%;
    margin-right: 7.5%;
    min-height: 100px;
}

.carousel-title {
    flex-shrink: 0;
    width: auto;
    margin: 0;
}

.carousel-title h1 {
    color: #1B263B;
    font-size: 60px;
    text-align: center;
    margin: 0;
    font-family: 'Georgia', sans-serif;
}

.carousel-skills {
    flex: 1;
    min-width: 0;
    margin: 0;
    display: flex;
    overflow-x: hidden;
}

.carousel-skills img{
    max-width: 30px;
    height: auto;
    margin-bottom: 11px;
    margin-right: 20px;
    position: absolute;
}

.carousel-skills::-webkit-scrollbar{
    display: none;
}

.group-skills{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: spin 30s infinite linear;
    padding-right: 1em;
}

@keyframes spin{
    from{translate: 0%;}
    to{translate: -100%;}
}

.card-skills{
    flex: 0 0 5em;
    height: 3em;
    padding: 1em;
    font-size: 24px;
    border-radius: .2em;
    text-align: center;
    align-content: center;
}

.image-spacer{
    background-color: #1B263B;
}

.image-spacer img{
    object-fit: cover;
    width: 100%;
    height: auto;

    animation: image-spacer-animation-exit forwards;
    animation-timeline: view();
    animation-range: exit;
}

@keyframes image-spacer-animation-entry{
    25%{ opacity: 0.3;}
    100%{opacity: 1;}
}

@keyframes image-spacer-animation-exit{
    85%, 100%{opacity: 0; scale: 1.5}
}

/*.scroll-watcher{
    height: 10px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: lime;
    width: 100%;
    scale: 0 1;
    animation: scroll-watcher linear;
    animation-timeline: scroll();
}

@keyframes scroll-watcher{
    to{scale:11;}
}*/



.personal-projects h1{
    color: #778DA9;
    font-size: 60px;
    font-family: 'Overpass Heavy', sans-serif;
    margin-top: -15px;
    margin-bottom: -30px;
}

.ax-hidden {
  visibility: hidden;
  position: absolute;
}

/* carousel styles */
.carousel {
  --carousel-height: 400px;
  --carousel-width: 1000px;
  --carousel-item-height: 150px;
  --carousel-item-width: auto;

  width: 100%;
}

.carousel-container {
  align-items: center;
  display: flex;
  min-height: var(--carousel-height);
  margin: 0 auto;
  max-width: var(--carousel-width);
  position: relative;
}

.carousel-item {
  height: var(--carousel-item-height);
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
  width: var(--carousel-item-width);
  z-index: 0;
  border-radius: 10%;
}

.carousel-item-1 {
  left: 15%;
  opacity: 0.4;
}

.carousel-item-2,
.carousel-item-4 {
  height: calc(var(--carousel-item-height) * 1.5);
  opacity: 1;
  width: calc(var(--carousel-item-width) * 1.5);
  z-index: 1;
}

.carousel-item-2 {
  left: 30%;
}

.carousel-item-3 {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1);
  height: calc(var(--carousel-item-height) * 2);
  opacity: 1;
  left: 50%;
  width: calc(var(--carousel-item-width) * 2);
  z-index: 2;
}

.carousel-item-4 {
  left: 70%;
}

.carousel-item-5 {
  left: 85%;
  opacity: 0.4;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

/* carousel button styles */
.carousel-control {  
  background-color: transparent;
  border: 2px solid;
  border-radius: 4px;
  color: #aaa;
  cursor: pointer;
  height: 22px;
  margin: 0 20px;
  position: relative;
  transform: scale(1.5);
  transition: transform 0.5s ease-out;
  width: 22px;
}

.carousel-control:hover {
  transform: scale(1.3);
}

/* previous button */
.carousel-control-previous::after,
.carousel-control-previous::before {
  box-sizing: border-box; 
  content: '';
  display: block;
  height: 8px;
  position: absolute;
  top: 5px
}
.carousel-control-previous::before {
  background: currentColor;
  border-radius: 2px;
  right: 11px;
  width: 2px;
}
.carousel-control-previous::after {
  border-bottom: 4px solid transparent;
  border-right: 5px solid;
  border-top: 4px solid transparent;
  right: 5px;
  width: 0;
}

/* next button */
.carousel-control-next::after,
.carousel-control-next::before {
  box-sizing: border-box;
  content: "";
  display: block;
  height: 8px;
  position: absolute;
  top: 5px
}
.carousel-control-next::before {
  background: currentColor;
  border-radius: 2px;
  left: 11px;
  width: 2px;
}
.carousel-control-next::after {
  border-bottom: 4px solid transparent;
  border-left: 5px solid;
  border-top: 4px solid transparent;
  left: 5px;
  width: 0;
}

/* play button */
.carousel-control-play::before {
  border-bottom: 5px solid transparent;
  border-left: 6px solid;
  border-top: 5px solid transparent;
  box-sizing: border-box;
  content: "";
  display: block;
  height: 10px;
  position: absolute;
  left: 7px;
  top: 4px;
  width: 0;
}

/* pause button */
.carousel-control-play.playing::before {
  border-bottom: 0;
  border-left: 2px solid;
  border-right: 2px solid;
  border-top: 0;
  box-sizing: border-box;
  content: "";
  display: block;
  height: 6px;
  position: absolute;
  left: 6px;
  top: 6px; 
  width: 6px;
}

/* add button */
.carousel-control-add::after,
.carousel-control-add::before {
  background: currentColor;
  border-radius: 5px;
  box-sizing: border-box;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  left: 4px;
  top: 8px;
  width: 10px;
}
.carousel-control-add::after {
  height: 10px;
  left: 8px;
  top: 4px;
  width: 2px;
}

.solar-projects{
    min-height: 300px;
    height: auto;
    position: relative;
    background-color: #1B263B;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.solar-projects::before{
    /*background-image: url("images/Solar-car.png");*/
    background-size: cover;
    content:'';
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.solar-projects h1{
    position: relative;
    isolation: isolate;
    color: #778DA9;
    font-size: 60px;
    margin-top: -5px;
    margin-bottom: -20px;
    text-align: center;
    width: 100%;
    font-style: 900;
    z-index: 1;
    font-family: 'Overpass Heavy', sans-serif;
}

.white-box-section{
    background-color:#1B263B;
    padding: 40px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-height: 450px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin-top: 60px;
    padding: 0 20px;
}

.project-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item .project-image {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
    opacity: 1 !important;
}

.project-item h3 {
    font-family: 'Futura Light', sans-serif;
    font-size: 24px;
    color: #E0E1DD;
    margin: 0;
    font-weight: normal;
    text-align: left;
}

.solar-grid {
    margin-top: 40px;
}

.solar-grid .project-item h3 {
    color: #E0E1DD;
}

/* Projects Carousel Styles */
.projects-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    overflow: visible;
    position: relative;
    height: 600px;
    padding: 0 100px;
    margin-bottom: 50px;
}

.project-card {
    flex: 0 0 550px;
    background: #E0E1DD;
    border-radius: 5px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    opacity: 0.6;
    transform: scale(0.85);
    position: absolute;
    cursor: pointer;
    width: 650px;
    height: 400px;
}

.project-card a{
    font-family: 'Futura Light', sans-serif;
    font-size: 25px;
}

.project-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    border-radius: 0 0 5px 5px;
}

.project-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.15);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    border-radius: 5px;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.9;
}

.project-info {
    padding: 20px;
    padding-bottom: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent);
    z-index: 2;
    box-sizing: border-box;
}

.project-info p {
    color: white;
    font-size: 16px;
    margin: 0 0 15px 0;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #778DA9;
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    height: auto;
    min-height: 44px;
    vertical-align: middle;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 16px;
    flex-shrink: 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    line-height: 1.2;
    z-index: 3;
    width: 80%;
}

.project-link-btn:hover {
    background-color: #1B263B;
    transform: translate(-50%, calc(50% - 2px));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-nav-btn {
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    line-height: 50px;
    padding: 0;
    margin: 0;
    text-align: center;
    vertical-align: middle;
}

.carousel-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: -75px;
}

.dot.active {
    background-color: white;
    width: 30px;
    border-radius: 6px;
}

.spacer{
    background-color:#415A77;
    min-height:150px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.spacer img {
    width: 100%;
    height: 200px;
    max-height: 500px;
    object-fit: cover;
    object-position: center 52.5%;
    display: block;
    opacity: 0.5;
}

.btn-custom {
    /*background-color: var(--text-color);*/
    color: #1B263B;
    padding: 20px 60px;
    display: inline-block;
    font-weight: normal;
    font-family: 'Futura Light', sans-serif;
    text-decoration: none;  
    text-align: center;
    border-radius:50px;
    transition: 0.3s ease-in-out;
    font-size: 25px;
}

.btn-custom:hover {
    background-color: #000000; /* Darker shade on hover */
    color: white;
}

footer {
    /*background: #1B263B;*/
    background: linear-gradient(to bottom, #E0E1DD, #778DA9);
    padding: 20px 40px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(40px, env(safe-area-inset-left));
    padding-right: max(40px, env(safe-area-inset-right));
    margin-top: auto; /* This ensures it stays at the bottom */
}

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

footer p{
    font-family: 'Futura Light', sans-serif;
    font-size: 15px;
    color:#1B263B;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icon {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 0;
    vertical-align: middle;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-icon-img {
    display: block;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: cover;
    object-position: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.image-container-row{
    display: flex; /* Makes images align horizontally */
    justify-content: center; /* Centers images */
    gap: 20px; /* Adds space between images */
    margin-bottom: 20px;
}

.image-container-column{
    display: flex; /* Makes images align horizontally */
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Adds space between images */
    margin-bottom: 20px;
}

.image-container-column img {
  width: 850px; /* or any size you want */
  height: auto;
}

.product-details .video-container video {
    max-width: 50%;
    height: auto;
    transform: rotate(180deg); /* Flips video content */
    transform-origin: center;
}

.project-details .video-container{
    display: flex;
    align-items: center;
    width: 100%;
}

code{
    text-align: left;
}

@media (max-width: 1024px) { /* For tablets (iPads) and smaller */
    
    .project-details {
        max-width: 90%; /* Ensures content doesn't get too narrow */
        padding: 20px;
    }

    .project-details img {
        width: 100%; /* Make images responsive */
        height: auto;
        border-radius: 10px;
    }

    .project-details .video-container {
        flex-direction: column; /* Stack videos vertically */
        align-items: center;
    }

    .project-details .video-container video {
        max-width: 100%; /* Make videos fit screen width */
        height: auto;
    }

    .btn-custom {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
        margin-top: 10px;
    }
}

@media (max-width: 768px) { /* For phones (iPhone-friendly) */

    header {
        padding: 12px 20px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 14px 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .intro {
        flex-direction: column; /* Stack image and text */
        text-align: center;
        gap: 20px;
    }

    .intro img {
        width: 250px; /* Reduce size for smaller screens */
        max-width: 100%;
        height: 250px;
        margin: 0 auto;
        transform: none; /* Remove left shift */
    }

    .intro p {
        max-width: 95%;
        text-align: center;
    }

    .intro subheader{
        font-family: 'Georgia', sans-serif;
        font-size: 30px;
        font-weight: 900px;
    }

    .intro h1 {
        font-size: 42px;
    }

    .skills-row {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
        margin-right: 20px;
    }
    .carousel-title h1 {
        font-size: 32px;
    }
    .carousel-skills {
        width: 95%;
    }

    .intro-reverse {
        flex-direction: column;
        padding: 15px 20px;
    }
    .intro-reverse .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    .intro-reverse .container h1 {
        font-size: 36px;
    }
    .intro-reverse img {
        max-width: 100%;
        width: 100%;
        height: auto;
        margin: 0 auto 1em;
        transform: none;
    }

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

    .project-item .project-image {
        height: 250px;
    }

    .project-details {
        flex-direction: column;
        max-width: 95%;
        padding: 20px;
    }

    .project-details img {
        width: 100%; /* Full width images */
        height: auto;
        border-radius: 10px;
    }

    .project-details p {
        font-size: 16px;
        line-height: 1.5;
        text-align: justify;
    }

    .video-container {
        flex-direction: column; /* Stack videos */
        align-items: center;
        width: 100%;
    }

    .video-container video {
        max-width: 100%; /* Scale video width */
        height: auto;
    }

    .btn-custom {
        width: 90%; /* Larger tap area */
        min-height: 44px;
        padding: 14px;
        font-size: 16px;
        margin: 10px auto;
        -webkit-tap-highlight-color: transparent;
    }

    /* About page: stack image above text on narrow screens */
    .about-content-wrapper {
        padding: 15px 20px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    .about-content-wrapper .intro.float-image img {
        position: relative;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
    }
    .about-content-wrapper .intro.float-image .container {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    .about-full-width-container {
        margin-left: 0;
        margin-right: 0;
        padding: 0 5px;
    }
    .certifications-section {
        padding: 20px 20px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    footer {
        padding: 16px 20px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Project Section Styles */
.project-section {
    max-width: 1100px;
    margin: 15px auto;
}

/* Videos section: 2x2 grid for four wind tunnel videos — margins match .project-section-content (Diffusion) */
.videos-section {
    padding: 0 30px 40px;
    margin-left: 12%;
    margin-right: 12%;
}
.videos-section-title {
    font-family: 'Georgia', sans-serif;
    font-size: 48px;
    color: #1B263B;
    margin: 0 0 24px 0;
    text-align: left;
}
.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.video-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}
.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
}
.video-title {
    font-family: 'Futura Light', sans-serif;
    font-size: 16px;
    color: #1B263B;
    margin: 0;
}

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

/* Completed Windtunnel section: 2 columns × 3 rows, captions — margins match Diffusion */
.completed-windtunnel-section {
    padding: 0 30px 40px;
    margin-top: 50px; 
    margin-left: 12%;
    margin-right: 12%;/* add extra space above the title, separating it from the photos above */
}
.completed-windtunnel-section-title {
    font-family: 'Georgia', sans-serif;
    font-size: 48px;
    color: #1B263B;
    margin: 0 0 40px 0;
    text-align: left;
}
.completed-windtunnel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.completed-windtunnel-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.completed-windtunnel-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}
.completed-windtunnel-caption {
    font-family: 'Futura Light', sans-serif;
    font-size: 16px;
    color: #1B263B;
    margin: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .completed-windtunnel-grid {
        grid-template-columns: 1fr;
    }
}

/* Flow Results section: 2 columns × 4 rows, captions under each image — margins match .project-section-content (Diffusion) */
.flow-results-section {
    padding: 0 30px 40px;
    margin-left: 12%;
    margin-right: 12%;
}
.flow-results-section-title {
    font-family: 'Georgia', sans-serif;
    font-size: 48px;
    color: #1B263B;
    margin: 0 0 24px 0;
    text-align: left;
}
.flow-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.flow-result-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flow-result-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}
.flow-result-caption {
    font-family: 'Futura Light', sans-serif;
    font-size: 16px;
    color: #1B263B;
    margin: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .flow-results-grid {
        grid-template-columns: 1fr;
    }
}

.project-section-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 0 30px;
}

.project-section-text {
    flex: 1;
    max-width: 500px;
    margin-top: 50px;
}

.project-section-text h2 {
    font-family: 'Georgia', sans-serif;
    font-size: 56px;
    color: #1B263B;
    margin: 0 0 30px 0;
    text-align: left;
}

.project-section-text p {
    font-family: 'Futura Light', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1B263B;
    margin: 0 0 20px 0;
    text-align: left;
}

.project-section-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    max-width: 600px;
    margin-top: 24px;
}

/* Alt: same layout, larger container — adjust max-width as needed */
.project-section-images-alt {
    max-width: 800px;
}

.project-section-images h2 {
    font-family: 'Georgia', sans-serif;
    font-size: 48px;
    color: #1B263B;
    margin: 0 0 20px 0;
    text-align: left;
    grid-column: 1 / -1;
}

.project-section-images img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
}

/* Make bottom two images the same size (when there are 4 images + h2) */
.project-section-images img:nth-child(4),
.project-section-images img:nth-child(5) {
    height: 200px;
    object-fit: contain;
}

/* Prototype Section Styles */
.prototype-section {
    width: 100%;
}

.prototype-section h2 {
    font-family: 'Georgia', sans-serif;
    font-size: 56px;
    color: #1B263B;
    margin: 0 0 30px 0;
    text-align: left;
}

.prototype-images {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.prototype-images img {
    width: 50%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.prototype-text {
    width: 100%;
}

.prototype-text p {
    font-family: 'Futura Light', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1B263B;
    margin: 0 0 20px 0;
    text-align: left;
}

.prototype-text p strong {
    font-weight: bold;
    font-family: 'Futura Light', sans-serif;
}

/* Duplicate prototype styles (-alt): use on carbonfiberplug (or elsewhere) to customize independently */
.prototype-section-alt {
    width: 100%;
}

.prototype-section-alt h2 {
    font-family: 'Georgia', sans-serif;
    font-size: 56px;
    color: #1B263B;
    margin: 0 0 30px 0;
    text-align: left;
}

.prototype-images-alt {
    display: flex;
    gap: 20px;
    margin-top: 28px;
    margin-bottom: 30px;
}

.prototype-images-alt img {
    width: 50%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
}

/* Crop right image height to match left */
.prototype-images-alt img:last-child {
    object-fit: cover;
}

.prototype-text-alt {
    width: 100%;
    margin-bottom: -20px;
}

.prototype-text-alt p {
    font-family: 'Futura Light', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1B263B;
    margin: 0 0 20px 0;
    text-align: left;
}

.prototype-text-alt p strong {
    font-weight: bold;
    font-family: 'Futura Light', sans-serif;
}

.prototype-text-alt p.project-list-item {
    margin: 5px 0 20px 5%;
}

/* Text + image row (intro-reverse style) inside prototype-section-alt */
.prototype-text-with-img {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}
.prototype-text-with-img .prototype-text-alt {
    flex: 1;
    min-width: 0;
}
.prototype-text-with-img img {
    width: 100%;
    max-width: 500px;
    max-height: 350px;
    height: auto;
    object-fit: contain;
    border-radius: 5%;
    flex-shrink: 0;
}

/* For sections with 3 images: first image spans full width */
.project-section-images img:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
}

/* For sections with 4 images (h2 + 4 imgs): uniform 2x2 grid like Back/Front Frame */
.project-section-images img:nth-child(2),
.project-section-images img:nth-child(3),
.project-section-images img:nth-child(4),
.project-section-images img:nth-child(5) {
    height: 220px;
    object-fit: contain;
}

/* Per-photo sizing (Back Frame & Front Frame): override height/width for each position */
.project-section-images .frame-top {
    height: 320px;
}
/* .project-section-images .frame-iso { height: 240px; }   top-left (isometric) */
/* .project-section-images .frame-front { height: 200px; } bottom-left (front) */
/* .project-section-images .frame-side { height: 220px; }  bottom-right (side) */

/* For sections with 4 images: 2x2 grid */
.project-section-images img:first-child:nth-last-child(4) {
    grid-column: 1;
}

/* For sections with 5 images: first spans full width, then 2x2 */
.project-section-images-five img:first-child {
    grid-column: 1 / -1;
}
.project-section-images-five img:nth-child(4),
.project-section-images-five img:nth-child(5) {
    height: 200px;
    object-fit: contain;
}

/* Five images with bottom four in a single row across the page (e.g. Diffusion) */
.project-section-images-four-across {
    grid-template-columns: repeat(4, 1fr);
}
.project-section-images-four-across img:nth-child(2),
.project-section-images-four-across img:nth-child(3),
.project-section-images-four-across img:nth-child(4),
.project-section-images-four-across img:nth-child(5) {
    height: 180px;
    object-fit: contain;
}

/* Diffusion: content wraps so four-image row sits below and spans text+image width */
.project-section-content-wrap {
    flex-wrap: wrap;
}
.project-section-images-full-width {
    width: 100%;
    flex-basis: 100%;
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    box-sizing: border-box;
}
.project-section-images-full-width img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 5px;
}

/* Flow Results: four full-width photos with captions underneath */
.flow-results-four-with-captions .flow-result-four-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flow-results-four-with-captions .flow-result-four-item img {
    display: block;
}
.flow-result-four-caption {
    font-family: 'Futura Light', sans-serif;
    font-size: 16px;
    color: #1B263B;
    margin: 0;
    text-align: left;
}

/* Diffusion section: text and image on one row, image to the right at fixed size */
.diffusion-text-and-image {
    display: flex;
    flex-wrap: nowrap;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
    flex: 1 1 100%;
}

.diffusion-text-and-image .project-section-text {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}

.diffusion-top-image {
    flex: 0 0 auto;
    width: 600px;
    max-width: 600px;
}

/* Contraction section: larger top image (stays right of paragraph), tighter gap above bottom four */
.contraction-top-image {
    max-width: 900px;
    height:auto;
}
.contraction-bottom-images {
    margin-top: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .project-section-images-full-width {
        grid-template-columns: 1fr;
    }
}

/* For sections with 2 images: stack vertically (e.g. Servo) */
.project-section-images-two {
    grid-template-columns: 1fr;
}

/* Servo section: bottom image full width to match top (override fixed height) */
.project-section-images-two img:nth-child(2) {
    height: auto;
    margin-bottom: 40px;
}

/* Responsive styles for project section */
@media (max-width: 1024px) {
    .project-section-content {
        flex-direction: column;
        padding: 0 40px;
    }

    .project-section-text {
        max-width: 100%;
    }

    .project-section-images,
    .project-section-images-alt {
        max-width: 600px;
    }

    .diffusion-text-and-image {
        flex-direction: column;
    }

    .diffusion-top-image {
        width: 100%;
        max-width: 100%;
    }

    .videos-section,
    .flow-results-section,
    .completed-windtunnel-section {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .project-section {
        padding: 40px 0;
    }

    .project-section-content {
        padding: 0 20px;
        gap: 30px;
    }

    .videos-section,
    .flow-results-section,
    .completed-windtunnel-section {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        margin-left: 0;
        margin-right: 0;
    }

    .project-section-text h2 {
        font-size: 36px;
    }

    .project-section-text p {
        font-size: 16px;
    }

    .windshield-closing-paragraph {
        font-size: 16px;
    }

    .project-section-images {
        grid-template-columns: 1fr;
    }

    .project-section-images img:first-child {
        grid-column: 1;
    }

    .prototype-images {
        flex-direction: column;
    }

    .prototype-images img {
        width: 100%;
    }

    .prototype-section h2 {
        font-size: 36px;
    }

    .prototype-text p {
        font-size: 16px;
    }

    .prototype-images-alt {
        flex-direction: column;
    }

    .prototype-images-alt img {
        width: 100%;
    }

    .prototype-section-alt h2 {
        font-size: 36px;
    }

    .prototype-text-alt p {
        font-size: 16px;
    }

    .prototype-text-with-img {
        flex-direction: column;
    }

    .prototype-text-with-img img {
        max-width: 100%;
    }

    /* Resume/PDF sections: stack and full-width embed on mobile */
    .resume-section-alt {
        padding: 20px max(20px, env(safe-area-inset-right)) 20px max(20px, env(safe-area-inset-left));
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .resume-header-alt {
        flex-wrap: wrap;
        gap: 12px;
        margin-left: 0;
        margin-right: 0;
    }
    .resume-title-alt {
        font-size: 32px;
        margin-left: 0;
    }
    .resume-pdf-link-alt {
        margin-right: 0;
    }
    .resume-content-row {
        flex-direction: column;
    }
    .resume-text-alt {
        margin-left: 0;
    }
    .resume-image-container-alt {
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .resume-pdf-embed {
        width: 100%;
        height: 400px;
    }

    /* Home page carousel: smaller on mobile */
    .carousel {
        --carousel-height: 280px;
        --carousel-width: 100%;
        --carousel-item-height: 100px;
    }
    .carousel-container {
        max-width: 100%;
        min-height: 280px;
    }

    /* Projects page carousel cards */
    .projects-carousel {
        height: 420px;
        padding: 0 20px;
    }
    .project-card {
        width: 90vw;
        max-width: 340px;
        height: 280px;
    }
    .project-card.active {
        width: 90vw;
        max-width: 340px;
        height: 280px;
    }

    /* Paragraphs with side margins: reduce on mobile */
    .windshield-closing-paragraph,
    .windshield-closing-paragraph-alt {
        margin-left: 5%;
        margin-right: 5%;
    }
}

/* Project Navigation Styles */
/* Windshield page: last paragraph — 7% side margins, match Test 2 Results font size */
.windshield-closing-paragraph {
    margin: 0 10%;
    font-family: 'Futura Light', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1B263B;
    margin-top:10px;
    margin-bottom: 50px;
}

.windshield-closing-paragraph-alt {
    margin: 0 10%;
    font-family: 'Futura Light', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1B263B;
    margin-top:25px;
    margin-bottom: 50px;
}

.project-navigation {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    font-family: 'Futura Light', sans-serif;
    font-size: 18px;
    color: #1B263B;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.prev-project {
    text-align: left;
    font-size: 25px;
}

.nav-link.next-project {
    text-align: right;
    font-size: 25px;
}

/* Responsive styles for project navigation */
@media (max-width: 768px) {
    .project-navigation {
        flex-direction: column;
        gap: 20px;
        margin: 40px auto;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .nav-link {
        font-size: 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
}