/* Index.css - Main stylesheet for the homepage */

body {
  font-family: "NotionInter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji",
    "Segoe UI Symbol";
}

/* Smooth transitions */
* {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}

/* Enhanced button styles */

.gradient-bg-3 {
  background: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 100%);
}

.homepage-shell {
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .homepage-shell {
    padding-bottom: 5rem;
  }
}

/* Video container */
.video-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow removed */
}

/* Hero visual */
.hero-visual {
  gap: 1.5rem;
}

.hero-visual-media {
  display: block;
  width: 100%;
}

.hero-visual-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 1rem;
  /* box-shadow removed */
}

@media (min-width: 768px) {
  .hero-visual-image {
    max-height: 420px;
  }
}

@media (max-width: 767px) {
  .hero-visual {
    margin-top: 1.5rem;
  }
}

/* Search interface styling */
.search-result-item {
  transition: all 0.15s ease-in-out;
}

.search-result-item:hover {
  background-color: #f8fafc;
  border-left: 3px solid #3b82f6;
  padding-left: 1rem;
}

/* Status badges */
.status-shipped {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.status-progress {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.status-planned {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .feature-card {
    margin-bottom: 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Adjust section headings for mobile */
  .section-heading,
  h2.section-heading {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Adjust other headings for mobile */
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }
}

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

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

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .homepage-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Further reduce section headings for smaller screens */
  .section-heading,
  h2.section-heading {
    font-size: 2rem !important;
    line-height: 1.1 !important;
  }

  /* Further adjust other headings */
  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }
}

/* Loading animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Focus states for accessibility */
.focus-ring:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Custom utilities */
.text-balance {
  text-wrap: balance;
}

.backdrop-blur-sm {
  backdrop-filter: none;
}
.cards-closer-to-strip {
  margin-top: -3rem; /* -32px, pulls cards closer to strip */
}

@media (max-width: 640px) {
  .cards-closer-to-strip {
    margin-top: -1.5rem;
  }
}

/* AI Notes and Enterprise Search Card Image Containers */

.card-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch; /* Aligns cards to have the same height */
  flex-wrap: wrap; /* Allows cards to stack on smaller screens */
  position: relative;
}

/* Data & Analytics Card Styles */

.data-card {
  border-radius: 1.5rem; /* rounded-3xl */
  max-width: 36rem; /* Increased max-width for wider cards */
  width: 100%;
  flex: 1 1 36rem; /* Allow cards to grow and shrink, base width 36rem */
  min-height: 22rem; /* Reduced min-height for shorter cards */
  position: relative;
  box-shadow: 0 8px 32px 0 rgba(60, 60, 90, 0.18),
    0 2px 8px 0 rgba(60, 60, 90, 0.1);
  /* More prominent shadow for emphasis */
  overflow: hidden; /* Keep this to contain the child border-radius */
  display: flex; /* Switched to flexbox */
  flex-direction: column; /* Stack content vertically */
}

/* Default Card Theme (Pink) */
.data-card {
  background-color: #fff; /* White background for both cards */
}

/* IT Card Theme (Blue) */
.it-card {
  background-color: #fff; /* White background for both cards */
}

.data-card-content {
  padding: 2rem;
  flex-grow: 1; /* Allows the content area to fill available space */
}

.data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.header-left-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-card-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #fee2e2; /* Default border */
  color: #ef4444; /* Default color */
}

.data-card {
  border: 2px solid transparent;
}
.data-card:hover {
  border-color: #f4d6d6; /* pink/red for Data and Analytics */
}

.it-card {
  border: 2px solid transparent;
}
.it-card:hover {
  border-color: #cce3ee; /* blue for IT and Tech Services */
}

/* IT Card Tag & Badge Overrides */
.it-card .data-card-tag {
  color: #0ea5e9; /* sky-500 */
  border-color: #bae6fd; /* sky-200 */
}
.it-card .new-badge {
  background-color: #e0f2fe; /* sky-100 */
  color: #0ea5e9; /* sky-500 */
}

.data-card-arrow {
  background-color: #fff;
  border-radius: 9999px;
  padding: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  cursor: pointer;
}

.data-card-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #9ca3af; /* gray-400 */
}

.data-card-title {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700;
  margin-bottom: 1rem; /* Reduced spacing below subheading */
  color: #111827; /* gray-900 */
}

.image-container {
  padding: 0 8px 0 8px; /* Reduce horizontal padding */
  margin-top: 0.5rem; /* Add small margin above image container */
}

.content-image {
  width: 100%;
  display: block; /* Ensures it behaves correctly */
}

@media (max-width: 1024px) {
  .card-container {
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .card-container {
    flex-direction: column;
    align-items: stretch;
  }

  .data-card {
    flex: 1 1 100%;
    min-height: auto;
  }

  .data-card-content {
    padding: 1.5rem;
  }

  .data-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .data-card-tag {
    font-size: 0.8125rem;
  }

  .data-card-arrow {
    align-self: flex-start;
    margin-top: 0.25rem;
  }

  .data-card-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .image-container {
    padding: 0;
    margin-top: 1.25rem;
  }
}

.project-card {
  background-color: #fefce8; /* Corresponds to bg-amber-100 */
  border-radius: 1rem; /* Corresponds to rounded-2xl */
  margin-bottom: 4rem; /* Corresponds to mb-16 */
  overflow: hidden;
  margin-top: 2.5rem;
  max-width: 76rem; /* Increased width for wider project card */
  margin-left: auto;
  margin-right: auto;
  border: 2px solid transparent; /* Corresponds to border-2 border-transparent */
  box-shadow: 0 8px 32px 0 rgba(60, 60, 90, 0.18),
    0 2px 8px 0 rgba(60, 60, 90, 0.1);
  /* More prominent shadow for emphasis, matches cards below */
  transition: border-color 150ms ease-in-out; /* Corresponds to transition-colors */
}

.project-card:hover {
  border-color: #fcd34d; /* Corresponds to hover:border-amber-300 */
}

.project-card-grid {
  display: grid;
}

.project-card-content {
  padding: 1.5rem; /* Corresponds to p-6 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem; /* Corresponds to mb-4 */
}

.project-card-header span {
  font-size: 0.875rem; /* Corresponds to text-sm */
  font-weight: 600; /* Corresponds to font-semibold */
  margin-left: 0.5rem; /* Simulates space-x-2 */
}

.project-card-title {
  font-size: 1.5rem; /* Corresponds to text-2xl */
  font-weight: 700; /* Corresponds to font-bold */
  margin-bottom: 1.5rem; /* Corresponds to mb-6 */
}

.project-card-title-main {
  display: block;
}

.project-card-subtitle {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 0.25rem;
  color: #4b5563; /* gray-600 */
}

.project-card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff; /* Corresponds to bg-white */
  border-radius: 9999px; /* Corresponds to rounded-full */
  width: 3rem;
  height: 3rem;
  padding: 0;
  transition: background-color 150ms ease-in-out; /* Corresponds to transition-colors */
}

.project-card-button:hover {
  background-color: #f3f4f6; /* Corresponds to hover:bg-gray-100 */
}

.project-card-button svg {
  height: 1.5rem; /* Corresponds to h-6 */
  width: 1.5rem; /* Corresponds to w-6 */
}

.project-card-image-container {
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  padding-top: 20px;
}

.project-card-image {
  width: 100%;
  display: block;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .project-card-grid {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    ); /* Corresponds to md:grid-cols-2 */
  }

  .project-card-content {
    padding: 3rem; /* Corresponds to md:p-12 */
  }

  .project-card-title {
    font-size: 1.875rem; /* Corresponds to md:text-3xl */
  }

  .project-card-subtitle {
    font-size: 1.25rem;
  }
}

/* Marquee Styles for Testimonials */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.testimonial-card {
  flex-shrink: 0;
  width: 24rem;
  margin-right: 2rem;
}

@media (max-width: 480px) {
  .testimonial-card {
    width: 18rem;
    padding: 1.5rem;
  }
}
