:root {
  --color-primary: #ff6b35; /* Smashed Pumpkin */
  --color-secondary: #4ecdc4; /* Medium Turquoise */
  --color-dark: #0f0f23; /* Chinese Black */
  --color-text: #2a2d3a; /* Gunmetal */
  --color-light-text: #7c7f93; /* Rhythm */
  --color-white: #fff;
  --color-border: #c8cdd4; /* American Silver */
  --color-bg-light: #f0f2f5; /* Anti-Flash White */

  /* Fonts */
  --font-main: "ivystyle-tw", "Geist Mono", monospace;
  --font-sans: "ivystyle-sans", "Geist", sans-serif;
  --font-weight-thin: 200;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semi-bold: 600;
  --font-weight-bold: 700;

  /* Layout */
  --border-width-desktop: 30px;
  --border-width-mobile: 15px;
  --container-max-width: 1060px;
  --footer-height: 68px;
  --footer-height-mobile: 53px;

  /* Transitions */
  --transition-fast: all 0.25s ease;
  --transition-medium: all 0.35s ease;
  --transition-slow: all 0.5s ease;

  /* Z-index */
  --z-preloader: 1000;
  --z-header: 100;
  --z-footer: 100;
  --z-borders: 105;
  --z-sidebar: 107;
  --z-overlay: 106;
  --z-section: 97;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

html {
  margin-right: 0 !important;
}

body {
  margin: 0;
  padding: 0;
  border: none;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--color-text);
  background: var(--color-white);
  letter-spacing: 0;
  font-weight: var(--font-weight-regular);
  height: 100dvh;
  opacity: 0;
  transition: var(--transition-slow);
}

/* When JS adds 'loaded', fade in */
body.loaded {
  opacity: 1;
}

/* Homepage specific - no scroll */
body.homepage {
  overflow: hidden;
}

/* Other pages - allow scroll */
body:not(.homepage) {
  overflow-y: auto;
  height: auto;
  min-height: 100dvh;
}

body header,
body footer,
body .section {
  opacity: 0;
  visibility: hidden;
}

body.loaded header,
body.loaded footer,
body.loaded .section {
  opacity: 1;
  visibility: visible;
}

/* Preloader */
.preloader {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: var(--z-preloader);
  top: 0;
  left: 0;
  text-align: center;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.preloader .centrize {
  display: table;
  table-layout: fixed;
  height: 100%;
  position: relative;
}

.preloader .vertical-center {
  display: table-cell;
  vertical-align: middle;
}

.preloader .pre-inner {
  position: relative;
}

.typing-load {
  display: none;
}

.preloader .typed-load,
.preloader .typed-cursor {
  color: var(--color-primary);
  letter-spacing: 0.1em;
  font-weight: var(--font-weight-medium);
}

.typed-fade-out {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

/* Typed subtitles */
.h-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.typed-subtitle {
  white-space: nowrap;
}

/* Container and Layout */
.container {
  position: relative;
  margin: var(--border-width-desktop);
  overflow: hidden;
  background: var(--color-white);
  height: calc(100dvh - (var(--border-width-desktop) * 2));
}

/* Homepage container - fixed height */
body.homepage .container {
  height: calc(100dvh - (var(--border-width-desktop) * 2));
}

/* Other pages container - allow content to expand */
body:not(.homepage) .container {
  min-height: calc(100dvh - (var(--border-width-desktop) * 2));
  overflow: visible;
}

@media (max-width: 840px) {
  .container {
    margin: var(--border-width-mobile);
    height: calc(100dvh - (var(--border-width-mobile) * 2));
  }

  body.homepage .container {
    height: calc(100dvh - (var(--border-width-mobile) * 2));
  }

  body:not(.homepage) .container {
    min-height: calc(100dvh - (var(--border-width-mobile) * 2));
    /* height: auto; */
    /* overflow: visible; */
  }
}

/* Border Lines */
.line {
  content: "";
  position: fixed;
  /* background: var(--color-primary); */
  z-index: var(--z-borders);
}

.line.top,
.line.bottom {
  width: calc(100vw - (100vw - 100%));
}

.line.top {
  left: 0;
  top: 0;
  height: var(--border-width-desktop);
  background: var(--color-primary);

  /* Clip-path creates diagonal cuts at left and right */
  clip-path: polygon(
    0% 0%,
    100% 0%,
    calc(100% - var(--border-width-desktop)) 100%,
    var(--border-width-desktop) 100%
  );
}

.line.bottom {
  left: 0;
  bottom: 0;
  height: var(--border-width-desktop);
  background: var(--color-border);

  /* Clip-path reversed to create mirrored diagonals */
  clip-path: polygon(
    var(--border-width-desktop) 0%,
    calc(100% - var(--border-width-desktop)) 0%,
    100% 100%,
    0% 100%
  );
}

.line.left {
  left: 0;
  top: 0;
  width: var(--border-width-desktop);
  height: 100dvh;
  background: var(--color-secondary);
}

.line.right {
  right: 0;
  top: 0;
  width: var(--border-width-desktop);
  height: 100dvh;
  background: var(--color-dark);
}

@media (max-width: 840px) {
  .line.top,
  .line.bottom {
    height: var(--border-width-mobile);
  }

  .line.top {
    clip-path: polygon(
      0% 0%,
      100% 0%,
      calc(100% - var(--border-width-mobile)) 100%,
      var(--border-width-mobile) 100%
    );
  }

  .line.bottom {
    clip-path: polygon(
      var(--border-width-mobile) 0%,
      calc(100% - var(--border-width-mobile)) 0%,
      100% 100%,
      0% 100%
    );
  }

  .line.left,
  .line.right {
    width: var(--border-width-mobile);
  }
}

/* Header */
header {
  position: fixed;
  left: 0;
  top: var(--border-width-desktop);
  width: 100%;
  z-index: var(--z-header);
  text-align: right;
  background: var(--color-white);
  opacity: 1;
  visibility: visible;
  transition: var(--transition-medium);
}

@media (max-width: 840px) {
  header {
    top: var(--border-width-mobile);
  }
}

.head-top {
  padding: 30px 65px 15px 65px;
}

/* Menu Button */
.menu-btn {
  position: relative;
  margin: 0 auto;
  width: 26px;
  height: 20px;
  cursor: pointer;
  display: none; /* Hidden by default on desktop */
}

/* Show menu button on mobile/tablet */
@media (max-width: 840px) {
  .menu-btn {
    display: block;
  }
}

.menu-btn span,
.menu-btn::before,
.menu-btn::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  transition: var(--transition-fast);
}

.menu-btn::before {
  top: 0;
}

.menu-btn span {
  top: 50%;
  margin-top: -1px;
}

.menu-btn::after {
  bottom: 0;
}

.menu-btn:hover span,
.menu-btn:hover::before,
.menu-btn:hover::after {
  background: var(--color-primary);
}

/* Header Active State - SMOOTHED ANIMATIONS */
header.active {
  opacity: 1 !important;
  visibility: visible !important;
}

header.active .menu-btn::before {
  opacity: 0;
  transform: translateY(9px);
}

header.active .menu-btn::after {
  transform: translateY(-9px) rotate(-45deg);
}

header.active .menu-btn span {
  transform: rotate(45deg);
}

/* Mobile menu when active */
@media (max-width: 840px) {
  header.active .top-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Navigation Menu */
.top-menu {
  transition: var(--transition-medium);
}

.top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-menu ul li {
  margin-left: 50px;
  display: inline-block;
  vertical-align: top;
  transition: var(--transition-medium);
}

.top-menu ul li:first-child {
  margin-left: 0;
}

.top-menu ul li a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  margin-top: 12px;
  transition: var(--transition-fast);
}

.top-menu ul li a.btn {
  margin-top: 0;
}

.top-menu ul li a:hover,
.top-menu ul li.active a {
  color: var(--color-primary);
}

.top-menu ul li.active .btn {
  color: var(--color-white);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* Mobile Menu Positioning - FIXED FOR SMOOTH TRANSITIONS */
@media (max-width: 840px) {
  .top-menu {
    position: fixed;
    top: 100px;
    left: 50%;
    margin-left: -100px;
    width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-medium);
    pointer-events: none;
  }

  .top-menu ul li {
    display: block;
    margin: 30px 0;
  }
}

/* Desktop menu - show by default */
@media (min-width: 841px) {
  .top-menu {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
  }
}

/* Button styles */
a.btn,
.btn {
  display: inline-block;
  vertical-align: middle;
  height: 42px;
  line-height: 40px;
  text-align: center;
  color: var(--color-text);
  font-size: 13px;
  background: none;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  padding: 0 30px;
  cursor: pointer;
  transition: var(--transition-fast);
  -moz-transition: var(--transition-fast);
  -webkit-transition: var(--transition-fast);
  -o-transition: var(--transition-fast);
  text-decoration: none;
  margin-top: 0 !important;
}

.btn:hover {
  color: var(--color-white) !important;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.top-menu ul li.active .btn {
  color: var(--color-white);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* Glitch Button */
a.btn.fill,
.btn.fill {
  color: var(--color-white);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

a.btn:hover,
.btn:hover {
  color: var(--color-white);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* Overlay */
.s_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-overlay);
  opacity: 0;
  display: none;
  transition: var(--transition-medium);
}

/* Sidebar Button */
.sidebar_btn {
  position: relative;
  float: left;
  width: 42px;
  height: 42px;
  line-height: 40px;
  text-align: center;
  color: var(--color-text);
  font-size: 13px;
  background: none;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
  -moz-transition: var(--transition-fast);
  -webkit-transition: var(--transition-fast);
  -o-transition: var(--transition-fast);
}

@media (max-width: 840px) {
  .sidebar_btn {
    display: none;
  }
}

.sidebar_btn span {
  margin: 0 0 0 -15px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--color-text);
  transition: var(--transition-fast);
  -moz-transition: var(--transition-fast);
  -webkit-transition: var(--transition-fast);
  -o-transition: var(--transition-fast);
}

.sidebar_btn span::before,
.sidebar_btn span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: var(--transition-fast);
  -moz-transition: var(--transition-fast);
  -webkit-transition: var(--transition-fast);
  -o-transition: var(--transition-fast);
}

.sidebar_btn span::after {
  top: auto;
  bottom: -8px;
}

.sidebar_btn:hover span,
.sidebar_btn:hover span::before,
.sidebar_btn:hover span::after {
  background: var(--color-secondary);
}

/* Content Sidebar */
.content-sidebar {
  position: fixed;
  top: 0;
  left: -368px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: var(--z-sidebar);
  transition: all 0.6s ease 0s;
  -moz-transition: all 0.6s ease 0s;
  -webkit-transition: all 0.6s ease 0s;
  -o-transition: all 0.6s ease 0s;
}

.content-sidebar.active {
  left: 0;
}

.content-sidebar .widget-area {
  position: relative;
  overflow: auto;
  height: 100dvh;
}

.content-sidebar .widget {
  padding: 25px;
}

.content-sidebar .widget tfoot {
  display: none;
}

.content-sidebar .widget th {
  color: #000;
  padding: 5px;
  text-align: center;
}

.content-sidebar .widget td {
  padding: 5px;
  text-align: center;
}

.content-sidebar .widget label {
  padding-bottom: 0;
}

.content-sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.content-sidebar .widget ul ul {
  margin-top: 10px;
  margin-left: 0;
  margin-bottom: 10px;
  padding: 15px 10px;
  background: var(--color-bg-light);
  font-size: 12px;
}

.content-sidebar .widget ul ul ul {
  margin-top: 10px;
  margin-left: 5px;
  margin-bottom: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.content-sidebar .widget ul li {
  padding-bottom: 10px;
  margin-bottom: 10px;
  color: var(--color-light-text);
  border-bottom: 1px solid var(--color-border);
}

.content-sidebar .widget ul li li {
  padding-bottom: 0;
  border-bottom: none;
}

.content-sidebar .widget ul li:last-child {
  margin-bottom: 0;
}

.content-sidebar .widget ul li a {
  padding-bottom: 5px;
}

.content-sidebar .widget ul li a:hover {
  color: var(--color-primary);
}

.content-sidebar #results-container {
  padding-top: 10px;
}

.content-sidebar .widget.widget_recent_comments a,
.content-sidebar .widget.widget_recent_entries a,
.content-sidebar .widget.widget_rss a {
  padding-top: 5px;
  font-weight: 400;
  display: block !important;
}

.content-sidebar .widget ul li .post-date {
  margin: 0;
  display: inline-block;
  padding: 0;
  height: 20px;
  line-height: 18px;
  font-weight: 400;
  font-size: 11px;
  color: var(--color-light-text);
}

.content-sidebar .widget img {
  max-width: 100%;
  height: auto;
}

.content-sidebar .widget .rss-date,
.content-sidebar .widget cite {
  margin: 5px 0 10px 0;
  padding: 0;
  display: block;
  height: 20px;
  line-height: 18px;
  font-weight: 400;
  font-size: 11px;
  color: var(--color-light-text);
}

.content-sidebar .widget cite {
  margin: 10px 0 0 0;
}

.content-sidebar .widget .rssSummary {
  color: var(--color-text);
}

.content-sidebar span.screen-reader-text {
  display: none;
}

/* Search bar */
.search-form input.search-field {
  border: solid 1px var(--color-border);
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 50px 0 15px;
  box-shadow: none;
  font-weight: 400;
}

.search-form input.search-submit {
  margin-top: -34px;
  margin-right: 12px;
  float: right;
  width: 18px;
  height: 18px;
  background: url(../images/android-search.png) no-repeat center center;
  background-size: 18px 18px;
  font-size: 0;
  border: none;
}

.content-sidebar h2.widget-title {
  padding-bottom: 20px;
  margin: -26px -25px 25px -25px;
  border-bottom: 1px solid var(--color-border);
  padding: 25px 30px;
  display: block;
  line-height: 18px;
  font-size: 13px;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.content-sidebar h2.widget-title span {
  position: relative;
  left: -5px;
}

/* Close button */

.content-sidebar .close,
.popup-box .popup-close-inner,
.popup-box .popup-close-top {
  position: absolute;
  width: 68px;
  height: 68px;
  top: 0;
  background: var(--color-white);
  cursor: pointer;
  z-index: var(--z-sidebar);
  transition: var(--transition-fast);
}

.content-sidebar .close {
  left: auto;
  right: -68px;
}

.popup-box .popup-close-inner {
  right: -66.5px;
}

.popup-box .popup-close-top {
  display: none;
  transform: translateX(50%);
  top: -10px;
  right: 50%;
  border-radius: 999%;
  background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 840px) {
  .popup-box .popup-close-inner {
    display: none;
  }
  .popup-box .popup-close-top {
    display: block;
  }
}

/* SIDEBAR */
.content-sidebar .close:hover {
  background: var(--color-bg-light);
}

.popup-box .close:hover {
  opacity: 0.7;
}

.content-sidebar .close::before,
.content-sidebar .close::after,
.popup-box .close::before,
.popup-box .close::after {
  content: "";
  margin: 0 0 0 -10px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--color-text);
  transform: rotate(45deg);
}

.content-sidebar .close::after,
.popup-box .close::after {
  transform: rotate(-45deg);
}

.content-sidebar .recentcomments {
  font-size: 11px;
  color: var(--color-light-text);
}

.content-sidebar .recentcomments a {
  padding-top: 6px;
  display: block !important;
  font-size: 13px;
}

.content-sidebar .recentcomments a.url {
  margin: 0;
  padding: 0;
  display: inline-block;
  height: 20px;
  line-height: 18px;
  font-weight: 400;
  font-size: 11px;
  color: var(--color-light-text);
}

.content-sidebar .recentcomments .comment-author-link {
  margin: 0;
  padding: 0;
  display: inline-block;
  height: 20px;
  line-height: 18px;
  font-weight: 400;
  font-size: 11px;
  color: var(--color-light-text);
}

.content-sidebar .tagcloud a {
  margin: 4px 2px;
  display: inline-block;
  vertical-align: bottom;
  padding: 0 5px;
  font-weight: 500;
  font-size: 11px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.content-sidebar .screen-reader-text {
  display: none;
}

.content-sidebar .widget select {
  width: 100%;
  height: 34px;
}

.content-sidebar table {
  margin: 0;
}

.content-sidebar .widget.widget_media_image {
  max-width: 100%;
}

@media (max-width: 840px) {
  .content-sidebar {
    width: 260px;
  }

  .sidebar_btn {
    margin-left: auto;
    position: relative;
    top: 0;
    right: 0;
    margin-top: 20px;
  }

  .sidebar_btn,
  .sidebar_btn span,
  .sidebar_btn span::before,
  .sidebar_btn span::after {
    transition: all 0s ease 0s;
    -moz-transition: all 0s ease 0s;
    -webkit-transition: all 0s ease 0s;
    -o-transition: all 0s ease 0s;
  }
}

/* Main Content Area */
.wrapper {
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  max-width: var(--container-max-width);
}

/* Section Base */
.section {
  position: relative;
  padding: 10px 80px 150px 80px;
  z-index: var(--z-section);
  opacity: 1;
  visibility: visible;
  transition: var(--transition-slow);
}

@media (max-width: 840px) {
  .section {
    padding: 0 40px 120px 40px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 0 20px 120px 20px;
  }
}

.section .content {
  position: relative;
}

.section .content .title {
  position: relative;
  margin-bottom: 40px;
}

@media (max-width: 480px) {
  .section .content .title {
    text-align: center;
  }
}

.section .content .title .title_inner {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  position: relative;
  line-height: 18px;
  font-size: 13px;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--transition-fast);
  -moz-transition: var(--transition-fast);
  -webkit-transition: var(--transition-fast);
  -o-transition: var(--transition-fast);
}

/* Started Section */
.section.started {
  text-align: center;
  position: relative;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Homepage - section fills container height */
body.homepage .section.started {
  height: calc(
    100dvh - var(--footer-height) - (var(--border-width-desktop) * 2)
  );
}

@media (max-width: 840px) {
  body.homepage .section.started {
    height: calc(
      100dvh - var(--footer-height-mobile) - (var(--border-width-mobile) * 2)
    );
  }
}

/* Non-homepage - section fills viewport height */
body:not(.homepage) .section.started {
  height: calc(
    100dvh - var(--footer-height) - (var(--border-width-desktop) * 2)
  );
  margin-bottom: var(--footer-height);
}

@media (max-width: 840px) {
  body:not(.homepage) .section.started {
    height: calc(
      100dvh - var(--footer-height-mobile) - (var(--border-width-mobile) * 2)
    );
    margin-bottom: var(--footer-height-mobile);
  }
}

/* Mouse btn */
.mouse_btn {
  font-size: 32px;
  color: var(--color-primary);
  text-align: center;
  position: absolute;
  z-index: var(--z-overlay);
  bottom: var(--footer-height);
}

.mouse_btn .moving-mouse {
  position: relative;
  top: 0px;
  /* left: 1.2px; */
  animation: mouse-anim 1s ease-out 0s infinite;
}

@keyframes mouse-anim {
  0% {
    top: 0px;
  }
  50% {
    top: 10px;
  }
  100% {
    top: 0px;
  }
}

/* Started Content */
.h-title {
  font-size: 68px;
  font-family: var(--font-main);
  color: var(--color-dark);
  font-weight: var(--font-weight-semi-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 30px 0 15px 0;
  position: relative;
}

@media (max-width: 840px) {
  .section.started .started-content .h-title {
    font-size: 52px;
  }
}
@media (max-width: 580px) {
  .section.started .started-content .h-title span {
    display: block;
  }
}
@media (max-width: 480px) {
  .section.started .started-content .h-title {
    font-size: 42px;
  }
}

/* Filters */
.section.works .filters {
  display: flex;
  align-items: baseline;
}

.section.works .filters label {
  margin-right: 25px;
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  padding-bottom: 0;
}

.section.works .filters label.glitch-effect {
  color: var(--color-primary);
}

.section.works .filters .sort-menu {
  flex-grow: 1;
}

.section.works .filters .btn-group.sort-toggle label:nth-child(2) {
  margin: 0;
  border-radius: 4px 0 0 4px;
}
.section.works .filters .btn-group.sort-toggle label:last-child {
  border-radius: 0 4px 4px 0;
}

.section.works .filters .btn-group.sort-toggle label {
  cursor: pointer;
  padding: 0.5em 2em;
  border: 1px solid var(--color-border);
  user-select: none;
  transition: var(--transition-fast);
  color: var(--color-text);
  font-weight: normal;
  background-color: transparent;
}

/* Checked Active */
.section.works
  .filters
  .btn-group.sort-toggle
  input[type="radio"]:checked
  + label {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
  border-color: var(--color-primary);
}

/* Hide the actual radios but keep them accessible */
.section.works .filters .btn-group.sort-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.section.works .filters input {
  display: none;
}

/* Hide dropdown on desktop */
.mobile-filter-select {
  display: none;
  padding: 0.5em 2em 0.5em 1em;
  font-size: 13px;
  background-color: white;
  border-radius: 4px;
  border-color: var(--color-border);
  font-family: var(--font-main);
  color: var(--color-text);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 16L6 10H18L12 16Z"></path></svg>');
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 14px;
  cursor: pointer;
}

/* Show dropdown on mobile */
@media (max-width: 840px) {
  /* Hide all filter btn-groups except the sort-toggle */
  .filters .btn-group:not(.sort-toggle) {
    display: none;
  }

  .mobile-filter-select {
    display: block;
  }

  .btn-group.sort-toggle label {
    padding: 0.4em 1em;
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 14px;
    background-color: transparent;
    user-select: none;
    margin-right: 0.5em;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .btn-group.sort-toggle label:last-child {
    margin-right: 0;
  }

  .btn-group.sort-toggle input[type="radio"]:checked + label {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-color: var(--color-primary);
  }

  .btn-group.sort-toggle {
    display: flex;
    margin-bottom: 0.5em;
  }
}

@media (max-width: 480px) {
  .section.works .filters {
    flex-direction: column;
    gap: 20px;
  }
}

/* Portfolio Grid Styles */
.box-items {
  display: flex;
  flex-wrap: wrap;
  margin: 40px -1.5% 0 -1.5%;
}

.box-item {
  flex: 0 0 calc(25% - 3%);
  margin: 0 1.5% 3% 1.5%;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: var(--transition-medium);
}

.box-item,
.box-item.post-item {
  flex: 0 0 calc(33.333% - 3%);
}

.box-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.box-item.show {
  opacity: 1;
  transform: scale(1);
}

/* blog page navigation */
.box-items .pagination {
  flex: 1 0 100%;
  display: flex;
  justify-content: center;
}

.box-items .pagination a {
  padding: 8px 20px;
}

.box-items .pagination a.active {
  color: var(--color-primary);
  pointer-events: none;
}

.box-items .pagination .dots {
  padding: 8px 12px;
  color: var(--color-light-text);
  pointer-events: none;
  cursor: default;
}

/* Responsive breakpoints */
@media (min-width: 1400px) {
  .box-item {
    flex: 0 0 calc(25% - 3%);
  }
}

@media (max-width: 840px) {
  .box-item,
  .box-item.post-item {
    flex: 0 0 calc(50% - 3%);
  }
}

@media (max-width: 600px) {
  .box-items {
    width: 100%;
    margin: 40px auto 0;
  }

  .box-item,
  .box-item.post-item {
    flex: 0 0 100%;
    margin: 0 0 20px 0;
  }
}

/* Image container */
.box-item .image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-bg-light);
}

.box-item .image video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  pointer-events: auto;
}

.box-item .image.client {
  aspect-ratio: inherit;
  padding: 10px;
  background: var(--color-white);
}

.box-item .image.dark {
  background: var(--color-dark);
}

.box-item .image a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.box-item .image a img,
.box-item .image a div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  transition: var(--transition-medium);
}

.clients .box-item {
  flex: initial;
}

.box-item .image.client a img {
  max-height: 60px;
  width: auto;
}

/* Hover overlay */
.box-item .image .info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 90%;
  height: 90%;
  background: rgba(0, 0, 0, 0.5);
  mix-blend-mode: overlay;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-medium);
}

.box-item .image.client .info {
  width: 100%;
  height: 100%;
}

.box-item .image .info i {
  background: #000;
  color: #fff;
  font-size: 28px;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition-slow);
}

/* Hover effects */
.box-item:hover .image .info {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.box-item:hover .desc .name {
  color: var(--color-primary);
}

/* Description */
.box-item .desc {
  padding: 15px 15px 5px 15px;
}

@media (min-width: 1440px) {
  .box-item .desc {
    padding: 15px 25px 5px 25px;
  }
}

/* BOX SHADOWS for titles */
.box-item .category,
.content-sidebar span.screen-reader-text span,
.section .content .title .title_inner,
.content-sidebar h2.widget-title span {
  box-shadow: inset 0 -6px 0px rgba(78, 205, 196, 0.45);
  -moz-box-shadow: inset 0 -6px 0px rgba(78, 205, 196, 0.45);
  -webkit-box-shadow: inset 0 -6px 0px rgba(78, 205, 196, 0.45);
  -khtml-box-shadow: inset 0 -6px 0px rgba(78, 205, 196, 0.45);
}

.box-item .category {
  margin: 0 0 10px 0;
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.box-item .desc .name {
  height: 40px;
  display: block;
  color: var(--color-text);
  font-size: 13px;
  font-weight: var(--font-weight-semi-bold);
  /* text-transform: uppercase; */
  transition: var(--transition-medium);
  text-decoration: none;
  line-height: 1.3;
}

/* Filter classes for JavaScript filtering */
.box-item.f-video,
.box-item.f-music,
.box-item.f-link,
.box-item.f-image,
.box-item.f-gallery,
.box-item.f-content {
  display: flex;
  flex-direction: column;
}

/* Hidden state for filtering */
.box-item.hidden {
  display: none;
}

/* CONTACT */

.contact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 4%;
  margin-top: 50px;
}

.contact-items .contact-item {
  flex: 0 1 calc(32% - 2%);
  display: flex;
}

.contact-items .contact-item.offer {
  flex: 1;
}

@media (max-width: 840px) {
  .contact-items .contact-item {
    flex: 0 1 100%;
  }
}

.contact-items .contact-item .icon {
  float: left;
  text-align: center;
  font-size: 24px;
  color: var(--color-primary);
  margin-right: 15px;
}

.contact-items .contact-item .icon.offer {
  color: var(--color-secondary);
}

.contact-items .contact-item .name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-dark);
  margin: 6px 0 10px 0;
}

.contact-items .contact-item .name.offer {
  background: rgba(78, 205, 196, 0.45);
  display: inline-block;
  padding: 0 10px;
}

@media (max-width: 480px) {
  .contact-items .contact-item .name {
    margin: 0 0 10px 0;
  }
}

.contact-items .contact-item p {
  color: var(--color-light-text);
  margin: 0;
}

@media (max-width: 480px) {
  .contact-items .contact-item p {
    margin-left: 0;
  }
}

/* Footer */
footer {
  position: fixed;
  bottom: var(--border-width-desktop);
  left: 0;
  padding: 15px 60px 30px 60px;
  width: 100%;
  background: var(--color-white);
  z-index: var(--z-footer);
  opacity: 1;
  visibility: visible;
  transition: var(--transition-slow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Footer background on scroll for other pages */
body:not(.homepage) footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(221, 221, 221, 0.3);
}

@media (max-width: 840px) {
  footer {
    bottom: var(--border-width-mobile);
    padding: 15px 30px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

.footer-copy {
  font-size: 11px;
  color: var(--color-light-text);
  font-weight: var(--font-weight-light);
}

.footer-copy a {
  color: var(--color-text);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: var(--color-text);
  font-size: 17px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--color-primary);
}

@media (max-width: 840px) {
  .footer-copy {
    display: none;
  }
}

/* %%%%%%%%%%%%%%%%%%%%%%% */

/* Responsive Design */
@media (max-width: 1060px) {
  .h-title {
    font-size: 56px;
  }
}

@media (max-width: 840px) {
  .h-title {
    font-size: 52px;
  }

  .head-top {
    justify-content: center;
  }

  .top-menu ul li::before {
    display: none;
  }

  .top-menu ul li::after {
    display: block;
  }
}

@media (max-width: 600px) {
  .h-title {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .h-title {
    font-size: 36px;
    margin-top: 0;
  }

  .head-top {
    padding: 20px;
  }

  .top-menu ul {
    flex-direction: column;
    gap: 20px;
  }

  .top-menu ul li {
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .h-title {
    font-size: 32px;
  }
}

/* Utility Classes */
.centralize {
  display: table;
  table-layout: fixed;
  height: 100%;
  position: relative;
}

/* .vertical-center {
  display: table-cell;
  vertical-align: middle;
} */

.full-width {
  max-width: 100% !important;
  width: 100% !important;
}

.text-center {
  text-align: center !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

/* Form Elements */
input,
textarea,
button {
  display: block;
  background: none;
  font-family: var(--font-main);
  font-size: 12px;
  height: 60px;
  width: 100%;
  color: var(--color-dark);
  margin-bottom: 30px;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  appearance: none;
  -webkit-appearance: none;
  resize: none;
  transition: var(--transition-fast);
  border-radius: 0px;
  outline: 0;
}

input:focus,
textarea:focus,
button:focus {
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-primary);
}

textarea {
  height: 120px;
  padding: 0;
  margin-top: 55px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-medium);
  font-family: var(--font-main);
  margin-bottom: 30px;
  color: var(--color-dark);
}

h1 {
  font-size: 48px;
}
@media (max-width: 840px) {
  h1 {
    font-size: 40px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 26px;
  }
}

h2 {
  font-size: 23px;
}

h3 {
  font-size: 15px;
}

/* h4 {
  font-size: 18px;
}
h5 {
  font-size: 16px;
}
h6 {
  font-size: 14px;
} */

div p {
  font-size: 13px;
  line-height: 23px;
  padding: 0;
  margin: 20px 0;
}

strong {
  font-weight: var(--font-weight-semi-bold);
}

a {
  color: var(--color-dark);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  opacity: 1;
  outline: none;
}

a:hover {
  text-decoration: none;
  color: var(--color-primary);
}

/* Lists */
ul {
  list-style: none;
  margin-top: 0px;
  margin-bottom: 0px;
  padding-left: 0px;
}

ul ul,
ul ol,
ol ol,
ol ul {
  margin-bottom: 0px;
}

li {
  margin-bottom: 0px;
}

/* Clear Fix */
.clear {
  clear: both;
}

.clr {
  clear: both;
}
