/* =========================================================
   Elevate Media – Updated Styles (responsive + animations)
   ========================================================= */

:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --brand:#0775e8;
  --brand-2:#00ffff;
  --surface:#ffffff;
  --surface-2:#f9fafb;
  --ring: rgba(7,117,232,.28);
  --radius:16px;

  /* Type scale */
  --fs-hero: clamp(2rem, 5vw + 0.5rem, 4rem);
  --fs-h2: clamp(1.6rem, 3vw + 0.4rem, 3.4rem);
  --fs-h2-xl: clamp(2rem, 4vw + 0.6rem, 4rem);
  --fs-h3: clamp(1.05rem, 1.5vw + 0.6rem, 1.4rem);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
  line-height:1.6;
}

/* --------- Preloader --------- */
.preloader{
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: #ffffff;
  transition: opacity .7s ease;
}
.preloader-logo{ width: 120px; height:auto; animation: scalePulse 1.4s ease-in-out infinite; }
body.is-loaded .preloader{ opacity: 0; pointer-events: none; }
@keyframes scalePulse{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.06); }
}

/* Reveal animation (clean & subtle) */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-in{ opacity: 1; transform: translateY(0); }

.container{width:min(1400px, 95%); margin-inline:auto}
.text-gradient{
  background-image: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.section{padding: 56px 0}
.section-title{
  font-size: var(--fs-h2);
  margin: 0 0 28px;
  text-align:center;
}
.section-title--xl{ font-size: var(--fs-h2-xl); letter-spacing: -0.02em; }

/* ---------- Navbar ---------- */
#navbar{
  display:flex; justify-content: center; align-items:center;
  padding: 14px 40px;
  position: sticky; top:0; z-index:1000;
  font-size: 40px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
#navbar.shrink{ padding: 6px 28px; box-shadow: 0 4px 14px rgba(0,0,0,0.12) }
.logo img{
  width:auto; height: 125px;
  padding-top: 10px;
  transition: height 0.3s ease;
}
#navbar.shrink .logo img{ height: 75px }

/* ---------- Banner ---------- */
.banner{
  background-image: url("images/banner.jpg");
  background-size: cover;
  background-position: center 35%;
  background-color: #0b1229; /* fallback color */
  min-height: 360px;
  display:flex; align-items:center; justify-content:center;
  text-align:center; color:#fff;
  padding: 60px 0;
}
.banner-title{
  font-size: var(--fs-hero);
  margin:0;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* ---------- Client Logos ---------- */
.client-logos{
  --gap: 40px; --height: 110px; --speed: 90s;
  background:#fff; padding: 18px 0;
}
.client-logos__viewport{ overflow:hidden; width:100%; position:relative }
.client-logos__track{
  display:inline-flex; align-items:center; gap:var(--gap);
  list-style:none; padding:0; margin:0; width:max-content;
  animation: logos-scroll var(--speed) linear infinite;
  will-change: transform;
}
.client-logos__track li{ flex:0 0 auto }
.client-logos__track img{ height:var(--height); width:auto; max-width:200px; object-fit:contain; display:block; padding:10px; background:transparent; box-sizing:border-box }
@keyframes logos-scroll{ from{transform: translateX(0)} to{ transform: translateX(-50%)} }
@media (max-width: 600px){ .client-logos{ --height: 88px; --gap: 36px; --speed: 70s }}

/* ---------- Services ---------- */
#services{ background: var(--surface-2) }
.services-grid{ display:grid; grid-template-columns: 1fr; gap: 16px }
.service-card{
  background:var(--surface); padding: 20px; border-radius:12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card h3{ font-size: var(--fs-h3); margin: 10px 0 }
.service-card p{ color: var(--muted); margin: 0 }
.service-card:hover{ transform: translateY(-6px); box-shadow: 0 12px 20px rgba(0,0,0,.12) }
.service-card .service-media{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: -4px -4px 12px;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}
.service-card .service-media img{
  width: 100%; height: 100%;
  object-fit: cover; display:block;
  transition: transform .35s ease;
}
.service-card:hover .service-media img{ transform: scale(1.04); }
@media (min-width: 700px){ .services-grid{ grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 1024px){ .services-grid{ grid-template-columns: repeat(4, 1fr) } }
/* ---------- Why Us ---------- */
.section-why{ background:#fff }
.features-grid{ display:grid; gap: 14px; grid-template-columns: 1fr 1fr }
.feature{ background: var(--surface); border-radius: 12px; padding: 18px 14px; text-align:center; box-shadow: 0 4px 10px rgba(0,0,0,.05) }
.feature-icon{ width: 72px; height: 72px; object-fit: contain; color: #0775e8; }
.feature h3{ margin: 10px 0 0; font-size: 1.1rem }
@media (min-width: 700px){ .features-grid{ grid-template-columns: repeat(4, 1fr) } }

/* ---------- Our Work ---------- */
.work-section .work-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px){
  .work-section .work-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px){
  /* 4 videos on one row on desktop */
  .work-section .work-grid{ grid-template-columns: repeat(4, 1fr); }
}
.work-card{
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}
.work-media{ position: relative; }
.tiktok-video{
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display:block;
  background: #000;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.view-tag{
  position: absolute;
  top: 10px; right: 10px;
  font-size: 13px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.work-caption{
  margin: 10px 12px 14px;
  color: var(--muted);
  font-size: 16px;
}
.work-hint{
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Contact (pre-footer) ---------- */
.contact-prefooter .contact-card{
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
.contact-prefooter .contact-brand{ text-align:center; margin-bottom: 18px; }
.contact-prefooter .contact-logo{ height: 70px; width:auto; display:block; margin: 0 auto 8px; }
.contact-prefooter .contact-title{ margin: 6px 0 2px; }
.contact-prefooter .contact-subtitle{ margin: 0; color: var(--muted); }
.contact-prefooter .contact-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}
@media (min-width: 700px){
  .contact-prefooter .contact-grid{ grid-template-columns: repeat(3, 1fr); }
}
.contact-item{
  display:flex; align-items:flex-start; gap: 12px;
  padding: 14px; border-radius: 12px;
  background: var(--surface-2);
}
.contact-item i{ font-size: 22px; color: black; margin-top: 2px }
.contact-label{ margin:0 0 4px; font-weight: 600; }
.contact-item a{ color: var(--text); text-decoration: none; }
.contact-item a:hover{ text-decoration: underline; }

/* ---------- Redesigned Footer ---------- */
.site-footer{
  background: radial-gradient(1200px 400px at 50% -200px, rgba(7,117,232,.15), transparent), #0b1229;
  color:#eef2ff;
  margin-top: 40px;
}
.footer-grid{
  display:grid; gap: 28px; align-items:start;
  grid-template-columns: 1fr;
  padding: 32px 0;
}
.footer-col .footer-heading{ font-weight:800; margin: 0 0 10px }
.footer-tagline{ color: #c7d2fe; margin: 10px 0 0; }
.footer-col a{ color:#eef2ff; text-decoration: none; }
.footer-col a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.footer-logo{ width: 140px; height:auto; display:block; }
.footer-socials{ display:flex; gap:16px; }
.footer-socials i{ font-size: 22px; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container{ padding: 14px 0; }
.footer-bottom p{ margin: 0; color:#c7d2fe; font-size: 14px; text-align:center; }
@media (min-width: 860px){
  .footer-grid{ grid-template-columns: 1.2fr 1fr auto; }
  .footer-col.brand{ display:flex; gap:14px; align-items:center; }
}

@media (prefers-reduced-motion: reduce){
  .client-logos__track{ animation: none }
  .service-card, .reveal{ transition: none !important }
  .preloader-logo{ animation: none !important }
}
