/* Reset default spacing and apply base font */
* {
  margin: 0;
  padding: 0;
  font-family: "gilroy";
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Hide scrollbar for all browsers */
}

/* Hide scroll bar for all browsers */

html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Custom fonts */
@font-face {
  font-family: "Kajiro";
  src: url("../assets/fonts/Kajiro-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "gilroy";
  src: url("../assets/fonts/gilroy/Gilroy-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "gilroy-bold";
  src: url("../assets/fonts/gilroy/Gilroy-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Main wrapper */
#main {
  width: 100%;
  height: 100vh;
  /* background-color: black; */ /* removed static bg to allow slideshow */
}

/* Background container */
#back {
  width: 100%;
  height: 100vh;
}

#back img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure background images fill container */
}

/* Overlay layer on top of background */
#top {
  pointer-events: none; /* let clicks pass through */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* background-color: #000000d8; */ /* removed for transparency */
}

/* Content working area */
#workingarea {
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: 100vh;
  max-width: 1350px;
  /* border: 1px solid red; */
}

/* Navigation */
#nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 40px 0;
}

#nav img {
  height: 60px;
}

#nleft,
#nright {
  display: flex;
  align-items: center;
  gap: 60px;
}

#nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  font-family: "gilroy-bold";
}

/* Hero section */
#hero {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0%, -50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Hero left (text + button) */
#heroleft {
  min-width: 50%;
  /* background: yellow; */
}

#heroleft .elem {
  position: relative; /* needed for absolute h1 positioning */
  height: 9vw;
  overflow: hidden; /* hide animated text */
  /* background-color: red; */
}

/* First heading starts visible */
#heroleft .elem h1:nth-child(1) {
  top: 0;
}

/* Headings positioned for animation */
#heroleft .elem h1 {
  position: absolute;
  top: 100%; /* hidden by default, slides into view */
  left: 0;
  line-height: 0.9;
  font-family: "Kajiro", sans-serif;
  color: #fff;
  font-weight: 100;
  font-size: 11vw;
}

/* Call-to-action button */
#heroleft button {
  pointer-events: all; /* enable interaction despite parent’s pointer-events */
  padding: 0.8vw 2vw;
  font-size: 3vw;
  margin-top: 2vw;
  font-family: "Kajiro", sans-serif;
  cursor: pointer;
}

/* Hero right (image + text) */
#heroright {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 17%;
  /* background: green; */
  color: #fff;
}

#heroright p {
  font-size: 14px;
  font-weight: 300;
  text-align: right;
}

/* Portrait image block */
#heroright #imagediv {
  width: 100%;
  height: 170px;
  margin-top: 20px;
  margin-bottom: 30px;
  /* background-color: red; */
  background-image: url("/assets/portrait.avif");
  background-size: cover;
  background-position: center;
}

/* Add extra spacing under third paragraph */
#heroright p:nth-child(3) {
  margin-bottom: 100px;
}
