/* Reset and base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: 'Newake';
  src: url('fonts/Newake-Font-Demo.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  height: 100%;
  font-family: 'Newake', sans-serif;
  color: white;
  overflow: hidden;
  scroll-behavior: smooth;
}

/* Ensuring Newake is used globally */
body, h1, h2, h3, h4, h5, h6, p, a, li, button, input, textarea {
  font-family: 'Newake', sans-serif;
}


/* Background video */
#bg-video {
  width: 120vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  top: 0;
  left: -10vw;
  z-index: -3;
}

/* Header styling */
.header {
  position: absolute;
  top: 2rem;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  z-index: 1000;
  background: transparent;
}

.header ul {
  list-style: none;
  display: flex;
  gap: 20rem;
}

.header a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 1rem 3rem;
  font-size: 1.5rem;
  background: transparent;
  transition: background 0.3s, color 0.3s;
}

.header a:hover {
  background-image: url("../images/web gradient.png");
  background-size: cover;
  background-position: center;
  color: rgb(255, 255, 255);
}

/* Scroll snapping */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.snap-section {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 10rem;
}

@media (max-width: 768px) {
  

  .subheading-text-wrapper {
    align-items: center;
  }

  .role-subtitle,
  .subheading-text-wrapper p {
    text-align: center;
  }
}


/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: white;
  text-decoration: none;
  z-index: 10;
  cursor: pointer;
}

body.homepage .scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/* Animation fade */
.fade-section {
  opacity: 1;
  transform: translateY(0px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.fade-section.hidden {
  opacity: 0;
  transform: translateY(40px);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.9);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  z-index: 9999;
}

.footer.show-footer {
  transform: translateY(0);
}

.hidden-footer {
  transform: translateY(100%);
}

/* Page scroll behaviors */
body.sub-page,
html.sub-page {
  overflow: auto;
}

body.main-home,
html.main-home {
  overflow: hidden;
}


.main-home .snap-container {
  scroll-snap-type: y mandatory;
}

.sub-page .snap-container {
  scroll-snap-type: none;
}


.footer-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Chrome, Edge, and Safari */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: transparent; /* dark grey */
}

::-webkit-scrollbar-thumb {
  background-color: #ffffff; /* medium grey */
  border-radius: 6px;
  border: 3px solid transparent; /* creates padding around thumb */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #777; /* lighter grey on hover */
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #ffffff transparent;
}

/* PAGE BUTTONS SECTION - UPDATED */
.pagebuttons-section {
  width: 100%;
  position: relative;
  z-index: 10; /* Ensures it sits above the video and overlay */
  padding: 6rem 0 8rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}


.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../images/web gradient.png");
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: -2;
  transition: opacity 1s ease-in-out;
}

.overlay.active {
  opacity: 0.85; /* or whatever final value you want */
}

.footer {
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px 40px;
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
  transform: translateY(100%);
  z-index: 10;
}

.show-footer {
  transform: translateY(0);
}

.footer-buttons {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-icon {
  width: 24px;
  height: 24px;
}

.reach-out-btn {
  background: none;
  border: 2px solid white;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
}

.reach-out-btn:hover {
  background: white;
  color: black;
}

.icon-buttons p {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  white-space: nowrap;
  text-align: center;
}

.wrapper {
  position: relative;
  max-width: 1000px;
  height: 300px;
  margin: 50px auto;
  display: flex;
  transition: all 300ms ease-in-out;
  gap: 40px;
}

.image-wrapper {
  flex-shrink: 0;
  height: 100%;
  width: 60%;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
  transition: width 300ms ease-in-out;
}

img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 400ms ease-in-out;
}

.book-design-image {
  object-position: center;
}

.header-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: all 300ms ease-in-out;
}

h1 {
  margin: 0;
  color: white;
  font-size: 48px;
  text-transform: uppercase;
  transform: translateY(0);
  transition: transform 400ms ease-in-out, scale 400ms ease-in-out;
}

/* Hover Effects */
.wrapper:hover img {
  transform: scale(1.5);
}

.wrapper:hover h1 {
  transform: translateY(-40%) scale(0.9);
}

.wrapper:hover .image-wrapper {
  width: 70%;
}

.content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 9rem); /* subtract header and footer */
  flex-direction: column;
  position: relative;
  text-align: center;
  padding: 1rem 2rem; /* optional */
}
.main-signature {
  width: 500px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.6));
}
.subheading-section {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
  color: white;
  font-family: 'Courier New', Courier, monospace;
  text-align: left;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.subheading-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
}

.subheading-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start; /* Ensures paragraph is at top */
  padding-top: 0;              /* Remove any vertical offset */
  margin-top: 0;
  gap: 1.2rem;
  max-width: 700px;
  width: 100%;
}

.subheading-paragraph {
  font-size: 2.2rem;
  line-height: 1.5;
  font-weight: 500;
  margin: 0; /* Ensure no top margin */
  padding: 0; /* Ensure no padding interferes */
  white-space: pre-wrap;
}


.subheading-image-box {
  width: 480px; /* Make it square using same height */
  height: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subheading-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.5);
}


.signature-block {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center; /* centers content horizontally */
  margin-top: 1.5rem;
}



.role-subtitle {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  position: relative;
  text-align: center;
}

img.cole {
  position: absolute;
  width: 150px; /* maintain half-size */
  height: auto;
  bottom: -90px;  /* move it farther down */
  right: 90px;    /* move it more to the left */
  filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.6));
}

@media (max-width: 768px) {
  .subheading-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .subheading-content,
  .signature-block {
    align-items: center;
    text-align: center;
  }

  .subheading-image-box {
    width: 80vw;
    height: 80vw; /* Keep square */
  }

  .role-subtitle {
    position: static;
    transform: none;
    margin-bottom: 0.5rem;
  }

  img.cole {
    width: 50vw;
  }
}


/* PAGE BUTTONS SECTION - UPDATED WITH VISIBLE BACKGROUND */
.pagebuttons-section {
  width: 100%;
  padding: 6rem 2rem 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  background: transparent; /* Transparent so overlay is visible */
  filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.6));
}


.pagebuttons-container.wide {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding: 0 1rem;
  background: transparent;
}

.glass-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.glass-button,
.glass-card {
  width: 100%;
  max-width: 1000px;
  padding: 2rem 1rem;
  height: 100px;

  /* Glassmorphism Blur Styling */
  background: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 60px 30px rgba(255, 255, 255, 0.3);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-button:hover,
.glass-card:hover {
  transform: scale(1.03);
}

.glass-button::before,
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.glass-button::after,
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
}

.glass-button, .glass-card {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 60px 30px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
  /* other styles (alignment, text, etc.) */
}