/* ---------- Announcement ---------- */
.announcement {
  background: linear-gradient(135deg, #0a5cff, #4fa3ff, #00e1ff);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  text-align: center;
  overflow: hidden;
  margin-top: 1rem;
  border-radius: 10px;
  white-space: nowrap; /* prevent wrapping */
}

.pill {
  display: inline-flex;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(10,92,255,.12);
  font-weight: 700;
  border: 1px solid rgba(90,169,255,.3);
}

.announcement span {
  display: inline-block;
  padding-right: 3rem;
  animation: slideLeft 15s linear infinite;
  will-change: transform; /* smooth GPU animation */
}

@keyframes slideLeft {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 0 0;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1.1fr .9fr;
}
@media (max-width: 900px){
  .hero-grid { grid-template-columns: 1fr; }
}
.kicker { margin-bottom: 12px; }
h1 {
  margin:.25rem 0 .65rem;
  font-size: clamp(30px, 5vw, 52px);
  line-height:1.1;
}
.lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 60ch;
}
.cta-row { display:flex; gap:.85rem; flex-wrap:wrap; margin-top:18px; }
.note { color:var(--muted); font-size:.96rem; }

/* ---------- Hero Card ---------- */
.hero-card {
  position: relative;
  border-radius: var(--radius);
  height: 350px;
  width: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 6px;
  background: linear-gradient(135deg, rgba(10,92,255,0.22), transparent);
  opacity: 0;
  transition: opacity 0.5s ease, filter 0.5s ease;
  z-index: -1;
  filter: blur(25px);
}
.hero-card:hover::before {
  opacity: 1;
  animation: glowFlow 6s linear infinite;
  filter: blur(35px);
}
.hero-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.hero-card .hero-bg { position: relative; z-index: 2; }
.hero-card .hero-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.5s ease;
  animation: floatImage 4s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}
.hero-card:hover .hero-img {
  transform: translateY(-5px) scale(1.05);
}
@keyframes floatImage {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
@keyframes glowFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Services ---------- */
.services h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
}

.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.service-card {
  background: var(--card); /* UPDATED: Use theme variable */
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow); /* UPDATED: Use theme variable */
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease; /* IMPROVED: Smoother transitions */
  color: var(--text);
}

.service-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #0a5cff 0%, #4fa3ff 50%, #00e1ff 100%);
  color: #fff; /* ADDED: Ensures text is readable on hover */
}


/* ---------- Home CTA ---------- */
.home-cta {
  background: linear-gradient(135deg, #0a5cff 0%, #4fa3ff 50%, #00e1ff 100%);
  border-radius: 20px;
  margin: 4rem 2rem;
  padding: 3rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 70%);
  border-radius: inherit;
  z-index: 0;
}
.cta-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  font-weight: 700;
}
.cta-text p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: #fff;
  color: #0a5cff;
  padding: 0.9rem 2.2rem;
  font-weight: 700;
  border-radius: 12px;
  transition: 0.3s;
}
.btn-primary:hover {
  background: #e0f0ff;
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.3s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.cta-image img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 900px) {
  /* Announcement */
  .announcement {
    font-size: 0.9rem;
    padding: 0.35rem 0;
    margin: 0.5rem 0;
  }
  .announcement span {
    padding-right: 1.5rem;
    animation: slideLeft 12s linear infinite;
  }

  /* Hero */
  .hero { padding: 40px 1rem 0 1rem; }
  .hero-grid { gap: 20px; grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: clamp(26px, 6vw, 42px); }
  .lead { font-size: clamp(14px, 3vw, 17px); max-width: 100%; }
  .cta-row { justify-content: center; gap: 0.6rem; }

  /* Hero Card */
  .hero-card { height: 250px; width: 90%; margin: 0 auto; }
  .hero-card .hero-img { max-height: 100%; }

  /* Services */
  .service-grid { gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .service-card { padding: 1rem; }

  /* Home CTA */
  .home-cta { margin: 2rem 1rem; padding: 2rem 1rem; border-radius: 16px; }
  .cta-container { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .cta-text h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
  .cta-text p { font-size: clamp(1rem, 3vw, 1.15rem); margin-bottom: 1.5rem; }
  .cta-buttons { justify-content: center; gap: 0.8rem; }
  .cta-image { margin-top: 1.5rem; }
  .cta-image img { width: 100%; height: auto; }
}

@media (max-width: 500px) {
  .announcement { font-size: 0.8rem; padding: 0.3rem 0; }
  .announcement span {
    padding-right: 1rem;
    animation: slideLeft 10s linear infinite;
  }
}
