/* Products Page Styles */

/* Featured Product Section */
.featured-header {
  text-align: center;
  margin-bottom: 30px;
  /* Reduced from 50px */
}

.featured-main-title {
  font-family: "Raleway", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: #2563eb;
  margin: 0 auto;
  border-radius: 2px;
}

.featured-product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
  margin-bottom: 60px;
}

.featured-content {
  padding: 30px 60px 20px;
  /* Reduced vertical padding further */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  /* Reduced from 24px */
}

.f-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
}

.f-tag.blue {
  background: #eff6ff;
  color: #2563eb;
  border-color: #dbeafe;
}

.f-tag.emerald {
  background: #ecfdf5;
  color: #059669;
  border-color: #d1fae5;
}

.featured-title {
  font-size: 36px;
  /* Reduced from 44px to save height */
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  /* Reduced margin */
}

.featured-desc {
  font-size: 18px;
  color: #475569;
  line-height: 1.6;
  /* Reduced line-height */
  margin-bottom: 24px;
  /* Reduced margin */
}

.featured-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  /* Reduced bottom margin */
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Reduced gap */
}

.featured-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
  font-size: 16px;
}

.featured-features .material-icons {
  color: #2563eb;
  font-size: 20px;
}

.featured-btn {
  display: inline-block;
  background: #001fe6;
  color: white;
  padding: 12px 32px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.featured-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
}

/* Featured Mockup & Image Styles */
.featured-mockup {
  background: #f1f5f9;
  padding: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #f1f5f9;
}

.featured-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(1.05);
}

.featured-product-card:hover .featured-image {
  transform: scale(1.09) translateY(-5px);
}

.progress-fill.primary {
  background: #2563eb;
}

.progress-fill.secondary {
  background: rgba(37, 99, 235, 0.4);
}

.pulse {
  animation: barPulse 2s infinite ease-in-out;
}

@keyframes barPulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

/* Base Layout overrides */
.products-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: "Raleway", sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #10b981, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.team-intro {
  margin-top: 20px;
  font-size: 16px;
  color: #6b7280;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Products List Section */
.products-section {
  padding: 60px 0 120px;
  position: relative;
  z-index: 1;
}

/* Single column for products (as there is only one for now, but scalable) */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1550px;
  /* Increased to ultra-wide */
  margin: 0 auto;
  padding: 0 20px;
}

.product-row {
  display: flex;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  flex-direction: row;
  /* Desktop default */
}

.product-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 100px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.product-image-container {
  flex: 1;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 2px;
  position: relative;
  text-align: center;
  padding: 20px;
}

.product-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(16, 185, 129, 0.2), transparent);
}

.product-placeholder span {
  position: relative;
  z-index: 1;
}

.product-content {
  flex: 1.2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.p-tag {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-family: "Raleway", sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
}

.product-desc {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 32px;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111;
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.product-btn:hover {
  background: #10b981;
  transform: translateX(5px);
}

/* Moving Background Circles - Custom for Products Page with 2-3s duration */
.custom-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.fast-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  mix-blend-mode: multiply;
  animation: blobFloat infinite alternate ease-in-out;
}

/* Blob Specifics */
.fb1 {
  width: 350px;
  height: 350px;
  background: #a7f3d0;
  /* Emerald-ish */
  top: 15%;
  left: 5%;
  animation-duration: 2.2s;
  /* Within 2-3s range */
}

.fb2 {
  width: 450px;
  height: 450px;
  background: #bfdbfe;
  /* Blue-ish */
  bottom: 10%;
  right: -50px;
  animation-duration: 2.8s;
  /* Within 2-3s range */
  animation-delay: 0.5s;
}

.fb3 {
  width: 200px;
  height: 200px;
  background: #fbcfe8;
  /* Pink-ish */
  top: 45%;
  left: 40%;
  animation-duration: 2.5s;
  /* Within 2-3s range */
  animation-delay: 1.2s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(25px, -25px) scale(1.05);
  }
}

/* Development Progress Section */
.development-section {
  max-width: 800px;
  margin: 80px auto 0;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dev-title {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 30px;
}

.progress-wrapper {
  margin-bottom: 20px;
  text-align: left;
}

.progress-bar-bg {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  width: 0%;
  border-radius: 100px;
  animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
  to {
    width: 75%;
  }
}

.dev-status {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 12px;
  display: block;
  text-align: center;
}

.dev-cta-container {
  margin-top: 40px;
}

.dev-cta-btn {
  display: inline-flex;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.dev-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}


/* --- Mobile Menu Redesign (Decentralized) --- */

/* Hamburger to X Animation */
.nav-toggle .bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-open .nav-toggle .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .nav-toggle .bar:nth-child(2) {
  opacity: 0;
}

.menu-open .nav-toggle .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay Reset & Premium Redesign */
.nav-overlay {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-20px);
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 2000;
}

.nav-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
}

.nav-overlay-close {
  position: absolute;
  top: 12px;
  right: 42px;
  background: none;
  border: none;
  font-size: 48px;
  color: #111111;
  cursor: pointer;
  z-index: 21;
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.nav-overlay-close:hover {
  transform: rotate(90deg);
  color: #6366f1;
}

.nav-overlay-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 10;
}

.nav-overlay-menu li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-overlay.open .nav-overlay-menu li {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.nav-overlay.open .nav-overlay-menu li:nth-child(1) {
  transition-delay: 0.1s;
}

.nav-overlay.open .nav-overlay-menu li:nth-child(2) {
  transition-delay: 0.2s;
}

.nav-overlay.open .nav-overlay-menu li:nth-child(3) {
  transition-delay: 0.3s;
}

.nav-overlay.open .nav-overlay-menu li:nth-child(4) {
  transition-delay: 0.4s;
}

.nav-overlay.open .nav-overlay-menu li:nth-child(5) {
  transition-delay: 0.5s;
}

.nav-overlay-item {
  font-family: "Raleway", sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #111111;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  display: block;
}

.nav-overlay-item:hover {
  transform: scale(1.05);
  color: #6366f1;
}

/* Moving Bubbles Background */
.nav-overlay-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.overlay-blob {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  mix-blend-mode: multiply;
  animation: overlayDrift 20s infinite alternate ease-in-out;
}

.ob1 {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  top: -50px;
  left: -100px;
}

.ob2 {
  background: linear-gradient(135deg, #10b981, #3b82f6);
  bottom: 0px;
  right: -100px;
  animation-duration: 25s;
  animation-delay: -5s;
}

.ob3 {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  top: 40%;
  left: 60%;
  width: 250px;
  height: 250px;
  animation-duration: 18s;
}

@keyframes overlayDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(60px, -40px) scale(1.15);
  }
}

/* Desktop Hide */
@media (min-width: 761px) {
  .nav-overlay {
    display: none !important;
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
  .nav-overlay-item {
    font-size: 34px;
  }

  .nav-overlay-menu {
    gap: 24px;
  }
}

/* Featured Product Responsiveness */
@media (max-width: 1100px) {
  .featured-product-card {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .featured-mockup {
    order: -1;
    /* Move image above details on mobile */
    border-left: none;
    border-bottom: 1px solid #f1f5f9;
    /* Changed from border-top to border-bottom */
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .featured-content {
    padding: 40px 30px;
  }

  .featured-title {
    font-size: 32px;
  }

  .featured-desc {
    font-size: 16px;
  }

  .featured-header {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .featured-content {
    padding: 30px 20px;
  }

  .featured-btn {
    width: 100%;
    text-align: center;
  }

  .featured-mockup {
    padding: 20px;
  }

  .terminal-window {
    min-height: 320px;
  }

  .terminal-body {
    padding: 16px;
    gap: 16px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .product-row {
    flex-direction: column;
  }

  .product-image-container {
    min-height: 200px;
  }

  .product-placeholder {
    font-size: 26px;
    letter-spacing: 2px;
    line-height: 1.3;
    padding: 30px 20px;
  }

  .product-content {
    padding: 40px 30px;
  }

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

@media (max-width: 768px) {
  .products-hero {
    padding-top: 140px;
  }

  .hero-title {
    font-size: 36px;
  }

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

  .product-image-container {
    min-height: 380px;
  }

  .product-placeholder {
    font-size: 24px;
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .product-image-container {
    min-height: 180px;
    max-height: 180px;
    overflow: hidden;
  }

  .product-placeholder {
    font-size: 20px;
    letter-spacing: 2px;
    padding: 40px 10px;
  }

  .product-content {
    padding: 30px 20px;
  }

  .product-title {
    font-size: 24px;
  }

  .product-desc {
    font-size: 16px;
  }
}