/* Shared dark cosmic theme and reference-matched About composition. */

body.site-dark-theme {
  --background-color: #020814;
  --default-color: rgba(225, 233, 247, 0.82);
  --heading-color: #ffffff;
  --surface-color: rgba(7, 17, 36, 0.76);
  --contrast-color: #ffffff;
  --nav-color: rgba(255, 255, 255, 0.84);
  --nav-hover-color: var(--accent-color);
  --nav-mobile-background-color: #071225;
  --nav-dropdown-background-color: #09152a;
  --nav-dropdown-color: rgba(255, 255, 255, 0.82);
  --nav-dropdown-hover-color: var(--accent-color);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--default-color);
  background: #020814;
}

.site-dark-theme > .header,
.site-dark-theme > .main,
.site-dark-theme > .footer,
.site-dark-theme > .scroll-top,
.site-dark-theme > #preloader {
  position: relative;
  z-index: 2;
}

.site-dark-theme > .header {
  position: fixed;
}

.site-cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(15, 66, 162, 0.22), transparent 29%),
    radial-gradient(circle at 78% 16%, rgba(8, 45, 111, 0.21), transparent 31%),
    radial-gradient(circle at 58% 77%, rgba(255, 94, 16, 0.055), transparent 24%),
    linear-gradient(124deg, #010510 0%, #020a19 47%, #06142d 100%);
}

.site-cosmic-bg::before,
.site-cosmic-bg::after,
.site-cosmic-bg span {
  position: absolute;
  pointer-events: none;
}

.site-cosmic-bg::before {
  content: "";
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(circle, rgba(67, 126, 255, 0.76) 1px, transparent 1.6px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 16% 14%, #000 0, transparent 42%), radial-gradient(circle at 84% 70%, #000 0, transparent 44%);
  -webkit-mask-image: radial-gradient(circle at 16% 14%, #000 0, transparent 42%);
  animation: cosmic-grid-drift 25s linear infinite alternate;
}

.site-cosmic-bg::after {
  content: "";
  inset: -20%;
  background: radial-gradient(360px circle at var(--pointer-x, 50%) var(--pointer-y, 30%), rgba(36, 97, 220, 0.11), transparent 72%);
}

.cosmic-grid {
  inset: 0;
  opacity: 0.14;
  background:
    linear-gradient(rgba(58, 112, 212, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 112, 212, 0.16) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.cosmic-orbit {
  width: min(54vw, 780px);
  aspect-ratio: 1;
  border: 1px solid rgba(60, 123, 245, 0.13);
  border-radius: 50%;
  animation: cosmic-orbit-spin 28s linear infinite;
}

.cosmic-orbit::before,
.cosmic-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.cosmic-orbit::before {
  inset: 9%;
  border: 1px solid rgba(42, 99, 213, 0.09);
}

.cosmic-orbit::after {
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #ff681d;
  box-shadow: 0 0 8px #ff681d, 0 0 24px rgba(255, 104, 29, 0.72);
}

.cosmic-orbit-one { top: -20%; right: -14%; }
.cosmic-orbit-two { bottom: -30%; left: -15%; width: min(48vw, 690px); animation-direction: reverse; animation-duration: 34s; }
.cosmic-orbit-three { top: 37%; right: 15%; width: min(33vw, 470px); opacity: 0.56; animation-duration: 22s; }

.cosmic-spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff681d;
  box-shadow: 0 0 7px #ff681d, 0 0 20px rgba(255, 104, 29, 0.66);
  animation: cosmic-spark-float 7.5s ease-in-out infinite;
}

.spark-one { top: 9%; left: 14%; }
.spark-two { top: 28%; right: 10%; width: 6px; height: 6px; animation-delay: -2s; }
.spark-three { top: 56%; left: 4%; width: 10px; height: 10px; animation-delay: -4s; }
.spark-four { top: 73%; right: 15%; animation-delay: -1.2s; }
.spark-five { bottom: 7%; left: 36%; width: 6px; height: 6px; animation-delay: -5.4s; }
.spark-six { top: 43%; left: 67%; width: 5px; height: 5px; animation-delay: -3.1s; }

.site-dark-theme .site-light-field {
  z-index: 1;
  opacity: 0.62;
  mix-blend-mode: screen;
  background:
    radial-gradient(330px circle at var(--pointer-x) var(--pointer-y), rgba(255, 107, 26, 0.055), transparent 71%),
    radial-gradient(220px circle at calc(var(--pointer-x) + 70px) calc(var(--pointer-y) + 50px), rgba(42, 103, 235, 0.07), transparent 74%);
}

.site-dark-theme .section,
.site-dark-theme .light-background,
.site-dark-theme .dark-background {
  --background-color: transparent;
  --default-color: rgba(225, 233, 247, 0.82);
  --heading-color: #ffffff;
  --surface-color: rgba(7, 17, 36, 0.76);
  color: var(--default-color);
  background: transparent;
}

.site-dark-theme .section-title h1,
.site-dark-theme .section-title h2,
.site-dark-theme .section-title p,
.site-dark-theme .section-title .description-title,
.site-dark-theme .standard-page-heading {
  color: #ffffff;
}

.site-dark-theme .header {
  border-bottom: 1px solid rgba(123, 157, 219, 0.1);
  background: rgba(2, 8, 20, 0.68) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.site-dark-theme.scrolled .header {
  background: rgba(2, 8, 20, 0.9) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.site-dark-theme .navmenu a,
.site-dark-theme .navmenu a:focus {
  color: var(--nav-color) !important;
}

.site-dark-theme .navmenu a:hover,
.site-dark-theme .navmenu .active,
.site-dark-theme .navmenu .active:focus {
  color: #ff681d !important;
}

.site-dark-theme .mobile-nav-toggle {
  color: #ffffff !important;
  border: 1px solid rgba(132, 161, 216, 0.24) !important;
  background: rgba(7, 18, 39, 0.78) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.site-dark-theme .navmenu .dropdown ul {
  border: 1px solid rgba(118, 151, 215, 0.16);
  background: rgba(7, 18, 38, 0.98);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36);
}

.site-dark-theme .footer {
  color: rgba(221, 230, 246, 0.72);
  border-top: 1px solid rgba(118, 151, 215, 0.13);
  background: rgba(2, 8, 20, 0.76);
  backdrop-filter: blur(14px);
}

.site-dark-theme .footer h4,
.site-dark-theme .footer strong,
.site-dark-theme .footer .sitename {
  color: #ffffff;
}

.site-dark-theme .footer .copyright {
  border: 1px solid rgba(118, 151, 215, 0.14);
  background: rgba(7, 17, 36, 0.84);
}

.site-dark-theme :is(
  .service-item,
  .portfolio-card,
  .profile-card,
  .info-item,
  .contact-form,
  .php-email-form,
  .details-card,
  .project-info,
  .service-box,
  .policy-card,
  .privacy-content,
  .terms-content,
  .content-section,
  .sidebar,
  .testimonial-card,
  .workflow-item,
  .feature-item,
  .cta-box
) {
  color: rgba(225, 233, 247, 0.82);
  border-color: rgba(118, 151, 215, 0.16) !important;
  background: linear-gradient(145deg, rgba(8, 20, 43, 0.82), rgba(3, 10, 23, 0.68)) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.23);
  backdrop-filter: blur(14px);
}

.site-dark-theme :is(input, textarea, select) {
  color: #ffffff !important;
  border-color: rgba(118, 151, 215, 0.2) !important;
  background: rgba(2, 9, 21, 0.78) !important;
}

.site-dark-theme :is(input, textarea)::placeholder { color: rgba(205, 216, 236, 0.48); }

/* About: reference composition */
.site-dark-theme .about-showcase {
  min-height: 100svh;
  padding: 110px 0 86px;
  overflow: hidden;
}

.site-dark-theme.index-page .about-showcase { padding-top: 88px; }
.site-dark-theme .about-standalone { padding-top: 126px; }

.site-dark-theme .about-showcase::before {
  top: 4%;
  right: -13%;
  width: 720px;
  height: 720px;
  opacity: 0.72;
  background: repeating-radial-gradient(circle, transparent 0 31px, rgba(48, 108, 226, 0.085) 32px 33px);
  mask-image: linear-gradient(to left, #000, transparent 82%);
  -webkit-mask-image: linear-gradient(to left, #000, transparent 82%);
}

.site-dark-theme .about-intro {
  width: min(1420px, calc(100% - 48px));
  max-width: none;
  margin-bottom: 28px;
  text-align: center;
}

.site-dark-theme .about-intro p {
  margin: 0;
  color: rgba(207, 219, 239, 0.58);
  font-size: 0.88rem;
}

.site-dark-theme .about-showcase-grid {
  display: grid;
  grid-template-columns: minmax(270px, 310px) minmax(470px, 1fr) minmax(330px, 390px);
  gap: clamp(24px, 2.6vw, 40px);
  align-items: start;
  width: min(1420px, calc(100% - 48px));
  max-width: none;
}

.site-dark-theme .about-showcase .profile-card,
.site-dark-theme .about-showcase .about-skills {
  position: relative;
  top: auto;
  border: 1px solid rgba(151, 169, 205, 0.2);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(8, 21, 47, 0.87), rgba(3, 10, 22, 0.73)) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(15px);
}

.site-dark-theme .about-showcase .profile-card {
  padding: 32px 28px 28px;
}

.site-dark-theme .about-showcase .profile-card .profile-header {
  padding-bottom: 24px;
  border-bottom-color: rgba(133, 158, 205, 0.16);
}

.site-dark-theme .about-showcase .profile-card .profile-avatar {
  width: 158px;
  height: 158px;
  margin-bottom: 20px;
  padding: 5px;
  isolation: isolate;
  background: linear-gradient(135deg, #ff7a1a, #ff4f12 58%, #ff9a22);
  box-shadow: 0 0 0 1px rgba(255, 104, 29, 0.28), 0 0 38px rgba(255, 94, 16, 0.16);
}

.site-dark-theme .about-showcase .profile-card .profile-avatar::before {
  content: "";
  position: absolute;
  inset: -11px;
  z-index: -1;
  border: 1px solid rgba(255, 104, 29, 0.2);
  border-radius: 50%;
  border-left-color: transparent;
  animation: about-avatar-orbit 9s linear infinite;
}

.site-dark-theme .about-showcase .profile-card .profile-avatar img {
  border-color: #071225;
}

.site-dark-theme .about-showcase .profile-card .profile-avatar .status-indicator {
  width: 21px;
  height: 21px;
  border-color: #071225;
  background: #ff681d;
  box-shadow: 0 0 0 5px rgba(255, 104, 29, 0.13), 0 0 18px rgba(255, 104, 29, 0.65);
}

.site-dark-theme .about-showcase .profile-card h3 {
  color: #ffffff;
  font-size: 1.62rem;
}

.site-dark-theme .about-showcase .profile-card .role {
  max-width: 225px;
  color: #ff7a23;
  line-height: 1.5;
}

.site-dark-theme .about-showcase .profile-card .rating span { color: rgba(255, 255, 255, 0.76); }

.site-dark-theme .about-showcase .profile-card .profile-stats {
  gap: 12px;
  padding: 25px 0;
  border-bottom-color: rgba(133, 158, 205, 0.16);
}

.site-dark-theme .about-showcase .profile-card .profile-stats h4 {
  color: #ff681d;
  font-size: 1.55rem;
}

.site-dark-theme .about-showcase .profile-card .profile-stats p {
  color: rgba(215, 226, 245, 0.68);
  font-size: 0.66rem;
}

.site-dark-theme .about-showcase .profile-card .profile-actions {
  padding: 23px 0;
  border-bottom-color: rgba(133, 158, 205, 0.16);
}

.site-dark-theme .about-showcase .profile-card .profile-actions a {
  border-radius: 10px;
}

.site-dark-theme .about-showcase .profile-card .profile-actions .btn-primary {
  border: 1px solid #ff7624;
  background: linear-gradient(135deg, #ff7118, #ff4f13 68%, #ff9b22);
  box-shadow: 0 12px 28px rgba(255, 88, 17, 0.23);
}

.site-dark-theme .about-showcase .profile-card .profile-actions .btn-secondary {
  color: #ff7624;
  border: 1px solid rgba(255, 104, 29, 0.72);
  background: rgba(3, 10, 23, 0.42);
}

.site-dark-theme .about-showcase .profile-card .social-connect { padding-top: 23px; }

.site-dark-theme .about-showcase .profile-card .social-connect a {
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(153, 174, 214, 0.2);
  background: linear-gradient(145deg, rgba(26, 41, 68, 0.7), rgba(4, 12, 26, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.site-dark-theme .about-showcase .about-bio { padding: 24px 0 0; }

.site-dark-theme .about-showcase .about-bio .bio-section { margin-bottom: 30px; }

.site-dark-theme .about-showcase .section-tag {
  display: inline-block;
  margin-bottom: 13px;
  padding: 0;
  color: #ff681d;
  background: transparent;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-dark-theme .about-showcase .about-bio h2 {
  max-width: 690px;
  margin: 0 0 17px;
  color: #ffffff;
  font-size: clamp(1.75rem, 2.2vw, 2.28rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.site-dark-theme .about-title-rule {
  display: block;
  width: 45px;
  height: 4px;
  margin: 0 0 28px;
  border-radius: 99px;
  background: #ff681d;
  box-shadow: 0 0 14px rgba(255, 104, 29, 0.36);
}

.site-dark-theme .about-showcase .about-bio .bio-section p {
  margin-bottom: 13px;
  color: rgba(229, 235, 246, 0.79);
  font-size: 0.94rem;
  line-height: 1.72;
}

.site-dark-theme .about-showcase .details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
}

.site-dark-theme .about-showcase .details-grid .detail-item {
  min-width: 0;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid rgba(128, 158, 214, 0.18);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(7, 18, 39, 0.72), rgba(2, 9, 21, 0.55)) !important;
  box-shadow: none;
}

.site-dark-theme .about-showcase .details-grid .detail-item i {
  color: #ff681d;
  font-size: 1.75rem;
}

.site-dark-theme .about-showcase .details-grid .detail-item span {
  color: rgba(211, 222, 240, 0.65);
  font-size: 0.72rem;
}

.site-dark-theme .about-showcase .details-grid .detail-item strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.88rem;
}

.site-dark-theme .about-showcase .about-skills {
  min-height: 680px;
  padding: 34px 34px 30px;
}

.site-dark-theme .about-showcase .about-skills h3 {
  margin: 0 0 34px;
  color: #ffffff;
  font-size: 1.42rem;
}

.site-dark-theme .about-showcase .about-skills .skill-item { margin-bottom: 31px; }
.site-dark-theme .about-showcase .about-skills .skill-item:last-child { margin-bottom: 0; }

.site-dark-theme .about-showcase .about-skills .skill-info {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.site-dark-theme .about-showcase .about-skills .skill-name {
  max-width: 76%;
  color: rgba(255, 255, 255, 0.91);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.site-dark-theme .about-showcase .about-skills .skill-percent {
  flex: 0 0 auto;
  color: #ff681d;
  font-size: 0.86rem;
  font-weight: 800;
}

.site-dark-theme .about-showcase .about-skills .progress {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(190, 205, 230, 0.18);
}

.site-dark-theme .about-showcase .about-skills .progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4f13, #ff7624 70%, #ff921c);
  box-shadow: 0 0 12px rgba(255, 104, 29, 0.52);
  transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes cosmic-grid-drift {
  from { transform: translate3d(-10px, -10px, 0); }
  to { transform: translate3d(20px, 20px, 0); }
}

@keyframes cosmic-orbit-spin { to { rotate: 360deg; } }

@keyframes cosmic-spark-float {
  0%, 100% { translate: 0 0; scale: 0.82; opacity: 0.58; }
  50% { translate: 0 -24px; scale: 1.08; opacity: 1; }
}

@keyframes about-avatar-orbit { to { rotate: 360deg; } }

@media (max-width: 1199px) {
  .site-dark-theme .about-showcase-grid {
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  }

  .site-dark-theme .about-showcase .about-skills {
    grid-column: 2;
    min-height: 0;
  }

  .site-dark-theme .about-showcase .about-profile {
    grid-row: span 2;
  }
}

@media (max-width: 991px) {
  .site-dark-theme .about-showcase,
  .site-dark-theme .about-standalone {
    padding-top: 112px;
  }

  .site-dark-theme .about-showcase-grid {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 36px));
  }

  .site-dark-theme .about-showcase .about-profile,
  .site-dark-theme .about-showcase .about-skills {
    grid-column: auto;
    grid-row: auto;
  }

  .site-dark-theme .about-showcase .about-profile {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .site-dark-theme .about-showcase .about-bio { padding-top: 8px; }
}

@media (max-width: 575px) {
  .site-dark-theme .about-showcase { padding-bottom: 62px; }
  .site-dark-theme .about-intro { width: min(100% - 30px, 520px); margin-bottom: 20px; }
  .site-dark-theme .about-intro p { font-size: 0.78rem; line-height: 1.55; }
  .site-dark-theme .about-showcase-grid { width: min(100% - 28px, 540px); gap: 24px; }
  .site-dark-theme .about-showcase .profile-card { padding: 27px 20px 24px; }
  .site-dark-theme .about-showcase .profile-card .profile-avatar { width: 136px; height: 136px; }
  .site-dark-theme .about-showcase .profile-card .profile-stats { gap: 6px; }
  .site-dark-theme .about-showcase .profile-card .profile-stats h4 { font-size: 1.35rem; }
  .site-dark-theme .about-showcase .about-bio h2 { font-size: 1.75rem; }
  .site-dark-theme .about-showcase .about-bio .bio-section p { font-size: 0.9rem; }
  .site-dark-theme .about-showcase .details-grid { grid-template-columns: 1fr; }
  .site-dark-theme .about-showcase .about-skills { padding: 28px 22px; }
  .site-dark-theme .about-showcase .about-skills .skill-name { max-width: 72%; }
  .cosmic-orbit-three { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-cosmic-bg *,
  .site-cosmic-bg::before,
  .site-cosmic-bg::after,
  .about-showcase .profile-avatar::before {
    animation: none !important;
  }
}
