/* Main CSS for the horoscope website */

/* Global styles and reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color palette */
  --color-bg-start: #6C63FF;
  --color-bg-end: #00D3A9;
  --color-accent-yellow: #FFF95C;
  --color-accent-coral: #FF6B6B;
  --color-text-white: #FFFFFF;
  --color-text-dark: #0A1128;
  
  /* Font sizes */
  --font-size-small: 0.875rem;
  --font-size-normal: 1rem;
  --font-size-medium: 1.25rem;
  --font-size-large: 1.5rem;
  --font-size-xlarge: 2rem;
  --font-size-xxlarge: 2.5rem;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-end) 100%);
  color: var(--color-text-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 80px; /* To compensate for fixed header */
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

a {
  color: var(--color-text-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-yellow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
}

/* Header */
header {
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.4s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-hide {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: var(--font-size-large);
}

.logo img {
  height: 40px;
  margin-right: var(--space-sm);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

nav a {
  padding: var(--space-sm);
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--color-accent-yellow);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Mobile menu toggle (Checkbox hack) */
.mobile-menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--color-text-white);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 80%;
  max-width: 90vw;
  height: calc(100vh - 80px);
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(10px);
  transition: right 0.3s ease;
  padding: var(--space-lg);
  overflow-y: auto;
  z-index: 999;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-menu a {
  display: block;
  padding: var(--space-md);
  font-size: var(--font-size-large);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  border-left-color: var(--color-accent-yellow);
  padding-left: var(--space-lg);
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--font-size-xxlarge);
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: var(--font-size-medium);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: 2px solid var(--color-accent-yellow);
  color: var(--color-text-white);
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-accent-yellow);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn:hover {
  color: var(--color-text-dark);
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--color-accent-coral);
  border-color: var(--color-accent-coral);
}

.btn-primary::before {
  background: var(--color-accent-yellow);
}

/* Section styles */
section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title h2 {
  font-size: var(--font-size-xlarge);
  margin-bottom: var(--space-md);
  color: var(--color-text-white);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--color-accent-yellow);
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
}

/* About section */
.about {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: var(--space-xl) auto;
  max-width: 1000px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Services section */
.services {
  padding: var(--space-xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: var(--space-lg);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xxlarge);
  color: var(--color-accent-yellow);
}

.service-image {
  margin-bottom: var(--space-md);
  overflow: hidden;
  margin: -var(--space-lg) -var(--space-lg) var(--space-md) -var(--space-lg);
}

.service-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-title {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-large);
}

/* Why choose us section */
.why-us {
  background: rgba(10, 17, 40, 0.3);
  padding: var(--space-xl) 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.why-us-item {
  text-align: center;
  padding: var(--space-md);
}

.why-us-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--font-size-xlarge);
  color: var(--color-accent-yellow);
}

/* Testimonials */
.testimonials {
  padding: var(--space-xl) 0;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

.testimonial-text {
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: var(--space-md);
  overflow: hidden;
}

.testimonial-name {
  font-weight: 600;
}

/* FAQ Section */
.faq {
  padding: var(--space-xl) 0;
  background: rgba(10, 17, 40, 0.2);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  border-radius: 10px;
  overflow: hidden;
}

details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

summary {
  padding: var(--space-md);
  cursor: pointer;
  position: relative;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: "+";
  font-size: var(--font-size-large);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: "−";
}

details[open] summary {
  background: rgba(255, 255, 255, 0.1);
}

.faq-answer {
  padding: var(--space-md);
}

/* Contact section */
.contact {
  padding: var(--space-xl) 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-coral);
  border-radius: 50%;
  color: white;
  font-size: var(--font-size-medium);
}

/* Form styles */
.form-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: var(--space-lg);
}

.form-title {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--color-text-white);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-yellow);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-sm) center;
  padding-right: var(--space-lg);
}

select.form-control option {
  background-color: #0A1128;
  color: var(--color-text-white);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  display: inline-block;
  font-size: var(--font-size-small);
}

.checkbox-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.checkbox-input:checked + .checkbox-label::before {
  background-image: linear-gradient(45deg, var(--color-accent-coral), var(--color-accent-yellow));
}

.checkbox-input:checked + .checkbox-label::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-input:focus + .checkbox-label::before {
  border-color: var(--color-accent-yellow);
  box-shadow: 0 0 0 2px rgba(255, 249, 92, 0.3);
}

/* Rainbow border animation for checkboxes and buttons */
@keyframes rainbow {
  0% { border-color: var(--color-accent-coral); }
  25% { border-color: var(--color-accent-yellow); }
  50% { border-color: var(--color-bg-end); }
  75% { border-color: var(--color-bg-start); }
  100% { border-color: var(--color-accent-coral); }
}

.checkbox-label::before:hover {
  animation: rainbow 3s linear infinite;
}

.btn:hover {
  animation: rainbow 3s linear infinite;
}

/* Footer */
footer {
  background: rgba(10, 17, 40, 0.85);
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
}

footer::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 0;
  right: 0;
  height: 25px;
  background: rgba(10, 17, 40, 0.85);
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-logo img {
  height: 40px;
}

.footer-about {
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--color-accent-yellow);
  color: var(--color-text-dark);
}

.footer-title {
  font-size: var(--font-size-medium);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-accent-coral);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  display: inline-block;
  padding: var(--space-xs) 0;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  transform: translateX(5px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-contact-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--font-size-small);
  color: rgba(255, 255, 255, 0.7);
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-md);
  transform: translateY(100%);
  transition: transform 0.5s ease;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

/* Policy pages */
.policy-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: var(--space-lg);
  margin: var(--space-xl) auto;
  max-width: 900px;
}

.policy-title {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.policy-content h3 {
  margin: var(--space-lg) 0 var(--space-md);
  color: var(--color-accent-yellow);
}

.policy-content p, .policy-content ul {
  margin-bottom: var(--space-md);
}

.policy-content ul {
  padding-left: var(--space-lg);
}

.policy-contact {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thank you page */
.thankyou-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: var(--space-lg);
  margin: var(--space-xl) auto;
  max-width: 600px;
  text-align: center;
  border: 2px solid var(--color-accent-yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.thankyou-icon {
  font-size: 5rem;
  color: var(--color-accent-yellow);
  margin-bottom: var(--space-md);
}

/* Media Queries */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .header-container {
    padding: var(--space-xs) var(--space-md);
  }
  
  .hero h1 {
    font-size: var(--font-size-xlarge);
  }
  
  .section-title h2 {
    font-size: var(--font-size-large);
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Additional classes for mobile menu toggle with checkbox hack */
#mobile-menu-toggle:checked ~ .mobile-menu {
  right: 0;
}

#mobile-menu-toggle:checked ~ .hamburger span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

#mobile-menu-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-toggle:checked ~ .hamburger span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}
