/* Main styles for Xenoralivustem.com - Accounting services website */

/* Import Google Font - Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables for color palette */
:root {
  --primary-color: #3A0CA3;      /* Deep purple */
  --accent-color: #FF6B35;       /* Bright mandarin */
  --secondary-color: #4ECDC4;    /* Turquoise */
  --text-color: #1A1A1A;         /* Almost black */
  --white-color: #FFFFFF;        /* White */
  --highlight-color: #B5E48C;    /* Lime green */
  --gradient-bg: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  --transition-speed: 0.3s;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--white-color);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--highlight-color);
  color: var(--text-color);
  transform: translateY(-3px);
}

section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards;
}

/* Header styles */
header {
  background-color: var(--white-color);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform var(--transition-speed) ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--primary-color);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all var(--transition-speed) ease;
}

nav a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Hero section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background-color: var(--primary-color);
  color: var(--white-color);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s 0.2s forwards;
  opacity: 0;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s 0.4s forwards;
  opacity: 0;
}

/* About section */
.about {
  background-color: var(--white-color);
  position: relative;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-img {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
}

.text-animate {
  display: inline-block;
  animation: colorChange 6s infinite alternate;
}

/* Services section */
.services {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.services-title {
  text-align: center;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white-color);
  color: var(--text-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 10px;
  object-fit: cover;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Advantages section */
.advantages {
  background-color: var(--white-color);
}

.advantages-title {
  text-align: center;
  margin-bottom: 50px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.advantage-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  color: var(--accent-color);
}

/* Testimonials section */
.testimonials {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.testimonials-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--white-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--white-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-card:before {
  content: """;
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 4rem;
  color: var(--secondary-color);
  opacity: 0.3;
  line-height: 1;
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.client-name {
  font-weight: 600;
}

/* Form section */
.contact {
  background-color: var(--white-color);
}

.contact-title {
  text-align: center;
  margin-bottom: 50px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--gradient-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--white-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: border var(--transition-speed) ease;
  font-family: 'Open Sans', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
}

.checkbox-group a {
  color: var(--white-color);
  text-decoration: underline;
}

.checkbox-group a:hover {
  color: var(--primary-color);
}

/* FAQ section */
.faq {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.faq-title {
  text-align: center;
  margin-bottom: 50px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.faq-answer {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.faq-answer.active {
  padding: 20px;
  max-height: 500px;
}

/* Footer */
footer {
  background-color: var(--text-color);
  color: var(--white-color);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-about {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--white-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  z-index: 9999;
  display: none;
}

.cookie-popup.active {
  display: block;
  animation: slideUp 0.5s forwards;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.accept-cookies {
  background-color: var(--accent-color);
  color: white;
  border: none;
}

.reject-cookies {
  background-color: transparent;
  border: 1px solid var(--text-color);
}

/* Policy pages */
.policy-container {
  max-width: 900px;
  margin: 120px auto 60px;
  padding: 40px;
  border: 2px solid var(--highlight-color);
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
}

.policy-container h1 {
  margin-bottom: 30px;
  color: var(--primary-color);
}

.policy-container h2 {
  margin: 25px 0 15px;
  color: var(--accent-color);
}

.policy-container p {
  margin-bottom: 15px;
}

.policy-container ul, .policy-container ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.policy-container li {
  margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes colorChange {
  0% {
    color: var(--accent-color);
  }
  50% {
    color: var(--primary-color);
  }
  100% {
    color: var(--secondary-color);
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu.active {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .mobile-menu.active ul {
    display: flex;
    flex-direction: column;
    padding: 20px;
  }
  
  .mobile-menu.active ul li {
    margin-bottom: 15px;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .services-grid,
  .advantages-grid,
  .testimonials-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 10px 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  .policy-container {
    padding: 25px;
    margin: 100px auto 40px;
  }
}
