/* ==========================================================================
   LOGIN CARE – Custom Stylesheet
   ========================================================================== */

/* ─── CSS Variables ───────────────────────────────────────────────────────── */
:root {
  --primary: #0066ff;
  --primary-dark: #0044cc;
  --secondary: #00d4ff;
  --navy: #0a0f1e;
  --navy-light: #0d1635;
  --success: #22c55e;
  --font-main: 'Poppins', sans-serif;
}

/* ─── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Hero Grid Background ────────────────────────────────────────────────── */
.hero-grid-bg {
  background-image:
    linear-gradient(rgba(0,102,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ─── Animations ──────────────────────────────────────────────────────────── */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes counter-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-pulse-slow { animation: pulse-slow 3s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ─── Clients Marquee ─────────────────────────────────────────────────────── */
.clients-marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clients-marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  padding: 8px 0;
}

.clients-marquee:hover { animation-play-state: paused; }

/* ─── Service Card ────────────────────────────────────────────────────────── */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.12);
}

/* ─── Counter ─────────────────────────────────────────────────────────────── */
.counter {
  font-variant-numeric: tabular-nums;
  transition: all 0.3s;
}

/* ─── Swiper Customization ────────────────────────────────────────────────── */
.swiper-button-prev, .swiper-button-next {
  width: 36px !important;
  height: 36px !important;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.swiper-button-prev::after, .swiper-button-next::after {
  font-size: 12px !important;
  color: #0066ff;
  font-weight: 900;
}

.swiper-pagination-bullet {
  background: white !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: #0066ff !important;
  transform: scale(1.2);
}

/* ─── Navigation Active ───────────────────────────────────────────────────── */
nav a.active {
  color: #0066ff;
  border-bottom-color: #0066ff;
}

/* ─── Forms ───────────────────────────────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #0066ff, #0044cc);
  color: white;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0055dd, #003399);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4);
}

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card {
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

/* ─── Line clamp ──────────────────────────────────────────────────────────── */
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ─── WhatsApp Float ──────────────────────────────────────────────────────── */
.whatsapp-float {
  animation: float 2s ease-in-out infinite;
}

/* ─── Sticky Header ───────────────────────────────────────────────────────── */
header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ─── Gaming Neon Glow ────────────────────────────────────────────────────── */
.neon-glow {
  box-shadow:
    0 0 5px rgba(168, 85, 247, 0.5),
    0 0 20px rgba(168, 85, 247, 0.3),
    0 0 40px rgba(168, 85, 247, 0.1);
}

/* ─── Admin Specific ──────────────────────────────────────────────────────── */
.admin-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.admin-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* ─── Image Auto-Fit Frames ───────────────────────────────────────────────── */
/* All images inside fixed-height containers fill the frame without distortion */
.img-frame {
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}
.img-frame img,
.service-card img,
.project-card img,
.client-logo-frame img,
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Service cards image area: fixed height */
.service-card .img-area {
  height: 180px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.service-card .img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .img-area img { transform: scale(1.05); }

/* Project cards */
.project-card .img-area {
  height: 200px;
  overflow: hidden;
}
.project-card .img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Client logos: contain (not cover) so logos don't get cropped */
.client-logo-frame {
  width: 120px;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Game thumbnails */
.game-thumb {
  height: 160px;
  overflow: hidden;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Banner/Promo images */
.banner-img-frame {
  height: 220px;
  overflow: hidden;
}
.banner-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Product images */
.product-img-frame {
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
}
.product-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Any card img by default: prevent stretching */
img { max-width: 100%; height: auto; }

/* ─── Print ───────────────────────────────────────────────────────────────── */
@media print {
  header, footer, .no-print { display: none !important; }
}

/* ─── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-grid-bg { display: none; }

  h1 { font-size: 1.875rem !important; line-height: 1.2 !important; }
}
