/* Royal Physics Mandala - Sacred Geometry Design System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --royal-purple: #4a0080;
  --royal-purple-dark: #2d004d;
  --warm-rose: #e8b4b8;
  --gold: #d4af37;
  --gold-light: #f0d878;
  --ivory: #fffff0;
  --ivory-dark: #f5f5dc;
  --text-dark: #1a1a2e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--royal-purple);
  color: var(--ivory);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Mandala Canvas Background */
.mandala-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--royal-purple-dark) 0%, #0a0014 100%);
}

#mandala-canvas {
  width: 100%;
  height: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.05em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
  font-size: 1.1rem;
  color: rgba(255, 255, 240, 0.9);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(74, 0, 128, 0.95) 0%, rgba(74, 0, 128, 0) 100%);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gold);
  transition: 0.3s;
}

/* Sections */
section {
  padding: 8rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-light);
  font-size: 1rem;
}

.section-title h2::before { left: -2.5rem; }
.section-title h2::after { right: -2.5rem; }

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--warm-rose);
  opacity: 0.9;
}

/* Hero Section */
.hero {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 6rem;
}

.hero h1 {
  color: var(--ivory);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--gold);
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--warm-rose);
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

.hero-cta:hover {
  color: var(--royal-purple-dark);
}

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

/* Decorative Divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  color: var(--gold);
}

.divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
}

/* Content Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.card {
  background: rgba(74, 0, 128, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--warm-rose), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  fill: var(--gold);
}

.card h4 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.card p {
  font-size: 1rem;
  opacity: 0.85;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geometric-frame {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.5;
}

.geometric-frame:nth-child(2) {
  transform: rotate(0deg);
  width: 60%;
  height: 60%;
}

.geometric-frame:nth-child(3) {
  transform: rotate(90deg);
  width: 40%;
  height: 40%;
}

.about-text h3 {
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.gallery-item {
  aspect-ratio: 1;
  background: rgba(74, 0, 128, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  border-color: var(--gold);
  transform: scale(1.02);
}

.gallery-item-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vesica-shape {
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--warm-rose) 100%);
  opacity: 0.3;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  width: 100%;
}

.contact-form {
  background: rgba(74, 0, 128, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--warm-rose);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 240, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--ivory);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--royal-purple-dark);
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

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

.contact-info p {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  width: 100%;
}

.service-card {
  background: rgba(74, 0, 128, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
}

.service-card p {
  position: relative;
}

/* Docs Section */
.docs-container {
  width: 100%;
  max-width: 900px;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.docs-nav a {
  padding: 1rem 1.5rem;
  background: rgba(74, 0, 128, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--ivory);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.docs-nav a:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  padding-left: 2rem;
}

.docs-nav svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

.doc-content {
  background: rgba(74, 0, 128, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 3rem;
}

.doc-content h3 {
  color: var(--gold);
  margin: 2rem 0 1rem;
}

.doc-content h3:first-child {
  margin-top: 0;
}

.doc-content p {
  margin-bottom: 1rem;
}

.doc-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.doc-content li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 240, 0.9);
}

/* Footer */
footer {
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
}

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

.footer-links a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 240, 0.5);
}

/* Wave Animation Keyframes */
@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Particle attraction animation */
@keyframes attract {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, -10px); }
  50% { transform: translate(0, -20px); }
  75% { transform: translate(-10px, -10px); }
}

/* Responsive */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--royal-purple-dark);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  section {
    padding: 5rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title h2::before,
  .section-title h2::after {
    display: none;
  }
}
