/* ==========================================================
   MYPRESENTO
   Premium Templates Page
   Part 1
========================================================== */

/*==========================================================
CSS VARIABLES
==========================================================*/

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;

  --secondary: #0f172a;

  --text: #334155;
  --text-light: #64748b;

  --white: #ffffff;

  --border: #e5e7eb;

  --bg: #f8fafc;

  --radius: 20px;

  --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.06);

  --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.1);

  --shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.15);

  --transition: 0.35s ease;
}

/*==========================================================
RESET
==========================================================*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;

  background: var(--bg);

  color: var(--text);

  line-height: 1.7;

  overflow-x: hidden;
  padding-top: 0 !important;
}

img {
  max-width: 100%;

  display: block;
}

a {
  text-decoration: none;

  transition: var(--transition);
}

button {
  border: none;

  outline: none;

  background: none;

  cursor: pointer;

  transition: var(--transition);
}

ul {
  list-style: none;

  margin: 0;

  padding: 0;
}

/*==========================================================
UTILITY
==========================================================*/

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

.container {
  position: relative;

  z-index: 2;
}

/*==========================================================
HEADER
==========================================================*/

.header-area {
  position: sticky;

  top: 0;

  z-index: 9999;

  background: rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(37, 99, 235, 0.08);

  transition: 0.35s;
}

.navbar {
  min-height: 82px;
}

.logo {
  height: 48px;

  width: auto;
}

.navbar-nav {
  gap: 10px;
}

.nav-link {
  color: var(--secondary);

  font-weight: 500;

  padding: 10px 18px !important;

  border-radius: 10px;

  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);

  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
}

.btn-whatsapp {
  padding: 13px 22px;

  border-radius: 50px;

  background: #22c55e;

  color: #fff;

  font-weight: 600;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #16a34a;

  color: #fff;

  transform: translateY(-3px);
}

/*==========================================================
PAGE HERO
==========================================================*/

.templates-section {
  position: relative;

  overflow: hidden;

  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.08),
      transparent 45%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(59, 130, 246, 0.05),
      transparent 45%
    ),
    var(--bg);
}

/* decorative circles */

.templates-section::before {
  content: "";

  position: absolute;

  width: 450px;

  height: 450px;

  border-radius: 50%;

  background: rgba(37, 99, 235, 0.05);

  top: -180px;

  right: -180px;

  z-index: 0;
}

.templates-section::after {
  content: "";

  position: absolute;

  width: 350px;

  height: 350px;

  border-radius: 50%;

  background: rgba(59, 130, 246, 0.05);

  left: -140px;

  bottom: -120px;

  z-index: 0;
}

/*==========================================================
SECTION HEADER
==========================================================*/

.section-header {
  max-width: 900px;

  margin: 0 auto 70px;

  position: relative;

  z-index: 2;
}

.section-badge {
  display: inline-block;

  background: rgba(37, 99, 235, 0.1);

  color: var(--primary);

  padding: 10px 22px;

  border-radius: 50px;

  font-size: 14px;

  font-weight: 600;

  margin-bottom: 20px;
}

.section-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);

  font-weight: 800;

  color: var(--secondary);

  line-height: 1.2;

  margin-bottom: 22px;
}

.section-header h1 span {
  color: var(--primary);
}

.section-header p {
  font-size: 18px;

  color: var(--text-light);

  max-width: 760px;

  margin: auto;
}

/*==========================================================
COMMON BUTTONS
==========================================================*/

.btn {
  border-radius: 12px;

  font-weight: 600;

  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);

  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);

  border-color: var(--primary-dark);

  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary);

  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);

  color: #fff;
}
/* ==========================================================
   MYPRESENTO
   Templates CSS - Part 2
   Filter • Grid • Cards
==========================================================*/

/*==========================================================
FILTER BAR
==========================================================*/

.template-filter {
  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 15px;

  margin-bottom: 70px;
}

.template-filter button {
  padding: 14px 28px;

  background: #fff;

  border: 1px solid var(--border);

  border-radius: 50px;

  font-size: 15px;

  font-weight: 600;

  color: var(--text);

  transition: var(--transition);

  box-shadow: var(--shadow-sm);
}

.template-filter button:hover {
  transform: translateY(-3px);

  border-color: var(--primary);

  color: var(--primary);
}

.template-filter button.active {
  background: var(--primary);

  color: #fff;

  border-color: var(--primary);
}

/*==========================================================
TEMPLATE GRID
==========================================================*/

.template-item {
  transition: 0.45s ease;
}

.template-item.hide {
  opacity: 0;

  transform: scale(0.9);

  pointer-events: none;
}

.template-item.show {
  opacity: 1;

  transform: scale(1);
}

/*==========================================================
CARD
==========================================================*/

.template-card {
  position: relative;

  background: #fff;

  border-radius: 24px;

  overflow: hidden;

  border: 1px solid rgba(0, 0, 0, 0.05);

  box-shadow: var(--shadow-sm);

  transition: 0.45s ease;

  height: 100%;

  display: flex;

  flex-direction: column;

  isolation: isolate;
}

.template-card:hover {
  transform: translateY(-12px);

  box-shadow: var(--shadow-lg);
}

/*==========================================================
CARD GLOW
==========================================================*/

.template-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 45%);

  opacity: 0;

  transition: 0.4s;

  pointer-events: none;
}

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

/*==========================================================
IMAGE AREA
==========================================================*/

.browser {
  position: relative;

  overflow: hidden;

  background: #f8fafc;

  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.browser img {
  width: 100%;

  display: block;

  transition: 0.6s ease;
}

.template-card:hover .browser img {
  transform: scale(1.04);
}

/*==========================================================
BROWSER TOP
==========================================================*/

.browser-top {
  height: 42px;

  background: #eef2f7;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 0 16px;

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.browser-top span {
  width: 12px;

  height: 12px;

  border-radius: 50%;
}

.browser-top span:nth-child(1) {
  background: #ff5f57;
}

.browser-top span:nth-child(2) {
  background: #febc2e;
}

.browser-top span:nth-child(3) {
  background: #28c840;
}

/*==========================================================
CONTENT
==========================================================*/

.template-content {
  padding: 28px;

  display: flex;

  flex-direction: column;

  flex: 1;

  position: relative;

  z-index: 2;
}

/*==========================================================
CATEGORY TAG
==========================================================*/

.template-tag {
  display: inline-flex;

  align-items: center;

  align-self: flex-start;

  padding: 8px 18px;

  border-radius: 50px;

  background: rgba(37, 99, 235, 0.08);

  color: var(--primary);

  font-size: 13px;

  font-weight: 700;

  margin-bottom: 18px;
}

/*==========================================================
TITLE
==========================================================*/

.template-content h4 {
  font-size: 24px;

  font-weight: 700;

  color: var(--secondary);

  margin-bottom: 14px;

  line-height: 1.3;
}

/*==========================================================
DESCRIPTION
==========================================================*/

.template-content p {
  color: var(--text-light);

  font-size: 15px;

  line-height: 1.8;

  margin-bottom: 22px;

  flex-grow: 1;
}

/*==========================================================
RATING
==========================================================*/

.template-rating {
  display: flex;

  justify-content: space-between;

  align-items: center;

  color: #f59e0b;

  font-size: 17px;

  margin-bottom: 26px;
}

.template-rating small {
  color: var(--text-light);

  font-weight: 600;
}

/*==========================================================
BUTTON AREA
==========================================================*/

.template-buttons {
  display: flex;

  gap: 12px;

  margin-top: auto;
}

.template-buttons .btn {
  flex: 1;

  padding: 14px;

  border-radius: 12px;

  font-size: 15px;

  font-weight: 600;

  text-align: center;
}

/*==========================================================
LIVE PREVIEW
==========================================================*/

.template-buttons .btn-outline-primary {
  background: #fff;
}

/*==========================================================
USE TEMPLATE
==========================================================*/

.template-buttons .btn-primary {
  color: #fff;
}

/*==========================================================
IMAGE HOVER OVERLAY
==========================================================*/

.browser::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    to top,

    rgba(15, 23, 42, 0.12),
    transparent 55%
  );

  opacity: 0;

  transition: 0.4s;

  pointer-events: none;
}

.template-card:hover .browser::after {
  opacity: 1;
}

/*==========================================================
CARD REVEAL
==========================================================*/

.template-card {
  opacity: 0;

  transform: translateY(50px);
}

.template-card.reveal {
  opacity: 1;

  transform: translateY(0);
}
/* ==========================================================
   MYPRESENTO
   Templates CSS - Part 3
   CTA • Footer • Animations • Responsive
==========================================================*/

/*==========================================================
BOTTOM CTA
==========================================================*/

.templates-footer {
  margin-top: 100px;

  padding: 70px 50px;

  background: linear-gradient(135deg, var(--primary), #4f8cff);

  color: #fff;

  border-radius: 30px;

  text-align: center;

  position: relative;

  overflow: hidden;

  box-shadow: var(--shadow-lg);
}

.templates-footer::before {
  content: "";

  position: absolute;

  width: 300px;

  height: 300px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  top: -120px;

  right: -80px;
}

.templates-footer::after {
  content: "";

  position: absolute;

  width: 220px;

  height: 220px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.05);

  left: -70px;

  bottom: -80px;
}

.templates-footer h3 {
  position: relative;

  z-index: 2;

  font-size: 2.2rem;

  font-weight: 700;

  margin-bottom: 18px;
}

.templates-footer p {
  position: relative;

  z-index: 2;

  font-size: 18px;

  max-width: 700px;

  margin: 0 auto 35px;

  opacity: 0.95;
}

.templates-footer .btn {
  position: relative;

  z-index: 2;

  background: #fff;

  color: var(--primary);

  border: none;

  padding: 16px 34px;

  font-weight: 700;

  border-radius: 50px;

  transition: 0.35s;
}

.templates-footer .btn:hover {
  transform: translateY(-4px);

  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

/*==========================================================
FOOTER
==========================================================*/

.footer {
  background: #0f172a;

  color: #cbd5e1;

  padding: 70px 0 35px;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin: 0;

  color: #94a3b8;

  font-size: 15px;
}

.footer strong {
  color: #fff;
}

/*==========================================================
SCROLL ANIMATIONS
==========================================================*/

.fade-up {
  opacity: 0;

  transform: translateY(50px);

  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;

  transform: translateY(0);
}

.fade-left {
  opacity: 0;

  transform: translateX(-50px);

  transition: 0.8s;
}

.fade-left.show {
  opacity: 1;

  transform: translateX(0);
}

.fade-right {
  opacity: 0;

  transform: translateX(50px);

  transition: 0.8s;
}

.fade-right.show {
  opacity: 1;

  transform: translateX(0);
}

/*==========================================================
FLOATING EFFECT
==========================================================*/

@keyframes floatCard {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

.template-card:hover {
  animation: floatCard 2.5s ease-in-out infinite;
}

/*==========================================================
IMAGE SHADOW
==========================================================*/

.browser img {
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.08));
}

/*==========================================================
CUSTOM SCROLLBAR
==========================================================*/

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #edf2f7;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);

  border-radius: 30px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/*==========================================================
FOCUS STATES
==========================================================*/

button:focus,
a:focus {
  outline: none;

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

/*==========================================================
TABLET
==========================================================*/

@media (max-width: 991px) {
  .section-padding {
    padding: 90px 0;
  }

  .section-header {
    margin-bottom: 55px;
  }

  .section-header h1 {
    font-size: 2.8rem;
  }

  .template-filter {
    gap: 10px;
  }

  .template-filter button {
    padding: 12px 20px;

    font-size: 14px;
  }

  .template-content {
    padding: 22px;
  }

  .templates-footer {
    padding: 55px 35px;
  }
}

/*==========================================================
MOBILE
==========================================================*/

@media (max-width: 767px) {
  .section-padding {
    padding: 70px 0;
  }

  .section-header h1 {
    font-size: 2.2rem;
  }

  .section-header p {
    font-size: 16px;
  }

  .template-filter {
    justify-content: flex-start;

    overflow-x: auto;

    flex-wrap: nowrap;

    padding-bottom: 10px;
  }

  .template-filter::-webkit-scrollbar {
    display: none;
  }

  .template-filter button {
    white-space: nowrap;

    flex-shrink: 0;
  }

  .template-buttons {
    flex-direction: column;
  }

  .template-buttons .btn {
    width: 100%;
  }

  .templates-footer {
    padding: 45px 25px;
  }

  .templates-footer h3 {
    font-size: 1.8rem;
  }
}

/*==========================================================
SMALL MOBILE
==========================================================*/

@media (max-width: 480px) {
  .logo {
    height: 40px;
  }

  .navbar {
    min-height: 70px;
  }

  .browser-top {
    height: 36px;
  }

  .browser-top span {
    width: 10px;

    height: 10px;
  }

  .template-content {
    padding: 18px;
  }

  .template-content h4 {
    font-size: 21px;
  }

  .template-rating {
    flex-direction: column;

    align-items: flex-start;

    gap: 6px;
  }
}
.support-card p {
  max-width: 100% !important;
  margin-bottom: 30px;
}
.support-card h3 {
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
