/* ============================================================
   HEART AND SOUL SOURCE — LUXURY COSMIC MINIMALISM
   Design System v1.0
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Playfair+Display:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary:    #080B12;
  --bg-secondary:  #0D1120;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --gold:          #D4AF37;
  --gold-light:    #E8CC6A;
  --gold-dim:      rgba(212,175,55,0.25);
  --purple:        #2D1B4E;
  --purple-mid:    #4A2B6E;
  --purple-glow:   rgba(74,43,110,0.4);
  --text-primary:  #F4F4F6;
  --text-muted:    rgba(244,244,246,0.6);
  --text-dim:      rgba(244,244,246,0.35);
  --border:        rgba(212,175,55,0.18);
  --border-light:  rgba(212,175,55,0.08);
  --font-serif:    'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
  --transition:    0.35s cubic-bezier(0.4,0,0.2,1);
  --radius:        12px;
  --radius-lg:     20px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Starfield Canvas --- */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Page Wrapper --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 72px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

strong { font-weight: 600; color: var(--text-primary); }

.gold-text { color: var(--gold); }
.serif { font-family: var(--font-serif); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 1rem;
  height: auto;
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}

.nav.scrolled {
  background: rgba(8,11,18,0.97);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  order: 1;
}
.nav-logo img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  filter: brightness(1.1);
}
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  order: 3;
  width: 100%;
}
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  font-weight: 400;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: var(--gold-dim);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  flex-shrink: 0;
  order: 2;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(8,11,18,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 1.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-mobile.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile ul { list-style: none; }
.nav-mobile li { border-bottom: 1px solid var(--border-light); }
.nav-mobile a {
  display: block;
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--gold); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-cosmic-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,11,18,0.75) 0%,
    rgba(13,17,32,0.55) 50%,
    rgba(45,27,78,0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 400;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-text .eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-text h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-style: italic;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-credentials {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-family: var(--font-sans);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.hero-text p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
  color: rgba(244,244,246,0.75);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-portrait {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-portrait-frame {
  position: relative;
  width: 360px;
  max-width: 100%;
}
.hero-portrait-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--purple-mid), var(--gold), var(--purple-mid), var(--gold));
  z-index: 0;
  animation: rotateBorder 12s linear infinite;
}
@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-portrait-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 50%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--bg-primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  margin-bottom: 1rem;
  display: block;
}
.section-header h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.section-header p {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Gold divider line */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 600px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider-icon {
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.8;
}

/* Constellation image divider */
.constellation-divider {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.55;
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212,175,55,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212,175,55,0.08);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  display: block;
}

.glass-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}
.glass-card p { font-size: 0.95rem; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  border: 1px solid var(--border);
}
.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, var(--gold-dim), transparent 60%);
  z-index: -1;
}

.about-text h2 { color: var(--text-primary); margin-bottom: 0.5rem; }
.about-text .subtitle {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}
.about-text p { margin-bottom: 1.25rem; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-section {
  background: linear-gradient(135deg, rgba(45,27,78,0.3), rgba(8,11,18,0.8));
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.testimonial-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 2rem;
}
.testimonial-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.testimonial-block blockquote::before { content: '\201C'; color: var(--gold); }
.testimonial-block blockquote::after  { content: '\201D'; color: var(--gold); }
.testimonial-source {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  padding: 10rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,11,18,0.7) 0%, rgba(8,11,18,0.95) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  margin-bottom: 1rem;
  display: block;
}
.page-hero h1 { color: var(--text-primary); margin-bottom: 1rem; text-align: center; line-height: 1.3; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ============================================================
   CONTENT SECTIONS (inner pages)
   ============================================================ */
.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.content-section h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.content-section p {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.content-with-image.reverse {
  grid-template-columns: 1.8fr 1fr;
}
.content-with-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
}

/* ============================================================
   CREDENTIALS / LISTS
   ============================================================ */
.credential-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
}
.credential-list li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.65rem;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

/* ============================================================
   PUBLICATIONS / PRESENTATIONS CARDS
   ============================================================ */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}
.pub-card:hover {
  border-color: rgba(212,175,55,0.35);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.pub-card .pub-year {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  margin-bottom: 0.5rem;
  display: block;
}
.pub-card h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.pub-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-text strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  margin-bottom: 0.25rem;
}
.contact-item-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   UPCOMING EVENT BANNER
   ============================================================ */
.event-banner {
  background: linear-gradient(135deg, rgba(45,27,78,0.6), rgba(13,17,32,0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 0 auto 4rem;
  max-width: 900px;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.event-banner-label {
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}
.event-banner-content h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.event-banner-content p {
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo img { height: 32px; width: 32px; object-fit: contain; }
.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}
.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-text .eyebrow { justify-content: center; }
  .hero-text p { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-portrait { order: -1; }
  .hero-portrait-frame { width: 260px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .content-with-image { grid-template-columns: 1fr; }
  .content-with-image.reverse { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 4rem 1.25rem; }
  .section-full { padding: 4rem 1.25rem; }
  .page-hero { padding: 8rem 1.25rem 3rem; }
  .content-section { padding: 3rem 1.25rem; }
  .content-with-image { padding: 3rem 1.25rem; }
  .event-banner { flex-direction: column; gap: 1rem; }
  .glass-card { padding: 1.75rem; }
  .hero-portrait-frame { width: 220px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .pub-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
