/* ===================================
   Projects Page — SrankTech
=================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #4742a3;
  --card:     #0f0f1c;
  --border:   rgba(255,255,255,.08);
  --text:     #fff;
  --muted:    rgba(255,255,255,.6);
  --primary:  #818cf8;
  --secondary:#c084fc;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #03020a; }
::-webkit-scrollbar-thumb { background: #6c63ff; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4a47a3; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  min-height: 420px;
  background: linear-gradient(297deg, #401f82, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-glow-1 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,170,225,0.1) 0%, transparent 65%);
  top: -200px; left: -150px;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,170,225,0.07) 0%, transparent 65%);
  bottom: -150px; right: -100px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #27aae1;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-eyebrow-line {
  width: 36px; height: 1px;
  background: #27aae1;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(25px, 5.5vw, 52px);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.hero h1 .grad {
  display: block;
  font-size: clamp(30px, 8vw, 76px);
  text-transform: none;
  letter-spacing: -3px;
  line-height: 1.1;
  margin-top: 6px;
  background: linear-gradient(95deg, #27aae1 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
  max-width: 420px;
  margin: 26px auto 0;
}

/* ══════════════════════════════
   PROJECTS SECTION
══════════════════════════════ */
.section-wrap {
  padding: 50px 20px;
  background: #f3f2f8;
}

h2.page-heading {
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  color: #222;
  letter-spacing: -1px;
}

.products-wrapper {
  display: flex;
  gap: 50px;
  max-width: 1250px;
  margin: 0 auto;
}

.product-box {
  position: relative;
  width: 50%;
  border-radius: 14px;
  overflow: hidden;
  background: #7e78c0;
  display: flex;
  flex-direction: column;
}

.box-title {
  background: #2b4197;
  color: #9696fd;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  padding: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(17,18,127,0.2);
  flex-shrink: 0;
}

/* ── Mosaic ── */
.mosaic-wrap {
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #d6d5da;
  border: 1px solid rgba(0,0,0,0.05);
}

.mosaic-grid {
  position: absolute;
  top: -40px; left: -40px; right: -40px; bottom: -40px;
  transform: rotate(-12deg);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px 0;
}

.mosaic-row {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.mosaic-row img {
  width: auto;
  height: 82px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
  opacity: 0.88;
}

@keyframes slideLeft {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-80px); }
  100% { transform: translateX(0); }
}

@keyframes slideRight {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(80px); }
  100% { transform: translateX(0); }
}

.mosaic-row:nth-child(odd)  { animation: slideLeft  10s ease-in-out infinite; }
.mosaic-row:nth-child(even) { animation: slideRight 10s ease-in-out infinite; }

/* ── Contact Button ── */
.contact-btn {
  position: absolute;
  bottom: 14px; right: 16px;
  z-index: 10;
  background: rgba(13,12,24,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(99,102,241,0.45);
  border-radius: 999px;
  padding: 7px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #a5b4fc;
  letter-spacing: 0.5px;
  transition: background 0.2s, border-color 0.2s;
}

.contact-btn:hover {
  background: #fff;
  color: #0c647f;
  font-weight: 800;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .products-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .product-box {
    width: 100%;
  }

  .mosaic-wrap {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .section-wrap {
    padding: 36px 14px;
  }

  h2.page-heading {
    font-size: 26px;
  }

  .box-title {
    font-size: 15px;
    letter-spacing: 1.5px;
  }

  .mosaic-wrap {
    height: 180px;
  }

  .mosaic-row img {
    height: 64px;
  }
}