/* Enhanced CSS with modern animations, better colors, and 20+ hover effects */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Updated color palette to remove purple and use original white scheme */
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --accent-secondary: #10b981;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --background-color: #ffffff;
  --background-secondary: #f8fafc;
  --surface-color: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  /* Enhanced shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 20px rgb(59 130 246 / 0.3);
  --shadow-glow-hover: 0 0 30px rgb(59 130 246 / 0.5);

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  /* Changed to white background instead of purple gradient */
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

ui inverted menu .nav .mb-7 {
  display: none;
}
/* footer for phone */
.footer {
  background-color: #fafafa;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 200px;
  margin-bottom: 20px;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.trustpilot-widget {
  margin-bottom: 20px;
}

.trustpilot-widget a {
  color: #ff6600;
  text-decoration: none;
  font-size: 17px;
}

.trustpilot-widget a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #f0ad4e;
  font-size: 25px;
}

.footer-section h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style-type: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: black;
  text-decoration: none;
  font-size: 15px;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    margin-bottom: 30px;
  }
}

@media (min-width: 768px) {

  .home-button-break{
         margin-top: 0px;
}

.back-button {
    display: none;
}
}
/* Responsive adjustments */
@media (max-width: 768px) {
.home-button-break {
  margin-top: 16px; /* For desktop layout */
}

.back-button {
  background: #444;
  color: white;
  border: none;
  padding: 8px 15px;
  font-size: 16px;
  cursor: pointer;
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 5px;
}

.back-button:hover {
  background: #666;
}
}
/* Navbar Css  */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #e8e8ff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 40px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.menu-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ff6600;
  transition: width 0.3s ease;
}

.menu-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
  transition: color 0.3s ease;
}

.cta-button {
  background-color: #ff6600;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(78, 205, 196, 0.3);
}

.cta-button:hover {
  background-color: #d9534f;
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(78, 205, 196, 0.4);
}


@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }

  .cta-button {
    width: 100%;
    padding: 1rem;
  }

  .menu {
    border: 1px solid black;
    display: none;
    flex-direction: column;
    position: relative;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #e8e8ff;
    padding: 1rem 5%;
    gap: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it appears above other elements */
  }

  .menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(25px);
  }

  .menu-link::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle:hover {
    color: #ff6600;
  }

  .navbar {
    position: fixed;
  }
}

.additional-content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.additional-content__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
  line-height: 1.2;
}

.additional-content__highlight {
  color: #ff6b6b;
  position: relative;
  display: inline-flex;
  overflow: hidden;
}

.additional-content__highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff6b6b;
  animation: underline 2s infinite;
}

@keyframes underline {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.step {
  flex: 1;
  padding: 2rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.step__icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.step__title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.step__description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.button-container {
  text-align: center;
  margin-top: 3rem;
}

.cta-button {
  background-color: #ff6600;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(78, 205, 196, 0.3);
}

.cta-button:hover {
  background-color: #d9534f;
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(78, 205, 196, 0.4);
}

#countdown {
  text-align: center;
}

#countdown-number {
  font-size: 200px; /* Adjust font size as needed */
  font-weight: bold;
  color: #ff0000; /* Change the color to your preference */
}


/* Enhanced floating particles background */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  /* Changed particle colors to blue/green instead of purple */
  background: linear-gradient(
    45deg,
    rgba(59, 130, 246, 0.1),
    rgba(16, 185, 129, 0.1)
  );
  animation: float 6s ease-in-out infinite;
}

.particle-square {
  border-radius: 20%;
  background: linear-gradient(
    45deg,
    rgba(245, 158, 11, 0.1),
    rgba(16, 185, 129, 0.1)
  );
}

.particle-triangle {
  width: 0;
  height: 0;
  background: none;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid rgba(59, 130, 246, 0.1);
  border-radius: 0;
}

.particle-hexagon {
  width: 40px;
  height: 23px;
  background: rgba(245, 158, 11, 0.1);
  position: relative;
  border-radius: 0;
}

.particle-hexagon:before,
.particle-hexagon:after {
  content: '';
  position: absolute;
  width: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
}

.particle-hexagon:before {
  bottom: 100%;
  border-bottom: 12px solid rgba(245, 158, 11, 0.1);
}

.particle-hexagon:after {
  top: 100%;
  border-top: 12px solid rgba(245, 158, 11, 0.1);
}

.particle-diamond {
  transform: rotate(45deg);
  background: linear-gradient(
    45deg,
    rgba(16, 185, 129, 0.1),
    rgba(59, 130, 246, 0.1)
  );
}

.particle-star {
  background: none;
  position: relative;
}

.particle-star:before,
.particle-star:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 30px;
  width: 30px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
}

.particle-star:before {
  transform: rotate(0deg);
}

.particle-star:after {
  transform: rotate(45deg);
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 80%;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 80%;
  left: 20%;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 70%;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  width: 50px;
  height: 50px;
  top: 40%;
  left: 50%;
  animation-delay: 4s;
}

.particle:nth-child(6) {
  width: 70px;
  height: 70px;
  top: 70%;
  left: 60%;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  width: 30px;
  height: 30px;
  top: 30%;
  left: 30%;
  animation-delay: 2.5s;
}

.particle:nth-child(8) {
  width: 90px;
  height: 90px;
  top: 50%;
  left: 90%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}

hero-section{
    min-height: 1vh;
    padding: 1.5rem 0;
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 0px;
}

/* Enhanced Hero Section with animations */
.heroine-section {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  margin-bottom: 4rem;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero-background-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(59, 130, 246, 0.05) 50%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.title-word {
  display: inline-block;
  margin: 0 0.5rem;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.title-word:nth-child(1) {
  animation-delay: 0.2s;
  /* Changed gradient colors to remove purple */
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-word:nth-child(2) {
  animation-delay: 0.4s;
  color: var(--text-primary);
}

.title-word:nth-child(3) {
  animation-delay: 0.6s;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.8s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 1s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.95);
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  /* Updated gradient to use blue instead of purple */
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced Filter Section */
.filter-section {
  margin-bottom: 4rem;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
  background: white;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color var(--transition-normal);
}

.search-input:focus + .search-icon {
  color: var(--primary-color);
}

.search-results-count {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--surface-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
}

.filter-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  background: var(--background-color);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.filter-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left var(--transition-slow);
}

.filter-tab:hover::before {
  left: 100%;
}

.filter-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.filter-tab.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.sort-dropdown select {
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--background-color);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.sort-dropdown select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced Templates Grid with better spacing */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  max-width: 1000px;
  margin: 0 auto 4rem;
}

/* Enhanced Template Cards with 20+ hover effects */
.template-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid var(--border-color);
  cursor: pointer;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.template-card:nth-child(odd) {
  animation-delay: 0.1s;
}

.template-card:nth-child(even) {
  animation-delay: 0.2s;
}

.template-card:nth-child(3n) {
  animation-delay: 0.3s;
}

/* Updated hover effect to scale up instead of tilt */
.template-card:hover {
  transform: translateY(-12px) scale(1.08);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
}

/* Hover Effect 2: Glow Effect */
.template-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  /* Updated glow colors to remove purple */
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-light),
    var(--accent-color)
  );
  border-radius: var(--radius-2xl);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.template-card:hover .template-glow {
  opacity: 0.3;
  animation: rotate 2s linear infinite;
}

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

/* Hover Effect 3: Featured Card Special Effects */
.template-card.featured {
  border: 2px solid var(--accent-color);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 251, 243, 0.98) 100%
  );
  position: relative;
}

.template-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--accent-color),
    var(--accent-secondary)
  );
  animation: shimmer-border 2s ease-in-out infinite;
}

@keyframes shimmer-border {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.template-button {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: block;
  transition: all var(--transition-normal);
}

.template-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: auto;
  background: var(--surface-color);
}

.template-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effect 4: Image Zoom and Rotate */
.template-card:hover .template-image {
  transform: scale(1.15) rotate(2deg);
}

/* Enhanced overlay features with emojis and better colors */
.overlay-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.2s;
}

.template-card:hover .overlay-features {
  transform: translateY(0);
}

.overlay-features li {
  margin: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(5px);
}

.overlay-features li:nth-child(1)::before {
  content: '🎯 ';
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.overlay-features li:nth-child(2)::before {
  content: '✨ ';
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.overlay-features li:nth-child(3)::before {
  content: '🚀 ';
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.overlay-features li:nth-child(4)::before {
  content: '💼 ';
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Hover Effect 5: Enhanced Overlay */
.template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.95) 0%,
    rgba(16, 185, 129, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.overlay-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.template-card:hover .overlay-title {
  transform: translateY(0);
}

.overlay-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.3s;
}

.template-card:hover .overlay-buttons {
  transform: translateY(0);
}

.overlay-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid white;
  background: transparent;
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.overlay-btn.primary {
  background: white;
  color: var(--primary-color);
}

.overlay-btn.primary:hover {
  background: transparent;
  color: white;
}

/* Template Info */
.template-info {
  padding: 2rem;
  text-align: center;
}

.template-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  transition: color var(--transition-normal);
}

.template-card:hover .template-name {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.template-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Added rating system */
.template-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
}

.stars i {
  color: #fbbf24;
  font-size: 0.875rem;
}

.rating-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.template-card:hover .template-rating .stars i {
  color: var(--accent-color);
  animation: starPulse 0.5s ease;
}

@keyframes starPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Enhanced Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 4rem;
}

.load-more-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: white;
  border: none;
  padding: 1.5rem 3rem;
  border-radius: var(--radius-xl);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.load-more-btn:hover .btn-glow {
  transform: translateX(100%);
}

.load-more-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-2xl);
}

.btn-arrow {
  transition: transform var(--transition-normal);
}

.load-more-btn:hover .btn-arrow {
  transform: translateY(3px);
}

.load-more-info {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Enhanced loading skeleton with better animations */
.loading-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.skeleton-card {
  background: var(--surface-color);
  border-radius: var(--radius-2xl);
  height: 400px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Enhanced scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-2xl);
}

/* Enhanced notification system */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--success-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateX(400px);
  transition: transform var(--transition-slow);
  z-index: 1001;
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .templates-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }

hero-section{
    display:none;
}
  .heroine-section {
    padding: 4rem 1.5rem;
    margin-bottom: 3rem;
  }

  .hero-stats {
    gap: 2rem;
    flex-direction: column;
  }

  .filter-container {
    display: none;
    /*flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;*/
  }

  .filter-tabs {
    justify-content: center;
    flex-wrap: wrap;
  }

  .templates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .template-info {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .filter-tabs {
    flex-direction: column;
  }

  .template-badges {
    flex-direction: column;
    align-items: center;
  }

  .load-more-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* Hidden class for filtering */
.template-card.hidden {
  display: none;
}

/* Focus states for accessibility */
.template-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.filter-tab:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.load-more-btn:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-secondary: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .template-card:hover {
    transform: none;
  }

  .template-image {
    transition: none;
  }
}
