/* 
* Main stylesheet for domain - Horoscope Services
* Color palette:
* - Main: #2D1B2F (dark plum)
* - Accent: #F5B700 (bright yellow)
* - Background: #FFFDF8 (off-white)
* - Secondary text: #5E5E5E
* - Button color: #E63946 (warm red-crimson)
*/

/* ----- GLOBAL STYLES ----- */
:root {
  --color-main: #2D1B2F;
  --color-accent: #F5B700;
  --color-bg: #FFFDF8;
  --color-text-secondary: #5E5E5E;
  --color-btn: #E63946;
  --font-main: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --header-height: 80px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-main);
  line-height: 1.6;
  padding-top: var(--header-height);
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  margin-bottom: 1.5rem;
  color: var(--color-main);
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
  text-align: center;
}


h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-main);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--color-btn);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--color-main);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

section {
  padding: 5rem 0;
}

/* ----- HEADER ----- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: var(--header-height);
  transition: transform 0.3s ease;
}

header.hide {
  transform: translateY(-100%);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-main);
}

.menu {
  display: flex;
  list-style: none;
}

.menu li {
  margin-left: 1.5rem;
}

.menu a {
  color: var(--color-main);
  font-weight: 500;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.menu a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-main);
  position: absolute;
  transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
  bottom: 0;
}

#mobile-menu-checkbox {
  display: none;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  max-width: 90vw;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-main);
  padding: 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 1.5rem;
}

.mobile-menu a {
  color: var(--color-bg);
  font-size: 1.2rem;
  font-weight: 500;
}

#mobile-menu-checkbox:checked ~ .mobile-menu {
  transform: translateX(0);
}

#mobile-menu-checkbox:checked ~ .mobile-menu-btn span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

#mobile-menu-checkbox:checked ~ .mobile-menu-btn span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-checkbox:checked ~ .mobile-menu-btn span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* ----- HERO SECTION ----- */
.hero {
  background-image: url('../img/hKBU70.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 27, 47, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-bg);
}

/* ----- ABOUT SECTION ----- */
.about-card {
  background-color: white;
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: -100px;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* ----- FEATURES SECTION ----- */
.features {
  background-color: rgba(245, 183, 0, 0.05);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  fill: white;
}

/* ----- SERVICES SECTION ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card .btn {
  margin-top: 1rem;
}

/* ----- GALLERY SECTION ----- */
.gallery {
  position: relative;
  overflow: hidden;
}

.gallery-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
}

@media (min-width: 768px) {
  .gallery-item {
    flex: 0 0 33.333%;
  }
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(45, 27, 47, 0.7);
  color: white;
  padding: 1rem;
  text-align: center;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.gallery-nav a {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--color-main);
  margin: 0 0.5rem;
  opacity: 0.5;
  transition: var(--transition);
}

.gallery-nav a.active,
.gallery-nav a:hover {
  opacity: 1;
  background-color: var(--color-accent);
}

/* ----- TESTIMONIALS SECTION ----- */
.testimonials {
  background-color: rgba(45, 27, 47, 0.05);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 5rem;
  position: absolute;
  top: 10px;
  left: 20px;
  color: rgba(245, 183, 0, 0.2);
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
}

.author-title {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ----- FAQ SECTION ----- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(94, 94, 94, 0.2);
}

.faq-item summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  padding-right: 2rem;
  outline: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: var(--transition);
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-answer {
  padding-bottom: 1rem;
  color: var(--color-text-secondary);
}

/* ----- CONTACT FORM ----- */
.form-section {
  background-color: white;
  padding: 5rem 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(94, 94, 94, 0.2);
  border-radius: 5px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(245, 183, 0, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235E5E5E' viewBox='0 0 16 16'%3E%3Cpath d='M8 9.5l-4-4h8l-4 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px 12px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
  margin-right: 10px;
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
}

/* ----- FOOTER ----- */
footer {
  background-color: var(--color-main);
  color: white;
  padding: 3rem 0 2rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: var(--color-main);
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0% 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-info svg {
  margin-right: 10px;
  min-width: 20px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ----- COOKIE POPUP ----- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  display: none;
  max-width: 400px;
}

.cookie-popup.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.cookie-text {
  margin-bottom: 1rem;
}

.cookie-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: var(--color-btn);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.cookie-btn:hover {
  background-color: var(--color-main);
}

/* ----- POLICY PAGES ----- */
.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.policy-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
  margin-top: 2rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
}

.policy-content ul, 
.policy-content ol {
  margin-bottom: 1.5rem;
  margin-left: 1.5rem;
  color: var(--color-text-secondary);
}

.policy-content li {
  margin-bottom: 0.5rem;
}

/* ----- THANK YOU PAGE ----- */
.thank-you {
  height: calc(100vh - var(--header-height) * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg), white);
  animation: gradientBG 15s ease infinite;
  background-size: 400% 400%;
}

.thank-you-container {
  max-width: 600px;
  background-color: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(245, 183, 0, 0.2);
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.thank-you-icon svg {
  width: 40px;
  height: 40px;
  fill: white;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ----- MEDIA QUERIES ----- */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .about-card {
    margin-top: -50px;
    padding: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .feature-card,
  .service-card,
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .policy-content {
    padding: 1.5rem;
  }
  
  .thank-you-container {
    padding: 2rem;
  }
}
