/*
Theme Name: Academic Care Unified
Theme URI: https://example.com/academic-care-unified
Author: OpenAI Codex
Author URI: https://openai.com/
Description: Dynamic WordPress theme for Academic, Admission, Job Preparation, and Skill Development platform.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: academic-care-unified
*/

:root {
  --acu-night: #09111f;
  --acu-mint: #13b79a;
  --acu-ember: #f97316;
  --acu-steel: #5b6472;
  --acu-surface: rgba(255, 255, 255, 0.78);
  --acu-line: rgba(148, 163, 184, 0.2);
  --acu-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --acu-shadow: 0 24px 70px rgba(9, 17, 31, 0.12);
}

html {
  scroll-padding-top: 136px;
}

body {
  overflow-x: hidden;
  background-color: #f8fcfb;
  color: var(--acu-night);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 10%, rgba(19, 183, 154, 0.08), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 252, 251, 0.94));
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 82%);
  pointer-events: none;
}

::selection {
  background: rgba(19, 183, 154, 0.2);
  color: var(--acu-night);
}

main section,
article,
[data-card],
a,
button {
  transition:
    transform 0.45s var(--acu-ease),
    box-shadow 0.45s var(--acu-ease),
    border-color 0.35s var(--acu-ease),
    background-color 0.35s var(--acu-ease),
    color 0.35s var(--acu-ease),
    opacity 0.35s var(--acu-ease);
}

article,
[data-card] {
  --card-x: 50%;
  --card-y: 50%;
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  isolation: isolate;
}

article::before,
[data-card]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(19, 183, 154, 0.28), rgba(255, 255, 255, 0.15), rgba(249, 115, 22, 0.24));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--acu-ease);
  pointer-events: none;
}

article::after,
[data-card]::after {
  content: "";
  position: absolute;
  inset: -25%;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--card-x) var(--card-y), rgba(19, 183, 154, 0.16), transparent 22%),
    radial-gradient(circle at calc(var(--card-x) - 18%) calc(var(--card-y) + 8%), rgba(249, 115, 22, 0.12), transparent 26%);
  opacity: 0;
  transition: opacity 0.45s var(--acu-ease);
  pointer-events: none;
  z-index: -1;
}

article:hover::before,
article:hover::after,
[data-card]:hover::before,
[data-card]:hover::after {
  opacity: 1;
}

body.academic-care-motion-theme a:hover,
body.academic-care-motion-theme button:hover {
  box-shadow: 0 18px 38px rgba(9, 17, 31, 0.08);
}

.premium-typing-shell {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  min-height: 1.2em;
  padding-right: 0.08em;
}

.premium-typing-word {
  display: inline-block;
  min-width: 10ch;
  background: linear-gradient(135deg, var(--acu-mint), #5eead4 55%, var(--acu-ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 26px rgba(19, 183, 154, 0.16));
}

.premium-typing-cursor {
  width: 1px;
  align-self: stretch;
  background: rgba(19, 183, 154, 0.9);
  box-shadow: 0 0 18px rgba(19, 183, 154, 0.55);
  animation: acuBlink 1s steps(1) infinite;
}

.acu-magnetic {
  will-change: transform;
}

.acu-nav-open {
  box-shadow: var(--acu-shadow);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

@keyframes acuBlink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .premium-typing-word {
    min-width: auto;
  }
}

body.acu-smooth-scroll-active {
  overscroll-behavior-y: none;
}

body.acu-smooth-scroll-active::-webkit-scrollbar {
  width: 12px;
}

body.acu-smooth-scroll-active::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.82);
}

body.acu-smooth-scroll-active::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(19, 183, 154, 0.92), rgba(9, 17, 31, 0.92));
  box-shadow: 0 8px 22px rgba(9, 17, 31, 0.16);
}