/* === FUTURISTIC LIGHT THEME 2.0 === */
body {
  background: linear-gradient(135deg, #f8fbff, #e8f2ff);
  font-family: "Poppins", "Inter", sans-serif;
  overflow-x: hidden;
}

/* === Main Section Wrapper === */
#projects-preview.wrapper {
  padding: 3em 0 6em; /* top right/left bottom */
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(235,245,255,0.9));
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Animated shimmer for subtle motion */
#projects-preview.wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.4), rgba(200,230,255,0.3), rgba(240,240,255,0.4));
  animation: shimmer 18s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.container, section, footer {
  position: relative;
  z-index: 2;
}

/* === Headings === */
header.major h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  color: #0077b6;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1em;
  text-shadow: 0 0 5px #00c8f8;
}
header.major p {
  color: #333;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === Project Boxes (With Glow Design) === */
.box {
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  padding: 1.5em;
  margin: 1.5em auto;
  text-align: center;
  max-width: 500px;
  height: auto;        /* allow full height */

  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 
    0 0 20px rgba(0,119,255,0.05),
    inset 0 0 8px rgba(255,255,255,0.3);
  border: 1px solid rgba(0,119,255,0.15);
}

/* Outer glowing border ring */
.box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  filter: blur(10px);
}

/* Hover Effects */
.box:hover::before {
  opacity: 1;
}
.box:hover {
  transform: translateY(-8px);
  box-shadow:
    0 8px 25px rgba(0,119,255,0.15),
    0 0 30px rgba(0,200,255,0.2),
    inset 0 0 10px rgba(255,255,255,0.4);
}

/* === Images === */
.solution-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto 1em;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.5s ease, filter 0.5s ease;
  z-index: 2;
}
.solution-img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* === Titles === */
.box h3 {
  color: #002244;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.4em;
  z-index: 2;
}

/* === Text === */
.box p {
  color: #333;
  font-size: 0.92rem;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  z-index: 2;
}

/* === Buttons (Smaller & Sleek) === */
/* ======================= CTA BUTTONS ======================= */
.cta-btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #0077b6;
  background: rgba(255, 255, 255, 0.9);
  border: 1.8px solid rgba(0, 180, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.cta-btn:hover {
  background: linear-gradient(135deg, #e8f9ff, #f5fcff);
  color: #014f68;
  border-color: rgba(0, 180, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 180, 255, 0.15);
  transform: translateY(-3px);
}


.request-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}



/* === Footer === */
footer h3 {
  color: #003366;
  margin-bottom: 0.5em;
}
footer p {
  max-width: 700px;
  margin: 0 auto 1.5em;
}

/* === Request Section === */
.request-section {
  background: linear-gradient(135deg, #f3f8ff, #e9f5ff);
  text-align: center;
  padding: 5em 2em;
  color: #222;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.request-section h2 {
  font-size: 2rem;
  color: #002c5f;
  margin-bottom: 1em;
}
.request-section p {
  color: #333;
  max-width: 650px;
  margin: 0 auto 1em;
}
.request-section .cta-btn {
  margin: 0.7em;
}
.request-section .closing-line a {
  color: #0077ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,119,255,0.4);
  transition: color 0.3s;
}
.request-section .closing-line a:hover {
  color: #0044aa;
}

/* === Responsive === */
@media (max-width: 768px) {
  header.major h2 { font-size: 1.6rem; }
  .box { max-width: 100%; max-height: none; }
  .solution-img { max-height: 140px; }
  .button.primary, .cta-btn { font-size: 0.75rem; padding: 0.5em 1.2em; }
}

[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}


/* === Tablet & Mobile Responsive === */
@media (max-width: 1024px) {
  #projects-preview.wrapper {
    padding: 2.5em 1.5em 4em;
  }

  header.major h2 {
    font-size: 1.8rem;
  }

  header.major p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .box {
    padding: 1.2em;
    margin: 1.2em auto;
    max-width: 420px;
  }

  .solution-img {
    max-height: 180px;
  }

  .cta-btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
  }

  .request-section {
    padding: 4em 1.5em;
  }

  .request-section h2 {
    font-size: 1.8rem;
  }

  .request-section p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  #projects-preview.wrapper {
    padding: 2em 1em 3em;
  }

  header.major h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  header.major p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .box {
    padding: 1em;
    margin: 1em auto;
    max-width: 90%;
  }

  .solution-img {
    max-height: 140px;
  }

  .box h3 {
    font-size: 1rem;
  }

  .box p {
    font-size: 0.85rem;
    -webkit-line-clamp: 4;
  }

  .cta-btn {
    font-size: 0.75rem;
    padding: 0.5em 1.2em;
  }

  .request-section {
    padding: 3.5em 1em;
  }

  .request-section h2 {
    font-size: 1.6rem;
  }

  .request-section p {
    font-size: 0.9rem;
  }

  .request-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  #projects-preview.wrapper {
    padding: 1.5em 0.8em 2.5em;
  }

  header.major h2 {
    font-size: 1.3rem;
  }

  header.major p {
    font-size: 0.85rem;
  }

  .box {
    padding: 0.9em;
    margin: 0.9em auto;
    max-width: 95%;
  }

  .solution-img {
    max-height: 120px;
  }

  .box h3 {
    font-size: 0.95rem;
  }

  .box p {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
  }

  .cta-btn {
    font-size: 0.7rem;
    padding: 0.45em 1em;
  }

  .request-section {
    padding: 3em 0.8em;
  }

  .request-section h2 {
    font-size: 1.4rem;
  }

  .request-section p {
    font-size: 0.85rem;
  }

  .request-buttons {
    gap: 0.8rem;
  }
}
