/*
Theme Name: VijjuTech
Theme URI: https://vijjutech.com/
Author: VijjuTech
Author URI: https://vijjutech.com/
Description: Lightweight, fast-loading Modern SaaS & Utility Portal WordPress theme with Royal Blue & Slate White palette, bilingual EN | తెలుగు toggle, Exam & Photo Tools, Job Alerts, Kids Zone, AI Prompts, and Apps showcase.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vijjutech
Tags: custom-logo, custom-menu, one-column, two-columns, education, utilities
*/

:root {
  --vt-royal: #1d4ed8;
  --vt-royal-hover: #1e40af;
  --vt-slate-bg: #f8fafc;
  --vt-surface: #ffffff;
  --vt-border: #e2e8f0;
  --vt-text: #0f172a;
  --vt-muted: #475569;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans Telugu', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--vt-slate-bg);
  color: var(--vt-text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

body.lang-te {
  font-family: 'Noto Sans Telugu', 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.text-balance {
  text-wrap: balance;
}

/* WordPress Custom Logo containment */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-logo {
  max-height: 36px;
  width: auto;
  height: auto;
  display: block;
}

/* Responsive YouTube & WordPress Block Embeds */
.vijju-post-content iframe,
.wp-block-embed iframe {
  max-width: 100%;
  border-radius: 0.75rem;
}

.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
}

.wp-block-embed-youtube .wp-block-embed__wrapper iframe,
.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Desktop WordPress Primary Menu styling */
.vijju-nav-desktop {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vijju-nav-desktop li {
  margin: 0;
  padding: 0;
}

.vijju-nav-desktop a {
  display: inline-block;
  padding: 0.375rem 0.25rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.vijju-nav-desktop a:hover,
.vijju-nav-desktop .current-menu-item > a,
.vijju-nav-desktop .current_page_item > a {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

/* Mobile WordPress Primary Menu styling */
.vijju-nav-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vijju-nav-mobile a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  color: #334155;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.vijju-nav-mobile a:hover,
.vijju-nav-mobile .current-menu-item > a,
.vijju-nav-mobile .current_page_item > a {
  background-color: #eff6ff;
  color: #1d4ed8;
}

/* WordPress Accessibility Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #ffffff;
  clip: auto !important;
  clip-path: none;
  color: #1d4ed8;
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 12px 18px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

/* First-Visit 3D Animated VijjuTech SVG Logo Intro -> Smooth Header Dock */
.vijju-splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.vijju-splash-overlay.is-docking {
  pointer-events: none;
}

.vijju-splash-overlay.is-done {
  display: none;
}

.vijju-splash-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, #f8fafc 0%, #e2e8f0 100%);
  transition: opacity 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vijju-splash-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 37, 69, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 37, 69, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 45%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black 25%, transparent 80%);
  transition: opacity 400ms ease;
}

.vijju-splash-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.vijju-splash-overlay.is-docking .vijju-splash-bg,
.vijju-splash-overlay.is-docking .vijju-splash-grid,
.vijju-splash-overlay.is-docking .vijju-splash-particles,
.vijju-splash-overlay.is-docking .vijju-splash-copy,
.vijju-splash-overlay.is-docking .vijju-splash-shadow,
.vijju-splash-overlay.is-docking .vijju-splash-skip {
  opacity: 0;
}

.vijju-splash-stage {
  position: relative;
  z-index: 2;
  perspective: 1400px;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vijju-splash-emblem {
  position: relative;
  width: 240px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

@media (min-width: 640px) {
  .vijju-splash-emblem {
    width: 310px;
    height: 260px;
  }
}

.vijju-splash-emblem.is-docking-logo {
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1), opacity 380ms ease;
}

.vijju-header-logo-hidden {
  opacity: 0 !important;
}

.vt3d-svg-layer {
  transform-box: fill-box;
  transform-origin: center center;
}

/* Step 1: Open Book / T Wings Fold Open */
.vt3d-book-left {
  opacity: 0;
  transform-origin: right bottom;
  transform: perspective(700px) rotateY(75deg) rotateX(25deg) scale(0.75);
  animation: vt3dBookLeftReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.vt3d-book-right {
  opacity: 0;
  transform-origin: left bottom;
  transform: perspective(700px) rotateY(-75deg) rotateX(25deg) scale(0.75);
  animation: vt3dBookRightReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards;
}

@keyframes vt3dBookLeftReveal {
  0% { opacity: 0; transform: perspective(700px) rotateY(75deg) rotateX(25deg) scale(0.75); }
  100% { opacity: 1; transform: perspective(700px) rotateY(0deg) rotateX(0deg) scale(1); }
}

@keyframes vt3dBookRightReveal {
  0% { opacity: 0; transform: perspective(700px) rotateY(-75deg) rotateX(25deg) scale(0.75); }
  100% { opacity: 1; transform: perspective(700px) rotateY(0deg) rotateX(0deg) scale(1); }
}

/* Step 2: Faceted Graduation Cap Drop + Pendulum Tassel Swing */
.vt3d-cap {
  opacity: 0;
  transform-origin: center 65%;
  transform: translateY(-55px) perspective(800px) rotateX(45deg) scale(0.86);
  animation: vt3dCapDrop 0.85s cubic-bezier(0.34, 1.48, 0.64, 1) 0.55s forwards;
}

@keyframes vt3dCapDrop {
  0% { opacity: 0; transform: translateY(-55px) perspective(800px) rotateX(45deg) scale(0.86); }
  65% { opacity: 1; transform: translateY(4px) perspective(800px) rotateX(-6deg) scale(1.02); }
  100% { opacity: 1; transform: translateY(0px) perspective(800px) rotateX(0deg) scale(1); }
}

.vt3d-tassel {
  opacity: 0;
  transform-origin: 112px 134px;
  transform: rotate(28deg);
  animation: vt3dTasselSwing 1.6s cubic-bezier(0.25, 0.85, 0.35, 1) 0.85s forwards;
}

@keyframes vt3dTasselSwing {
  0% { opacity: 0; transform: rotate(26deg); }
  20% { opacity: 1; transform: rotate(-16deg); }
  45% { opacity: 1; transform: rotate(10deg); }
  70% { opacity: 1; transform: rotate(-5deg); }
  88% { opacity: 1; transform: rotate(2deg); }
  100% { opacity: 1; transform: rotate(0deg); }
}

/* Step 3: Glowing Cyan Circuit Self-Draw & Nodes Pop */
.vt3d-circuit-stroke {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  opacity: 0;
  animation: vt3dDrawCircuit 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

@keyframes vt3dDrawCircuit {
  0% { opacity: 0.2; stroke-dashoffset: 180; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}

.vt3d-circuit-node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.vt3d-node-1 { animation: vt3dNodePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.32s forwards; }
.vt3d-node-2 { animation: vt3dNodePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.40s forwards; }
.vt3d-node-3 { animation: vt3dNodePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.48s forwards; }
.vt3d-node-4 { animation: vt3dNodePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.54s forwards; }
.vt3d-node-5 { animation: vt3dNodePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.60s forwards; }
.vt3d-node-6 { animation: vt3dNodePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.66s forwards; }

@keyframes vt3dNodePop {
  0% { opacity: 0; transform: scale(0); }
  70% { opacity: 1; transform: scale(1.32); }
  100% { opacity: 1; transform: scale(1); }
}

/* Step 4: Upward Cyan V Growth Arrow Shoot + Glossy Light Sweep */
.vt3d-arrow {
  opacity: 0;
  transform-origin: 215px 255px;
  transform: translate(-34px, 38px) scale(0.55);
  animation: vt3dArrowShoot 0.75s cubic-bezier(0.22, 1.25, 0.36, 1) 1.5s forwards;
}

@keyframes vt3dArrowShoot {
  0% { opacity: 0; transform: translate(-34px, 38px) scale(0.55); }
  68% { opacity: 1; transform: translate(4px, -5px) scale(1.03); }
  100% { opacity: 1; transform: translate(0px, 0px) scale(1); }
}

.vt3d-sheen {
  transform: translateX(-420px);
  animation: vt3dLightSweep 1.15s cubic-bezier(0.25, 1, 0.5, 1) 1.95s forwards;
}

@keyframes vt3dLightSweep {
  0% { transform: translateX(-420px); }
  100% { transform: translateX(480px); }
}

/* Step 5: 'vijjutech' 3D Letter Flip-Up + Tagline + Shadow */
.vijju-splash-copy {
  text-align: center;
  margin-top: 4px;
  transition: opacity 300ms ease;
}

.vt3d-wordmark {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  display: inline-flex;
  justify-content: center;
  perspective: 900px;
  user-select: none;
  font-size: 42px;
  line-height: 1;
}

@media (min-width: 640px) {
  .vt3d-wordmark {
    font-size: 58px;
  }
}

.vt3d-letter {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 85%;
  transform: rotateX(-95deg) translateY(24px) scale(0.85);
  color: #0b2545;
  text-shadow: 0 1px 0 #143b6b, 0 2px 0 #091d36, 0 6px 14px rgba(11, 37, 69, 0.18);
  animation: vt3dLetterFlipUp 0.65s cubic-bezier(0.22, 1.32, 0.36, 1) forwards;
  animation-delay: calc(1.95s + (var(--i) * 0.055s));
}

@keyframes vt3dLetterFlipUp {
  0% { opacity: 0; transform: rotateX(-95deg) translateY(24px) scale(0.85); }
  100% { opacity: 1; transform: rotateX(0deg) translateY(0px) scale(1); }
}

.vt3d-tagline {
  opacity: 0;
  transform: translateY(10px);
  letter-spacing: 0.28em;
  animation: vt3dTaglineReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.55s forwards;
}

@keyframes vt3dTaglineReveal {
  0% { opacity: 0; transform: translateY(10px); letter-spacing: 0.38em; }
  100% { opacity: 1; transform: translateY(0px); letter-spacing: 0.26em; }
}

.vijju-splash-shadow {
  width: 210px;
  height: 20px;
  border-radius: 50%;
  margin-top: 20px;
  background: radial-gradient(ellipse at center, rgba(11, 37, 69, 0.22) 0%, rgba(11, 37, 69, 0) 72%);
  filter: blur(6px);
  transform: rotateX(75deg);
  transition: opacity 300ms ease;
}

.vijju-splash-skip {
  transition: opacity 250ms ease, background-color 150ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .vijju-splash-overlay {
    display: none !important;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
