/* =========================================================
   ETHEREAL CANVAS — Marcelo Suárez Portfolio
   Theme: Deep Void, Gold, Electric Blue
   ========================================================= */

/* ---------- 1. VARIABLES & SETUP ---------- */
/* Variables removed as per request */

/* ---------- 2. RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #020203;
  color: #EAEAEA;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.6;
  overflow-x: hidden;
  /* Aurora Background Effect */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.05), transparent 40%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  margin: 0 0 1rem 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 2.5rem + 4vw, 5.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  color: #D4AF37;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
}

p {
  margin-bottom: 1.5rem;
  color: #888899;
}

/* ---------- 3. UTILITIES ---------- */
.container {
  width: min(100% - 40px, 1400px);
  margin-inline: auto;
}

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #888899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  color: #D4AF37;
}

.text-blue {
  color: #00F0FF;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid #D4AF37;
  color: #D4AF37;
  background: transparent;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #D4AF37;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: -1;
}

.btn:hover {
  color: #020203;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.08);
  color: #EAEAEA;
}

.btn-secondary::before {
  background: #EAEAEA;
}

/* ---------- 4. NAVBAR (Standard Glass Top) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.navbar-container {
  width: min(100% - 40px, 1400px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-star {
  width: 24px;
  height: 24px;
  color: #D4AF37;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
  animation: spinStar 10s linear infinite;
}

@keyframes spinStar {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.nav-logo {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #EAEAEA;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #888899;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #D4AF37;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

.nav-link:hover {
  color: #EAEAEA;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: #D4AF37;
}

.nav-link.active::after {
  background: #D4AF37;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

/* ---------- 5. HERO SECTION ---------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  filter: blur(80px);
  background:
    radial-gradient(circle at 20% 30%, #4a3b10, transparent 50%),
    radial-gradient(circle at 80% 70%, #004a50, transparent 50%);
  animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3rem, 2.5rem + 4vw, 5.5rem);
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(to bottom, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  color: #D4AF37;
  margin-bottom: 32px;
  font-family: "Fraunces", serif;
  font-style: italic;
  animation: fadeUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.2s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-desc {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto 48px;
  animation: fadeUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.4s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s forwards;
  opacity: 0;
  transform: translateY(30px);
}

/* ---------- 6. SECTIONS ---------- */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: #00F0FF;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- 7. FOOTER ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.social-link {
  font-size: 1.5rem;
  color: #888899;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #D4AF37;
  transform: translateY(-4px);
}

/* ---------- 8. ANIMATIONS ---------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 9. RESPONSIVE ---------- */
@media (max-width: 768px) {
  .site-header {
    height: 60px;
  }

  .navbar-container {
    width: 90%;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
    color: #D4AF37;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Mobile Menu Overlay */
  .mobile-menu {
    position: fixed;
    top: 60px;
    /* Below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu a {
    font-size: 1.5rem;
    font-family: "Fraunces", serif;
    color: #EAEAEA;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-menu a.active {
    color: #D4AF37;
    border-color: #D4AF37;
  }
}

/* ---------- 10. CONTACT PAGE ---------- */
.contact-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left Column */
.contact-title {
  font-size: clamp(3rem, 2.5rem + 4vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact-desc {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  max-width: 500px;
  margin-bottom: 40px;
  color: #888899;
}

.contact-decoration {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, transparent);
}

/* Right Column */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  perspective: 1000px;
}

.contact-card-item {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.1s ease-out;
  /* Fast for tilt */
  text-decoration: none;
  overflow: hidden;
  transform-style: preserve-3d;
}

.contact-card-item:hover {
  border-color: #D4AF37;
  background: rgba(255, 255, 255, 0.05);
}

.card-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.contact-card-item:hover .card-glow {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  transform: translateZ(20px);
  /* Pop out effect */
}

.contact-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.contact-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888899;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #EAEAEA;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .contact-desc {
    margin: 0 auto 40px;
  }

  .contact-decoration {
    margin: 0 auto;
  }

  .contact-card-item {
    text-align: left;
  }
}

/* ---------- 11. INDEX PAGE HERO & BIO ---------- */

/* Hero Updates */
.hero-quote {
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 48px;
  line-height: 1.6;
  color: #fff;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s forwards;
  transform: translateY(20px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
}

.hero-scroll-indicator span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888899;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #D4AF37, transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Bio Intro Section */
.bio-intro-section {
  position: relative;
  background: linear-gradient(to bottom, #020203, #0a0a10);
}

.bio-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.bio-image-wrapper {
  position: relative;
}

.bio-image {
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  filter: grayscale(20%) contrast(110%);
  transition: all 0.5s ease;
}

.bio-image:hover {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.02);
}

.bio-image-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid #D4AF37;
  border-radius: 32px;
  z-index: -1;
  opacity: 0.3;
  transition: transform 0.5s ease;
}

.bio-image-wrapper:hover .bio-image-decoration {
  transform: translate(10px, 10px);
  opacity: 0.6;
}

.bio-title {
  font-size: clamp(3rem, 2.5rem + 4vw, 5.5rem);
  margin-bottom: 32px;
  color: #D4AF37;
}

.bio-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #EAEAEA;
  margin-bottom: 48px;
}

.bio-signature {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signature-logo {
  height: 50px;
  width: auto;
  filter: invert(1) brightness(2);
  /* Make it white/bright if it's dark */
}

.signature-title {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888899;
}

@media (max-width: 900px) {
  .bio-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .bio-signature {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }

  .hero-quote {
    font-size: 1.2rem;
  }
}