/*
Theme Name: Raniyod Tech
Theme URI: https://raniyodtech.com
Author: Raniyod Tech
Author URI: https://raniyodtech.com
Description: Premium animated business theme with a hero carousel, service and testimonial sliders, glass navbar, colour customiser, built-in SEO meta and a contact form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: raniyodtech
*/

:root {
  --rt-primary: #4f46e5;
  --rt-accent: #ec4899;
  --rt-cyan: #06b6d4;
  --rt-dark: #0f172a;
  --rt-light: #f8fafc;
  --rt-radius: 18px;
  --rt-grad: linear-gradient(135deg, var(--rt-primary), var(--rt-accent));
}

body {
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }
img { max-width: 100%; height: auto; }

/* ---------- Navbar ---------- */
.rt-nav { padding: 14px 0; transition: all .35s ease; }
.rt-nav.scrolled {
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  padding: 8px 0;
}
.rt-nav .navbar-brand { color: #fff; font-size: 1.4rem; font-weight: 700; }
.rt-nav .navbar-brand i { color: var(--rt-cyan); }
.rt-nav .navbar-brand img { max-height: 52px; width: auto; }
.rt-nav .nav-link { color: #e2e8f0 !important; font-weight: 500; position: relative; }
.rt-nav .nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--rt-cyan), var(--rt-accent)); transition: width .3s;
}
.rt-nav .nav-link:hover::after,
.rt-nav .current-menu-item > .nav-link::after { width: 100%; }
.rt-nav .navbar-toggler { border: none; color: #fff; }
.rt-nav .navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991px) {
  .rt-nav { background: rgba(15, 23, 42, .96); }
}

/* ---------- Buttons ---------- */
.btn-rt {
  background: var(--rt-grad); color: #fff; border: none; font-weight: 600;
  border-radius: 50px; padding: 10px 22px; transition: transform .25s, box-shadow .25s;
}
.btn-rt:hover, .btn-rt:focus { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 25px rgba(236, 72, 153, .35); }

/* ---------- Hero carousel ---------- */
.rt-hero .swiper, .rt-hero .swiper-slide { height: 100vh; min-height: 580px; }
.rt-hero .swiper-slide {
  background-size: cover; background-position: center;
  display: flex; align-items: center; position: relative;
}
.rt-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, .92) 0%, rgba(79, 70, 229, .6) 60%, rgba(236, 72, 153, .45) 100%);
}
.rt-hero-content { position: relative; z-index: 2; color: #fff; padding-top: 80px; }
.rt-hero-content h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.15; }
.rt-hero-content h1 span {
  background: linear-gradient(90deg, #67e8f9, #f9a8d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rt-hero-content p { font-size: 1.1rem; opacity: .9; max-width: 560px; }
.rt-eyebrow {
  display: inline-block; padding: 8px 16px; border-radius: 50px;
  background: rgba(255, 255, 255, .15); color: #fff; font-weight: 600; margin-bottom: 16px;
}
.swiper-slide-active .rt-anim { animation: rtUp 1s ease both; }
.swiper-slide-active .rt-anim:nth-child(2) { animation-delay: .2s; }
.swiper-slide-active .rt-anim:nth-child(3) { animation-delay: .4s; }
.swiper-slide-active .rt-anim:nth-child(4) { animation-delay: .6s; }
@keyframes rtUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.swiper-pagination-bullet { width: 34px; height: 4px; border-radius: 4px; background: #fff; opacity: .5; }
.swiper-pagination-bullet-active { background: var(--rt-accent); opacity: 1; width: 44px; }
.swiper-button-next, .swiper-button-prev {
  color: #fff; background: rgba(255, 255, 255, .12); width: 52px; height: 52px;
  border-radius: 50%; backdrop-filter: blur(6px);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px; }

/* ---------- Shared sections ---------- */
.rt-section { padding: 90px 0; }
.rt-soft-bg { background: linear-gradient(180deg, #f8fafc, #eef2ff); }
.rt-badge {
  display: inline-block; padding: 8px 16px; border-radius: 50px;
  background: rgba(79, 70, 229, .12); color: var(--rt-primary); font-weight: 600; margin-bottom: 14px;
}
.rt-section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
.rt-page-wrap { padding: 140px 0 90px; min-height: 70vh; }

/* ---------- Stats ---------- */
.rt-stats { background: var(--rt-dark); color: #fff; padding: 70px 0; }
.rt-stat {
  padding: 26px 10px; border-radius: var(--rt-radius); text-align: center;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .3s, background .3s;
}
.rt-stat:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .09); }
.rt-stat h3 {
  font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(90deg, var(--rt-cyan), var(--rt-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rt-stat p { margin: 0; opacity: .8; }

/* ---------- Service cards ---------- */
.rt-service-card {
  height: 100%; padding: 34px 28px; border-radius: var(--rt-radius);
  background: #fff; border: 1px solid #e2e8f0; position: relative; overflow: hidden;
  transition: transform .4s, box-shadow .4s;
}
.rt-service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--rt-primary), var(--rt-accent), var(--rt-cyan));
  transform: scaleX(0); transform-origin: left; transition: transform .5s;
}
.rt-service-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(79, 70, 229, .18); }
.rt-service-card:hover::before { transform: scaleX(1); }
.rt-service-icon {
  width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.9rem; color: #fff; margin-bottom: 18px; background: var(--rt-grad);
  box-shadow: 0 10px 25px rgba(236, 72, 153, .3); animation: rtFloat 3.5s ease-in-out infinite;
}
@keyframes rtFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.rt-price { font-weight: 700; color: var(--rt-primary); }

/* ---------- Feature cards ---------- */
.rt-feature-card {
  height: 100%; padding: 30px; border-radius: var(--rt-radius); background: #fff; text-align: center;
  box-shadow: 0 8px 25px rgba(15, 23, 42, .06); transition: all .35s;
}
.rt-feature-card i {
  font-size: 2.4rem; display: inline-block; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--rt-cyan), var(--rt-primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rt-feature-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 20px 40px rgba(6, 182, 212, .2); }
.rt-feature-card p { color: #64748b; margin: 0; }

/* ---------- Testimonials ---------- */
.rt-testi-card {
  max-width: 640px; margin: 0 auto; padding: 40px; border-radius: 24px; text-align: center;
  background: linear-gradient(135deg, #fff, #f5f3ff); border: 1px solid #e0e7ff;
  box-shadow: 0 20px 40px rgba(79, 70, 229, .1);
}
.rt-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-size: 2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--rt-accent), var(--rt-primary));
}
.rt-testi-card .quote { font-style: italic; color: #475569; }
.rt-testi-card .name { font-weight: 700; margin: 12px 0 0; color: var(--rt-primary); }
.rt-testi-card .meta { font-size: .9rem; color: #94a3b8; }
.rt-testi-swiper .swiper-pagination-bullet { background: var(--rt-primary); opacity: .3; width: 12px; height: 12px; border-radius: 50%; }
.rt-testi-swiper .swiper-pagination-bullet-active { opacity: 1; width: 12px; }

/* ---------- Areas ---------- */
.rt-area {
  display: block; text-align: center; padding: 18px 12px; border-radius: 16px; background: #fff;
  border: 1px solid #e2e8f0; font-weight: 600; color: #1e293b; transition: all .3s;
}
.rt-area i { display: block; font-size: 1.6rem; color: var(--rt-accent); margin-bottom: 6px; }
.rt-area:hover { background: var(--rt-grad); color: #fff; transform: scale(1.05); }
.rt-area:hover i { color: #fff; }

/* ---------- Contact ---------- */
.rt-contact-info div { margin-bottom: 14px; font-size: 1.05rem; }
.rt-contact-info i { color: var(--rt-accent); margin-right: 10px; font-size: 1.2rem; }
.rt-contact-form { background: #fff; border-radius: 24px; box-shadow: 0 25px 60px rgba(15, 23, 42, .12); }
.rt-contact-form .form-control,
.rt-contact-form .form-select { padding: 13px 16px; border-radius: 12px; border: 1px solid #e2e8f0; }
.rt-contact-form .form-control:focus,
.rt-contact-form .form-select:focus { border-color: var(--rt-primary); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }

/* ---------- Content pages ---------- */
.rt-content { font-size: 1.05rem; line-height: 1.8; }
.rt-post-card {
  height: 100%; background: #fff; border-radius: var(--rt-radius); overflow: hidden;
  box-shadow: 0 8px 25px rgba(15, 23, 42, .07); transition: transform .35s, box-shadow .35s;
}
.rt-post-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(79, 70, 229, .15); }
.rt-post-card img { width: 100%; height: 220px; object-fit: cover; }

/* ---------- Steps ---------- */
.rt-step span {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--rt-primary), var(--rt-cyan));
  box-shadow: 0 10px 25px rgba(79, 70, 229, .3);
}
.rt-step:hover span { animation: rtPulse 1s infinite; }
@keyframes rtPulse { 0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .5); } 100% { box-shadow: 0 0 0 20px rgba(79, 70, 229, 0); } }

/* ---------- WhatsApp float ---------- */
.rt-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 1.8rem; background: #25d366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45); animation: rtWa 2s infinite;
}
.rt-whatsapp:hover { color: #fff; }
@keyframes rtWa { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }

/* ---------- Footer ---------- */
.rt-footer {
  color: #cbd5e1; position: relative; overflow: hidden; padding: 70px 0 24px;
  background: linear-gradient(120deg, var(--rt-dark), #1e1b4b, #3b0764, var(--rt-dark));
  background-size: 300% 300%; animation: rtFooter 12s ease infinite;
}
@keyframes rtFooter { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.rt-footer::before, .rt-footer::after {
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  filter: blur(80px); opacity: .25; z-index: 0;
}
.rt-footer::before { background: var(--rt-cyan); top: -120px; left: -80px; animation: rtBlob 9s ease-in-out infinite; }
.rt-footer::after { background: var(--rt-accent); bottom: -120px; right: -80px; animation: rtBlob 11s ease-in-out infinite reverse; }
@keyframes rtBlob { 50% { transform: translate(60px, 40px) scale(1.15); } }
.rt-footer .container { position: relative; z-index: 1; }
.rt-footer h5, .rt-footer h6 { color: #fff; }
.rt-footer h6 { margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.rt-footer h6::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--rt-cyan), var(--rt-accent)); transition: width .4s;
}
.rt-footer h6:hover::after { width: 80px; }
.rt-footer-text { color: #94a3b8; }
.rt-footer-links { list-style: none; padding: 0; margin: 0; }
.rt-footer-links li { margin-bottom: 10px; }
.rt-footer-links a { color: #cbd5e1; text-decoration: none; display: inline-block; transition: all .3s; }
.rt-footer-links a:hover { color: #fff; transform: translateX(8px); }
.rt-footer-links i { color: var(--rt-cyan); margin-right: 8px; }
.rt-footer hr { border-color: rgba(255, 255, 255, .1); }
.rt-social a {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-right: 8px;
  color: #fff; background: rgba(255, 255, 255, .08); transition: all .35s; text-decoration: none;
}
.rt-social a:hover { background: var(--rt-grad); transform: translateY(-5px) rotate(360deg); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.rt-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.rt-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive & accessibility ---------- */
@media (max-width: 991px) {
  .rt-hero .swiper, .rt-hero .swiper-slide { min-height: 90vh; height: auto; }
  .rt-hero-content { padding: 120px 0 90px; }
  .rt-section { padding: 70px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rt-reveal { opacity: 1; transform: none; }
}
