@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --primary: #2d1b4e;
  --primary-dark: #1a0f2e;
  --secondary: #0f172a;
  --accent: #d4af37;
  --accent-hover: #f1c40f;
  --text-dark: #333333;
  --text-light: #fcfbf9;
  --bg-light: #fcfbf9;
  --bg-card: #ffffff;
  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Cinzel', serif;
  --gradient-dark: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--gradient-dark);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  list-style: none;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border-radius: 5px;
  padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 10px 20px;
  display: block;
}

.dropdown-menu li a:hover {
  background: var(--primary-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--accent);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: url('../images/home.png');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
  padding: 100px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s, background 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.presentation {
  background: var(--bg-card);
  padding: 40px 20px;
  text-align: center;
}

.presentation-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #555;
}

.warning-text {
  font-size: 0.9rem;
  color: #777;
  margin-top: 15px;
  font-style: italic;
}

/* Tools Grid */
.tools-section {
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 40px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: var(--accent);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.tool-card h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.tool-card p {
  color: #666;
  margin-bottom: 25px;
  min-height: 80px;
}

.tool-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: var(--text-light);
  padding: 50px 0 20px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    padding: 20px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
}

/* Inner Pages Styles */
.page-header {
  position: relative;
  background-image: url('../images/Ban-barbara-voyance.png');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px;
  font-family: var(--font-heading);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.85);
}

.page-header h1, .page-header p {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--accent);
}

.page-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tool-container {
  padding: 40px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-main);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.result-box {
  margin-top: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-left: 4px solid var(--accent);
  border-radius: 5px;
  text-align: left;
  display: none;
}

.result-box h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

/* Cards Animation (Tarot/Oracle) */
.cards-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.tarot-card {
  width: 150px;
  height: 250px;
  perspective: 1000px;
  cursor: pointer;
}

.tarot-card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  position: relative;
}

.tarot-card.flipped .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border: 2px solid var(--accent);
}

.tarot-card-front {
  background-image: url('../images/card_back.png');
  background-size: cover;
  background-position: center;
}

.tarot-card-back {
  background: var(--bg-card);
  color: var(--primary);
  transform: rotateY(180deg);
  flex-direction: column;
}

.tarot-card-back h5 {
  font-family: var(--font-heading);
  margin-bottom: 10px;
}

/* Pendulum Animation */
.pendulum-container {
  height: 250px;
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.pendulum {
  transform-origin: top center;
  animation: swing 2s ease-in-out infinite alternate;
}

.pendulum img {
  height: 200px;
}

@keyframes swing {
  0% { transform: rotate(15deg); }
  100% { transform: rotate(-15deg); }
}

/* Blog styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.blog-img {
  height: 200px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 3rem;
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 10px;
}

.blog-date {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.blog-excerpt {
  color: #555;
  margin-bottom: 20px;
}
