/* ── APEX UI Redesign Case Study ── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}

*, *::before, *::after { cursor: none !important; }

html { font-size: 62.5%; overflow-x: hidden; }

body {
  background-color: #0a0a0a;
  color: #ffffff;
  cursor: none;
  font-family: 'League Spartan', sans-serif;
}

/* ── Custom cursor ── */
.cursor { pointer-events: none; }

.cursor__ball {
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
}

.cursor__ball--big    { mix-blend-mode: difference; }
.cursor__ball--big    circle { fill: #BF2929; }
.cursor__ball--small  { mix-blend-mode: difference; }
.cursor__ball--small  circle { fill: #f7f8fa; }

/* ── Header / nav ── */
.header {
  display: flex;
  position: fixed;
  height: 100px;
  width: 100%;
  top: 0;
  left: 0;
  padding: 3.5rem 10%;
  /*background-color: #070707d5;*/
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-family: League Spartan;
  font-weight: Regular;
  background-color: #1a1a1aab;
}

#menu-icon {
  font-size: 3rem;
  color: tomato;
  display: none;
}
.logo{
  font-size: 3rem;
  color: rgb(255, 255, 255);
  font-family: libre baskerville;
  /* font-family: caveat; */
  transition: 0.3s ease-in-out;
}
.logo:hover{
  transform: scale(1.1);
}
.navbar {
  list-style: none;
  display: flex;
  padding: 0;
  gap: 6rem;
  justify-content: center;
}
nav {
height: 100%;
display: flex;
}
.navbar > li > a {
  display: flex;
  align-items: center;     /* vertical centering */
  justify-content: center; /* horizontal centering */
  color: white;
  font-size: 1.8rem;
  margin-left: 0;
  height: 100%;
  text-align: center;
}
.dropdown-menu li a {
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: white;
  font-size: 1.8rem;
  margin-left: 0;
  height: 100%;
  display: block;
  width: 100%;
  text-align: right;
  font-size: 1.5rem;
}
.dropdown-menu li a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;              
  width: 0%;             
  height: 100%;
  background: #a82a2ad3;
  z-index: -1;

  transition: width 0.3s ease;
}
.dropdown-menu li a:hover::before {
  width: 100%;           

}
.navbar li{
  position: relative;
  height: 100%;

}
.dropdown-menu li {
  padding: 0.5rem 1rem;
}

.dropdown-menu { /*verticaly center nav and dropdown */
  
  position: absolute;
  top: 100%;          /* directly under the li */
  right: -1rem;
  background: #2b2b2bd3;
  list-style: none;
  padding: 0;
  min-width: 220px;

  opacity: 0;
  left: auto;
  transform: translateY(-10px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  pointer-events: none;
  


  transition: opacity 0.3s ease, transform 0.3s ease;
}
.navbar li:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li a{
  width: 100%;
  text-align: right;
  font-size: 1.5rem;
}

/* ── Hero ── */
.apex-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  background-color: #0a0a0a;
  background-image: url('svgs/apex\ background.svg');
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}

.apex-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.65) 45%,
    rgba(10,10,10,0.88) 140%
  );
  pointer-events: none;
}

.apex-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(207,68,32,0.4), transparent);
}

.apex-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.apex-logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.apex-triangle-svg {
  width: 320px;
  height: auto;
}

.apex-brand-sub {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.55rem;
  color: #CF4420;
  text-transform: uppercase;
  padding-left: 2rem;
}

.apex-hero-meta {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.apex-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.apex-meta-label {
  font-size: 1.1rem;
  letter-spacing: 0.3rem;
  color: rgba(207,68,32,0.75);
  text-transform: uppercase;
}

.apex-meta-value {
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05rem;
}

.apex-meta-divider {
  width: 1px;
  height: 3.5rem;
  background: rgba(255,255,255,0.1);
}

.apex-hero-scroll-hint {
  position: absolute;
  bottom: 4.5rem;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  opacity: 0.35;
}

.apex-hero-scroll-hint span {
  font-size: 1.1rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  color: #ffffff;
}

.apex-hero-scroll-line {
  width: 4rem;
  height: 1px;
  background: #ffffff;
}

/* ── Sections ── */
.apex-section {
  padding: 10rem 10%;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.apex-section-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.apex-section-header {
  margin-bottom: 6rem;
}

.apex-num {
  display: block;
  font-size: 11rem;
  font-weight: 800;
  color: #CF4420;
  line-height: 0.85;
  letter-spacing: -0.02em;
  opacity: 0.9;
}

.apex-section-title {
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: #ffffff;
  margin-top: 1.2rem;
  margin-bottom: 2.4rem;
}

.apex-section-rule {
  width: 5rem;
  height: 2px;
  background: #CF4420;
}

/* ── Content layouts ── */
.apex-section-content {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.apex-content-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.apex-content-split--reverse {
  grid-template-columns: 1.4fr 1fr;
}

.apex-content-split--reverse .apex-text-block {
  order: 2;
}

.apex-content-split--reverse .apex-img-slot {
  order: 1;
}

/* ── Text ── */
.apex-text-block { display: flex; flex-direction: column; gap: 2.4rem; }

.apex-text-block--narrow { max-width: 58rem; }

.apex-body {
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.02rem;
}

.apex-body--intro {
  max-width: 70rem;
  margin-bottom: 4rem;
}

/* ── Image slots ── */
.apex-img-slot {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.apex-img-slot img {
  width: 100%;
  height: auto;
  display: block;
}


.apex-img-grid--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.apex-img-grid--overview {
  margin-top: 4rem;
  gap: 3rem;
}

.apex-img-grid--overview .apex-img-slot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Created Assets grid ── */
.apex-section--assets { padding-bottom: 14rem; }

.apex-assets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 180px;
  background: rgba(19,19,19,1);
  bottom: 0;
  left: 0;
  padding: 5rem 10%;
  margin-top: auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-self: center;
  /* margin-top: 2rem; */
  gap: 2rem;
}

.text {
  color: rgb(255, 255, 255);
  font-family: League Spartan;
  font-weight: Regular;
  font-size: 3.8rem;
  opacity: 1;
  z-index: 10;
}

.icon_links {
  display: flex;
  justify-content: space-between;
  width: 155px;
  height: 27px;
}
.contact {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.contact a{  
font-size: 1.8rem;
color: white;
margin-left: 4rem;
font-weight: 500;
font-family: League Spartan;
}
.artstation {
  z-index: 10;
}
.page-link {
    position: absolute;
    display: block;
    z-index: 1000; /* above page image */
    cursor: pointer;
    /* background: rgba(255, 0, 0, 0.3);
    outline: 2px solid red;  */
}


.apex-final-intro {
  padding: 10rem 10% 4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.apex-final-label {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.apex-final-showcase {
  padding: 0 10% 10rem;
}

.apex-final-showcase img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .apex-content-split {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .apex-content-split--reverse .apex-text-block,
  .apex-content-split--reverse .apex-img-slot {
    order: unset;
  }
  .apex-assets-grid { grid-template-columns: repeat(2, 1fr); }
  .apex-num { font-size: 8rem; }
  .apex-section-title { font-size: 3.2rem; }
}

@media (max-width: 768px) {
  .apex-section { padding: 7rem 6%; }
  .apex-hero { padding: 0 6%; }
  .apex-hero-scroll-hint { left: 6%; }
  .apex-triangle-svg { width: 220px; }
  .apex-img-grid--2 { grid-template-columns: 1fr; }
  .apex-assets-grid { grid-template-columns: 1fr 1fr; }
  .apex-hero-meta { flex-wrap: wrap; gap: 2rem; }
  .apex-meta-divider { display: none; }
}
