/* Fonts */
@font-face {
  font-family: 'CACoronado';
  src: url('/fonts/CA Coronado W00 Regular.woff') format('woff');
}

@font-face {
  font-family: 'HelveticaBold';
  src: url('/fonts/Helvetica-Bold.woff') format('woff');
}

/* Global */
body {
  margin: 0;
  background: black;
  color: white;
  font-family: 'HelveticaBold', Helvetica, Arial, sans-serif;
  text-align: center;
}

a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Make the name link text turn red on hover */
.name a:hover {
  color: red;
  transition: color 0.3s ease;
}

/* Navbar link hover and active */
.navbar a:hover,
.navbar a.active {
  color: red;
  transition: color 0.3s ease;
}

/* Navbar styling - larger font, spacing like original */
.navbar {
  display: flex;
  justify-content: center;
  gap: 4rem; /* bigger gap than index1 */
  flex-wrap: wrap;
  margin-bottom: 2rem; /* match original */
  font-size: 2rem; /* larger font as original */
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 2rem; /* margin for horizontal spacing */
  font-family: 'HelveticaBold', sans-serif;
}

/* Main header */
header {
  padding-top: 2rem;
}

.name {
  font-family: 'CACoronado', serif;
  font-size: 4rem;
  margin: 2rem 0 0.5rem;
  line-height: 1.1;
}

.subheading {
  font-size: 1.6rem;
  font-style: italic;
  color: grey;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* Main content container */
.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Video row container */
.video-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6rem; /* bigger gap like original */
  padding: 0 1rem;
  overflow-x: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* Video iframe */
.video-frame {
  width: 60vw;
  min-width: 300px;
  max-width: 960px;
  height: calc((9 / 16) * 60vw);
  max-height: 540px;
  flex-shrink: 1;
}

/* Side images */
.side-image {
  width: 28vw;
  min-width: 140px;
  max-width: 220px;
  height: auto;
  flex-shrink: 0;
  cursor: pointer;
}

.mirrored {
  transform: scaleX(-1);
}

/* Sundog hover effect */
.sundog-hover {
  position: relative;
  display: inline-block;
}

.sundog-hover img {
  display: block;
  width: 28vw;
  min-width: 140px;
  max-width: 220px;
  height: auto;
  transition: opacity 0.4s ease;
}

.hover-sundog {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

.sundog-hover:hover .hover-sundog {
  opacity: 1;
}

.sundog-hover:hover .default-sundog {
  opacity: 0;
}

/* Social Icons */
.social-icons {
  margin-top: 1rem;
  text-align: center;
}

.social-icons a {
  margin: 0 1rem;
  display: inline-block;
}

.icon-hover {
  position: relative;
  display: inline-block;
}

.icon-hover img {
  display: block;
  width: 40px;
  height: auto;
  transition: opacity 0.3s ease;
}

.hover-icon {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.icon-hover:hover .hover-icon {
  transition-delay: 0s;
  opacity: 1;
}

.icon-hover:hover .default-icon {
  transition-delay: 0.1s;
  opacity: 0;
}

.icon-hover:not(:hover) .default-icon {
  opacity: 1;
  transition-delay: 0s;
}
.icon-hover:not(:hover) .hover-icon {
  opacity: 0;
  transition-delay: 0.1s;
}

/* Fade Animation */
.fade-content {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fade-content.fade-in {
  opacity: 1;
}

.fade-content.fade-out {
  opacity: 0;
}

/* Desktop-specific fixes to reduce unwanted vertical spacing */
@media (min-width: 769px) {
  /* Remove flex gap that causes vertical spacing on navbar */
  .navbar {
    gap: 0;
  }
  /* Keep horizontal margin on links for spacing */
  .navbar a {
    margin: 0 2rem;
  }

  /* Adjust line height for name to tighten vertical space */
  .name {
    line-height: normal;
    margin-top: 3rem;
  }

  /* Remove margin bottom from subheading to tighten vertical spacing */
  .subheading {
    margin-bottom: 0.5rem;
  }

  /* Optional: reduce header padding top slightly */
  header {
    padding-top: 1rem;
  }
}

/* Responsive */
@media (max-width: 768px){
  .name {
    font-size: 3rem;
  }

  .navbar {
    font-size: 1.2rem;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: space-around;
    overflow-x: visible;
    padding: 0 1rem;
  }

  .navbar a {
    margin: 0;
    flex-shrink: 1;
    white-space: nowrap;
  }

  .video-row {
    gap: 1rem;
  }

  .video-frame {
    width: 90vw;
    height: 50vw;
  }

  .side-image {
    max-width: 150px;
  }
}

/* Portfolio page layout additions for style2.css */
.portfolio-section {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 60ch) 1fr;
    align-items: start;
    gap: 0rem;
    margin-top: 3rem;
    box-sizing: border-box;
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 3rem;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    gap: 4rem 6rem;
    justify-content: center;
}

.poster {
    position: relative;
    width: 300px;
    height: 450px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

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

.poster:hover img {
    opacity: 0.2;
}

.poster-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    box-sizing: border-box;
}

.poster:hover .poster-text {
    opacity: 1;
}

.poster-title {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.poster-blurb {
    font-size: 1rem;
    text-align: left;
    margin-left: 1rem;
    margin-right: 1rem;
    font-weight: normal;
}

.divider {
    height: 1px;
    background: white;
    max-width: 1000px;
    width: 100%;
    margin: 4rem auto;
}

.portfolio-left {
    align-self: center;
    margin-top: -30rem;
    margin-left: 0rem;
}

.portfolio-left .section-title {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}

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

.portfolio-right {
    align-self: center;
    margin-top: -28rem;
    margin-right: 0rem;
}

.scroll-indicator {
    font-size: 2rem;
    line-height: 2.2rem;
    text-align: center;
    white-space: nowrap;
}

.portfolio-footer {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.portfolio-footer p {
    font-size: 0.7rem;
    color: white;
    margin: 0;
    font-weight: 100;
}



