@import url("https://fonts.googleapis.com/css2?family=Gellix:wght@400;500;700&display=swap");
@media (max-width: 1024px) {
  .description-wrapper {
    margin-bottom: 20px;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: #000048;
  --accent-gradient: #faa32e;
  --success-gradient: #355e3b;
  --bg-primary: #fafbfc;
  --bg-secondary: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #000048;
  --text-muted: #718096;
  --border-light: #e2e8f0;
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
  font-family: "Gellix", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: bold;
}

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

/* Top Navigation */
.top-nav {
  background: #000048;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  color: white;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5em;
  font-weight: 800;
  color: white;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #715dbb;
  font-size: 1.2em;
}

/* Hero Section */
.hero-section {
  background: var(--bg-secondary);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(113, 93, 187, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(245, 87, 108, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

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

.hero-title {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.hero-title-2 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  text-align: center;
}
.hero-subtitle {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-right: auto;
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2em;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-section {
  padding-top: 70px;
}
/* Search and Filter Section */
.filter遵1 .filter-section {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 2px solid var(--border-light);
  border-radius: 50px;
  font-size: 1em;
  outline: none;
  transition: all 0.3s ease;
  background: var(--bg-primary);
}

.search-input:focus {
  border-color: #715dbb;
  box-shadow: 0 0 0 3px rgba(113, 93, 187, 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1em;
}

.main-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 25px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 2px solid var(--border-light);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: white;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.filter-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.niche-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.niche-btn {
  padding: 8px 16px;
  background: rgba(113, 93, 187, 0.1);
  color: #715dbb;
  border: 1px solid rgba(113, 93, 187, 0.2);
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.niche-btn:hover,
.niche-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
}

/* Portfolio Grid */
.portfolio-section {
  padding: 40px 0;
  min-height: 600px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.portfolio-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
  display: flex;
  flex-direction: column;
  min-height: 420px; /* Ensures consistent minimum height */
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-heavy);
  border-color: rgba(113, 93, 187, 0.2);
}

.card-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .card-image {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.overlay-btn {
  padding: 10px 18px;
  background: white;
  color: var(--text-primary);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.overlay-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 70px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.card-type {
  display: inline-block;
  padding: 5px 10px;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.7em;
  font-weight: 600;
  border-radius: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.card-niche {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(245, 87, 108, 0.1);
  color: #f5576c;
  font-size: 0.7em;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 8px;
}

.card-price {
  font-size: 1.4em;
  font-weight: 800;
  background: var(--success-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 15px;
  flex: 1;
}

.description-content {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.5em;
  transition: all 0.3s ease;
}

.portfolio-card.expanded .description-content {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  min-height: unset;
}

.read-more-link {
  color: #715dbb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
}

.read-more-link:hover {
  text-decoration: underline;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.feature-tag {
  padding: 4px 10px;
  background: rgba(113, 93, 187, 0.1);
  color: #000048;
  font-size: 0.75em;
  border-radius: 15px;
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-bottom: 10px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-secondary);
  padding-left: 20px;
  padding-right: 20px;
}

.btn-primary {
  flex: 1;
  padding: 12px 18px;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-buy {
  background: var(--accent-gradient);
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  justify-content: center;
  text-decoration: none;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.9
  ); /* Slightly darker for better contrast */
  overflow: auto;
}

.modal-content {
  margin: 5% auto;
  padding: 20px;
  max-width: 90vw;
  max-height: 85vh; /* Slightly increased for taller images */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(
    255,
    255,
    255,
    0.1
  ); /* Light overlay to enhance image visibility */
}

.modal-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Stronger shadow for contrast */
  padding: 10px; /* Small padding to separate image from border */
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 0 5px #000; /* Enhance close button visibility */
}

.modal-close:hover,
.modal-close:focus {
  color: #ccc;
  text-decoration: none;
  cursor: pointer;
}
/* No Results */
.no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3.5em;
  margin-bottom: 15px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.4em;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 50px 0 25px;
}

.footer-bottom {
  text-align: center;
  padding-top: 5px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 15px;
  }

  .nav-container {
    height: 70px;
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2.2em;
    margin-top: 40px;
  }

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

  .stats-row {
    gap: 20px;
    flex-wrap: wrap;
  }

  .main-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 0.85em;
  }

  .card-content {
    padding: 45px;
  }

  .card-actions {
    flex-direction: column;
  }
}

/* Responsive Pagination Styles */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0 20px 0;
  font-family: "Inter", sans-serif;
}
.pagination a,
.pagination span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #4b77a8;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.2s;
  margin: 0 2px;
  box-sizing: border-box;
}
.pagination a:hover:not(.disabled):not(.active-page) {
  background: #000048;
  color: #fff;
  border-color: #000048;
}
.pagination .active-page {
  background: #000048;
  color: #fff;
  border-color: #000048;
  cursor: default;
}
.pagination .disabled {
  pointer-events: none;
  color: #999;
  background: #e9ecef;
  border: 1px solid #ccc;
}
.pagination span {
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.1em;
  min-width: 20px;
}
@media (max-width: 600px) {
  .pagination {
    gap: 4px;
    margin: 20px 0 10px 0;
  }
  .pagination a,
  .pagination span {
    min-width: 28px;
    height: 28px;
    font-size: 0.95em;
    padding: 0 6px;
    border-radius: 6px;
  }
}

/* Responsive Section Styles */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-info {
    padding-right: 0;
    margin-bottom: 30px;
  }
}
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 8px;
  }
  .hero-title,
  .hero-title-2 {
    font-size: 2em;
  }
  .contact-info h2 {
    font-size: 2em;
    color: #000048;
  }
}
@media (max-width: 600px) {
  .hero-section,
  .filter-section,
  .portfolio-section,
  .contact-section {
    padding: 0px 0px 30px 0px;
  }
  .contact-info h2 {
    font-size: 1.5em;
    color: #000048;
    margin-bottom: 10px;
  }
  .contact-details {
    gap: 10px;
  }
  .contact-form iframe {
    height: 600px !important;
    min-height: 400px;
    max-height: 80vh;
  }
}

.custom-template-request {
  background: transparent !important; /* Remove any background color */
  padding: 0 !important; /* Remove extra padding around form */
  margin: 0 auto !important;
  max-width: 1000px;
}

.custom-template-request iframe {
  background: transparent !important; /* Make iframe background transparent */
  box-shadow: none !important; /* Remove any shadows */
  border: none !important; /* Just in case override border */
  border-radius: 20px; /* Keep border radius if desired */
  height: 1573px; /* Maintain the height or adjust as needed */
  width: 100%;
  margin-bottom: 40px;
}

/* Container setup */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Flex container for contact info and form */
.contact-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Contact info section styling */
.contact-info {
  flex: 1 1 400px;
}

/* Headings */
.custom-template-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529; /* Dark color */
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-info p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

/* Contact details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-icon {
  font-size: 1.5rem;
  color: #000048; /* Brand blue color */
  margin-right: 1rem;
  min-width: 30px;
  text-align: center;
}

.contact-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.2rem 0;
  color: #343a40;
}

.contact-item p {
  margin: 0;
  color: #444;
  font-size: 1rem;
}

/* Contact form styling */
.contact-form {
  flex: 1 1 500px;
}

/* Responsive breakpoints */

/* Tablet (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
  .custom-template-heading {
    font-size: 2rem;
  }
  .contact-item h4 {
    font-size: 1.125rem;
  }
  .contact-container {
    gap: 1.5rem;
  }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
  .contact-container {
    flex-direction: column;
  }
  .custom-template-heading {
    font-size: 1.5rem;
  }
  .contact-info p {
    font-size: 0.95rem;
  }
  .contact-item h4 {
    font-size: 1rem;
  }
  .contact-item p {
    font-size: 0.9rem;
  }
  .contact-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    min-width: 25px;
  }
  .contact-info,
  .contact-form {
    flex: 1 1 100%;
    width: 100%;
  }
}

.contact-info h2 {
  color: #000048;
}
/* Footer color line and link styles */
.footer-line {
  border-top: 3px solid #000048;
  margin-bottom: 10px;
  width: 100%;
}
.footer-link {
  text-decoration: none;
  color: #000048;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #333366;
  text-decoration: underline;
}

/* Banner background for hero section */
.banner-bg {
  background-image: url("images/template_banner.webp"); /* Change to your preferred image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.banner-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* dark overlay for text readability */
  z-index: 0;
}

.banner-bg .hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.banner-bg .hero-title,
.banner-bg .stat-number {
  -webkit-text-fill-color: unset;
  background: none;
  color: #fff;
  text-align: left;
}

.banner-bg .hero-subtitle,
.banner-bg .stat-label {
  color: #f0f0f0;
  text-align: left;
}
