/*
Theme Name: MaGic – The Art of the Unseen
Theme URI: https://mgmagic.it
Author: MaGic
Author URI: https://mgmagic.it
Description: Personal site theme for MaGic – Premier Mentalist & Psychological Illusionist.
Version: 1.0.0
License: Private
Text Domain: magic-theme
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080808;
  --bg-alt:   #0f0f0f;
  --text:     #e8e3db;
  --muted:    #7a7570;
  --gold:     #b8935a;
  --gold-lt:  #d4a96a;
  --white:    #f5f2ec;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
  mix-blend-mode: normal;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(184,147,90,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease), width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.3s;
}
body:hover .cursor { opacity: 1; }
a:hover ~ .cursor, button:hover ~ .cursor { width: 14px; height: 14px; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s;
}
.site-nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 4rem;
  border-bottom: 1px solid rgba(184,147,90,0.08);
}

.nav-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.nav-logo img:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-lang {
  display: flex;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 400;
}
.nav-lang a { color: var(--muted); transition: color 0.3s; }
.nav-lang a.active, .nav-lang a:hover { color: var(--gold); }
.nav-lang span { color: rgba(120,115,110,0.4); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 0.3s;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile-close {
  position: absolute;
  top: 1.5rem; right: 4rem;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background-color: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.45) 0%,
    rgba(8,8,8,0.1) 40%,
    rgba(8,8,8,0.8) 80%,
    rgba(8,8,8,1) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 4rem 8rem;
  max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(232,227,219,0.65);
  margin-bottom: 2.5rem;
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
  cursor: none;
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
section { padding: 7rem 4rem; }

.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 2rem;
}
.gold-line {
  display: block;
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 2rem 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  position: relative;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 80vh;
  padding: 0;
}
.manifesto-img {
  position: relative;
  overflow: hidden;
}
.manifesto-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 8s var(--ease), opacity 0.6s;
}
.manifesto-img:hover img { transform: scale(1.03); opacity: 0.7; }

.manifesto-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 5rem;
  background: var(--bg-alt);
}
.manifesto-text .section-title { margin-bottom: 1.5rem; }
.manifesto-text p {
  font-size: 1.05rem;
  color: rgba(232,227,219,0.65);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.5;
  border-left: 1px solid var(--gold);
  padding-left: 1.5rem;
  margin-top: 2.5rem;
  max-width: 420px;
}

/* ============================================================
   SHOWS
   ============================================================ */
.shows {
  background: var(--bg);
  text-align: center;
}
.shows .section-title { margin-bottom: 0.5rem; }
.shows-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 4rem;
}
.shows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(184,147,90,0.08);
  border: 1px solid rgba(184,147,90,0.08);
}
.show-card {
  background: var(--bg);
  overflow: hidden;
  position: relative;
  cursor: none;
}
.show-card-img {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.show-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.7s var(--ease), opacity 0.5s;
  filter: grayscale(30%);
}
.show-card:hover .show-card-img img {
  transform: scale(1.06);
  opacity: 0.85;
  filter: grayscale(0%);
}
.show-card-body {
  padding: 2rem 2rem 2.5rem;
  text-align: left;
  border-top: 1px solid rgba(184,147,90,0.08);
}
.show-card-num {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.show-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.show-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   TOOLKIT
   ============================================================ */
.toolkit {
  background: var(--bg-alt);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.toolkit-intro .section-title { margin-bottom: 1rem; }
.toolkit-intro p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 400px;
}
.toolkit-items { display: flex; flex-direction: column; gap: 0; }
.toolkit-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(184,147,90,0.1);
  transition: border-color 0.3s;
}
.toolkit-item:first-child { border-top: 1px solid rgba(184,147,90,0.1); }
.toolkit-item:hover { border-color: rgba(184,147,90,0.25); }
.toolkit-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(184,147,90,0.25);
  line-height: 1;
  transition: color 0.3s;
}
.toolkit-item:hover .toolkit-num { color: var(--gold); }
.toolkit-text h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.toolkit-text p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

.toolkit-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 3rem;
}
.toolkit-images img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(40%);
  transition: opacity 0.4s, filter 0.4s;
}
.toolkit-images img:hover { opacity: 0.9; filter: grayscale(0%); }
.toolkit-tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 1.5rem;
  text-align: center;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.contact-intro .section-title { margin-bottom: 1rem; }
.contact-intro p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 380px;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { position: relative; }
.form-group label {
  position: absolute;
  top: 1.1rem; left: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transition: top 0.3s, font-size 0.3s, color 0.3s;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.25rem 1.25rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,147,90,0.15);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
  cursor: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(184,147,90,0.5); }
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0.35rem; font-size: 0.6rem; color: var(--gold);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: transparent; }

.form-group textarea { height: 120px; padding-top: 1.5rem; }

.btn-submit {
  align-self: flex-start;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.3s, color 0.3s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--gold); color: var(--bg); }

.form-message {
  font-size: 0.85rem;
  padding: 0.75rem 0;
  display: none;
}
.form-message.success { color: #7dba84; display: block; }
.form-message.error   { color: #d9706e; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 4rem;
  background: var(--bg-alt);
  border-top: 1px solid rgba(184,147,90,0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  justify-content: center;
}
.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  text-align: right;
  font-size: 0.72rem;
  color: rgba(122,117,112,0.5);
  letter-spacing: 0.05em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-img { height: 50vw; max-height: 480px; }
  .toolkit { grid-template-columns: 1fr; gap: 3rem; }
  .contact { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .shows-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 640px) {
  section { padding: 5rem 1.5rem; }
  .site-nav { padding: 1.2rem 1.5rem; }
  .site-nav.scrolled { padding: 0.9rem 1.5rem; }
  .hero-content { padding: 0 1.5rem 6rem; }
  .manifesto-text { padding: 4rem 1.5rem; }
  .site-footer { padding: 3rem 1.5rem; }
  .contact { padding: 5rem 1.5rem; }
  .toolkit-images { grid-template-columns: 1fr 1fr; }
}
