:root {
  --bg: #0a0e1f;
  --text: #f5f8ff;
  --accent: #6ea0ff;
  --accent2: #9bffd6;
  --muted: #9aa1b9;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
}

/* ===========================
   SECTION BASE
=========================== */
.section {
  padding: 100px 20px;
}
.section__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}

/* ===========================
   PROJECT GALLERY
=========================== */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
  margin-top: 50px;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #10162d;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 360px;
  height: auto;
  text-align: center;
  padding-bottom: 20px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(110, 160, 255, 0.25);
  border-color: var(--accent);
}

.project-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0d142c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-info {
  flex: 1;
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  text-align: left;
  overflow: visible;
  height: auto;
}

.project-card h3 {
  font-size: 1.1rem;
  margin: 15px 0 5px;
  color: var(--text);
}

.project-card .project-industry {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ✅ FIX: Text expands downward */
.project-description {
  display: block;
  width: 100%;
  color: var(--muted);
  line-height: 1.6;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  max-height: 4.4em;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.project-description.expanded {
  max-height: 1000px;
  overflow: visible;
}

.read-more-btn {
  align-self: stretch;
  margin-top: 8px;
  background: #1b2145;
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.read-more-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0e1f;
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(155, 255, 214, 0.4);
}

.btn-primary {
  margin-top: 8px;
  width: 100%;
}

.load-more-container {
  text-align: center;
  margin-top: 40px;
}

#loadMoreBtn {
  padding: 10px 25px;
}

/* ===========================
   INDUSTRIES SECTION
=========================== */
.industries {
  background: linear-gradient(180deg, #0a0e1f, #0d132a);
  text-align: center;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 40px;
}
.industry-card {
  background: #101633;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.industry-card:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0e1f;
  transform: translateY(-5px);
}
.highlight {
  background: linear-gradient(135deg, #111936, #0d142c);
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  border-radius: 10px;
  display: inline-block;
}

/* ===========================
   PROCESS SECTION
=========================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.step-card {
  background: #101630;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}
.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(110, 160, 255, 0.2);
}
.callout-box {
  margin-top: 40px;
  background: #0f1733;
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 500;
}

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials {
  background: #0b1026;
  text-align: center;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  justify-items: center;
}
.testimonial {
  background: #111735;
  border-radius: 15px;
  padding: 25px;
  text-align: left;
  max-width: 420px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.testimonial:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(110, 160, 255, 0.2);
}
.testimonial-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
  border: 2px solid var(--accent);
  background: #0c1328;
}
.testimonial-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.testimonial span {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
}

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
  background: linear-gradient(180deg, #0a0e1f, #101735);
  text-align: center;
}
.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.cta-section p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 30px;
}
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0e1f;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(155, 255, 214, 0.4);
}
.btn-outline {
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
}

/* ===========================
   ANIMATIONS
=========================== */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease;
}
.reveal-up.show {
  opacity: 1;
  transform: translateY(0);
}
