/* =====================================================
   1. VARIABLES & GLOBAL STYLES
===================================================== */

:root {
  /* Main theme */
  --bg: #07111f;
  --text: #ffffff;
  --muted: #aab4c3;
  --card: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #4cc9ff;
  --secondary: #7b61ff;

  /* Aurora design */
  --aurora-cyan: #4cc9ff;
  --aurora-violet: #8b5cf6;
  --aurora-mint: #5eead4;
  --aurora-glow: rgba(76, 201, 255, 0.14);
  --surface-blur: 18px;
  --transition-smooth: 240ms ease;
}

body.light {
  --bg: #f4f7fb;
  --text: #101827;
  --muted: #596579;
  --card: rgba(255, 255, 255, 0.75);
  --border: rgba(0, 0, 0, 0.1);
}

/* Global reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;

  background: var(--bg);
  color: var(--text);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  transition:
    background 0.4s ease,
    color 0.4s ease;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  color: #07111f;
  background: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* =====================================================
   2. AURORA BACKGROUND
===================================================== */

body::before,
body::after {
  content: "";
  position: fixed;

  width: min(48vw, 620px);
  aspect-ratio: 1;

  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;

  pointer-events: none;
  z-index: -1;

  animation: aurora-float 18s ease-in-out infinite alternate;
}

body::before {
  top: -18%;
  left: -15%;
  background: var(--aurora-cyan);
}

body::after {
  right: -18%;
  bottom: -25%;
  background: var(--aurora-violet);
  animation-delay: -8s;
}

body.light::before,
body.light::after {
  opacity: 0.09;
}

/* Particle canvas */

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;

  z-index: -1;
  pointer-events: none;
}

/* =====================================================
   3. HEADER & NAVIGATION
===================================================== */

header {
  position: fixed;
  top: 14px;
  left: 5%;
  right: 5%;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  min-height: 68px;
  padding: 12px 22px;

  background: rgba(7, 17, 31, 0.78);
  border: 1px solid rgba(76, 201, 255, 0.16);
  border-radius: 18px;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transition:
    background var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

body.light header {
  background: rgba(244, 247, 251, 0.85);
  border-color: rgba(76, 125, 180, 0.18);
  box-shadow: 0 12px 35px rgba(30, 50, 80, 0.08);
}

/* Logo */

.logo {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo::after {
  content: ".";
  color: var(--accent);
}

/* Desktop navigation */

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  position: relative;
  overflow: hidden;

  padding: 10px 13px;
  border-radius: 10px;

  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;

  transition:
    color var(--transition-smooth),
    background var(--transition-smooth),
    transform var(--transition-smooth);
}

nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;

  height: 2px;
  border-radius: 10px;
  background: var(--accent);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform var(--transition-smooth);
}

nav a:hover,
nav a.active {
  color: var(--accent);
  background: var(--card);
}

nav a:hover {
  transform: translateY(-1px);
}

nav a:hover::after {
  transform: scaleX(1);
}

/* Mobile menu button */

.menu {
  display: none;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

/* Theme toggle */

.theme-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;

  width: 42px;
  height: 42px;
  padding: 0;

  border: 1px solid var(--border);
  border-radius: 13px;

  color: var(--text);
  background: var(--card);
  font-size: 1.15rem;

  cursor: pointer;

  transition:
    transform var(--transition-smooth),
    border-color var(--transition-smooth),
    background var(--transition-smooth);
}

.theme-btn:hover {
  transform: translateY(-2px) rotate(5deg);
  border-color: var(--accent);
}

/* =====================================================
   4. HERO SECTION
===================================================== */

.hero {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 120px 20px 60px;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 850px;
  margin-inline: auto;
}

/* Profile photo */

.profile-wrapper {
  position: relative;

  width: 180px;
  height: 180px;
  margin: 0 auto 30px;

  filter: drop-shadow(0 12px 30px var(--aurora-glow));
}

.profile-wrapper::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;

  border-radius: 50%;

  background: linear-gradient(
    135deg,
    var(--aurora-cyan),
    var(--aurora-violet),
    var(--aurora-mint),
    var(--aurora-cyan)
  );

  background-size: 250% 250%;

  animation:
    glow 7s ease-in-out infinite,
    rotate 18s linear infinite;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  border: 5px solid var(--bg);
  border-radius: 50%;

  transition: transform 0.4s ease;
}

.profile-wrapper:hover .profile-photo {
  transform: scale(1.035);
}

/* Profile animations */

@keyframes rotate {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Hero heading */

.hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.7rem, 8vw, 5rem);
}

.hero-title {
  margin-bottom: 18px;

  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 800;

  text-wrap: balance;
  text-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.hero-title span {
  display: block;

  background: linear-gradient(
    100deg,
    var(--aurora-cyan),
    var(--aurora-violet),
    var(--aurora-mint),
    var(--aurora-cyan)
  );

  background-size: 240% auto;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: aurora-text 9s linear infinite;

  filter: drop-shadow(0 0 18px rgba(76, 201, 255, 0.1));
}

body.light .hero-title span {
  filter: none;
}

@keyframes aurora-text {
  to {
    background-position: 240% center;
  }
}

/* Typing animation text */

.typing {
  min-height: 1.5em;

  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Hero description */

.hero-description {
  max-width: 600px;
  margin: 20px auto;

  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.9;

  text-wrap: pretty;
}

/* =====================================================
   5. DIGITAL CLOCK
===================================================== */

.clock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  width: fit-content;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 16px 28px;

  text-align: center;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);

  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.clock-card:hover {
  border-color: rgba(76, 201, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(76, 201, 255, 0.08);
}

.clock-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.clock-dot {
  flex-shrink: 0;

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #32d583;
  box-shadow: 0 0 10px rgba(50, 213, 131, 0.5);
}

.clock-card .clock {
  margin-top: 0;

  color: var(--accent);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

.clock-zone {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* =====================================================
   6. BUTTONS
===================================================== */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: inline-block;
  margin-top: 25px;
  padding: 14px 30px;

  border: 0;
  border-radius: 50px;

  color: white;
  background: linear-gradient(45deg, var(--accent), var(--secondary));
  background-size: 200% 200%;

  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;

  box-shadow: 0 8px 24px rgba(76, 201, 255, 0.12);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-position 0.4s ease;
}

.btn:hover {
  transform: translateY(-5px);
  background-position: 100% 50%;
  box-shadow: 0 12px 30px rgba(76, 201, 255, 0.2);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.hero .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
}

/* =====================================================
   7. GENERAL SECTIONS & HEADINGS
===================================================== */

section {
  padding: 90px 8%;
}

.title {
  position: relative;

  width: fit-content;
  margin: 0 auto 35px;

  font-size: 2rem;
  letter-spacing: -0.7px;
  text-align: center;
}

.title::after {
  content: "";
  display: block;

  width: 54px;
  height: 3px;
  margin: 12px auto 0;

  border-radius: 10px;

  background: linear-gradient(
    90deg,
    var(--aurora-cyan),
    var(--aurora-violet),
    var(--aurora-mint)
  );
}

.section-description {
  max-width: 650px;
  margin: -20px auto 35px;

  color: var(--muted);
  line-height: 1.7;
}

/* =====================================================
   8. ABOUT SECTION & CARDS
===================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.card {
  padding: 30px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);

  opacity: 0;
  transform: translateY(50px);

  transition:
    opacity 0.8s ease,
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: rgba(76, 201, 255, 0.35);
  box-shadow: 0 14px 40px rgba(76, 201, 255, 0.07);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

/* About section icons */

#about .card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

#about .card h3 i {
  width: 24px;

  color: var(--accent);
  font-size: 1.15rem;
  text-align: center;

  transition:
    transform var(--transition-smooth),
    color var(--transition-smooth);
}

#about .card:hover h3 i {
  transform: translateY(-3px) scale(1.1);
  color: var(--secondary);
}

/* Counters */

.counter {
  margin-bottom: 8px;

  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 700;
}

/* =====================================================
   9. PROJECTS
===================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  overflow: hidden;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);

  opacity: 0;
  transform: translateY(40px);

  transition:
    opacity 0.8s ease,
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.project-card.show {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(76, 201, 255, 0.35);
  box-shadow: 0 14px 40px rgba(76, 201, 255, 0.07);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;

  background: #111827;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.55);

  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay a {
  padding: 11px 20px;

  border-radius: 30px;
  background: var(--accent);

  color: #07111f;
  font-weight: 700;
  text-decoration: none;
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  margin-bottom: 10px;
}

.project-content p {
  margin-bottom: 18px;

  color: var(--muted);
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 6px 10px;

  border-radius: 20px;
  background: rgba(76, 201, 255, 0.1);

  color: var(--accent);
  font-size: 0.8rem;
}

/* =====================================================
   10. SOCIAL LINKS
===================================================== */

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 13px 18px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--card);
  color: var(--text);
  text-decoration: none;

  transition:
    transform 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.socials i {
  font-size: 1.3rem;
}

.socials a:hover {
  transform: translateY(-4px);
  color: var(--accent);
  border-color: var(--accent);
  background: var(--card);
}

/* Preserve tap behavior for social links */

.social-links a {
  -webkit-tap-highlight-color: transparent;
}

/* =====================================================
   11. CONTACT FORM
===================================================== */

.contact-container {
  max-width: 700px;
  margin: auto;
}

.contact-form {
  padding: clamp(20px, 4vw, 34px);

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;

  color: var(--muted);
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;

  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;

  background: rgba(0, 0, 0, 0.15);
  color: var(--text);
  font-size: 1rem;

  transition:
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth),
    background 0.25s ease;
}

body.light .form-group input,
body.light .form-group textarea {
  background: rgba(255, 255, 255, 0.65);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--aurora-cyan);
  box-shadow: 0 0 0 3px rgba(76, 201, 255, 0.1);
}

.submit-btn {
  position: relative;
  overflow: hidden;

  width: 100%;
  padding: 14px;

  border: 0;
  border-radius: 10px;

  color: white;
  background: linear-gradient(45deg, var(--accent), var(--secondary));
  background-size: 200% 200%;

  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-position 0.4s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 12px 30px rgba(76, 201, 255, 0.2);
}

.form-message {
  display: none;
  margin-top: 15px;

  color: var(--accent);
  text-align: center;
}

/* =====================================================
   12. FOOTER
===================================================== */

footer {
  padding: 24px 16px;

  border-top: 1px solid var(--border);

  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.8;
}

.footer-heart {
  color: var(--accent);
}

.footer-name {
  color: var(--text);
  font-weight: 600;
}

.footer-separator {
  margin: 0 5px;
  color: var(--accent);
}

/* =====================================================
   13. TABLET & MOBILE NAVIGATION
===================================================== */

@media (max-width: 768px) {
  /* Header */

  header {
    top: 8px;
    left: 3%;
    right: 3%;

    min-height: 60px;
    padding: 10px 14px;
    gap: 12px;
  }

  .logo {
    font-size: 1.3rem;
  }

  /* Animated hamburger button */

  .menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    order: 3;
    flex-shrink: 0;

    width: 42px;
    height: 42px;
    padding: 8px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--card);
  }

  .menu span {
    display: block;
    width: 19px;
    height: 2px;

    border-radius: 5px;
    background: var(--text);

    transition:
      transform 0.3s ease,
      opacity 0.2s ease;
  }

  .menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu.active span:nth-child(2) {
    opacity: 0;
  }

  .menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile navigation dropdown */

  nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;

    padding: 12px;

    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 13px;
    text-align: center;
  }

  nav a::after {
    display: none;
  }

  .theme-btn {
    order: 2;
    margin-left: auto;
  }

  /* Hero */

  .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.8rem);
  }

  .profile-wrapper {
    width: 145px;
    height: 145px;
  }

  /* General sections */

  section {
    padding: 70px 6%;
  }

  /* Cards and forms */

  .card,
  .project-card,
  .contact-form {
    border-radius: 17px;
  }

  /* Admin dropdown on mobile */

  #mainNav .admin-nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #mainNav .admin-nav-trigger {
    width: 100%;
  }

  #mainNav .admin-nav-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
  }
}

/* =====================================================
   14. SMALL-SCREEN RESPONSIVE STYLES
===================================================== */

@media (max-width: 600px) {
  /* Aurora background */

  body::before,
  body::after {
    width: 85vw;
    filter: blur(75px);
    opacity: 0.08;
  }

  /* Hero */

  .hero-title {
    letter-spacing: -1.2px;
  }

  .clock-card {
    padding: 14px 22px;
  }

  /* Projects */

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-image {
    height: 190px;
  }

  /* Section spacing */

  section {
    padding-right: 6%;
    padding-left: 6%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 115px;
  }

  .hero-description {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .clock-card {
    padding: 14px 18px;
  }

  .clock-label {
    font-size: 0.62rem;
    letter-spacing: 1px;
  }

  .clock-zone {
    font-size: 0.7rem;
  }

  .hero .btn {
    padding: 13px 22px;
  }

  .grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .project-content {
    padding: 22px;
  }
}

/* =====================================================
   15. ADMIN NAVIGATION DROPDOWN
===================================================== */

#mainNav .admin-nav-dropdown {
  position: relative;

  display: inline-flex;
  align-items: center;
}

#mainNav .admin-nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 9px 12px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: transparent;
  color: var(--text);
  font: inherit;

  cursor: pointer;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

#mainNav .admin-nav-trigger:hover,
#mainNav .admin-nav-trigger[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(76, 201, 255, 0.07);
}

#mainNav .admin-nav-chevron {
  font-size: 0.7em;
  transition: transform 0.25s ease;
}

#mainNav .admin-nav-trigger[aria-expanded="true"] .admin-nav-chevron {
  transform: rotate(180deg);
}

#mainNav .admin-nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 2000;

  display: none;
  flex-direction: column;
  gap: 5px;

  width: 200px;
  padding: 8px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--card);

  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);

  backdrop-filter: blur(var(--surface-blur));
  -webkit-backdrop-filter: blur(var(--surface-blur));
}

#mainNav .admin-nav-dropdown.open .admin-nav-menu {
  display: flex;
}

#mainNav .admin-nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 11px 12px;

  border-radius: 9px;

  color: var(--text);
  text-decoration: none;
  white-space: nowrap;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

#mainNav .admin-nav-menu a:hover {
  color: var(--accent);
  background: rgba(76, 201, 255, 0.09);
}

#mainNav .admin-nav-menu a i {
  width: 18px;

  color: var(--accent);
  text-align: center;
}

#mainNav .admin-nav-trigger:focus-visible,
#mainNav .admin-nav-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =====================================================
   16. ACCESSIBILITY — REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.message-counter {
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary, #9ca3af);
  margin-top: 6px;
}
