/* Hero2 Styles */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Expletus+Sans:ital,wght@0,400..700;1,400..700&family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --hero-purple: #7c3aed;
  --hero-glow: #7119e3;
  /* Increased brightness by ~15% */
  --text-primary: #ffffff;
}

body {
  background-color: #000;
  color: var(--text-primary);
  margin: 0;
  font-family: 'Figtree', sans-serif;
  overflow-x: hidden;
}

/* Nav */
.hero2-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  box-sizing: border-box;
  z-index: 200;
  transition: background 0.4s, padding 0.3s, border-bottom 0.4s;
  border-bottom: 1px solid transparent;
}

.hero2-nav.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(16px);
  padding: 18px 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-works {
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Polygon Buttons */
.btn-polygon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  background: transparent;
  z-index: 1;
}

.btn-polygon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: polygon(evenodd, 0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px), 0 0, 1px 1px, calc(100% - 9px) 1px, calc(100% - 1px) 9px, calc(100% - 1px) calc(100% - 1px), 9px calc(100% - 1px), 1px calc(100% - 9px), 1px 1px);
  z-index: -2;
}

.btn-polygon::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: transparent;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  z-index: -1;
  transition: background 0.3s;
}

.btn-polygon--purple::before {
  background: var(--hero-purple);
}

.btn-polygon--white::before {
  background: rgba(255, 255, 255, 0.7);
  clip-path: polygon(evenodd, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px, 8px 0, 9px 1px, calc(100% - 1px) 1px, calc(100% - 1px) calc(100% - 9px), calc(100% - 9px) calc(100% - 1px), 1px calc(100% - 1px), 1px 9px, 9px 1px);
}

.btn-polygon--white::after {
  background: transparent;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-polygon:hover::after {
  background: var(--hero-purple);
}

.btn-polygon--white:hover::after {
  background: var(--hero-purple);
}

.btn-polygon--purple:hover::after {
  background: var(--hero-purple);
}

.btn-polygon--white:hover::before {
  background: var(--hero-purple);
}

.arrow {
  font-size: 14px;
  line-height: 1;
}

/* Hamburger */
.nav-hamburger {
  width: 44px;
  height: 32px;
  /* Matched to Resume button height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 12px;
  gap: 6px;
  background: transparent;
  border: none;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.nav-hamburger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  clip-path: polygon(evenodd, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px, 8px 0, 9px 1px, calc(100% - 1px) 1px, calc(100% - 1px) calc(100% - 9px), calc(100% - 9px) calc(100% - 1px), 1px calc(100% - 1px), 1px 9px, 9px 1px);
  z-index: -2;
}

.nav-hamburger::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: transparent;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  z-index: -1;
  transition: background 0.3s;
}

.nav-hamburger:hover::after {
  background: var(--hero-purple);
}

.nav-hamburger:hover::before {
  background: var(--hero-purple);
}

.nav-hamburger .line {
  display: block;
  height: 1px;
  background: white;
  transition: all 0.3s;
}

.nav-hamburger .line.top {
  width: 18px;
}

.nav-hamburger .line.bottom {
  width: 12px;
}

/* Hero Section */
.hero2-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
}

.hero2-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20vh; /* Reduced from 35vh for a tighter desktop fade */
  min-height: 150px;
  max-height: 250px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.738) 19%,
    rgba(0, 0, 0, 0.541) 34%,
    rgba(0, 0, 0, 0.382) 47%,
    rgba(0, 0, 0, 0.278) 56.5%,
    rgba(0, 0, 0, 0.194) 65%,
    rgba(0, 0, 0, 0.126) 73%,
    rgba(0, 0, 0, 0.075) 80.2%,
    rgba(0, 0, 0, 0.042) 86.1%,
    rgba(0, 0, 0, 0.021) 91%,
    rgba(0, 0, 0, 0.008) 95.2%,
    rgba(0, 0, 0, 0.002) 98.2%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero2-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    ellipse 1000px 65vh at 50% 100%, 
    var(--hero-glow) 0%, 
    rgba(113, 25, 227, 0.45) 45%, 
    rgba(113, 25, 227, 0.15) 75%, 
    rgba(113, 25, 227, 0) 100%
  );
  z-index: 0;
}

.hero2-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 25vh;
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.7) 30%, 
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.hero2-text-wrap {
  position: absolute;
  top: 20%;
  /* Shifted down by 5% */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  /* Behind image */
  width: 100%;
}

.hero2-title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero2-subtitle {
  font-family: 'Caveat', cursive;
  font-size: 12px;
  /* Reduced by another 20% */
  color: #7c3aed;
  margin-bottom: -5px;
  margin-left: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.hero2-title {
  font-family: 'Expletus Sans', sans-serif;
  font-size: clamp(85px, 12.5vw, 186px);
  /* Increased by 5% */
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: 2px;
}

.hero2-img {
  position: absolute;
  bottom: calc(-15px - 2vh);
  /* Shifted up by 3% */
  left: 50%;
  transform: translateX(-50%);
  height: 72%;
  /* Reduced by another 3% */
  max-width: none;
  width: auto;
  object-fit: contain;
  z-index: 2;
  /* In front of text */
  pointer-events: none;
}

/* Bottom Elements */
.hero2-socials {
  position: absolute;
  bottom: 40px;
  left: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.social-icon {
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero2-mouse {
  position: absolute;
  bottom: 20px;
  /* Shifted down */
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero2-mouse:hover {
  border-color: white;
  opacity: 0.8;
}

.mouse-wheel {
  width: 2px;
  height: 6px;
  background: white;
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}

.hero2-cta {
  position: absolute;
  bottom: 40px;
  right: 50px;
  z-index: 10;
}

/* Mobile Logo — hidden on desktop */
.nav-logo-mobile {
  display: none;
  font-family: 'Expletus Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero2-nav {
    padding: 20px;
  }

  .hero2-nav.scrolled {
    padding: 16px 20px;
  }

  /* Hide WORKS link and RESUME button on mobile */
  .nav-works {
    display: none;
  }

  .btn-polygon--purple {
    display: none;
  }

  /* Show EO logo on mobile */
  .nav-logo-mobile {
    display: block;
  }

  .hero2-title {
    font-size: clamp(48px, 13vw, 70px);
  }

  .hero2-subtitle {
    font-size: 11px;
    margin-bottom: 16px;
    margin-left: 0;
    text-align: center;
  }

  .hero2-title-container {
    align-items: center;
  }

  .hero2-socials {
    display: none;
  }

  .hero2-cta {
    display: none;
  }

  .hero2-mouse {
    bottom: 30px;
  }

  .hero2-img {
    height: 53.6vh; /* Exact Figma proportion: 456.78px / 852px = 53.6% */
    width: auto;
    bottom: 10.3vh; /* Exact Figma math: 852 - 308 - 456.78 = 87.22px, which is ~10.3vh */
    max-width: none;
  }


  .hero2-section::after {
    height: 30vh;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 35%, /* Solid black for the bottom 10.5vh to cover the gap */
      rgba(0, 0, 0, 0.8) 50%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}