@import 'variables.css';

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
}

/* ── Sidebar ─────────────────────────────────────── */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  border-right: 1px solid var(--border-light);
  background: var(--bg-sidebar);
  padding: 45px 64px;
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--transition-slow);
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar.hidden ~ .main-wrapper {
  margin-left: 0;
}

/* ── Sidebar Action Buttons (fixed) ──────────────────── */

.sidebar-actions {
  position: fixed;
  top: 45px;
  left: calc(var(--sidebar-width) - 23px);
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: left var(--transition-slow);
}

.sidebar.hidden ~ .sidebar-actions {
  left: 20px;
}

.sidebar-action-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  background-color: var(--bg-social-default);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: background-color var(--transition-fast);
}

#aboutToggle {
  background-image: url('../assets/images/button-about-me-default.svg');
}

#aboutToggle:hover,
#aboutToggle.active {
  background-color: var(--bg-dark);
  background-image: url('../assets/images/button-about-me-hover.svg');
}

#themeToggle {
  background-image: url('../assets/images/button-theme-switcher-default.svg');
}

#themeToggle:hover,
#themeToggle.active {
  background-color: var(--bg-dark);
  background-image: url('../assets/images/button-theme-switcher-hover.svg');
}

.sidebar-action-btn.active {
  background: var(--bg-dark);
}

.sidebar-action-btn.active .sidebar-action-icon {
  color: var(--text-white);
}

/* ── Profile ─────────────────────────────────────── */

.profile-pic {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  corner-shape: squircle;
  object-fit: cover;
  margin-bottom: 24px;
}

.profile-name {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 37px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.profile-bio {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.bio-link {
  position: relative;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.bio-link:hover {
  color: var(--text-primary);
}

.bio-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast) 0.4s;
  z-index: 10;
}

.bio-link:hover::after {
  opacity: 1;
}

html.dark .bio-link::after {
  background: var(--text-white);
  color: var(--bg-dark);
}

/* ── Socials ─────────────────────────────────────── */

.socials-label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.socials-row {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background-color: var(--bg-social-default);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  cursor: pointer !important;
  transition:
    background-color var(--transition-fast),
    filter var(--transition-fast);
}

.social-btn[data-brand="github"] {
  background-image: url('../assets/icons/github-default.svg');
}
.social-btn[data-brand="github"]:hover {
  background-image: url('../assets/icons/github-hover.svg');
  background-color: var(--brand-github);
}

.social-btn[data-brand="threads"] {
  background-image: url('../assets/icons/threads-default.svg');
}
.social-btn[data-brand="threads"]:hover {
  background-image: url('../assets/icons/threads-hover.svg');
  background-color: var(--bg-dark);
}

.social-btn[data-brand="dribbble"] {
  background-image: url('../assets/icons/dribbble-icon-default.svg');
}
.social-btn[data-brand="dribbble"]:hover {
  background-image: url('../assets/icons/dribbble-icon-hover.svg');
  background-color: var(--brand-dribbble);
}

.social-btn[data-brand="facebook"] {
  background-image: url('../assets/icons/facebook-icon-default.svg');
}
.social-btn[data-brand="facebook"]:hover {
  background-image: url('../assets/icons/facebook-icon-hover.svg');
  background-color: var(--brand-linkedin);
}

.social-btn[data-brand="linkedin"] {
  background-image: url('../assets/icons/linkedin-icon-default.svg');
}
.social-btn[data-brand="linkedin"]:hover {
  background-image: url('../assets/icons/linkedin-icon-hover.svg');
  background-color: var(--brand-linkedin);
}

/* ── Main Content ────────────────────────────────── */

.main-wrapper {
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-slow);
}

.main-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 96px;
}

/* ── Navigation Tabs ─────────────────────────────── */

.nav-section {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  corner-shape: squircle;
  padding: 12px;
  display: flex;
  gap: 0;
  margin-top: 32px;
  margin-bottom: 48px;
}

.nav-slider {
  position: absolute;
  top: 12px;
  left: 0;
  height: calc(100% - 24px);
  border-radius: var(--radius-sm);
  corner-shape: squircle;
  background: var(--bg-dark);
  transition: transform var(--transition-normal), width var(--transition-normal);
  z-index: 0;
  pointer-events: none;
}

.nav-tab {
  flex: 1;
  height: 107px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 64px;
  font-weight: 300;
  color: var(--text-inactive);
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
  transition: font-weight var(--transition-normal);
}

/* ── Active tab ─── white text, bold ── */

.nav-tab.active {
  color: var(--text-white);
  font-weight: 700;
}

.nav-tab.active:hover {
  font-weight: 300;
}

.nav-tab:not(.active):hover {
  font-weight: 700;
}

/* ── Section Styles ──────────────────────────────── */

.section-heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.3;
}

.section {
  margin-bottom: 64px;
}

/* ── Project Cards ───────────────────────────────── */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-card {
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  max-width: 790px;
  height: 367px;
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
  padding: 32px 194px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: start;
  justify-content: end;
  position: relative;
  background: #000000;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.00) 28%, rgba(0,0,0,0.57) 100%);
  -webkit-box-shadow: inset -2px -23px 27px 3px rgba(0,0,0,0.35);
  box-shadow: inset -2px -23px 27px 3px rgba(0,0,0,0.35);
  border-radius: 22px;
  corner-shape: squircle;
}

.project-card:hover {
  box-shadow: inset 0 -93px 62px 0 rgba(117,142,201,0.34);
}

.project-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.project-info {
  position: relative;
  z-index: 1;
}

.project-company {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 4px;
}

.project-role {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 2px;
}

.project-desc {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 12px;
  color: #ffffff;
  opacity: 0.8;
  max-width: 542px;
}

/* ── App Cards ───────────────────────────────────── */

.apps-row {
  display: flex;
  gap: 18px;
}

.app-card {
  width: 272px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.app-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-icon-container {
  cursor: pointer;
  padding: 48px;
  border-radius: var(--radius-md);
  corner-shape: squircle;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.app-icon-container img {
  width: 128px;
  height: 128px;
  object-fit: contain;
}

.app-name {
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.app-desc {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Blog ────────────────────────────────────────── */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.blog-entry {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.blog-date {
  width: 164px;
  min-height: 131px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-date-day {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 53px;
  color: var(--text-secondary);
  line-height: 1;
}

.blog-date-month {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 24px;
  color: var(--text-tertiary);
  line-height: 1;
}

.blog-date-year {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 24px;
  color: var(--text-tertiary);
  line-height: 1;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.blog-title {
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 32px;
}

.blog-excerpt {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.blog-readmore {
  display: inline-block;
  background: var(--bg-button);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-tertiary);
  cursor: pointer !important;
  align-self: flex-start;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.blog-readmore:hover {
  background: var(--bg-secondary);
}

.project-card *,
.app-icon-container img {
  cursor: pointer;
}

/* ── Project Tab Bar ────────────────────────────── */

.project-tab-bar {
  display: flex;
  gap: 32px;
  margin-bottom: 64px;
}

.project-tab {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.253125px;
  cursor: pointer;
  padding: 10px 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  corner-shape: squircle;
  background: transparent;
  color: #929292;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.project-tab:hover {
  background: #ecebf4;
  color: #1d1d1d;
}

.project-tab.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

html.dark .project-tab {
  color: #666;
}

html.dark .project-tab:hover {
  background: #2a2a2a;
  color: #ccc;
}

html.dark .project-tab.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ── Project Content ────────────────────────────── */

.project-content {
  display: none;
}

.project-content.active {
  display: block;
}

/* ── Case Study Sections ────────────────────────── */

.case-section {
  margin-bottom: 64px;
}

.case-section h2 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 24px;
  color: #1d1d1d;
  margin-bottom: 16px;
}

.case-section h3 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.253125px;
  color: #1d1d1d;
  margin-bottom: 16px;
  margin-top: 48px;
}

.case-section p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: #828282;
  margin-bottom: 24px;
  white-space: pre-line;
}

.case-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

/* ── Custom Video Player ────────────────────────── */

.video-player {
  position: relative;
  border-radius: var(--radius-md);
  corner-shape: squircle;
  overflow: hidden;
  margin-top: 24px;
}

.video-player video {
  width: 100%;
  display: block;
}

.vc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.vc-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.vc-btn:hover {
  background: var(--bg-secondary);
}

.vc-btn svg {
  width: 18px;
  height: 18px;
}

.video-player .vc-icon-pause { display: none; }
.video-player.is-playing .vc-icon-play { display: none; }
.video-player.is-playing .vc-icon-pause { display: block; }

.video-player .vc-icon-unmuted { display: none; }
.video-player.is-muted .vc-icon-muted { display: block; }
.video-player.is-muted .vc-icon-unmuted { display: none; }
.video-player:not(.is-muted) .vc-icon-muted { display: none; }
.video-player:not(.is-muted) .vc-icon-unmuted { display: block; }

.vc-track {
  flex: 1;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
}

.vc-fill {
  height: 100%;
  width: 0%;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: width 100ms linear;
}

html.dark .vc-track { background: var(--bg-primary); }
html.dark .vc-fill { background: var(--text-white); }

.case-section .media-pair {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}

.case-section .media-pair img,
.case-section .media-pair video,
.case-section .media-pair .video-player {
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
  min-width: 0;
}

.case-section .image-grid {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.case-section .image-grid img {
  margin: 0;
  width: 100%;
  height: auto;
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-md);
  corner-shape: squircle;
}

.case-section a {
  font-weight: 700;
  color: #1d1d1d;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
}

.case-section a:hover {
  color: #929292;
}

html.dark .case-section a {
  color: #ccc;
}

html.dark .case-section a:hover {
  color: #666;
}

/* ── Carousel ─────────────────────────────────────── */

.carousel-container {
  overflow: hidden;
  width: 100%;
  margin-bottom: 24px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carousel-scroll 30s linear infinite;
}

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel-item {
  width: 243px;
  flex-shrink: 0;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  corner-shape: squircle;
}

.case-section ul {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: #828282;
  margin-bottom: 24px;
  padding-left: 24px;
  list-style: disc;
}

.case-section ul li {
  margin-bottom: 8px;
}

.case-section ol {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: #828282;
  margin-bottom: 24px;
  padding-left: 24px;
  list-style: decimal;
}

.case-section ol li {
  margin-bottom: 8px;
}

html.dark .case-section ul,
html.dark .case-section ol {
  color: #999;
}

html.dark .case-section h2 {
  color: #fff;
}

html.dark .case-section h3 {
  color: #999;
}

html.dark .case-section p {
  color: #999;
}

.case-section-placeholder {
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--text-tertiary);
  padding: 64px 0;
  text-align: center;
}

/* ── Project Header ─────────────────────────────── */

.project-header {
  margin-top: 32px;
  margin-bottom: 48px;
}

.project-header h1 {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 48px;
  color: #1e293b;
  margin-bottom: 4px;
}

.project-meta {
  display: flex;
  gap: 32px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  color: #828282;
}

.project-meta strong {
  font-weight: 900;
}

.project-meta span {
  white-space: nowrap;
}

html.dark .project-header h1 {
  color: #e2e8f0;
}

html.dark .project-meta {
  color: #999;
}

/* ── Work Page Navigation ───────────────────────── */

.work-nav {
  display: flex;
  margin-top: 64px;
  margin-bottom: 80px;
}

.work-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.253125px;
  text-decoration: none;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  corner-shape: squircle;
  background: transparent;
  color: #929292;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.work-nav a:hover {
  background: #ecebf4;
  color: #1d1d1d;
}

.work-nav .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.work-nav-prev:hover .arrow {
  transform: translateX(-5px);
}

.work-nav-next:hover .arrow {
  transform: translateX(5px);
}

html.dark .work-nav a {
  color: #666;
}

html.dark .work-nav a:hover {
  background: #2a2a2a;
  color: #ccc;
}

/* ── Pull Quote ──────────────────────────────────── */

.pull-quote {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  color: #1d1d1d;
  border-left: 4px solid #000;
  padding-left: 24px;
  margin: 48px 0;
}

html.dark .pull-quote {
  color: #ccc;
  border-left-color: #fff;
}

/* ── Back to Top ─────────────────────────────────── */

#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 8px;
  corner-shape: squircle;
  background: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTop:hover {
  background: #333;
}

html.dark #backToTop {
  background: #fff;
}

html.dark #backToTop svg {
  stroke: #000 !important;
}

html.dark #backToTop:hover {
  background: #ccc;
}

/* ── Dark Mode: button states ─────────────────────── */

html.dark #aboutToggle {
  background-image: url('../assets/images/button-about-me-hover.svg');
}

html.dark #aboutToggle.active,
html.dark #themeToggle.active {
  background-color: var(--bg-social-default);
}

html.dark #aboutToggle:hover,
html.dark #aboutToggle.active:hover,
html.dark #themeToggle:hover,
html.dark #themeToggle.active:hover {
  background-color: #555555;
}

/* ── Dark Mode: social icons show coloured state ─── */

html.dark .social-btn[data-brand="github"] {
  background-image: url('../assets/icons/github-hover.svg');
}

html.dark .social-btn[data-brand="threads"] {
  background-image: url('../assets/icons/threads-hover.svg');
}

html.dark .social-btn[data-brand="dribbble"] {
  background-image: url('../assets/icons/dribbble-icon-hover.svg');
}

html.dark .social-btn[data-brand="facebook"] {
  background-image: url('../assets/icons/facebook-icon-hover.svg');
}

html.dark .social-btn[data-brand="linkedin"] {
  background-image: url('../assets/icons/linkedin-icon-hover.svg');
}

html.dark .social-btn[data-brand="github"]:hover {
  background-image: url('../assets/icons/github-default.svg');
}

html.dark .social-btn[data-brand="threads"]:hover {
  background-image: url('../assets/icons/threads-default.svg');
}

html.dark .social-btn[data-brand="dribbble"]:hover {
  background-image: url('../assets/icons/dribbble-icon-default.svg');
}

html.dark .social-btn[data-brand="facebook"]:hover {
  background-image: url('../assets/icons/facebook-icon-default.svg');
}

html.dark .social-btn[data-brand="linkedin"]:hover {
  background-image: url('../assets/icons/linkedin-icon-default.svg');
}

/* ── Sidebar Backdrop ───────────────────────────── */

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

/* ── Responsive Styles ──────────────────────────── */

@media (max-width: 1199px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .sidebar.hidden {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
  }

  .sidebar.hidden ~ .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .main-wrapper {
    margin-left: 0;
  }

  .main-content {
    padding: 0 48px;
  }

  .sidebar-actions.sidebar-actions,
  .sidebar.hidden ~ .sidebar-actions {
    left: auto;
    right: 24px;
    flex-direction: row;
    top: 16px;
  }

  .nav-tab {
    height: 80px;
    font-size: 48px;
  }

  .nav-section {
    margin-top: 80px;
  }

  .profile-pic {
    width: 72px;
    height: 72px;
  }

  .profile-name {
    font-size: 28px;
  }

  .project-card {
    padding: 32px;
  }

  .apps-row {
    flex-wrap: wrap;
    gap: 18px;
  }

  .app-card {
    flex: 0 0 calc(50% - 9px);
    align-items: center;
    text-align: center;
  }

  .app-icon-container {
    width: 256px;
    height: 256px;
  }

  .case-section .media-pair {
    flex-direction: column;
  }

  .project-meta {
    flex-wrap: wrap;
  }

  .carousel-item {
    width: 200px;
  }
}

@media (max-width: 767px) {
  .main-content {
    padding: 0 24px;
  }

  .nav-tab {
    height: 60px;
    font-size: 28px;
  }

  .nav-section {
    flex-wrap: wrap;
  }

  .nav-slider {
    display: none;
  }

  .nav-tab.active {
    background: #000;
    color: #fff;
  }

  html.dark .nav-tab.active {
    background: #fff;
    color: #000;
  }

  .apps-row {
    flex-direction: column;
    align-items: center;
  }

  .app-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    align-items: center;
    text-align: center;
  }

  .sidebar {
    width: 100%;
  }

  .app-icon-container {
    width: 256px;
    height: 256px;
  }

  .project-card {
    padding: 24px;
  }

  .blog-entry {
    gap: 12px;
  }

  .blog-date {
    width: 96px;
    min-height: auto;
  }

  .blog-date-day {
    font-size: 30px;
  }

  .blog-date-month,
  .blog-date-year {
    font-size: 14px;
  }

  .carousel-item {
    width: 160px;
  }

  .project-header h1 {
    font-size: 32px;
  }
}
