/* REGISTRAZIONE FONT LOCALI */
@font-face {
  font-family: 'Montserrat-Black';
  src: url('fonts/Montserrat-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica-Bold';
  src: url('fonts/Helvetica-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Inconsolata-Medium';
  src: url('fonts/Inconsolata-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Inconsolata-Bold';
  src: url('fonts/Inconsolata-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* RESET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #000000;
  color: #ffffff;
}

body.no-scroll {
  overflow: hidden !important;
}

/* SPLASH SCREEN INTRO TOTALMENTE NERO */
.splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
  cursor: pointer;
}

.splash-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
  padding: 20px;
}

.splash-logo {
  max-width: 380px;
  width: 75vw;
  height: auto;
  opacity: 0;
  animation: fadeInLogo 1.5s ease-out 0.2s forwards;
}

@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.splash-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeInPrompt 1.2s ease-out 1s forwards;
}

@keyframes fadeInPrompt {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.prompt-text {
  font-family: 'Inconsolata-Bold', monospace;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 3px;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.scroll-arrow {
  font-family: 'Inconsolata-Bold', monospace;
  font-size: 1.4rem;
  color: #ffffff;
  animation: bounceArrow 1.5s infinite ease-in-out;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* DESKTOP STYLES */
.hud-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 45px 45px 120px 45px;
  background-image: url('images/header-unit.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease-out;
}

.hud-container.hud-hidden {
  opacity: 0;
  transform: translateY(80px);
}

.corner-title-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 520px;
}

/* TITOLO ORIZZONTALE CON OUTLINE NERO */
.title-horizontal {
  font-family: 'Montserrat-Black', sans-serif;
  font-size: 5.7rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 0.92;
  white-space: nowrap;
  
  /* STROKE/OUTLINE NERO NITO */
  text-shadow: 
    -2px -2px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0px  3px 8px rgba(0, 0, 0, 0.8);
}

.subtitle-bio-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  margin-top: 4px;
}

/* TITOLO VERTICALE "THE" CON OUTLINE NERO */
.title-vertical {
  font-family: 'Montserrat-Black', sans-serif;
  font-size: 5.7rem;
  font-weight: 900;
  letter-spacing: 2px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  color: #ffffff;
  line-height: 0.92;
  flex-shrink: 0;
  
  /* STROKE/OUTLINE NERO NITO */
  text-shadow: 
    -2px -2px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0px  3px 8px rgba(0, 0, 0, 0.8);
}

.bio-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* TESTO BIO CON OUTLINE NERO PER LEGGIBA SUI PUNTI CHIARI */
.bio-text p {
  font-family: 'Helvetica-Bold', 'Helvetica', sans-serif;
  font-size: 1.75rem;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  
  /* STROKE/OUTLINE NERO NITIDO */
  text-shadow: 
    -1.5px -1.5px 0 #000,  
     1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000,
     1.5px  1.5px 0 #000,
     0px  2px 6px rgba(0, 0, 0, 0.9);
}

.links-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 140px;
}

.glass-btn {
  position: relative;
  width: 100%;
  height: 65px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0 24px;
  
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.03) 100%
  );
  
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.37),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
    
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-btn:hover {
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.22) 0%, 
    rgba(255, 255, 255, 0.08) 100%
  );
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.glass-btn:active {
  transform: translateY(1px);
}

.btn-icon {
  position: absolute;
  left: 20px;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.btn-text {
  font-family: 'Inconsolata-Medium', monospace;
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.cyber-vector-container {
  position: relative;
  width: 100%;
  margin-top: 120px;
  pointer-events: none;
}

.cyber-vector-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* OTTIMIZZAZIONE PER SMARTPHONE */
@media screen and (max-width: 768px) {
  .hud-container {
    padding: 24px 20px 80px 20px;
    background-position: 70% center;
  }

  .corner-title-group {
    width: 100%;
  }

  .title-horizontal {
    font-size: 3.2rem;
    white-space: normal;
  }

  .title-vertical {
    font-size: 3.2rem;
  }

  .bio-text p {
    font-size: 1.15rem;
    white-space: normal;
  }

  .subtitle-bio-row {
    gap: 12px;
  }

  .links-stack {
    margin-top: 50px;
  }

  .glass-btn {
    height: 56px;
    padding: 0 16px;
  }

  .btn-text {
    font-size: 1.1rem;
  }

  .cyber-vector-container {
    margin-top: 80px;
  }
}