/* Reset + Font Setup */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937; /* Gray-800 */
  background-color: #f9fafb; /* Gray-50 */
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Section spacing */
section {
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  section {
    padding: 0.5rem 2rem;
  }
}

/* Headings */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Paragraphs */
p {
  font-size: 1rem;
  color: #4b5563; /* Gray-600 */
}

/* Grid layouts */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}


.hero-wrapper {
  padding: 2rem 1rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.hero-logo img {
  max-width: 100px;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    gap: 8rem;
  }

  .hero-logo img {
    max-width: 220px;
  }
}


/* Service Buttons (row 3) */
.service-btn {
  border-radius: 1rem;
  padding: 2rem;
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform 0.3s ease;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.service-btn:hover {
  transform: scale(1.05);
}

.bg-gradient-purple {
  background: linear-gradient(to bottom right, #8b5cf6, #6366f1);
}
.bg-gradient-indigo {
  background: linear-gradient(to bottom right, #6366f1, #3b82f6);
}
.bg-gradient-teal {
  background: linear-gradient(to bottom right, #14b8a6, #10b981);
}

/* AI Prompt Card (row 4) */
.ai-bubble {
  display: inline-block;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Service Cards (row 5) */
.card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}
.card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.card ul {
  padding-left: 1.2rem;
  list-style: disc;
}

/* Who We Help card */
.cta-secondary {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #7c3aed;
  color: white;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}
.cta-button:hover {
  background-color: #6d28d9;
  transform: translateY(-2px);
}



/* MODAL AI BUBBLE */

.modal {
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 600px;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal .close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* PILLS */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.pill-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.pill {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: #f9fafb;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 1rem;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pill-icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* === APPSHOWCASE BLOCK === */
.appshowcase-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.appshowcase-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.appshowcase-title-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
}

.appshowcase-title-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appshowcase-type {
  font-size: 1rem;
  color: #666;
}

.appshowcase-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === DESCRIPTION === */
.appshowcase-description {
  text-align: justify;
}

/* === PREVIEW IMAGES === */
.appstore-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}



/* === TAGS === */
.appshowcase-tags-row {
  flex-wrap: wrap;
  gap: 10px;
}

.appshowcase-tag {
  background: #f0f3f7;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #dfe3e8;
  font-size: 14px;
  color: #222;
  white-space: nowrap;
}

/* === Legacy App Showcase CSS for Carousel === */

.appshowcase-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 2rem 1rem;
  scroll-behavior: smooth;
}

.appshowcase-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.appshowcase-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.appshowcase-thumb img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.appshowcase-title-meta {
  flex-grow: 1;
  margin-left: 1rem;
}

.app-meta-row {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-pill {
  background: #6d28d9;
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
}

.view-more-link {
  font-weight: bold;
  color: #6d28d9;
  text-decoration: none;
}

.app-description {
  margin-top: 1rem;
  max-height: 150px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.app-description.expanded {
  max-height: 1000px;
}

.read-more-toggle {
  background: none;
  color: #6d28d9;
  font-weight: bold;
  border: none;
  margin-top: 0.5rem;
  cursor: pointer;
}

.app-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-slide img {
  width: 220px;
  height: auto;
  border-radius: 0.75rem;
  cursor: pointer;
  scroll-snap-align: start;
}

.app-tags {
  margin-top: 1rem;
}

.tech-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  display: inline-block;
}

/* Modal for clicking images */
.image-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
}

.image-modal-content {
  background: transparent;
  padding: 0;
  border-radius: 0.75rem;
  max-width: 90vw;
  max-height: 90vh;
  position: relative; /* ✅ */
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.image-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}

.image-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  color: black;
}

.image-arrow.left {
  left: 20px;
}

.image-arrow.right {
  right: 20px;
}

/* === FOOTER === */
.gama-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 30px 80px;
  background: #fafafa;
  border-radius: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
}

.gama-footer-bottom {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.gama-floating-pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 6px;
}

.gama-floating-pill a {
  background: linear-gradient(90deg, #ff8a00, #e52e71, #9b00ff, #00e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  text-decoration: none;
}

.gama-logo {
  height: 90px;
  max-width: 200px;
  object-fit: contain;
  padding-left: 20px;
}

.gama-copyright {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}
