@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Syne:wght@500;700;800&display=swap');

:root {
  --bg-color: #0b0711;
  --bg-rgb: 11, 7, 17;
  --card-bg: #130c22;
  --text-color: #f3f0f7;
  --text-muted: #a69cb5;
  --purple-primary: #8e6bd8;
  --purple-dark: #2d1b4e;
  --purple-light: #bf9bf2;
  --purple-glow: rgba(142, 107, 216, 0.15);
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #b89025;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f5e4a3 50%, #b89025 100%);
  --gold-glow: rgba(212, 175, 55, 0.2);
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* Base resets & scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #251c36;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Background elements for abstract texture */
.ambient-glow {
  position: fixed;
  width: 60vw;
  height: 60vh;
  top: -10vh;
  right: -10vw;
  background: radial-gradient(circle, rgba(142, 107, 216, 0.18) 0%, rgba(11, 7, 17, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: float-glow 20s infinite alternate ease-in-out;
}

.ambient-glow-2 {
  position: fixed;
  width: 50vw;
  height: 50vh;
  bottom: -10vh;
  left: -10vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(11, 7, 17, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
  animation: float-glow 25s infinite alternate-reverse ease-in-out;
}

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 7, 17, 0.65);
  border-bottom: 1px solid rgba(142, 107, 216, 0.05);
}

header .logo-container img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

header .logo-container img:hover {
  filter: drop-shadow(0 0 8px var(--purple-light));
}

header nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

header nav a {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-gradient);
  transition: var(--transition);
}

header nav a:hover {
  color: var(--text-color);
}

header nav a:hover::after {
  width: 100%;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold-gradient);
  transition: var(--transition);
  z-index: -1;
}

.cta-button:hover {
  color: #0b0711;
  box-shadow: 0 0 15px var(--gold-glow);
  border-color: transparent;
}

.cta-button:hover::before {
  left: 0;
}

/* Primary filled style variation */
.cta-button.primary {
  background: var(--gold-gradient);
  color: #0b0711;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.cta-button.primary::before {
  background: linear-gradient(135deg, #f5e4a3 0%, #d4af37 50%, #b89025 100%);
}

.cta-button.primary:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  color: #0b0711;
}

/* Burger menu for Mobile */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 110;
}

.mobile-toggle span {
  width: 28px;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 5% 4rem;
  background-image: linear-gradient(rgba(11, 7, 17, 0.4), #0b0711), url('../images/hero_ambient.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 1s forwards 0.2s;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: #fff;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 1.2s forwards 0.4s;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 1s forwards 0.6s;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 1s forwards 0.8s;
  width: 100%;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Philosophy Section (Manifiesto) */
.philosophy {
  padding: 8rem 5%;
  position: relative;
  display: flex;
  justify-content: center;
  background-color: var(--bg-color);
}

.philosophy-container {
  max-width: 1000px;
  text-align: center;
}

.section-label {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
  display: block;
}

.philosophy-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  margin-bottom: 2.5rem;
}

.philosophy-title span {
  color: var(--gold);
}

.philosophy-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
}

/* Experiences Section (Asymmetric / Editorial Layout) */
.experiences {
  padding: 6rem 5% 8rem;
  position: relative;
  background-color: var(--bg-color);
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.section-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.experiences-list {
  display: flex;
  flex-direction: column;
  gap: 12rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Alternating Editorial Card */
.experience-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.experience-card:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.experience-card:nth-child(even) .exp-img-wrapper {
  order: 2;
}

.experience-card:nth-child(even) .exp-content {
  order: 1;
}

.exp-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.exp-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(11, 7, 17, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.exp-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.experience-card:hover .exp-img-wrapper img {
  transform: scale(1.05);
}

.exp-num {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(142, 107, 216, 0.08);
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  line-height: 1;
  z-index: 0;
  user-select: none;
}

.exp-content {
  position: relative;
  z-index: 2;
}

.exp-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.exp-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.exp-feel {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--purple-light);
  margin-bottom: 1.2rem;
  line-height: 1.5;
  font-weight: 300;
}

.exp-desc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.exp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.exp-cta span {
  transition: transform 0.3s ease;
}

.exp-cta:hover {
  color: var(--gold);
}

.exp-cta:hover span {
  transform: translateX(6px);
}

/* Gold decorative card placeholder style */
.gold-leaf-placeholder {
  background: linear-gradient(135deg, #181126 0%, #291a3f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.gold-leaf-placeholder::after {
  content: '';
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.15;
  box-shadow: 0 0 20px var(--gold);
}

/* Contact Section with Conversational Form */
.contact {
  padding: 8rem 5%;
  background-color: #08050c;
  position: relative;
  border-top: 1px solid rgba(142, 107, 216, 0.05);
}

.contact-container {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.contact-header {
  margin-bottom: 4rem;
}

/* Conversational Form styling */
.conversational-form {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.8;
  text-align: left;
  color: var(--text-color);
  font-weight: 500;
}

.conversational-form span {
  display: inline;
}

.conversational-form input, 
.conversational-form select {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(142, 107, 216, 0.3);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  color: var(--gold);
  font-weight: 400;
  padding: 0 0.5rem;
  margin: 0 0.3rem;
  outline: none;
  transition: var(--transition-fast);
  text-align: center;
  border-radius: 0;
}

.conversational-form input:focus,
.conversational-form select:focus {
  border-bottom-color: var(--gold);
  box-shadow: 0 5px 15px -5px rgba(212, 175, 55, 0.3);
}

.conversational-form input::placeholder {
  color: rgba(166, 156, 181, 0.35);
  font-style: italic;
}

.conversational-form select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align-last: center;
}

.conversational-form select option {
  background-color: #120d1a;
  color: var(--text-color);
  font-size: 1.1rem;
}

.form-submit-container {
  margin-top: 5rem;
  text-align: center;
}

.form-submit-btn {
  background: var(--gold-gradient);
  border: none;
  color: #0b0711;
  padding: 1.2rem 3.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.form-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.form-submit-btn:active {
  transform: translateY(-1px);
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card-bg);
  border-left: 4px solid var(--gold);
  padding: 1.2rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(150%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-msg h4 {
  color: var(--gold);
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
}

.toast-msg p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer styling */
footer {
  padding: 4rem 5% 3rem;
  background-color: #050308;
  border-top: 1px solid rgba(142, 107, 216, 0.03);
  text-align: center;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copy {
  color: rgba(166, 156, 181, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Mobile responsive fixes */
@media (max-width: 991px) {
  header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #0f0a18;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding: 3rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: var(--transition);
  }

  header nav.active {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .experience-card {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }

  .experience-card:nth-child(even) .exp-img-wrapper {
    order: 1;
  }
  .experience-card:nth-child(even) .exp-content {
    order: 2;
  }

  .experiences-list {
    gap: 7rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 7rem;
  }
  .conversational-form {
    font-size: 1.2rem;
    line-height: 2.2;
  }
  .conversational-form input, 
  .conversational-form select {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    text-align: left;
    margin: 0.5rem 0;
    padding-bottom: 0.2rem;
  }
}
