/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
  background: none;
  overflow-x: hidden;
}

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

@font-face {
  font-family: 'LustScript';
  src: url('../fonts/lust-script-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

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

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

p{
  font-family: 'Montserrat';
  font-weight: 450;
}

/* Canvas should be fixed and behind all content. */
canvas#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  display: block;
  pointer-events: auto;
}

/* Navigation */
nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffffb3;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px); /* for extra polish */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat';
}

nav li {
  display: inline;
}

nav a {
  text-decoration: none;
  color: #6d1f42; 
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block; /* 👈 this enables the scale effect */
}

nav a:hover {
  color: #52a5ce;
  transform: scale(1.15);
}

/* Sections */
.section {
  min-height: 100vh;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* HOME */ 
#home {
  background-color: transparent;
  color: white;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

#home * {
  pointer-events: auto;
}

#home h1 {
    font-family: 'Begild'; 
    font-size: 7rem;
    font-weight: normal; /* ⬅️ key line to prevent bolding */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.177);
    letter-spacing: 4px;
}
  
.home-tagline {
  display: inline-block;
  padding: 1rem 1rem;
  border-radius: 50px;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  backdrop-filter: blur(4px); /* optional for a glassy look */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.177);
}

/* ABOUT SECTION */

#about {
  background: none;
  color: #333;
  padding: 0;
}

.about-intro-wrapper {
  width: 100vw; /* force full viewport width */
  background-color: rgba(255, 255, 255, 0.508);
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.about-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 0; /* no extra padding here */
  max-width: 1000px;
  margin: 0 auto;
}

.about-photo img {
  width: 300px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
  min-width: 250px;
  flex-direction: column;
  display: flex;    
  align-items: center; /* ✅ this centers all children horizontally */
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.fancy-hello {
  font-family: 'LustScript'; 
  font-size: 5rem; /* Optional: tweak size */
  font-weight: normal;
}

.about-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
  padding-left: 3.5rem;
  padding-right: 3.5rem;
}

.resume-link {
  position: relative;
  text-decoration: none;
  color: inherit;
}

.resume-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* space below text */
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0); /* start hidden */
  transform-origin: left;
  transition: transform 0.3s ease;
}

.resume-link:hover::after {
  transform: scaleX(1); /* expand underline on hover */
}



/* WORK SECTION Source code: https://codepen.io/chingy/pen/yLLZRbj */

#work {
  padding: 2rem;
  background: none;
  position: relative;
}

#work h2{
  font-family: 'Begild'; 
  font-size: 4rem; /* Optional: tweak size */
  font-weight: normal;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.177);
  letter-spacing: 4px;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 1.5rem;
}

.carousel__body {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 100px; /* adds space for buttons */
  padding-top: 50px;
  }

.carousel__slider {
  position: relative;
  display: flex; /* Important: Use flexbox for easy centering */
  transition: transform 1s ease-in-out;
  align-items: center;  /* Vertically center items within the slider */
}


.carousel__slider__item {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  margin: 0 17px;
  transition: transform 0.3s ease;
  cursor: pointer;
  /* Remove any extra margins or padding that might affect centering */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.carousel__slider__item:hover {
  transform: scale(1.05);
}

.item__3d-frame {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
  transform-style: preserve-3d;
}

.item__3d-frame__box {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 5px solid #52a5ce;
  background: #ffffff;
}

.item__3d-frame__box--front img {
  width: 100%;
  height: auto;
}

.item__3d-frame__box--left,
.item__3d-frame__box--right {
  top: 0;
  width: 40px;
  backface-visibility: hidden;
}

.item__3d-frame__box--left {
  left: 0;
  transform: translate3d(1px, 0, -40px) rotateY(-90deg);
  transform-origin: 0%;
}

.item__3d-frame__box--right {
  right: 0;
  transform: translate3d(-1px, 0, -40px) rotateY(90deg);
  transform-origin: 100%;
}

.carousel__prev,
.carousel__next {
  position: absolute;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.85); /* light box */
  background-size: 60%; /* slightly smaller arrow inside */
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 20px; /* rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* soft shadow */
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  z-index: 10;
}

.carousel__prev {
  left: 45%;
  background-image: url('../img/arrow-left.png');
  margin-right: 1rem; /* add space between buttons */
}

.carousel__next {
  right: 45%;
  background-image: url('../img/arrow-right.png');
  margin-left: 1rem; /* add space between buttons */
}

.carousel__prev:hover {
  background-image: url('../img/arrow-left-pink.png');
  transform: scale(1.1);
}

.carousel__next:hover {
  background-image: url('../img/arrow-right-pink.png');
  transform: scale(1.1);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: flex;
  align-items: flex-start; /* Top align */
  justify-content: center;
  overflow-y: auto; /* Allow vertical scroll if needed */
  padding-top: 45px; /* Extra breathing room */
}

.modal-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 75vw; /* Wider modal */
  max-width: none; /* Remove old width cap */
  margin-top: 60px; /* Push it down */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  z-index: 10001;
}

.modal-content p {
  max-width: 600px;  /* Keeps lines readable */
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
  background: none;
  border: none;
}

.modal-image {
  margin-top: 20px;
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.modal-link:hover img {
  transform: scale(1.03);
}

.modal-link {
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
  margin-top: 20px;
}

.modal-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

/* 1893 client gallety */
.client-gallery {
  margin-top: 40px;
}

.client-section {
  margin-bottom: 40px;
}

.client-section h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.client-images {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  cursor: pointer;
}

.client-images img {
  height: 100%;
  width: auto;
  max-height: 250px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  object-fit: cover;
}

.client-images a:hover img {
  transform: scale(1.03);
}

/* DTH gallery */
.illustration-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.illustration-gallery img {
  width: 100%;
  max-width: 200px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.illustration-gallery img.zoomed {
  transform: scale(3);
  z-index: 10;
  position: relative;
}

.zoom-overlay {
  display: flex;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

/* When active, fade in and allow interaction */
.zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#zoomed-img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

/* Add this when image is loaded in and visible */
.zoom-overlay.active #zoomed-img {
  transform: scale(1);
  opacity: 1;
}

/* hockey gallery */
.hockey-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.hockey-gallery img {
  height: 100%;
  max-height: 200px;
  width: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.hockey-gallery img.zoomed {
  transform: scale(3);
  z-index: 10;
  position: relative;
}

/* ospreys gallery */
.ospreys-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.ospreys-gallery img {
  height: 100%;
  max-height: 200px;
  width: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.ospreys-gallery img.zoomed {
  transform: scale(3);
  z-index: 10;
  position: relative;
}

/* photography gallery */
.photography-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.photography-gallery img {
  height: 100%;
  max-height: 200px;
  width: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.photography-gallery img.zoomed {
  transform: scale(3);
  z-index: 10;
  position: relative;
}

/* gd gallery */
.gd-gallery {
  display: flex;
  flex-direction: column;     /* stack project blocks vertically */
  align-items: center;        /* center horizontally */
  gap: 25px;                  /* space between project blocks */
  margin-top: 30px;
}

.gd-gallery img {
  height: 100%;
  max-height: 400px;
  width: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gd-gallery img.zoomed {
  transform: scale(3);
  z-index: 10;
  position: relative;
}

.project-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px; /* try 400–600px depending on what looks good */
  text-align: center;
  gap: 10px;
}

.project-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-block .modal-caption {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}


/* CONTACT SECTION */ 
/* form source code: https://www.geeksforgeeks.org/create-a-contact-form-using-html-css-javascript/ */
/* Form works via Formspree */

#contact {
  background: none;
  color: #333;
  z-index: 0;
}

#contact h2{
  font-family: 'LustScript'; 
  margin-bottom: 3rem;
  font-weight: normal;
  font-size: 5rem;
}

#contact p {
  max-width: 600px;
  line-height: 1.6;
  font-size: 1.1rem;
}


.contact-form-container {
  background-color: #ffffff99;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

.error-message {
  color: red;
  font-size: 0.875rem;
  display: none; /* Hidden by default */
}

.submit-button {
  background-color: #52a5ce;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #aacc96;
}

/* socials */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  color: #333;
  transition: transform 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.social-link img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.social-link:hover {
  transform: scale(1.05);
  color: #0073b1; /* optional: LinkedIn blue */
}

/* footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #333;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Montserrat', sans-serif;
}

.footer-note {
  font-style: italic;
  font-size: 0.75rem;
  color: #333;
  margin-top: 0.5rem;
}


/* ====== MOBILE ======= */

/* === MOBILE MEDIA QUERIES === */
@media screen and (max-width: 768px) {
  /* Hide desktop nav */
  nav {
    display: none;
  }

  /* Hamburger menu */
  .hamburger-menu {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 24px;   /* smaller width */
    height: 18px;  /* smaller height */
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }
  
  .hamburger-menu span {
    height: 3px;   /* thinner bars */
    background: white;
    border-radius: 2px;
    width: 100%;
  }
  
  #home h1 {
    font-size: 4rem;
    letter-spacing: 2px;
  }
  
  .home-tagline {
    font-size: 1.2rem;
    padding: 0.75rem;
  }
  
  /* Off-screen nav */
  .off-screen-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background-color: white;
    padding: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: left 0.3s ease;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
  }

  .off-screen-nav.open {
    left: 0;
  }

  .off-screen-nav a {
    font-size: 1.2rem;
    font-family: 'Montserrat';
    text-decoration: none;
    color: #6d1f42;
  }

  #contact {
    background: none;
    color: white;
  }
  
  #contact h2{
    font-family: 'LustScript'; 
    margin-bottom: 3rem;
    font-weight: normal;
    font-size: 5rem;
  }
  

  /* Hide carousel buttons */
  .carousel__prev,
  .carousel__next {
    display: none;
  }

  /* Make carousel cards square */
  .carousel__slider__item {
    width: 90vw !important;
    height: 90vw !important;
    margin: 0 auto;
  }

  .item__3d-frame {
    height: 100% !important;
  }

  /* Optional: smaller modal padding */
  .modal-content {
    width: 90vw;
    padding: 20px;
  }

  .modal-image {
    max-width: 100%;
  }

  .social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    color: white;
    transition: transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
  }


    /* footer */
    .site-footer {
      text-align: center;
      padding: 2rem 1rem;
      font-size: 0.85rem;
      background-color: rgba(255, 255, 255, 0.1);
      color: white;
      backdrop-filter: blur(10px);
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      font-family: 'Montserrat', sans-serif;
    }

    .footer-note {
      font-style: italic;
      font-size: 0.75rem;
      color: white;
      margin-top: 0.5rem;
    }

}

@media screen and (max-width: 768px) {
  .carousel__slider__item {
    width: 90vw !important;
    height: 90vw !important;
    margin: 0 auto;
    pointer-events: auto;  /* ✅ make sure they are clickable */
  }

  .item__3d-frame {
    height: 100% !important;
    pointer-events: auto;
  }

  .item__3d-frame__box {
    pointer-events: auto;  /* ✅ this lets images trigger click */
  }

  #work h2 {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  .about-photo {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  

}


@media screen and (min-width: 769px) {
  .hamburger-menu,
  .off-screen-nav {
    display: none !important;
  }
}

/* Make carousel items smaller on mobile for better visibility */
@media screen and (max-width: 768px) {
  .carousel__slider__item {
    width: 40vw !important;
    height: 40vw !important;
    margin: 0 10px;
  }

  .item__3d-frame {
    height: 100% !important;
  }

  /* Optional: reduce padding below carousel */
  .carousel__body {
    padding-bottom: 40px;
    padding-top: 30px;
  }

  #work h2 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .carousel__slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
  }

  .carousel__slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .carousel__slider__item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 65vw !important;
    height: 65vw !important;
    margin: 0 10px;
  }

  .carousel__prev,
  .carousel__next {
    display: none;
  }
}


@media screen and (max-width: 768px) {
  .about-intro {
    flex-direction: column-reverse;
  }

  .about-text p {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media screen and (max-width: 768px) {
  #home {
    justify-content: flex-start;
    padding-top: 10rem; /* ⬅️ increased from 6rem to move down */
  }

  #home h1 {
    margin-bottom: 1rem;
  }

  .scroll-arrow {
    font-size: 2rem;
    color: white;
    margin-top: 2rem;
    animation: bounce 1.5s infinite;
    pointer-events: none;
    text-align: center;
  }
}

/* Only show on mobile */
@media screen and (min-width: 769px) {
  .scroll-arrow {
    display: none;
  }
}

/* Arrow bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media screen and (max-width: 768px) {
  .modal-content {
    padding-bottom: 4rem; /* Adjust as needed for breathing room */
  }
}
