/* =========================================
   SHUNYASTRA TECHNOLOGY PVT. LTD.
   Shared Stylesheet
   ========================================= */

/* =========================================
   3D ANIMATIONS & MOTION SYSTEM
   ========================================= */

/* --- Scroll Reveal base states --- */
.reveal {
  opacity: 0;
  transform: translateY(36px) perspective(600px) rotateX(7deg);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) perspective(600px) rotateX(0deg);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-55px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* --- Floating icon keyframe --- */
@keyframes shunyFloat {
  0%, 100% { transform: translateY(0px) rotateZ(0deg); }
  40%       { transform: translateY(-9px) rotateZ(4deg); }
  70%       { transform: translateY(-4px) rotateZ(-2deg); }
}

/* --- Pulse glow on accent CTA button --- */
@keyframes shunyPulse {
  0%   { box-shadow: 0 0 0 0   rgba(249,115,22,0.55); }
  65%  { box-shadow: 0 0 0 14px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0   rgba(249,115,22,0); }
}
.btn-accent {
  animation: shunyPulse 2.8s ease-out infinite;
}
.btn-accent:hover { animation: none; }

/* --- Animated gradient shimmer on stats bar --- */
.stats-bar {
  background: linear-gradient(270deg, #0f172a, #1e3a5f, #0f3460, #1e3a5f);
  background-size: 300% 300%;
  animation: statsGrad 8s ease infinite;
}
@keyframes statsGrad {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* --- Rotating border ring on pillar icon hover --- */
.pillar-card:hover .pillar-icon {
  animation: spinRing 1.2s linear infinite;
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- 3D depth on nav logo --- */
.nav-logo .logo-main {
  display: inline-block;
  transition: transform 0.3s ease;
}
.navbar:hover .logo-main {
  transform: perspective(300px) rotateY(-5deg);
}

/* --- Smooth page-hero entrance wave --- */
.page-hero {
  position: relative;
  isolation: isolate;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
#hero-canvas {
  filter: drop-shadow(0 16px 32px rgba(14,165,233,0.12));
}
.hero,
.page-hero {
  perspective: 1200px;
  isolation: isolate;
}
.hero-content,
.page-hero .container {
  transform-style: preserve-3d;
}

/* --- Mouse-follow spotlight panels --- */
.spotlight-panel {
  --spot-x: 50%;
  --spot-y: 50%;
}

/* --- Card glow border on hover --- */
.pillar-card:hover {
  border-color: transparent;
}
.pillar-card.vishwakraft:hover { box-shadow: 0 16px 48px rgba(124,58,237,0.25); }
.pillar-card.skyward:hover     { box-shadow: 0 16px 48px rgba(14,165,233,0.25); }
.pillar-card.rvp:hover         { box-shadow: 0 16px 48px rgba(16,185,129,0.25); }
.pillar-card.webdesign:hover   { box-shadow: 0 16px 48px rgba(249,115,22,0.25); }

/* --- Stat number pop-in --- */
.stat-num {
  display: inline-block;
  transition: transform 0.3s ease;
}
.stat-item:hover .stat-num {
  transform: perspective(200px) scale(1.15) translateZ(8px);
}

/* --- Hero pillar chip lift --- */
.hero-pillar-chip {
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), background 0.25s ease;
}
.hero-pillar-chip:hover {
  transform: perspective(500px) translateZ(18px) translateY(-4px);
  background: rgba(255,255,255,0.2) !important;
}

/* --- Scroll-reactive section depth --- */
.depth-section {
  transform: perspective(1200px) rotateX(var(--depth-rotate, 0deg)) translateY(var(--depth-lift, 0px));
  transform-origin: center top;
  transition: transform 0.18s ease-out;
  will-change: transform;
}
.section-alt.depth-section {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(30,58,95,0.04);
}

/* --- 3D card glints and orbital accent dots --- */
.card-3d-accent {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.card-3d-accent::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--glint-x, 50%) var(--glint-y, 50%), rgba(255,255,255,0.8), transparent 16%),
    linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.38), transparent 42%);
  transform: translateZ(24px);
  transition: opacity 0.35s ease;
}
.card-3d-accent:hover::after {
  opacity: 0.72;
}
.card-3d-accent.spotlight-panel::after {
  background:
    radial-gradient(circle at var(--spot-x, var(--glint-x, 50%)) var(--spot-y, var(--glint-y, 50%)), rgba(255,255,255,0.9), transparent 15%),
    linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.34), transparent 42%);
}
.card-orbit-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  right: 18px;
  top: 18px;
  pointer-events: none;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(249,115,22,0.7);
  opacity: 0;
  transform: translate3d(0, 0, 26px);
}
.card-3d-accent:hover .card-orbit-dot {
  opacity: 0.9;
  animation: cardOrbit 2.9s linear infinite;
  animation-delay: var(--orbit-delay, 0s);
}
.pillar-card.vishwakraft .card-orbit-dot { background: var(--vishwakraft); box-shadow: 0 0 18px rgba(124,58,237,0.65); }
.pillar-card.skyward .card-orbit-dot { background: var(--skyward); box-shadow: 0 0 18px rgba(14,165,233,0.65); }
.pillar-card.rvp .card-orbit-dot { background: var(--rvp); box-shadow: 0 0 18px rgba(16,185,129,0.65); }
.pillar-card.webdesign .card-orbit-dot { background: var(--webdesign); box-shadow: 0 0 18px rgba(249,115,22,0.65); }
@keyframes cardOrbit {
  0%   { transform: translate3d(0, 0, 26px) rotate(0deg) translateX(0); }
  25%  { transform: translate3d(-18px, 10px, 32px) rotate(90deg) translateX(3px); }
  50%  { transform: translate3d(-36px, 0, 26px) rotate(180deg) translateX(0); }
  75%  { transform: translate3d(-18px, -10px, 32px) rotate(270deg) translateX(3px); }
  100% { transform: translate3d(0, 0, 26px) rotate(360deg) translateX(0); }
}

/* --- Footer link underline slide --- */
.footer-col a {
  position: relative;
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.footer-col a:hover::after { width: 100%; }

/* --- Process step hover lift --- */
.process-step {
  transition: transform 0.3s ease;
}
.process-step:hover {
  transform: perspective(400px) translateZ(10px) translateY(-6px);
}
.process-step:hover .step-circle {
  border-color: var(--webdesign);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.15);
  transition: all 0.3s ease;
}

/* --- Ochi-inspired bold CTA stage, translated for Shunyastra --- */
.cta-section {
  position: relative;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  isolation: isolate;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(249,115,22,0.28), transparent 24%),
    radial-gradient(circle at 12% 80%, rgba(14,165,233,0.24), transparent 22%);
  pointer-events: none;
  z-index: -1;
}
.cta-section h2 {
  font-size: clamp(2.4rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cta-btns .btn {
  min-height: 52px;
}

/* --- CSS Variables --- */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8e;
  --accent: #f97316;
  --accent-hover: #ea6c0a;

  /* Pillar Colors */
  --vishwakraft: #7c3aed;
  --vishwakraft-light: #ede9fe;
  --skyward: #0ea5e9;
  --skyward-light: #e0f2fe;
  --rvp: #10b981;
  --rvp-light: #d1fae5;
  --webdesign: #f97316;
  --webdesign-light: #ffedd5;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(30,58,95,0.08);
  --shadow-hover: 0 8px 32px rgba(30,58,95,0.16);
  --transition: all 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-muted); line-height: 1.75; }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo .logo-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.nav-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: #f1f5f9;
}
.nav-links .nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 9px 18px;
  border-radius: 8px;
}
.nav-links .nav-cta:hover {
  background: var(--primary-light) !important;
  color: white !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white {
  background: white;
  color: var(--primary);
}
.btn-white:hover { background: #f1f5f9; }

/* --- Section Layout --- */
.section { padding: 80px 5%; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; color: var(--primary); }
.section-sub { font-size: 1.05rem; max-width: 600px; margin-bottom: 48px; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* --- Cards --- */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Pillar Card --- */
.pillar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.pillar-card.vishwakraft::before { background: var(--vishwakraft); }
.pillar-card.skyward::before { background: var(--skyward); }
.pillar-card.rvp::before { background: var(--rvp); }
.pillar-card.webdesign::before { background: var(--webdesign); }
.pillar-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}
.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.pillar-icon.vishwakraft { background: var(--vishwakraft-light); }
.pillar-icon.skyward { background: var(--skyward-light); }
.pillar-icon.rvp { background: var(--rvp-light); }
.pillar-icon.webdesign { background: var(--webdesign-light); }
.pillar-card h3 { color: var(--primary); font-size: 1.2rem; }
.pillar-card p { font-size: 0.9rem; }
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: auto;
  transition: var(--transition);
}
.pillar-link.vishwakraft { color: var(--vishwakraft); }
.pillar-link.skyward { color: var(--skyward); }
.pillar-link.rvp { color: var(--rvp); }
.pillar-link.webdesign { color: var(--webdesign); }
.pillar-link:hover { gap: 10px; }

/* --- Badge / Tag --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.tag-vishwakraft { background: var(--vishwakraft-light); color: var(--vishwakraft); }
.tag-skyward { background: var(--skyward-light); color: var(--skyward); }
.tag-rvp { background: var(--rvp-light); color: var(--rvp); }
.tag-webdesign { background: var(--webdesign-light); color: var(--webdesign); }
.tag-primary { background: #dbeafe; color: var(--primary); }

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 80px 5% 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: white;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero .section-label { color: rgba(255,255,255,0.7); }
.page-hero h1 { color: white; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; }

/* Service List */
.service-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.service-item:last-child { border-bottom: none; }
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.service-item h4 { margin-bottom: 4px; color: var(--primary); }
.service-item p { font-size: 0.875rem; }

/* Stats bar */
.stats-bar {
  background: var(--primary);
  padding: 48px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* --- Footer --- */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.8);
  padding: 60px 5% 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-main { font-size: 1.4rem; font-weight: 800; color: white; }
.footer-brand .logo-sub { font-size: 0.65rem; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-top: 16px; max-width: 280px; }
.footer-col h4 { color: white; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- Contact Form --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 60px 5%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 16px 5%; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .page-hero { padding: 60px 5% 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .depth-section,
  .card-3d-accent,
  .card-3d-accent::after,
  .card-orbit-dot {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
