/*
What u peeking at huh ? ;)
Site made by Ben Whitrow - benwhitrow.co.uk
©Remee Hutchings, All Rights Reserved.

Vibe code allegations will not be tolerated :P
*/

/* Root vars (to make it look cool) */
:root {
    --primary-text: #fdeac2;
    --secondary-text: #d9c29a;
    --tertiary-text: #c1b196;
    --nav-bg: rgba(0, 0, 0, 0.85);
    --main-bg: #050505;

    --section-pad-y: clamp(4.5rem, 10vh, 7.5rem);
    --section-pad-x: clamp(1rem, 5vw, 4rem);
    --section-max: 72rem;
    --title-gap: clamp(1.75rem, 4vh, 3rem);

    --bs-body-bg: #000;
    color-scheme: dark;
}

/* Navbar */
.navbar {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--section-pad-x);
  z-index: 100;
  background: transparent;
  transition: background-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background-color: var(--nav-bg);
  padding: 0.85rem var(--section-pad-x);
  backdrop-filter: blur(6px);
}

.nav-logo, 
.nav-logo a{
  font-family: 'Cinzel', serif;
  color: var(--secondary-text);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  color: var(--primary-text);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-text);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--secondary-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 700px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 0;
  }
}

/* Global attribs */
html {
  background-color: #000;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 1.2s ease-in;
  background-color: #000;
}

body.loaded {
  opacity: 1;
}

/* Text and photo */
.landing-box {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 5rem var(--section-pad-x) 3rem;
  background-color: var(--main-bg);
  z-index: 1;
}

.landing-box::before {
  content: "";
  position: absolute;
  inset: -10% -5% 0 -5%;
  background-image: url('../images/main_bg.jpeg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(8px) brightness(0.45) saturate(0.9);
  transform: scale(1.08);
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
.landing-box > * {
  position: relative;
  z-index: 1;
}

.title-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 90%;
  gap: 0.6rem;
}

.selfie-box {
  width: clamp(13rem, 22vw, 22rem);
  height: clamp(13rem, 22vw, 22rem);
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  border: 5px solid var(--primary-text);
}
.selfie-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* To stack text and img on mobile */
@media (max-width: 700px) {
  .landing-box {
    flex-direction: column-reverse;
    gap: 2rem;
  }
}

#sigtext {
    color: var(--primary-text);
    font-size: clamp(3rem, 9vw, 6rem);
    margin: 0;
    text-align: center;
}

#sigsubtext {
    color: var(--secondary-text);
    font-size: clamp(0.85rem, 2.5vw, 1.4rem);
    margin: 0;
    opacity: 60%;
    text-align: center;
}

.about-page-box,
.experience-page-box,
.work-page-box,
.contact-page-box {
  box-sizing: border-box;
  width: 100%;
  padding: var(--section-pad-y) var(--section-pad-x);
  background-color: var(--main-bg);
}

#about-content-title,
#exp-content-title,
#work-content-title,
#contact-content-title {
  color: var(--primary-text);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  margin: 0 0 var(--title-gap);
}

#work-content-title,
#contact-content-title {
  margin-bottom: 0.75rem;
}

#recent-work-subtitle,
#contact-subtitle {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  max-width: 40rem;
  margin: 0 auto var(--title-gap);
}

/* About page */
.about-page-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  z-index: 0;
}

.about-content-box {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  max-width: 34rem;
  justify-content: center;
  align-items: center;
}

.about-content-text-box {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

#about-text {
  color: var(--tertiary-text);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
  line-height: 1.7;
  margin: 0;
}

.vertical-span {
  width: 2px;
  flex-shrink: 0;
  background-color: var(--secondary-text);
  display: inline-block;
  vertical-align: middle;
}

.about-carousel-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 0;
  max-width: 45rem;
  min-width: 0;
}

#carousel {
  width: 100%;
}

#carousel .carousel-inner {
  width: 100%;
  aspect-ratio: 4 / 3;
}

#carousel .carousel-item {
  width: 100%;
  height: 100%;
}

#carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stack the carousel below the text on mobile */
@media (max-width: 950px) {
  .about-page-box {
    flex-direction: column;
    gap: 2.5rem;
  }
  .about-content-box,
  .about-carousel-box {
    flex: none;
    width: 100%;
    max-width: 40rem;
  }
}

/* Experience page */
.experience-page-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 0;
  text-align: center;
}

.exp-content-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  width: 100%;
  max-width: var(--section-max);
}

.exp-carousel-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  padding: 24px;
  gap: 24px;
  background: #0e0d0d;
  border-radius: 16px;
}

#exp-carousel {
  width: clamp(18rem, 36vw, 40rem);
  flex-shrink: 0;
}

#exp-carousel .carousel-inner {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: auto;
  border-radius: 10px;
  overflow: hidden;
}
 
#exp-carousel .carousel-item {
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
 
#exp-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#exp-carousel .carousel-item-next:not(.carousel-item-start),
#exp-carousel .active.carousel-item-end {
  transform: translateY(100%);
}
#exp-carousel .carousel-item-prev:not(.carousel-item-end),
#exp-carousel .active.carousel-item-start {
  transform: translateY(-100%);
}
 
/* Experience fader */
.fader {
  --run-x: 15px;
  position: relative;
  align-self: stretch;
  width: 90px;
  flex-shrink: 0;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  outline: none;
}
 
#fader-run {
  width: 10px;
  height: 100%;
  background-color: #060606 !important;
  position: absolute;
  top: 0;
  left: var(--run-x);
  transform: translateX(-50%);
  border-radius: 4px;
}
 
#fader-knob {
  width: 30px;
  position: absolute;
  z-index: 10;
  top: 0;
  left: var(--run-x);
  transform: translate(-50%, 0);
  cursor: grab;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
  animation: knob-glow 2s ease-in-out infinite;
}

.fader:hover #fader-knob,
.fader:focus-visible #fader-knob,
.fader.used #fader-knob {
  animation: none;
}
 
.fader.snap #fader-knob {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
 
.fader:focus-visible #fader-knob {
  outline: 2px solid var(--primary-text);
  outline-offset: 3px;
}
 
body.fader-grabbing,
body.fader-grabbing #fader-knob {
  cursor: grabbing;
}
 
.fader-scale {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
 
.fader-tick {
  position: absolute;
  left: calc(var(--run-x) + 20px);
  width: 6px;
  height: 1px;
  background: #333;
}
 
.fader-tick.major {
  width: 12px;
  background: #666;
}
 
.fader-label {
  position: absolute;
  left: calc(var(--run-x) + 38px);
  transform: translateY(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #666;
  white-space: nowrap;
  transition: color 0.2s;
}
 
.fader-label.active {
  color: var(--primary-text);
}
 
.exp-text-area {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  max-width: 28rem;
  justify-content: center;
  align-items: center;
}

.exp-text-area h2 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
 
.exp-entry {
  display: none;
}
 
.exp-entry.active {
  display: block;
  animation: exp-fade-up 0.45s ease both;
}
 
.exp-year {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--primary-text);
  margin-bottom: 0.75rem;
}

.exp-text-area h2 {
  color: var(--primary-text);
}

.exp-text-area p {
  color: var(--secondary-text);
}
 
@keyframes exp-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
 
@media (prefers-reduced-motion: reduce) {
  #exp-carousel .carousel-item,
  .fader.snap #fader-knob { transition: none; }
  .exp-entry.active { animation: none; }
}

@media (max-width: 991.98px) {
  .exp-content-box {
    flex-direction: column;
    gap: 2rem;
  }

  .exp-carousel-box {
    flex-shrink: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 40rem;
  }

  #exp-carousel {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  #exp-carousel .carousel-inner {
    width: 100%;
  }

  .exp-text-area {
    flex: none;
    width: 100%;
    max-width: 40rem;
  }
}

@media (max-width: 575.98px) {
  .exp-carousel-box {
    gap: 12px;
    padding: 12px;
  }

  .fader {
    width: 80px;
  }

  .fader-label {
    font-size: 0.6rem;
  }
}


/* Work page */
.work-page-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 0;
  text-align: center;
}

.work-page-content {
  width: 100%;
  max-width: var(--section-max);
  box-sizing: border-box;
}

.recent-work-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.recent-work {
  flex: 1 1 0;
  max-width: 350px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 20px;
  background-color: #141313;
  border: 1px solid transparent;
}

.recent-work:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--secondary-text);
}

.recent-work-title {
  color: var(--primary-text);
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.recent-work-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 4;
  margin-bottom: 0px;
}

#recent-work-subtitle {
  color: var(--tertiary-text);
}

.all-work-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--title-gap);
}

.all-work-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--secondary-text);
  border-radius: 4px;
  color: var(--primary-text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.all-work-btn i {
  transition: transform 0.3s ease;
}

.all-work-btn:hover {
  background-color: var(--primary-text);
  color: var(--main-bg);
}

.all-work-btn:hover i {
  transform: translateX(4px);
}


/* Contact page */
.contact-page-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#contact-subtitle {
  color: var(--tertiary-text);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.contact-card {
  flex: 1 1 0;
  max-width: 320px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  background-color: #141313;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--secondary-text);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--primary-text);
}

.contact-card-label {
  color: var(--primary-text);
  font-size: 1rem;
}

.contact-card-value {
  color: var(--tertiary-text);
  font-size: 1rem;
  word-break: break-word;
}

/* Footer */
.site-footer {
  background-color: #000;
  padding: 3rem 30px 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-line {
  width: 100px;
  height: 2px;
  background-color: var(--secondary-text);
  margin-bottom: 0.5rem;
}

.footer-name {
  color: var(--primary-text);
  font-size: 1.1rem;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-icons a {
  color: var(--tertiary-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-icons a:hover {
  color: var(--primary-text);
}

.footer-icons {
  display: flex;
  gap: 1.5rem;
  font-size: 1.3rem;
}

.footer-credit {
  color: #555;
  font-size: 0.8rem;
  margin: 0.5rem 0 0;
}

.footer-credit a {
  color: #777;
  text-decoration: none;
}

.footer-credit a:hover {
  color: var(--secondary-text);
}
 

/* Font classes */
.montecarlo-regular {
    font-family: "MonteCarlo", cursive;
    font-weight: 400;
    font-style: normal;
}

.cinzel {
  font-family: 'Cinzel', serif;
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.jost {
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

/* Animations */
@keyframes fadeFromBlack {
  from {
    opacity: 0;
    background-color: var(--main-bg);
  }
  to {
    opacity: 1;
  }
}

@keyframes knob-glow {
  0%, 100% {
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  50% {
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 10px rgba(255, 211, 144, 0.319));
  }
}
