/* Main CSS Styles */

/* Variables */
:root {
  --primary: #5D3FD3;
  --secondary: #FF6F61;
  --accent: #9EF5CF;
  --background: #FFF8E7;
  --text: #333333;
  --hover: #00AEEF;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 15px auto 0;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1140px;
}

/* Row and Column Layout */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
  margin-bottom: 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--background);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(93, 63, 211, 0.3);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--hover);
  border-color: var(--hover);
}

.btn-nav {
  padding: 8px 20px;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
  text-decoration: none;
  position: relative;
}

.logo:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.logo:hover:after {
  transform: scaleX(1);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
  transform: scaleX(1);
}

.nav-menu a.btn {
  padding: 8px 20px;
}

.nav-menu a.btn:after {
  display: none;
}

/* Mobile Menu */
.mobile-menu-checkbox {
  display: none;
}

.mobile-menu-button {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1010;
}

.mobile-menu-icon,
.mobile-menu-icon:before,
.mobile-menu-icon:after {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-icon {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-icon:before {
  content: '';
  top: -10px;
}

.mobile-menu-icon:after {
  content: '';
  bottom: -10px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 1000;
}

.mobile-menu ul {
  padding: 0;
  margin: 0;
}

.mobile-menu li a {
  display: block;
  padding: 15px 20px;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu li a:hover,
.mobile-menu li a.active {
  background-color: var(--background);
  color: var(--primary);
}

.mobile-menu-checkbox:checked ~ .mobile-menu {
  display: block;
}

.mobile-menu-checkbox:checked + .mobile-menu-button .mobile-menu-icon {
  background: transparent;
}

.mobile-menu-checkbox:checked + .mobile-menu-button .mobile-menu-icon:before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-checkbox:checked + .mobile-menu-button .mobile-menu-icon:after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Main */
main {
  padding-top: 80px; /* Header height */
}

/* Anchor positioning fix */
:target::before {
  content: "";
  display: block;
  height: 180px; /* Further increased height for better anchor positioning */
  margin-top: -180px; /* Further increased negative margin to match */
  visibility: hidden;
  pointer-events: none;
}

/* Additional padding for section targets to prevent header overlap */
section[id] {
  padding-top: 100px;
  margin-top: -80px;
}

/* Specific section adjustments */
#services, #about, #pricing, #blog, #contact {
  scroll-margin-top: 100px; /* Modern approach for scroll positioning */
}

/* Sections */
.section {
  padding: 80px 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.3s; }
.section:nth-child(3) { animation-delay: 0.5s; }
.section:nth-child(4) { animation-delay: 0.7s; }
.section:nth-child(5) { animation-delay: 0.9s; }

/* Hero Section */
#hero {
  background: linear-gradient(135deg, rgba(93, 63, 211, 0.1), rgba(158, 245, 207, 0.2));
  text-align: center;
  padding: 120px 0 80px;
  margin-bottom: 0;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Services Section Styling */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--secondary);
  font-size: 1.2rem;
  font-style: italic;
  margin-top: -10px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-item {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  flex: 1;
  min-width: 300px;
  max-width: 380px;
  transition: all 0.4s ease;
  position: relative;
}

.service-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(93, 63, 211, 0.2);
}

.service-icon {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
  z-index: 1;
  pointer-events: none;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-item:hover .service-icon img {
  transform: scale(1.1) rotate(2deg);
}

.service-content {
  padding: 25px 30px 30px;
  position: relative;
  z-index: 2;
}

.service-content h3 {
  color: var(--primary);
  margin: 0 0 15px;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 12px;
}

.service-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary);
}

.service-content p {
  margin-bottom: 20px;
  color: var(--text);
}

.btn-service {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(93, 63, 211, 0.2);
}

.btn-service:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary);
  position: relative;
}

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover:after {
  transform: translateX(5px);
}

/* Why Choose Us Icons */
.advantage-item {
  text-align: center;
  padding: 20px;
}

.icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--accent);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.icon:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(93, 63, 211, 0.1);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.advantage-item:hover .icon:before {
  transform: scale(1);
}

.expertise-icon::after {
  content: '★';
  font-size: 2rem;
  color: var(--primary);
}

.personalized-icon::after {
  content: '✓';
  font-size: 2rem;
  color: var(--primary);
}

.digital-icon::after {
  content: '✧';
  font-size: 2rem;
  color: var(--primary);
}

.support-icon::after {
  content: '♥';
  font-size: 2rem;
  color: var(--primary);
}

/* Testimonials Section */
#testimonials {
  background-color: rgba(93, 63, 211, 0.05);
}

.testimonial-slider {
  padding: 20px 0;
}

.testimonial-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial {
  width: 100%;
  max-width: 350px;
  padding: 20px;
}

blockquote {
  background-color: white;
  border-left: 5px solid var(--primary);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  font-style: italic;
}

cite {
  display: block;
  margin-top: 15px;
  font-style: normal;
  font-weight: 600;
  text-align: right;
}

/* Pricing Cards */
.pricing-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
}

.pricing-card.featured {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(93, 63, 211, 0.1);
  border: 2px solid var(--primary);
}

.pricing-header {
  background-color: var(--primary);
  color: white;
  padding: 30px 20px;
}

.featured .pricing-header {
  background-color: var(--secondary);
}

.pricing-header h3 {
  margin: 0;
  color: white;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 10px 0 0;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
}

.pricing-features {
  padding: 30px 20px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card .btn {
  margin: 20px 0 30px;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

/* Blog Cards */
.blog-card {
  background-color: white;
  border-radius: 10px;
  border: 2px solid var(--secondary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background-color: var(--secondary);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(93, 63, 211, 0.1);
  border-color: var(--primary);
}

.blog-card:hover::after {
  background-color: var(--primary);
}

.blog-date {
  display: inline-block;
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.blog-card h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(93, 63, 211, 0.2);
  margin-bottom: 15px;
}

/* FAQ Section */
.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 15px 20px;
  background-color: white;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.faq-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
}

.faq-icon:before,
.faq-icon:after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.faq-icon:before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon:after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-toggle:checked ~ .faq-question .faq-icon:after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-toggle:checked ~ .faq-question {
  background-color: rgba(93, 63, 211, 0.05);
}

/* Contact Form */
#contact {
  background-color: white;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  width: auto;
  margin-right: 10px;
}

.checkbox label {
  margin-bottom: 0;
}

.contact-info {
  margin-bottom: 30px;
}

.map-container {
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 60px 0 20px;
}

footer .logo {
  color: white;
  margin-bottom: 15px;
}

footer .logo:after {
  background-color: var(--secondary);
}

footer h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
  color: var(--accent);
}

footer ul li {
  margin-bottom: 10px;
}

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  color: white;
  padding: 15px;
  z-index: 1000;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0 15px 0 0;
}

.cookie-content a {
  color: var(--accent);
  text-decoration: underline;
}

.btn-cookie {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-cookie:hover {
  background-color: var(--hover);
  transform: translateY(-2px);
}

/* Thank You Page */
.thank-you-section {
  text-align: center;
  padding: 100px 0;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Policy Pages */
.policy-container {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 15px;
}

.policy-content h1 {
  margin-bottom: 30px;
  text-align: center;
}

.policy-box {
  background-color: white;
  border: 1px solid rgba(93, 63, 211, 0.2);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-box h2 {
  color: var(--secondary);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.policy-box p, 
.policy-box ul {
  margin-bottom: 20px;
}

.policy-box ul {
  padding-left: 20px;
}

.policy-box li {
  margin-bottom: 10px;
  list-style-type: disc;
}
