/* ============================================================
   Riyaan Infotech — one-page site
   Primary accent: #3383ff
   ============================================================ */

:root {
  --accent: #1c9cc1;
  --accent-600: #1789ab;
  --accent-700: #136f8c;
  --accent-soft: #e6f6fa;
  --ink: #0c1730;
  --body: #475069;
  --muted: #8a93a8;
  --bg: #ffffff;
  --bg-alt: #f5f8ff;
  --line: #e6ecf7;
  --radius: 18px;
  --shadow-sm: 0 6px 20px rgba(15, 41, 92, .06);
  --shadow-md: 0 18px 50px rgba(15, 41, 92, .12);
  --shadow-accent: 0 16px 38px rgba(28, 156, 193, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .brand-text {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
}

a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent-700); }

img { max-width: 100%; }

.text-accent { color: var(--accent); }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, #1bc5b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .7rem 1.5rem; transition: .25s ease; }
.btn-lg { padding: .9rem 2rem; }
.btn-sm { padding: .5rem 1.1rem; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { background: var(--accent-700); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------- Navbar ---------- */
.site-nav {
  padding: 1rem 0;
  transition: .3s ease;
  background: transparent;
  box-shadow: none;
}
.site-nav.scrolled {
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 41, 92, .12);
  padding: .5rem 0;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { height: 44px; width: auto; transition: .3s ease; }
.site-nav.scrolled .brand-logo { height: 40px; }
.brand-logo--footer { height: 46px; }

.site-nav .nav-link {
  color: var(--ink);
  font-weight: 600;
  padding: .5rem 1rem !important;
  border-radius: 999px;
  font-size: .98rem;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--accent); }

.navbar-toggler { border: none; padding: .4rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .bar {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: .3s;
}
.navbar-toggler .bar + .bar { margin-top: 5px; }

@media (max-width: 991px) {
  .navbar-collapse {
    background: #fff;
    margin-top: .8rem;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 13rem 0 8rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #f0fbfe 0%, var(--bg-alt) 45%, #ffffff 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

/* Soft drifting orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(28,156,193,.55), transparent 70%);
  top: -160px; left: -120px;
  animation: drift 16s ease-in-out infinite;
}
.orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle at 70% 70%, rgba(27,197,180,.5), transparent 70%);
  bottom: -180px; right: -120px;
  animation: drift 20s ease-in-out infinite reverse;
}
.orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(28,156,193,.32), transparent 70%);
  top: 30%; left: 55%;
  animation: drift 24s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(.96); }
}

/* Halo glow behind heading */
.halo {
  position: absolute;
  width: 680px; height: 680px;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(28,156,193,.18), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.halo::before, .halo::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(28,156,193,.18);
  animation: ripple 5.5s ease-out infinite;
}
.halo::after { animation-delay: 2.75s; }
@keyframes ripple {
  0%   { transform: scale(.55); opacity: 0; }
  35%  { opacity: .8; }
  100% { transform: scale(1.15); opacity: 0; }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(28,156,193,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,156,193,.07) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 600; font-size: .85rem;
  padding: .5rem 1.1rem; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(28,156,193,.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(28,156,193,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(28,156,193,0); }
  100% { box-shadow: 0 0 0 0 rgba(28,156,193,0); }
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  letter-spacing: -1.5px;
  margin-bottom: 1.3rem;
}
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, #1bc5b4 50%, var(--accent) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 220% center; }
}

.hero-lead {
  font-size: 1.18rem;
  max-width: 720px;
  margin: 0 auto 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-accent { position: relative; overflow: hidden; }
.hero-actions .btn-accent::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 70%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg);
  animation: sweep 3.5s ease-in-out infinite;
}
@keyframes sweep { 0%,60% { left: -120%; } 100% { left: 130%; } }

/* Entrance stagger */
.reveal-up { opacity: 0; transform: translateY(30px); animation: revealUp .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes revealUp { to { opacity: 1; transform: none; } }

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; }
.mouse {
  display: block; width: 26px; height: 42px;
  border: 2px solid var(--accent); border-radius: 14px;
  position: relative;
}
.wheel {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--accent); transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

@media (prefers-reduced-motion: reduce) {
  .orb, .halo::before, .halo::after, .grad-text, .pulse-dot, .wheel, .hero-actions .btn-accent::after, .reveal-up { animation: none !important; }
  .reveal-up { opacity: 1; transform: none; }
}

.hero-stats {
  display: flex; justify-content: center; gap: 1.2rem;
  margin-top: 3.5rem; flex-wrap: wrap;
}
.hero-stats .stat {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.8rem;
  min-width: 150px;
  box-shadow: var(--shadow-sm);
  transition: .3s ease;
}
.hero-stats .stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(28,156,193,.35); }
.hero-stats .stat-num {
  display: flex; align-items: baseline; justify-content: center;
  line-height: 1;
}
.hero-stats .num, .hero-stats .suf {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem; font-weight: 700;
  line-height: 1;
}
.hero-stats .num { color: var(--ink); }
.hero-stats .suf { color: var(--accent); }
.hero-stats small { color: var(--muted); font-weight: 500; margin-top: .45rem; white-space: nowrap; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  padding: 1.1rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 2rem;
  animation: scroll 26s linear infinite;
}
.marquee span {
  font-family: 'Poppins', sans-serif;
  color: #fff; font-weight: 600; font-size: 1.1rem;
  flex: 0 0 auto;
}
.marquee .dot { font-size: .4rem; color: var(--accent); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.sec-head { max-width: 720px; margin: 0 auto 3.5rem; }
.sec-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700; font-size: .8rem;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: .9rem;
}
.sec-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.sec-lead { font-size: 1.12rem; max-width: 640px; }

/* ---------- About ---------- */
.about-visual {
  position: relative;
  min-height: 380px;
}
.av-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
  width: 78%;
}
.av-card i {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 12px; font-size: 1.3rem; margin-bottom: 1rem;
}
.av-card h4 { font-size: 1.2rem; margin-bottom: .3rem; }
.av-card p { margin: 0; font-size: .95rem; }
.av-1 { position: relative; z-index: 2; }
.av-2 { position: relative; z-index: 2; margin-left: auto; margin-top: 1.2rem; }
.av-badge {
  position: absolute;
  right: 4%; top: 38%;
  z-index: 3;
  background: var(--accent);
  color: #fff;
  border-radius: 16px;
  padding: 1rem 1.3rem;
  text-align: center;
  box-shadow: var(--shadow-accent);
}
.av-badge .num, .av-badge span {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem; font-weight: 700; line-height: 1;
}
.av-badge small { display: block; font-size: .72rem; opacity: .85; margin-top: .2rem; }

.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.feature-list li {
  display: flex; gap: .7rem; align-items: flex-start;
  margin-bottom: .8rem; color: var(--ink); font-weight: 500;
}
.feature-list i { color: var(--accent); margin-top: .3rem; }

/* ---------- Services ---------- */
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  height: 100%;
  overflow: hidden;
  transition: .3s ease;
}
.service-card::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--accent), #8a5bff);
  transition: width .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.svc-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 14px; font-size: 1.5rem;
  margin-bottom: 1.3rem;
  transition: .3s ease;
}
.service-card:hover .svc-icon { background: var(--accent); color: #fff; }
.service-card h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.service-card h3 small {
  display: block; font-size: .78rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
  margin-top: .2rem;
}
.service-card p { margin: 0; font-size: .98rem; }
.svc-no {
  position: absolute; right: 1.3rem; top: 1.1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem; font-weight: 700; color: var(--line);
}
.service-cta { background: linear-gradient(160deg, var(--accent-soft), #fff); border-style: dashed; }

/* ---------- Why ---------- */
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  height: 100%;
  text-align: center;
  transition: .3s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card i {
  font-size: 2rem; color: var(--accent);
  margin-bottom: 1rem;
}
.why-card h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.why-card p { margin: 0; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-info { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.ci-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.ci-card i {
  flex: 0 0 auto;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 12px; font-size: 1.15rem;
}
.ci-card small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .72rem; }
.ci-card p { margin: .2rem 0 0; color: var(--ink); font-weight: 500; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}
.form-label { font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: .35rem; }
.form-label .opt { color: var(--muted); font-weight: 400; }
.form-control, .form-select {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .75rem 1rem;
  color: var(--ink);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(51, 131, 255, .12);
}
/* intl-tel-input — match Bootstrap form-control */
.iti { display: block; width: 100%; }
.iti .form-control { width: 100%; }
.iti--separate-dial-code .iti__selected-flag { border-radius: 12px 0 0 12px; background: var(--accent-soft); }
.iti__country-list { border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--ink); font-weight: 600; }

.form-counter { display: block; text-align: right; margin-top: .25rem; }
.form-status { font-weight: 600; }
.form-status.ok { color: #1aa251; }
.form-status.err { color: #d6336c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab4cc; padding-top: 1rem; }
.footer-brand .brand-text { color: #fff; }
.site-footer p { color: #aab4cc; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: .6rem; }
.footer-menu a { color: #aab4cc; transition: .2s; }
.footer-menu a:hover { color: var(--accent); padding-left: 4px; }
.footer-menu--icon li { display: flex; align-items: center; gap: .6rem; }
.footer-ico {
  color: #fff;
  font-size: .9rem;
  width: 16px; text-align: center;
  flex: 0 0 auto;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .92rem;
}

/* ---------- Scroll top ---------- */
.scroll-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-accent);
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: .3s ease;
  z-index: 90;
}
.scroll-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-700); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 575px) {
  .hero { padding: 9rem 0 4rem; }
  .hero-stats { gap: 2rem; }
  .contact-form { padding: 1.5rem; }
}
