body {
  margin: 0;
  font-family: 'Satoshi', sans-serif;
  background: white;
  color: #003F4C;
  overflow-x: hidden;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

nav {
  display: flex;
  justify-content: center;        /* center nav content */
  align-items: center;
  position: relative;             /* allow absolute positioning inside */
  background: #003F4C;
  color: white;
  padding: 1rem 2rem;
  font-family: 'Lora', serif;
  font-weight: bold;
}

.site-name {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #4a676c;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Lora', serif;
  transition: color 0.3s ease;
}

.site-name:hover {
  color: #F6AC2D; /* matches nav link color */
  text-decoration: none;
}


/* Nav links and dropdowns */
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
  align-items: center;
}

.nav-links a {
  color: #F6AC2D;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: 'Lora', serif;
  cursor: pointer;
}

.dropdown-toggle {
  color: #F6AC2D;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 1rem;
  font-family: 'Lora', serif;
  cursor: pointer;
}

.arrow-inline {
  width: 12px;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #003F4C;
  padding: 0.5rem 1rem;
  top: 100%;
  z-index: 100;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.dropdown-menu a {
  display: block;
  color: #ffff;
  padding: 0.3rem 0;
  text-decoration: none;
  font-size: 0.8rem;
  font-family: 'Satoshi', sans-serif;
  font-weight: bold;
}
.dropdown-menu a:hover {
  color: #F6AC2D;  
}

.dropdown-menu .sub-link {
  padding-left: 1rem;
  font-size: 0.75rem;
  color: #ccc;
  font-family: 'Satoshi', sans-serif;
}

.dropdown-menu .sub-link:hover {
  color: #F6AC2D;
}

.dropdown-menu.active {
  display: block;
}

.dropdown:hover .arrow-inline {
  transform: rotate(90deg);
}

/* Hamburger styles */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #F6AC2D;
  font-size: 1.5rem;
  cursor: pointer;
}

.titles {
  padding-top: 80px;
  text-align: center;
  display: block;
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: #003F4C;
}

.intro {
  text-align: center;
  padding: 12rem 1rem 10rem;
}

.headline, .ben {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #003F4C;
  font-size: 5rem;
  line-height: 1.1;
}


.details {
  max-width: 750px;
  margin: 3rem auto;
  text-align: center;
  color: #4a676c;
  line-height: 1.6;
  padding: 1rem 1rem;
  font-size: 0.95rem;
}

.details strong {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #003F4C;
}

.carousel {
  overflow: hidden;
  width: 100%;
  background: #F6AC2D;
  padding: 20px 0;
}

.logo-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-track img {
  height: 24px;
  width: 50px;
  object-fit: contain;
}

.head-spin img {
  padding-top: 8rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 10%; /* optional: scales image responsively */
  height: auto;
}

@keyframes scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.experience {
  font-family: 'Lora', serif;
  font-weight: 700;
  text-align: center;
  font-size: 3.9rem;
  padding: 2rem 1rem;
}
.highlight {
  color: #4a676c;
}

.dark {
  color: #003F4C;
}

.links {
  display: flex;
  flex-direction: column;
  margin-top: 15rem;
  margin-bottom: 16rem;
}

.link-block {
  background: #F6AC2D;
  color: #003F4C;
  text-align: center;
  font-family: 'Lora', serif;
  font-weight: bold;
  text-decoration: none;
  font-size: 4rem;
  padding: 0rem;
  line-height: 0.75;
}


.link-block:not(:last-child) {
  border-bottom: 50px solid white;
}

/* Scroll animations */
#benText {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#benText.visible {
  opacity: 1;
}
#inTheGame {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#inTheGame.visible {
  opacity: 1;
}

.arrow {
  animation: bounce 2s infinite;
  width: 30px;
  height: auto;
  display: block;
  margin: 40px auto;
  transition: transform 0.4s ease; /* Smooth transition */
}

.arrow:hover {
  animation: none;                 /* Stop bounce */
  transform: rotate(90deg);       /* Rotate and stay rotated */
}


/*<<<<<<<portfolio>>>>>>>>*/

/* Hero Section */
.hero-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto; /* Disable smooth scroll while dragging for immediate response */
  animation-play-state: paused;
}

.hero {
  position: relative;
  overflow: hidden;
  height: auto;
}

.hero-track {
  display: flex;
  width: max-content;
  animation: scroll-track 90s linear infinite;
  cursor: grab;
}

.hero-track img {
  width: 100vw;
  height: auto;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
}

.hero-logo {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  z-index: 5;
  animation: logo-opacity 90s linear infinite;
  pointer-events: none;
}

/* Scrolling animation */
@keyframes scroll-track {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* scroll through 4 out of 8 images */
}

/* Logo overlay animation */
@keyframes logo-opacity {
  2%, 5%, 95%, 100% {
    opacity: 1; /* fully solid */
  }
  9%, 90% {
    opacity: 0; /* mostly transparent */
  }
}

/* Hero 2 */

.hero2 {
  position: relative;
  overflow: hidden;
  height: auto;
    padding: 4rem
}

.hero-track2 {
  display: flex;
  width: max-content;
  animation: scroll-track 160s linear infinite;
}

.hero-track2 img {
  width: 50vw;
  height: auto;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
}


/* Scrolling animation */
@keyframes scroll-track {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* scroll through 4 out of 8 images */
}

/* Logo overlay animation */
@keyframes logo-opacity {
  2%, 5%, 95%, 100% {
    opacity: 1; /* fully solid */
  }
  9%, 90% {
    opacity: 0; /* mostly transparent */
  }
}

/* Carousel */
.carousel-section {
  text-align: center;
  padding: 5rem 2rem;
  background: #fff;
}

.carousel-wrapper {
  position: relative;
    max-height: 1700px;
  max-width: 2000px;
  margin: 0 auto;
}

.swiper {  
    display: flex;
}

.swiper-slide {
  padding: 1rem;
  margin:  1rem;
  box-sizing: border-box;
}

.swiper-slide img {
  position: relative;
    max-width: 100%;
  width: 100%;
  padding: 1rem;
  border-radius: 2rem;
  object-fit: contain;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}


.swiper-slide-active {
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: #003F4C; !important,
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #F6AC2D;
}

/* Projects Grid */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
}

.project {
  text-decoration: none;
  color: #00272B;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
}

.project img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.project h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/*<<<< portfolio pages >>>>*/

/* Default: show desktop layout, hide mobile */
.portfolio-desktop {
  display: block;
}

.portfolio-mobile {
  display: none;
}

section img {
  width: 100%;
  display: block;
  margin-bottom: 15px;
}

.main-hero {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-top: 60px;
}

/* Footer */
      
.site-footer {
  background: #003F4C;
  color: #F6AC2D;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  font-family: 'Satoshi', sans-serif;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-links {
  margin: 1rem 0;
}

.footer-links a {
  color: #F6AC2D;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  display: inline-block;
  margin: 0 0.5rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.social-icons img {
  width: 24px;
  height: 24px;
}


/*<<<< contact-section >>>>*/

.contact-form {
  max-width: 600px;
  margin: 10vh auto;
  padding: 0 1rem;
  color: #003F4C;
}

.contact-form h2 {
  font-family: 'lora','serif';
    font-weight: bold;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #003F4C;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid #003F4C;
  padding: 0.75rem;
  color: #003F4C;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #003F4C;
}

.contact-form button {
  background: white;
  color: #003F4C;
  border: none;
  padding: 0.75rem 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

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

/* Stickerbook Page */

/* Pixel page specific styles */
.pixel-page {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: #f2eebb;
}

 .pixel-page .site-nav .site-name {
  font-family: 'Press Start 2P';
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pixel-page .site-nav,
.pixel-page .nav-links a,
.pixel-page .dropdown-toggle {
  font-family: 'Press Start 2P';
  font-size: 0.75rem;
  text-transform: uppercase;
}


      /* Responsive styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
    
  .headline, .ben {
    font-size: 3.7rem;
    line-height: 1.1;
  }
    .experience {
  text-align: center;
  font-size: 2.3rem;
}
.highlight {
  color: #4a676c;
}

.dark {
  color: #003F4C;
}
    .link-block {
    font-size: 3.3rem;
  }  
.details {
  padding: 0rem 1rem;
  font-size: 0.9rem;
}
    .titles {
  font-size: 1.5rem; 
    }
}

/* Mobile styles */
@media (max-width: 768px) {
  .portfolio-desktop {
    display: none;
  }

  .portfolio-mobile {
    display: block;
  }

  .mobile-project {
    text-align: center;
  }

  .mobile-project img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Ensures square */
    object-fit: cover;
    border-radius: 0rem;
    margin-bottom: 0rem;
  }

  .mobile-text-block {
  text-align: left;
  padding: 2rem 2rem;
  font-family: 'Lora', serif; /* Use your serif font */
  color: #003F4C; /* Adjust to match your palette */
}

.mobile-text-block h2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.mobile-text-block .text-emphasis {
  font-weight: 700;
  font-style: italic;
  margin-right: 0.25rem;
}

.mobile-text-block p {
  font-family: 'Satoshi', sans-serif; /* Use your body font */
  font-size: 0.7rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 1rem auto;
  color: #165e66;
}
.project-summary {
  font-family: 'Satoshi', sans-serif;
  color: #003F4C;
  text-align: left;
  padding: 2rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.project-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #003F4C;
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0.25rem 0 1rem;
}

.project-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.project-description {
  font-size: 0.7rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #165e66;
}

.project-tags {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #003F4C;
  line-height: 1.4;
}
    
    .fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--delay, 0s); /* <- Allow custom delay */
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
}

@media screen and (max-width: 768px) {
.intro {
  padding: 10rem 1rem 10rem;
}
}

@media screen and (max-width: 768px) {
nav {
  position: relative;
}

.nav-links {
  position: absolute;
  top: 100%;
  left: 0; /* Fixes alignment */
  width: 100%;
  background: #003b42;
  padding: 1rem 2rem;
  display: none;
  flex-direction: column;
}

.nav-links.show {
  display: flex;
}
}

@media screen and (max-width: 768px) {
    .hero-track img {
  width: 170vw;
  height: auto;
}
    .hero-track {
  display: flex;
  width: max-content;
  animation: scroll-track 50s linear infinite;
  cursor: grab;
}
}

@media screen and (max-width: 768px) {
 
    .hero-track2 {
  display: flex;
  width: max-content;
  animation: scroll-track 110s linear infinite;
}
    .hero-track2 img {
  width: 100vw;
  height: auto;
}
}

@media screen and (max-width: 768px) {
.head-spin img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 30%; /* optional: scales image responsively */
  height: auto;
}
}