/* =========================================================
   RISHI ELECTRONICS - PREMIUM ANIMATED UI
   Paste BELOW your existing CSS
   ========================================================= */

:root{
  --re-blue:#1767ff;
  --re-cyan:#16c7ff;
  --re-yellow:#ffc400;
  --re-dark:#071426;
  --re-white:#fff;
}

/* Smooth website */
html{
  scroll-behavior:smooth;
}

body{
  overflow-x:hidden;
}

/* ================= HEADER ================= */

.header,
.site-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 4px 25px rgba(7,20,38,.08);
  transition:.3s ease;
}

/* ================= HERO ================= */

.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 85% 20%,rgba(23,103,255,.20),transparent 35%),
    radial-gradient(circle at 10% 80%,rgba(22,199,255,.16),transparent 35%),
    linear-gradient(135deg,#071426,#0b2040);
  color:#fff;
  min-height:650px;
  display:flex;
  align-items:center;
}

/* animated glow */
.hero::before{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  background:rgba(22,199,255,.14);
  filter:blur(30px);
  right:-100px;
  top:-120px;
  animation:heroGlow 6s ease-in-out infinite;
}

.hero::after{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  border-radius:50%;
  background:rgba(23,103,255,.12);
  filter:blur(35px);
  left:-100px;
  bottom:-100px;
  animation:heroGlow 8s ease-in-out infinite reverse;
}

@keyframes heroGlow{
  0%,100%{transform:scale(1) translate(0,0);}
  50%{transform:scale(1.25) translate(25px,-20px);}
}

/* ================= HERO IMAGE ================= */

.hero img,
.hero-media img,
.hero-image img{
  animation:tvFloat 4s ease-in-out infinite;
  filter:drop-shadow(0 25px 35px rgba(0,0,0,.35));
}

@keyframes tvFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-12px);}
}

/* ================= BUTTONS ================= */

.btn,
button,
.hero-actions a{
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.btn:hover,
.hero-actions a:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 12px 30px rgba(23,103,255,.28);
}

/* BOOK NOW */
.btn-book,
.book-now,
a[href*="book"]{
  position:relative;
  overflow:hidden;
}

.btn-book::after,
.book-now::after,
a[href*="book"]::after{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:80%;
  height:100%;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.55),
    transparent
  );
  transform:skewX(-20deg);
  animation:buttonShine 3s infinite;
}

@keyframes buttonShine{
  0%{left:-120%;}
  45%,100%{left:140%;}
}

/* ================= SERVICE CARDS ================= */

.service-card,
.services-grid > *,
.card{
  position:relative;
  border-radius:18px;
  transition:.35s cubic-bezier(.2,.8,.2,1);
  box-shadow:0 8px 25px rgba(7,20,38,.08);
  background:#fff;
}

.service-card:hover,
.services-grid > *:hover,
.card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 45px rgba(7,20,38,.15);
}

/* animated top line */
.service-card::before,
.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:0;
  height:3px;
  background:linear-gradient(90deg,var(--re-blue),var(--re-cyan));
  transition:.4s ease;
}

.service-card:hover::before,
.card:hover::before{
  width:100%;
}

/* ================= ICON ANIMATION ================= */

.service-card i,
.service-card svg,
.card i,
.card svg{
  transition:.35s ease;
}

.service-card:hover i,
.service-card:hover svg,
.card:hover i,
.card:hover svg{
  transform:rotate(-8deg) scale(1.15);
}

/* ================= SCROLL REVEAL ================= */

.animate-on-scroll{
  opacity:0;
  transform:translateY(35px);
  transition:opacity .7s ease,transform .7s ease;
}

.animate-on-scroll.visible{
  opacity:1;
  transform:translateY(0);
}

/* ================= FLOATING ACTION BUTTONS ================= */

.re-floating-actions{
  position:fixed;
  right:18px;
  bottom:20px;
  z-index:99999;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.re-floating-actions a{
  width:58px;
  height:58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff !important;
  text-decoration:none;
  font-size:24px;
  box-shadow:0 8px 25px rgba(0,0,0,.22);
  transition:.3s ease;
  animation:floatButton 2.8s ease-in-out infinite;
}

.re-floating-actions a:hover{
  transform:scale(1.15);
}

@keyframes floatButton{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-5px);}
}

/* Call */
.re-call{
  background:#1767ff;
}

/* WhatsApp */
.re-whatsapp{
  background:#20c968;
}

/* Book */
.re-book{
  background:#ffc400;
  color:#071426 !important;
}

/* ================= PULSE ================= */

.re-pulse{
  position:relative;
}

.re-pulse::before{
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:50%;
  border:2px solid currentColor;
  opacity:.5;
  animation:pulseRing 2s infinite;
}

@keyframes pulseRing{
  0%{
    transform:scale(.9);
    opacity:.7;
  }
  70%{
    transform:scale(1.35);
    opacity:0;
  }
  100%{
    opacity:0;
  }
}

/* ================= LOCATION BOX ================= */

.re-location-box{
  margin-top:15px;
  padding:14px 18px;
  border-radius:14px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(10px);
  color:#fff;
  display:none;
  animation:locationIn .5s ease;
}

.re-location-box.active{
  display:block;
}

@keyframes locationIn{
  from{
    opacity:0;
    transform:translateY(15px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ================= MOBILE ================= */

@media(max-width:768px){

  .hero{
    min-height:580px;
    padding:70px 18px 100px;
  }

  .hero h1{
    font-size:clamp(34px,9vw,52px);
    line-height:1.05;
  }

  .hero-actions{
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .hero-actions a,
  .hero-actions .btn{
    width:100%;
    text-align:center;
  }

  .re-floating-actions{
    right:12px;
    bottom:14px;
    gap:9px;
  }

  .re-floating-actions a{
    width:52px;
    height:52px;
    font-size:21px;
  }
}

/* ================= REDUCE MOTION ================= */

@media(prefers-reduced-motion:reduce){

  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
  }

}