/* Main Styles for Horoscope Website */
:root {
  --primary: #6F00FF;      /* Electric Indigo */
  --secondary: #FFD1BA;    /* Peach */
  --background: #F5F5F5;   /* Smoke White */
  --text: #1C1C4C;         /* Midnight Blue */
  --accent: #22A699;       /* Lush Green */
  --shadow: rgba(28, 28, 76, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 10px;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
}

/* Header Styles */
header {
  background: white;
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo img {
  height: 30px;
  width: auto;
}

/* Mobile Navigation - No JS Checkbox Hack */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: white;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(28, 28, 76, 0.8), rgba(111, 0, 255, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 30px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--secondary);
}

/* Services Section */
.services {
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-card-img img {
  transform: scale(1.1);
}

.service-card-content {
  padding: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
}

/* Benefits Section */
.benefits {
  background-color: var(--secondary);
  position: relative;
  overflow: hidden;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
}

/* Gallery Section - CSS Only Slider */
.gallery {
  overflow: hidden;
  background: white;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  min-height: 400px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.slider-nav a {
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  margin: 0 8px;
}

.slider-nav a:hover {
  background: var(--primary);
}

/* Horoscope Types */
.horoscope-types {
  background: var(--background);
}

.type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.type-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.type-card:hover {
  transform: translateY(-10px);
}

.type-card-img {
  height: 200px;
  overflow: hidden;
}

.type-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-card-content {
  padding: 20px;
}

.type-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 15px 0;
}

/* Testimonials */
.testimonials {
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-item {
  background: var(--background);
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
}

.testimonial-content {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.testimonial-name {
  font-weight: 700;
}

.testimonial-rating {
  color: gold;
  font-size: 1.2rem;
  margin-top: 5px;
}

/* FAQ Section - No JS */
.faq {
  background: var(--background);
}

details {
  background: white;
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
}

summary {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  position: relative;
}

summary:after {
  content: "+";
  font-size: 1.5rem;
}

details[open] summary:after {
  content: "−";
}

details[open] summary {
  background: var(--primary);
  color: white;
}

.faq-content {
  padding: 20px;
}

/* Contact Form */
.contact {
  background: var(--secondary);
}

form {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

select {
  color: black;
  background-color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

/* Footer */
footer {
  background: var(--text);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--secondary);
}

.footer-column ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.social-links a:hover {
  background: var(--primary);
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: var(--transition);
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Policy Pages */
.policy-content {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow);
  margin: 40px auto;
  max-width: 800px;
}

/* Thank You Page */
.thank-you {
  text-align: center;
  background: white;
  padding: 60px 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 30px var(--shadow);
  margin: 100px auto;
  max-width: 600px;
  border: 2px solid var(--primary);
}

.thank-you h1 {
  color: var(--primary);
}

.thank-you .icon {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: 30px;
}

/* Content Blocks for Extra Pages */
.content-block {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow);
  margin: 40px auto;
  max-width: 800px;
}

.about-image {
  margin: -40px -40px 30px -40px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Blog Cards */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 20px;
}

.blog-card-content h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-card-content .article-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 15px;
}

.blog-card-content p {
  margin-bottom: 20px;
}

.featured-article {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

/* Tips Page */
.tip-intro {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
}

.tip-intro p {
  flex: 1;
}

.tip-image-right, .tip-image-left {
  flex: 0 0 300px;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow);
}

.tip-image-right img, .tip-image-left img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.tip-image-right:hover img, .tip-image-left:hover img {
  transform: scale(1.05);
}

.tip-image-left {
  float: left;
  margin: 0 30px 20px 0;
}

.tip-image-right {
  margin-left: 15px;
}

@media (max-width: 768px) {
  .tip-intro {
    flex-direction: column;
  }
  
  .tip-image-right, .tip-image-left {
    flex: 0 0 100%;
    margin: 20px 0;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-toggle-label {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
  }
  
  .nav-toggle-label span,
  .nav-toggle-label span:before,
  .nav-toggle-label span:after {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    position: absolute;
    transition: var(--transition);
  }
  
  .nav-toggle-label span {
    top: 10px;
  }
  
  .nav-toggle-label span:before {
    content: "";
    top: -10px;
  }
  
  .nav-toggle-label span:after {
    content: "";
    bottom: -10px;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow);
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }
  
  .nav-toggle:checked ~ nav {
    transform: scaleY(1);
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .service-card, .benefit-item, .type-card, .testimonial-item {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  .hero {
    min-height: 70vh;
  }
}
