/* Final site overrides. Keep this stylesheet after styles.css. */
:root { --Text-secondary: #b5b5bf; --body-text: #d0d0d8; --Text-muted: #c4c4cd; }
body { line-height: 1.7; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b799ff; outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 18px; color: #111; background: #fff; z-index: 2000; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.text_primary-color, .tag-heading::before { color: #ae8bff; }
.section { scroll-margin-top: 140px; }
.section-title { font-size: clamp(28px, 3vw, 44px); line-height: 1.35; }
.main-content.style-3 { padding-top: 20px; padding-bottom: 40px; }
.header.position-sticky { top: 0; padding: 16px 0; margin-bottom: 24px; }
.header-sidebar.custom-top-bar { display: flex; align-items: center; justify-content: center; gap: 22px; width: max-content; max-width: 100%; margin: 0 auto; padding: 10px 20px 10px 12px; border-radius: 60px; background: rgba(24,24,27,.97) !important; position: relative; top: 0; }
.header-logo img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; background: #f4f2f8; }
.custom-top-bar > .nav-menu { margin: 0; }
.header-sidebar .nav-menu { gap: 14px; }
.header-sidebar .menu-button { flex: 0 0 auto; cursor: pointer; border: 1px solid #45454b; display: flex; justify-content: center; align-items: center; }
.nav-menu.style-2 .tooltip { background: #252529; color: #fff; pointer-events: none; }
.nav-menu.style-2 a:focus-visible .tooltip { opacity: 1; visibility: visible; transform: translateX(50%) scale(1); }
.popup-menu-mobile { border: 1px solid #45454b; border-radius: 16px; background: #19191d !important; max-height: calc(100dvh - 115px); overflow-y: auto; margin-top: 8px !important; }
.popup-menu-mobile .nav_link { display: block; padding: 12px 16px; min-height: 48px; border-radius: 8px; }
.popup-menu-mobile .nav_link.active { color: #b799ff !important; }
.popup-menu-mobile .text { opacity: 1 !important; }
.overlay-popup { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); }
body.no-scroll { overflow: hidden; }
.user-bar .name { font-size: 30px; line-height: 1.3; }
.user-bar { overflow-y: auto; max-height: calc(100dvh - 32px); }
.user-bar .img-style { margin-bottom: 16px !important; }
.tf-btn.style-1, .tf-btn.style-1:hover { color: #fff; }
.tf-btn.style-1 i, .tf-btn.style-1 span { color: inherit; }
.animationtext .cd-words-wrapper { display: inline-grid; max-width: 100%; vertical-align: top; }
.animationtext .item-text { grid-area: 1 / 1; white-space: normal; overflow-wrap: anywhere; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.animationtext .item-text.is-visible { opacity: 1; visibility: visible; }
.title-border-shape { max-width: 100%; }
.title-border-shape h4 { font-size: clamp(20px, 2.2vw, 32px); line-height: 1.4; }
.title-border-shape .cd-words-wrapper { display: grid; }
.education-item { gap: 20px; }
.education-item .content { min-width: 0; }
.education-item .date { flex-shrink: 0; }
.education-item::after, .wrap-education-item .point::after { display: none; }
.wrap-education-item:not(:last-child)::after { content: ''; position: absolute; width: 1px; left: 21px; top: 42px; bottom: -26px; background: #55515f; }
.effect-line-hover .wrap-education-item .education-item { opacity: 1; }
.effect-line-hover .wrap-education-item:hover .point { background: var(--Primary); box-shadow: 0 0 12px #6c34fa80; }
.service-item { padding: 28px 22px; border-radius: 20px; height: 100%; }
.service-icon { width: 36px; height: 36px; color: #ae8bff; }
.project-icon { width: 72px; height: 72px; color: #ae8bff; }
svg.icon { width: 24px; height: 24px; }
.portfolio-item { border-radius: 20px; }
.contact-form label { display: block; margin-bottom: 8px; color: #e3e3ea; }
.contact-form .form-control { font-size: 16px; line-height: 1.6; }
.contact-form .form-control::placeholder { color: #a3a3af; opacity: 1; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form a { color: #c4abff; overflow-wrap: anywhere; text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
#contact-status { margin-top: 16px; }
.cursor-glow { left: 0; top: 0; opacity: 0; }
@media (min-width: 1150px) and (max-height: 760px) { .user-bar .img-style { max-width: 155px !important; } }
@media (min-width: 1150px) and (max-width: 1279px) { .education-item { flex-direction: column; align-items: flex-start; gap: 12px; } }
@media (max-width: 1149px) { .user-bar { max-height: none; } }
@media (max-width: 767px) {
  .section { padding-top: 40px; padding-bottom: 24px; }
  .section-contact { padding-bottom: 0; }
  .main-content.style-3 { padding-top: 0; }
  .education-item { flex-direction: column; align-items: flex-start; gap: 12px; padding-left: 40px; }
  .education-item .date { white-space: normal; height: auto; min-height: 38px; }
  .body-overlay, .cursor-glow { display: none !important; }
}
@media (max-width: 575px) {
  .header.position-sticky { padding: 10px 0; margin-bottom: 18px; }
  .header-sidebar.custom-top-bar { width: 100% !important; justify-content: space-between; padding: 8px 12px; border-radius: 50px; }
  .header-logo img { width: 52px; height: 52px; }
  .header-sidebar.custom-top-bar > .nav-menu { display: none; }
  .contact-actions { flex-direction: column; }
  .contact-actions .tf-btn { width: 100%; }
  .section { scroll-margin-top: 105px; }
}
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .body-overlay, .cursor-glow { display: none !important; }
}
@media print {
  html, body, #wrapper { background: #fff !important; color: #111 !important; }
  .header, .body-overlay, .cursor-glow, .contact-form, .skip-link { display: none !important; }
  .user-bar { position: static; transform: none; max-height: none; margin: 0 auto 24px; }
  .section, .user-bar { break-inside: avoid; }
  .text_white, .text_secondary-color, .text_muted-color, h1, h2, h3, h4, h5, h6, a { color: #111 !important; }
}

/* Background and rendering performance, revision 2. */
#wrapper { position: relative; isolation: isolate; }
#wrapper > .tf-container { position: relative; z-index: 1; }
.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background: #111 url('../images/item/video-poster.jpg') center / cover no-repeat;
  contain: strict;
}
.site-background .body-overlay {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  will-change: auto;
}
.header-sidebar, .popup-menu-mobile {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.user-bar { background: rgba(24,24,27,.94); }
.service-item, .portfolio-item { background: rgba(24,24,27,.86) !important; }
.tf-btn.style-border:hover .effect-shine { animation: none; }
a, button, .tf-btn, .education-item { transition-property: color, background-color, border-color, opacity, transform; }
@media (prefers-reduced-motion: reduce) {
  .site-background .body-overlay { display: none !important; }
}
@media print { .site-background { display: none; } }
.site-background .body-overlay[hidden] { display: none !important; }

/* Safari playback controls and full-width page footer. */
button { overflow: visible; }
.site-background.video-enabled .body-overlay { display: block !important; }
.site-background .body-overlay[hidden] { display: none !important; }
.site-footer {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 20px; padding: 24px 32px;
  background: #141416; border-top: 1px solid #303036;
}
.site-copyright { grid-column: 2; text-align: center; margin: 0; font-size: 13px; }
.site-credit { grid-column: 3; justify-self: end; min-width: 0; }
.site-footer .sekoya-badge-container { display: block; margin: 0; }
.site-footer .sekoya-badge-logo { height: 64px; max-width: 100%; object-fit: contain; }
.background-controls { grid-column: 1; }
#background-toggle { color: #ddd; background: #222228; border: 1px solid #555; border-radius: 20px; padding: 10px 14px; font-size: 12px; cursor: pointer; }
@media (max-width: 900px) {
  .site-footer { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; padding: 20px 16px; }
  .site-credit { grid-column: 2; grid-row: 1; }
  .site-copyright { grid-column: 1 / -1; grid-row: 2; }
  .background-controls { grid-row: 1; }
}
@media print { .background-controls, .site-credit { display: none; } }
