/* ==========================================================================
   HERO SHOWCASE COMPONENT
   Author: Naga Tarun · Product Designer
   Aesthetic: Vibrant Kinetic Editorial Layout (#02EEB0 Mint & Emerald)
   ========================================================================== */

:root {
  --hero-mint: #02EEB0;
  --hero-mint-dark: #02b888;
  --hero-mint-deep: #016f52;
  --hero-mint-glow: rgba(2, 238, 176, 0.45);
  --hero-white: #ffffff;
  --hero-dark: #0a110d;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  scroll-behavior: smooth;
}

#works {
  scroll-margin-top: 50px;
}

/* Ensure navbar sits above the hero with high contrast */
.navbar {
  z-index: 100 !important;
}

.navbar .logo a img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* White, High-Contrast Hamburger Icon & Clickable Menu */
.navbar .right .hamburger-menu {
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  user-select: none;
}

.navbar .right .hamburger-menu b {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: 2px !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease;
}

.navbar .right .hamburger-menu:hover b {
  opacity: 0.85;
}

.hamburger {
  cursor: pointer !important;
}

.hamburger span {
  background: #ffffff !important;
  height: 2px !important;
  border-radius: 1px;
  pointer-events: none !important;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 7px;
}

.hamburger span:nth-child(3) {
  top: 14px;
}

.hamburger.open span {
  background: #ffffff !important;
}

/* Base Hero Container */
.hero-showcase {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: var(--hero-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
}

/* Dynamic Curved Wave Division featuring #02EEB0 */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vibrant Radial Glow in Center */
.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(2, 238, 176, 0) 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   LEFT SIDE SOCIAL RAIL & SCROLL DOWN
   ========================================================================== */
.hero-left-rail {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 105px 0 25px;
  box-sizing: border-box;
  pointer-events: none;
}

.hero-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  pointer-events: auto;
}

.hero-social-list li {
  margin: 0;
  padding: 0;
}

.hero-social-list li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 5px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-social-list li a:hover {
  transform: scale(1.08);
  text-decoration: none;
}

.hero-social-list .icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.hero-social-list li a:hover .icon-wrap {
  box-shadow: none !important;
}

.hero-social-list .icon-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hero-social-list .label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-shadow: none !important;
}

/* Scroll Down Indicator at bottom left with guaranteed clearance */
.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  pointer-events: auto;
}

.hero-scroll-indicator small {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  text-shadow: none !important;
  margin-bottom: 2px;
}

.hero-scroll-indicator .scroll-line {
  display: block;
  width: 1.5px;
  height: 42px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.hero-scroll-indicator .scroll-line::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  animation: scrollPulseAnim 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollPulseAnim {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================================
   CENTER STAGE & MASSIVE TYPOGRAPHY (FRONT SIDE OF PERSON)
   ========================================================================== */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Front Typography - positioned on left, starts below A of NAGA */
.hero-typography {
  position: absolute;
  top: 57%;
  left: 14%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 7;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: clamp(16px, 2.2vw, 30px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.hero-main-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(65px, 10.5vw, 155px);
  font-weight: 950;
  line-height: 0.88;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin: 0;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.hero-title-first {
  display: block;
}

.hero-title-last {
  display: block;
  margin-left: 0.82em; /* Starts directly below the first 'A' of 'NAGA'! */
}

/* ==========================================================================
   CUTOUT PORTRAIT (CENTER SUBJECT) - TOUCHING BOTTOM COMPLETELY
   ========================================================================== */
.hero-portrait-wrap {
  position: absolute;
  bottom: 0 !important; /* Touches bottom with zero floating gap */
  left: 50%;
  transform: translateX(-50%);
  height: 86vh;
  max-height: 830px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait-img {
  height: 100%;
  width: auto;
  max-width: 90vw;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

/* ==========================================================================
   ROTATING CIRCULAR STAMP ("DOWNLOAD RESUME")
   ========================================================================== */
.hero-stamp-wrap {
  position: absolute;
  top: 14%;
  right: calc(50% - 330px);
  width: 130px;
  height: 130px;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-stamp-wrap:hover {
  transform: scale(1.08);
}

.hero-stamp-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1.5px dashed rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stamp-svg {
  width: 100%;
  height: 100%;
  animation: resumeStampSpin 18s linear infinite;
}

.hero-stamp-wrap:hover .hero-stamp-svg {
  animation-play-state: paused;
}

.hero-stamp-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

@keyframes resumeStampSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   FOREGROUND CTA PILL ("EXPLORE PROJECTS")
   ========================================================================== */
.hero-cta-container {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 44px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  border-radius: 50px;
  color: #ffffff;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap !important; /* Always keeps in single line */
  word-break: keep-all !important;
}

.hero-cta-btn:hover {
  background: #ffffff;
  color: #016f52;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-typography {
    left: 10%;
  }
  .hero-stamp-wrap {
    right: 5%;
    top: 12%;
  }
}

@media (max-width: 991px) {
  .hero-left-rail {
    left: 10px;
  }
  .hero-typography {
    left: 70px;
  }
  .hero-stamp-wrap {
    width: 90px;
    height: 90px;
    top: 15%;
    right: 5%;
  }
  .hero-portrait-wrap {
    height: 65vh;
  }
  .hero-cta-container {
    bottom: 30px;
  }
}

/* Mobile View: Image Grounded Below, Big Impact Text in Upper Zone */
@media (max-width: 768px) {
  .hero-showcase {
    height: 100vh;
    min-height: 640px;
    max-height: 950px;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  /* Big Impact Typography positioned in upper area */
  .hero-typography {
    position: absolute;
    top: 100px;
    left: 20px;
    right: 20px;
    transform: none;
    width: auto;
    text-align: left;
    z-index: 8;
    pointer-events: none;
  }

  .hero-eyebrow {
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 900;
    letter-spacing: 2.5px;
    margin-bottom: 2px;
  }

  .hero-main-title {
    font-size: clamp(56px, 15.5vw, 78px);
    font-weight: 950;
    line-height: 0.88;
    letter-spacing: -2px;
  }

  .hero-title-first {
    display: block;
  }

  .hero-title-last {
    display: block;
    margin-left: 0.82em; /* Starts directly below the first 'A' of 'NAGA'! */
  }

  /* Portrait Grounded at the Bottom */
  .hero-portrait-wrap {
    position: absolute;
    bottom: 0 !important;
    left: 50%;
    transform: translateX(-50%);
    height: 64vh;
    max-height: 550px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 4;
  }

  .hero-portrait-img {
    height: 100%;
    width: auto;
    max-width: 95vw;
    object-fit: contain;
  }

  /* Foreground CTA Button - Strictly Single Line */
  .hero-cta-container {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
  }

  .hero-cta-btn {
    padding: 12px 28px !important;
    font-size: 13.5px !important;
    font-weight: 900 !important;
    letter-spacing: 1.2px !important;
    white-space: nowrap !important; /* Strictly Single Line on all mobile screens */
    word-break: keep-all !important;
  }

  /* Rotating Circular Stamp placed at bottom-right corner of N from TARUN */
  .hero-stamp-wrap {
    top: 210px;
    right: 14px;
    width: 78px;
    height: 78px;
    z-index: 20;
  }

  .hero-left-rail {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-typography {
    top: 95px;
    left: 18px;
  }
  .hero-eyebrow {
    font-size: 14px;
    letter-spacing: 2px;
  }
  .hero-main-title {
    font-size: clamp(50px, 14.5vw, 64px);
  }
  .hero-portrait-wrap {
    height: 62vh;
    max-height: 520px;
  }
  .hero-cta-btn {
    padding: 11px 24px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important; /* Strictly Single Line */
  }
  .hero-stamp-wrap {
    width: 74px;
    height: 74px;
    top: 208px;
    right: 60px;
  }
}
