* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #f5f5f5;
  color: #1a1919;
  overflow-x: hidden;
}
header {
  position: absolute; /* Sits on top of the hero without pushing it down */
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 10%; /* Matches your About and Projects margin */
  background: transparent; /* No color */
  backdrop-filter: none; /* Removed blur entirely */
  z-index: 1000;
}
/* SIMPLE PAGE TRANSITION */

/* 1. Define the animation keyframes */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* Subtle lift effect */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-back-btn:active {
  transform: scale(0.95); /* Shrinks slightly when clicked */
}
/* 2. Apply it to the body of every page */
body {
  animation: pageFadeIn 0.6s ease-out;
  /* Ensures the background doesn't flicker white before the animation starts */
  background-color: #f5f5f5;
}

.logo img {
  height: 40px; /* Adjust as needed for your logo.png */
  width: auto;
  display: block;
}
.nav-back-btn {
  margin-left: 40px; /* Matches the spacing of your other nav links */
  padding: 8px 24px;
  border: 2px solid #1a1919; /* Solid dark outline */
  border-radius: 50px; /* Pill shape */
  color: #1a1919 !important; /* Forces black text */
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}
.systems-features-section {
  padding: 120px 15%; /* Large horizontal padding to make it smaller/centered */
  background-color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  column-gap: 80px; /* Space between columns */
  row-gap: 60px; /* Space between rows */
  margin-top: 60px;
}

.feature-item {
  border-bottom: 1px solid #eee; /* Light separator instead of dashed lines */
  padding-bottom: 30px;
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a1919;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
/* About the System: Comparison Rows */
.comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline; /* Better alignment for varying text heights */
  padding: 25px 0;
}

.comp-item h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888; /* Dimmer title for better contrast with the value */
  margin: 0;
}

.comp-item p {
  font-size: 18px;
  font-weight: 600;
  color: #1a1919;
  margin: 0;
  text-align: right;
}

.thin-separator {
  border: 0;
  border-top: 1px solid #eee;
  margin: 0;
}

/* Problem & Solution Blocks */
.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.ps-block {
  background: #fff;
  padding: 40px;
  border-radius: 32px; /* Matches your core theme */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Very subtle depth */
}

.ps-block strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: #1a1919;
}

.ps-block p:not(strong) {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}
.feature-text {
  font-size: 15px; /* Smaller, cleaner text */
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* Responsive: Stack on mobile */
@media (max-width: 992px) {
  .systems-features-section {
    padding: 80px 10%;
  }
  .features-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}
.nav-back-btn:hover {
  background-color: #1a1919; /* Inverts on hover */
  color: #ffffff !important;
  transform: translateY(-2px); /* Subtle lift */
}
.thread-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two in a row */
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.thread-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9; /* Forces 1920x1080 proportions */
  border-radius: 32px;
  overflow: hidden;
  text-decoration: none;
  background-color: #eee;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.thread-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.thread-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 25, 25, 0.6); /* Using your #1a1919 black at 60% */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.thread-overlay h3 {
  color: #f5f5f5; /* Using your #f5f5f5 white */
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 24px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.section-separator {
  border: none;
  border-top: 2px dashed #d1d1d1;
  margin: 60px auto;
  width: 80%;
  max-width: 1400px;
}

.section-label {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1a1919;
  margin: 40px 0;
}
/* Hover States */
.thread-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.thread-card:hover .thread-img {
  transform: scale(1.05);
}

.thread-card:hover .thread-overlay {
  opacity: 1;
}

.thread-card:hover .thread-overlay h3 {
  transform: translateY(0);
}

/* Mobile: Stack 1 per row */
@media (max-width: 992px) {
  .thread-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.nav-back-btn-light {
  margin-left: 40px; /* Matches the spacing of your other nav links */
  padding: 8px 24px;
  border: 2px solid #f5f5f5; /* Solid dark outline */
  border-radius: 50px; /* Pill shape */
  color: #f5f5f5 !important; /* Forces black text */
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-back-btn-light:hover {
  background-color: #f5f5f5; /* Inverts on hover */
  color: #1a1919 !important;
  transform: translateY(-2px); /* Subtle lift */
}

/* Ensure the nav container stays aligned */
nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 40px;
  text-decoration: none;
  color: #ffffff; /* Crisp white for your dark hero background */
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.6;
}

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active {
  opacity: 1;
}
.hero-content {
  position: absolute;
  bottom: 80px;
  left: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 30px;
  animation: fadeUp 1s ease;
}
.buttons button {
  margin: 10px 10px 0 0;
  padding: 12px 25px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.buttons button.active,
.buttons button:hover {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  border: none;
}

.section {
  padding: 120px 40px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.card {
  padding: 25px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  transition: 0.4s;
  opacity: 0;
  transform: translateY(40px);
}
.card.show {
  opacity: 1;
  transform: translateY(0);
}
.card:hover {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.filter-bar {
  margin-bottom: 30px;
}
.filter-bar button {
  margin-right: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.filter-bar button.active {
  background: #fff;
  color: #000;
}

footer {
  text-align: center;
  padding: 30px;
  opacity: 0.7;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#about {
  background-color: #f5f5f5; /* Clean light background */
  color: #333;
  padding: 120px 10%; /* 10% Margin on both sides */
}

.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 32px; /* Heavy border-radius to match your UI */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: #1a1919; /* Dark gray for headings */
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.about-text .sub-headline {
  font-size: 1.2rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 20px;
}

.about-text p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 15px;
}

.highlight-box {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  border-left: 5px solid #ff7e5f;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustment */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
}
#projects {
  background-color: #ffffff;
  padding: 120px 10%; /* 10% side margins */
}
#poster-gallery {
  padding: 80px 10%;
  background-color: #f5f5f5;
}

.gallery-header {
  text-align: center;
  margin-bottom: 80px;
}

.gallery-header h1 {
  font-size: 85px;
  color: #1a1919;
  font-weight: 800;
  margin-bottom: 10px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.poster-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  text-decoration: none;
  display: block;
}

.poster-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}
#ecommerce-gallery {
  padding: 80px 10%;
  background-color: #f5f5f5;
}

.gallery-header {
  text-align: center;
  margin-bottom: 80px;
}

.gallery-header h1 {
  font-size: 85px;
  color: #1a1919;
  font-weight: 800;
  margin-bottom: 10px;
}

.ecommerce-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cards per row as requested */
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.ecommerce-card {
  position: relative;
  aspect-ratio: 1 / 1; /* Square ratio for e-commerce tiles */
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  text-decoration: none;
  display: block;
}

.ecommerce-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.ecommerce-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures your Amazon listing designs fill the square */
}

.ecommerce-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}
/* Container that matches your Ecommerce Grid constraints */
.ecommerce-about-section {
  padding: 100px 10%;
  background-color: #f5f5f5;
}

.ecommerce-about-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px; /* Match the ecommerce-grid gap */
  max-width: 1400px; /* Match the ecommerce-grid max-width */
  margin: 0 auto; /* Centers it exactly like the grid */
}

.ecommerce-about-left {
  flex: 1; /* Represents the first column */
}

.ecommerce-about-left h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1a1919;
  text-transform: uppercase;
  margin: 0;
}

.ecommerce-about-right {
  flex: 1; /* Represents the second column */
}

.ecommerce-about-right p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

/* Ensure it stacks on mobile just like your grid */
@media (max-width: 768px) {
  .ecommerce-about-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* Updated to three columns per row */
.ecommerce-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.ecommerce-card {
  aspect-ratio: 1 / 1; /* Keeps images perfectly square */
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: block;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  background: #fff; /* Fallback color */
}

.ecommerce-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.ecommerce-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ecommerce-card:hover .ecommerce-img {
  transform: scale(1.05); /* Slight zoom on hover */
}

.ecommerce-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ecommerce-card:hover .ecommerce-overlay {
  opacity: 1; /* Overlay appears on hover */
}

.ecommerce-overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 1024px) {
  .ecommerce-grid {
    grid-template-columns: repeat(2, 1fr); /* Drops to 2 columns for tablets */
  }
}

@media (max-width: 600px) {
  .ecommerce-grid {
    grid-template-columns: 1fr; /* Drops to 1 column for phones */
    gap: 20px;
  }
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .poster-grid {
    grid-template-columns: 1fr;
  }
  .gallery-header h1 {
    font-size: 50px;
  }
}
.projects-header {
  text-align: center; /* Centers the title and subtitle */
  margin-bottom: 60px;
}

.projects-header h2 {
  font-size: 85px; /* Large bold title */
  color: #1a1919;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
}
.view-more-container {
  text-align: center;
  margin-top: 30px;
}
.btn-outline-lm {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1a1919;
  text-decoration: none;
  border: 2px solid #1a1919;
  border-radius: 50px; /* Modern pill shape */
  transition: all 0.3s ease;
}

.btn-outline-lm:hover {
  background-color: #1a1919;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  display: inline-block;
  padding: 12px 35px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1919; /* Matching your dark gray heading color */
  text-decoration: none;
  border: 2px solid #1a1919;
  border-radius: 999px; /* Heavy border-radius as requested */
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline:hover {
  background-color: #1a1919;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.projects-header p {
  font-size: 18px; /* Small brief */
  color: #666;
  max-width: 600px;
  margin: 0 auto; /* Ensures the max-width brief stays centered */
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: 32px; /* Heavy border-radius */
  overflow: hidden;
  aspect-ratio: 3 / 4; /* Portrait 3:4 ratio */
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  text-decoration: none; /* Prevents underlines on titles */
  display: block;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
}

.project-overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Responsive adjustment */
@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-header h2 {
    font-size: 60px;
  }
}
@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
