:root {
  --primary-color: #890b0d;
  --primary-dark: #650809;
  --secondary-color: #4a5568;
  --background-light: #f9f9f9;
  --white-color: #ffffff;
  --accent-gray: #e5e7eb;
  --accent-light: #f3eaea;
  --dark-color: #222;
  --text-muted: #555;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--background-light);
  color: var(--secondary-color);
  line-height: 1.6;
}

h1, h2, h3, .font-display {
  font-family: "Poppins", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Section */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(249, 249, 249, 0.85);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--dark-color);
  text-decoration: none;
}

.logo img {
  height: 65px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  position: relative;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--white-color);
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  padding: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.visible {
  display: flex;
}

.mobile-menu a {
  color: var(--secondary-color);
  text-decoration: none;
  padding: 10px 20px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
  background-color: var(--accent-light);
  color: var(--primary-color);
}

.section-transition {
    position: relative; 
}

.section-transition::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  width: 80%; 
  height: 1px;
  background: linear-gradient(90deg, 
  transparent 0%, 
  var(--primary-color) 50%, 
  transparent 100%);
  opacity: 0.3;
  z-index: 1; 
}

/* Buttons */
.cta-button {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(137, 11, 13, 0.3);
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(137, 11, 13, 0.4);
}

.cta-button-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.cta-button-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  background-color: var(--background-light);
  overflow: hidden;
}

.hero-section h1 {
  font-size: 48px;
  color: #333;
  margin-bottom: 20px;
}

.hero-section .highlighted {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  background-color: var(--accent-light);
  padding: 5px 10px;
  border-radius: 8px;
  transform: skewY(-1deg) rotate(-1deg);
  display: inline-block;
}

.hero-subtitle {
  font-size: 24px;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #4b5563;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.floating-image {
  position: absolute;
  right: -100px;
  top: 30%;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}

.floating-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" opacity="0.6"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>')
    center/contain no-repeat;
}

.floating-image::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-style: dashed;
  animation: rotate 20s linear infinite;
}

.circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.circle.pulse {
  width: 100px;
  height: 100px;
  background-color: var(--accent-light);
  left: 10%;
  top: 20%;
  animation: pulse 6s ease-in-out infinite;
}

.circle.bounce {
  width: 80px;
  height: 80px;
  background-color: rgba(137, 11, 13, 0.1);
  right: 15%;
  bottom: 10%;
  animation: bounce 4s ease-in-out infinite;
}

/* About Section */
.section {
  padding: 80px 0;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  color: #333;
  font-weight: 700;
  font-size: 36px;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 40px;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-description {
  font-size: 18px;
  color: var(--secondary-color);
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
}

.grid.four-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid.four-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid.four-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(137, 11, 13, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(137, 11, 13, 0.15);
  border-color: var(--primary-color);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(137, 11, 13, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.icon-wrapper {
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.stat-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.icon-wrapper i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.stat-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.stat-subtitle {
  color: #6b7280;
  font-size: 1rem;
}

/* Plugins Section */
.plugins-section {
  background-color: var(--white-color);
}

.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.plugin-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.plugin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.plugin-img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.plugin-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.plugin-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.plugin-description {
  color: #4a5568;
  flex-grow: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.plugin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.plugin-price {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.plugin-link {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.plugin-link:hover {
  text-decoration: underline;
}

.subscription-notice {
  margin-top: 40px;
  background-color: var(--accent-light);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.subscription-content {
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.icon-subscription {
  font-size: 40px;
  color: var(--primary-color);
}

.notice-title {
  font-size: 20px;
  color: #333;
  margin: 0;
}

.notice-text {
  font-size: 15px;
  color: var(--secondary-color);
  margin: 0;
}

/* Pricing Section */
.pricing-section {
  background-color: var(--accent-gray);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.03);
  position: relative;
}

.pricing-card.featured:hover {
  transform: scale(1.06) translateY(-10px);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  z-index: 1;
}

.pricing-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 0.5rem;
  text-align: center;
}

.pricing-subtitle {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1rem;
  text-align: center;
}

.pricing-price {
  font-size: 2.25rem;
  font-weight: bold;
  color: #1a202c;
  margin: 1rem 0;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.pricing-cycle {
  color: #4a5568;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pricing-features {
  list-style: none;
  padding-left: 0;
  text-align: left;
  color: #4a5568;
  flex-grow: 1;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pricing-features i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.pricing-button {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pricing-button.light {
  background-color: #f3f4f6;
  color: #1f2937;
}

.pricing-button.light:hover {
  background-color: #e5e7eb;
}

.pricing-button.dark {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.pricing-button.dark:hover {
  background-color: var(--primary-dark);
}

/* Templates Section */
.templates-section {
  background-color: var(--accent-gray);
}

.template-filters {
  margin-bottom: 2rem;
  text-align: center;
}

.filter-button {
  padding: 1rem 1.5rem;
  margin: 0 0.50rem;
  border: none;
  border-radius: 30px;
  background-color: #f1f1f1;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
  background-color: var(--primary-color);
  color: #fff;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.template-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.template-card[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.template-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.template-content {
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.template-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.template-description {
  color: #4a5568;
  flex-grow: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.template-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.template-price {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.template-link {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.template-link:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  background-color: var(--accent-gray);
  padding: 5rem 0;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 400px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.contact-link:hover {
  background-color: var(--accent-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.contact-link h4 {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-link p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

/* Footer Section */
.footer {
  background-color: #383131;
  color: #ccc;
  padding: 3rem 0 2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 32px;
  width: auto;
  margin-right: 0.5rem;
}

.footer-tagline {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  color: #999;
  font-size: 1rem;
}

.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.footer-contact ul li a {
  color: #bbb;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.footer-contact ul li a:hover {
  color: #fff;
}

.footer-contact i {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.footer-copy {
  font-size: 0.75rem;
  color: #777;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--white-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
  background-color: var(--primary-color);
  color: var(--white-color);
}

#back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Adjustments */
@media (min-width: 640px) {
  .footer-contact ul {
    flex-direction: row;
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .hero-section .highlighted {
    font-size: 4.5rem;
  }

  .two-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .grid.four-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .floating-image {
    right: -150px;
    width: 200px;
    height: 200px;
    opacity: 0.05;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .two-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-options {
    max-width: 100%;
    align-items: center;
  }

  .contact-link {
    justify-content: center;
  }

  .contact-link div {
    text-align: left;
  }

  .contact-image {
    order: -1;
  }

  .footer-contact ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .floating-image {
    display: none;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .section-title {
    font-size: 28px;
  }

  .grid.four-columns {
    grid-template-columns: 1fr;
  }
}