:root {
  --background: #09090b;
  --text-color: #fafafa;
  --text-muted: #a1a1aa;
  --border-color: #27272a;

  --edge: color-mix(in srgb, var(--border-color) 80%, var(--background));

  --card-bg: #09090b;
  --bg-color: var(--background);
  --hero-text: var(--text-color);
  --button-bg: #fafafa;
  --button-text: #09090b;
  --accent-color: #fafafa;
  --link-color: #fafafa;

  --hover-bg-color: #27272a;
  --hover-color: #ffffff;

  --font-sans: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  margin: 0 auto;
  -ms-overflow-style: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-color);
  position: relative;
  transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Side Dashed Lines */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 1px;
  height: 100vh;
  border-right: 1px dashed var(--edge);
  z-index: 9999;
  pointer-events: none;
  transition: border-color 0.3s ease, border-style 0.3s ease;
}

body::before {
  left: calc(50vw - 380px);
}

body::after {
  right: calc(50vw - 380px);
  border-right: none;
  border-left: 1px dashed var(--edge);
}

/* Hide side lines on smaller screens to prevent layout issues */
@media (max-width: 1024px) {
  body::before,
  body::after {
    display: none !important;
  }
}

/* Dashed Border Utilities */
.dashed-border-left {
  border-left: 1px dashed var(--edge);
  padding-left: 24px;
}

.dashed-border-right {
  border-right: 1px dashed var(--edge);
  padding-right: 24px;
}

.dashed-border-top {
  border-top: 1px dashed var(--edge);
  padding-top: 24px;
}

.dashed-border-bottom {
  border-bottom: 1px dashed var(--edge);
  padding-bottom: 24px;
}

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

/* NAV - Monochrome Terminal Style */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 calc(50vw - 380px + 24px);
  height: 80px;
  position: relative;
  background: var(--bg-color);
  transition: background-color 0.3s ease;
  overflow: visible;
  z-index: 1000;
}

nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  border-bottom: 1px dashed var(--edge);
  height: 0;
  pointer-events: none;
  z-index: 1;
  transition: border-color 0.3s ease;
}

nav .left {
  display: flex;
  align-items: center;
  padding-left: 0;
  position: relative;
  z-index: 2;
}

nav .left .logo {
  font-family: var(--font-mono);
  font-size: 20px;
  margin: 0;
  line-height: 1.2;
  vertical-align: middle;
}

/* Navbar Right - Social Pills */
nav .right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

nav .right .language-dropdown {
  z-index: 10001;
}

nav .right a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  opacity: 0.8;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

nav .right a:hover,
nav .right a:focus {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
  transform: translateY(-1px);
}

nav .right a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

nav .right a i {
  font-size: 16px;
  flex-shrink: 0;
}

nav .right a span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  padding: 6px;
  z-index: 10003;
  transition: all 0.3s ease;
}

.hamburger-menu:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.hamburger-menu.active {
  border-color: rgba(255, 255, 255, 0.5);
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Language Dropdown */
/* Desktop/Tablet Language Dropdown */
.language-dropdown.desktop-language-selector {
  position: relative;
  display: inline-block;
  z-index: 10002;
  isolation: isolate;
  margin: 0;
  padding: 0;
}

/* Mobile Language Selector - Hidden by default */
.mobile-language-selector {
  display: none;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin: 0;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  opacity: 0.8;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
  box-sizing: border-box;
}

.language-toggle:hover,
.language-toggle:focus {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
  transform: translateY(-1px);
}

.language-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.language-toggle .fa-chevron-down {
  font-size: 12px;
  transition: transform 0.3s ease;
  margin-left: 6px;
}

.language-toggle span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Language Dropdown Menu */
.language-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  min-width: 80px;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  pointer-events: none;
  display: block;
  margin: 0;
  padding: 0;
  transform-origin: top right;
}

.language-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: var(--font-sans);
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-option:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.language-option:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.language-option span {
  font-size: 14px;
  font-weight: 500;
}

/* Sparkles Canvas Styling */
.sparkles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.sparkles-section {
  position: relative;
  overflow: hidden;
}

.sparkles-section>* {
  position: relative;
  z-index: 1;
}

/* Tooltip Styles */
.tooltip-container {
  max-width: 300px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tooltip-dark {
  background: rgba(0, 0, 0, 0.9);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* section 1:hero - Terminal Card */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  min-height: 30vh;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}

/* Shooting Stars Animation */
.hero-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-starfield .shooting-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.hero-starfield .star-1 {
  top: 15%;
  left: -50px;
  animation: shootingStarHeroA 6s ease-in-out infinite;
}

.hero-starfield .star-2 {
  top: 55%;
  left: -60px;
  animation: shootingStarHeroB 7.5s ease-in-out infinite 1.8s;
}

.hero-starfield .star-3 {
  top: 35%;
  left: -45px;
  animation: shootingStarHeroC 8.5s ease-in-out infinite 3.2s;
}

.hero-starfield .star-4 {
  top: 75%;
  left: -55px;
  animation: shootingStarHeroD 9.5s ease-in-out infinite 4.4s;
}

@keyframes shootingStarHeroA {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  80% {
    opacity: 0.7;
  }

  100% {
    transform: translate(620px, 260px);
    opacity: 0;
  }
}

@keyframes shootingStarHeroB {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  80% {
    opacity: 0.7;
  }

  100% {
    transform: translate(540px, -230px);
    opacity: 0;
  }
}

@keyframes shootingStarHeroC {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  80% {
    opacity: 0.7;
  }

  100% {
    transform: translate(590px, 210px);
    opacity: 0;
  }
}

@keyframes shootingStarHeroD {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  80% {
    opacity: 0.7;
  }

  100% {
    transform: translate(520px, -260px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-starfield .shooting-star {
    animation: none;
    opacity: 0;
  }
}

/* Terminal Card Container */
.terminal-card {
  position: relative;
  width: 100%;
  max-width: 700px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  opacity: 1;
  border-radius: 5px;
  padding: 32px;
  overflow: hidden;
  z-index: 1;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    opacity 0.4s ease;
}

/* Additional Shooting Stars for Terminal Card */
.terminal-card::before,
.terminal-card::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.terminal-card::before {
  top: 30%;
  left: -30px;
  animation: shootingStarCard1 7s ease-in-out infinite 3s;
}

.terminal-card::after {
  top: 80%;
  left: -30px;
  animation: shootingStarCard2 9s ease-in-out infinite 5s;
}

@keyframes shootingStarCard1 {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  95% {
    opacity: 0;
  }

  100% {
    transform: translate(500px, 200px);
    opacity: 0;
  }
}

@keyframes shootingStarCard2 {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  95% {
    opacity: 0;
  }

  100% {
    transform: translate(480px, -180px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .terminal-card::before,
  .terminal-card::after {
    animation: none;
    opacity: 0;
  }
}

/* Corner Highlights */
.corner-highlight {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.corner-tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
  /* border-radius: 16px 0 0 0; */
}

.corner-tr {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
  /* border-radius: 0 16px 0 0; */
}

.corner-bl {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
  /* border-radius: 0 0 0 16px; */
}

.corner-br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
  /* border-radius: 0 0 16px 0; */
}

/* Terminal Header */
.terminal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 0 0;
}

.terminal-icons {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  background: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-color);
}

/* Terminal Content */
.terminal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin-bottom: 32px;
}

.profile-image-wrapper {
  flex-shrink: 0;
  position: relative;
  width: 120px;
  height: 120px;
  max-width: 100%;
  margin: 0 auto 24px;
  border-radius: 4px;
  overflow: hidden;
  cursor: default;
  border: 1px solid var(--border-color);
}

.profile-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  background: var(--bg-color);
  display: block;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0;
  left: 0;
}

.profile-image.hover-image {
  opacity: 0;
  z-index: 1;
}

.profile-image-wrapper:hover .profile-image.default-image {
  opacity: 0;
  transform: scale(1.1);
}

.profile-image-wrapper:hover .profile-image.hover-image {
  opacity: 1;
  transform: scale(1);
}

.profile-image-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Profile Info */
.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.profile-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  vertical-align: middle;
}

.verified-badge {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color);
  background: transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-color);
  display: inline-block;
}

.profile-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-color);
  margin: 4px 0 0 0;
  opacity: 0.7;
  min-height: 20px;
}

.role-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  filter: blur(0px);
  opacity: 0.9;
  transition: color 0.3s ease;
  will-change: opacity, filter, transform;
}

.role-enter {
  animation: roleBlurIn 0.55s ease forwards;
}

.role-exit {
  animation: roleBlurOut 0.35s ease forwards;
}

@keyframes roleBlurIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(10px) scale(0.98);
  }

  60% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0.9;
  }
}

@keyframes roleBlurOut {
  0% {
    opacity: 0.9;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-8px) scale(0.98);
  }
}

.profile-email i {
  font-size: 13px;
}

/* Terminal Tagline */
.terminal-tagline {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.7;
  max-width: 90%;
  margin: 0 auto;
  font-weight: 400;
}

/* GitHub Activity Section - Between Hero and Projects */
.github-activity-section {
  padding: 24px 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-color);
  margin-bottom: 30px;
  transition: background-color 0.3s ease;
}

.building-activity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.building-activity:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.building-activity i {
  font-size: 16px;
}

.building-info {
  display: flex;
  flex-direction: column;
}

.building-label {
  font-size: 13px;
  font-weight: 500;
}

/* CLI Command Section - Minimal */
.cli-section {
  padding: 32px 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cli-top {
  padding: 24px 48px 8px;
}

.cli-minimal {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
}

/* Animated border using pseudo-element */
.cli-minimal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  padding: 1px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.1));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: borderSweep 5s linear infinite;
}

@keyframes borderSweep {
  0% {
    background-position: 0% 0;
  }

  100% {
    background-position: 300% 0;
  }
}

/* Shooting star effect */
.cli-minimal::after {
  content: "";
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  top: 50%;
  left: -30px;
  animation: shootingStar1 10s ease-in-out infinite;
  z-index: 1;
}

@keyframes shootingStar1 {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 0;
  }

  100% {
    transform: translate(250px, 100px);
    opacity: 0;
  }
}

/* Skills Section - Pill-Shaped Layout */
.skills-section {
  position: relative;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 60px 24px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.skills-section::before,
.projects::before,
.contact::before,
.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  border-top: 1px dashed var(--edge);
  height: 0;
  pointer-events: none;
  z-index: 0;
  transition: border-color 0.3s ease;
}

.skills-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.skills-title {
  text-align: left;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 2rem 0;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.skills-subtitle {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0 0 3rem 0;
  font-style: italic;
}

/* Category Filter Buttons */
.skills-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 6px;
  background: rgba(128, 128, 128, 0.05);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  opacity: 0.6;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

/* Section Heading */
.section-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-color);
  letter-spacing: -0.025em;
}

/* Stack Grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stack-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
  aspect-ratio: 1;
  text-decoration: none;
}

.stack-item:hover {
  opacity: 0.7;
}

.stack-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* GitHub Chart */
.github-chart-link {
  display: block;
  transition: opacity 0.2s ease;
  max-width: 700px;
  margin: 0 auto;
}

.github-chart-link:hover {
  opacity: 0.85;
}

.github-chart {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  overflow: hidden;
}

/* ========== TABLET RESPONSIVE (1024px and below) ========== */
@media (max-width: 1024px) {

  /* Hide side dashed lines on tablet and below */
  body::before,
  body::after {
    display: none;
  }

  /* Navigation */
  nav {
    padding: 0 calc(50vw - 420px + 24px);
  }

  /* Navbar Clock - Tablet */
  .clock-time {
    font-size: 16px;
  }

  .clock-location {
    font-size: 10px;
  }

  nav .right {
    gap: 10px;
  }

  nav .right a {
    padding: 7px 14px;
    font-size: 13px;
  }

  nav .right a i {
    font-size: 15px;
  }

  nav .right a span {
    font-size: 13px;
  }

  .language-toggle {
    padding: 7px 14px;
    font-size: 13px;
  }

  /* Hero Section */
  .hero {
    padding: 40px 32px;
  }

  .terminal-card {
    max-width: 650px;
  }

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

  /* GitHub Activity Section */
  .github-activity-section {
    padding: 18px 32px;
  }

  /* Projects Section */
  .projects {
    padding: 40px 32px;
  }

  .projects-title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .projects-list {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
  }

  .project-card {
    width: 100%;
    height: auto;
    min-height: 350px;
  }

  .card-image-container {
    width: 100%;
    height: 140px;
  }

  .card-content {
    padding: 16px;
  }

  .card-label {
    font-size: 11px;
  }

  .card-title {
    font-size: 18px;
    line-height: 1.1;
  }

  .card-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Skills Section */
  .skills-section {
    padding: 40px 32px;
  }

  .skills-title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  /* Contact Section */
  .contact {
    padding: 40px 32px 40px;
  }

  .contact-title {
    font-size: 32px;
  }
}

/* ========== MOBILE LANDSCAPE & SMALL TABLET (768px and below) ========== */
@media (max-width: 768px) {

  /* Hide side dashed lines on mobile */
  body::before,
  body::after {
    display: none;
  }

  /* Navigation */
  nav {
    padding: 0 20px;
    height: 70px;
  }

  /* Hamburger Menu - Show on Mobile */
  .hamburger-menu {
    display: flex;
  }

  /* Hide nav links by default on mobile */
  nav .right {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 12px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 12px;
  }
  
  nav .right .language-dropdown {
    z-index: 10004;
    position: relative;
  }

  nav .right.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Hide desktop dropdown on mobile */
  .desktop-language-selector {
    display: none !important;
  }
  
  /* Show mobile language selector */
  .mobile-language-selector {
    display: flex !important;
    gap: 8px;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  
  .mobile-lang-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
  }
  
  .mobile-lang-btn:hover,
  .mobile-lang-btn:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
  }
  
  .mobile-lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
  }
  
  .mobile-lang-btn span {
    font-size: 14px;
    font-weight: inherit;
  }

  nav .right a,
  nav .right .theme-toggle,
  nav .right .mobile-language-selector {
    width: 100%;
    justify-content: center;
  }

  nav .right a {
    padding: 12px 16px;
    font-size: 14px;
  }

  nav .right a i {
    font-size: 16px;
  }

  nav .right a span {
    display: inline;
  }

  /* Navbar Clock - Mobile */
  .clock-time {
    font-size: 14px;
  }

  .clock-location {
    font-size: 9px;
  }

  .language-toggle {
    padding: 6px 12px;
    font-size: 13px;
  }

  .language-dropdown-menu {
    right: 20px !important;
    left: auto !important;
    min-width: 100px;
    max-width: calc(100vw - 40px);
    z-index: 100000 !important;
  }
  
  .language-dropdown {
    z-index: 10003;
  }
  
  .language-toggle {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .language-option {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
    min-height: 44px; /* Better touch target on mobile */
  }

  /* Hero Section */
  .hero {
    padding: 30px 20px;
    min-height: 50vh;
  }

  .terminal-card {
    padding: 24px;
    max-width: 100%;
  }

  /* Terminal Header - Mobile */
  .terminal-header {
    flex-direction: column;
    gap: 12px;
  }

  .terminal-icons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .spotify-pill {
    max-width: calc(100% - 80px);
    font-size: 11px;
    padding: 0 10px;
    height: 32px;
  }

  .spotify-text {
    font-size: 11px;
  }

  .spotify-icon {
    font-size: 13px;
  }

  .btc-price {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 6px 12px;
  }

  .btc-icon {
    font-size: 13px;
  }

  .btc-value {
    font-size: 12px;
  }

  .terminal-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-image-wrapper {
    width: 100px;
    height: 100px;
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }

  .profile-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
  }

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

  .name-row {
    flex-direction: column;
    gap: 8px;
  }

  .status-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .profile-title {
    font-size: 15px;
  }

  .profile-email {
    justify-content: center;
    font-size: 13px;
  }

  .terminal-tagline {
    font-size: 13px;
    max-width: 100%;
  }

  /* CLI Section */
  .cli-section {
    padding: 25px 20px;
  }

  .cli-minimal {
    gap: 10px;
    padding: 8px 12px;
  }

  /* GitHub Activity Section */
  .github-activity-section {
    padding: 16px 20px;
  }

  .blog-spotlight {
    width: calc(100% - 40px);
    padding: 20px 0 32px;
  }

  .blog-spotlight__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .blog-spotlight__details {
    align-items: flex-start;
    min-width: 100%;
  }

  .activity-pills-container {
    flex-direction: column;
    gap: 10px;
  }

  .building-activity,
  .spotify-activity {
    padding: 7px 12px;
    gap: 8px;
    max-width: 100%;
  }

  .building-activity i,
  .spotify-activity-icon {
    font-size: 14px;
  }

  .building-label,
  .spotify-song {
    font-size: 11px;
  }

  .building-project,
  .spotify-artist {
    font-size: 9px;
  }

  .spotify-play-icon {
    font-size: 10px;
  }

  .cli-label {
    font-size: 12px;
  }

  .cli-code {
    font-size: 13px;
    padding: 3px 8px;
  }

  /* Projects Section */
  .projects {
    padding: 30px 20px;
  }

  .projects-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .projects-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-card {
    border-radius: 14px;
  }

  /* Stack Section */
  .stack-grid {
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 8px;
  }

  .stack-item img {
    width: 36px;
    height: 36px;
  }

  /* Skills Section */
  .skills-section {
    padding: 30px 20px;
  }

  .skills-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .skills-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
  }

  .skills-categories {
    gap: 6px;
    margin-bottom: 2rem;
    padding: 6px;
    max-width: 95%;
  }

  .skills-grid {
    gap: 12px;
  }

  .tags {
    gap: 8px;
    justify-content: center;
  }

  .tag {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Contact Section */
  .contact {
    padding: 30px 20px 30px;
    gap: 32px;
  }

  .contact-title {
    font-size: 1.75rem;
  }

  .contact-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }

  .contact-text-highlight {
    font-size: 1rem;
  }

  .contact-button {
    width: 100%;
    max-width: 320px;
    font-size: 14px;
    padding: 12px 20px;
  }

  .contact-quote {
    margin-top: 40px;
  }

  .contact-quote p {
    font-size: 1rem;
  }

  /* To Top Button */
  .to-top a {
    padding: 8px 14px;
    gap: 4px;
  }

  .to-top-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .to-top-label {
    font-size: 9px;
  }
}

/* ========== MOBILE PORTRAIT (480px and below) ========== */
@media (max-width: 480px) {

  /* Side dashed lines already hidden on mobile */

  /* Navigation */
  nav {
    padding: 0 16px;
    height: 65px;
  }

  /* Navbar Clock - Small Mobile */
  .clock-time {
    font-size: 13px;
  }

  .clock-location {
    font-size: 8px;
  }

  nav .right {
    gap: 6px;
  }

  nav .right a {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 18px;
  }

  nav .right a i {
    font-size: 13px;
  }

  /* Hero Section */
  .hero {
    padding: 10px 16px;
  }

  .terminal-card {
    padding: 20px;
    border-radius: 4px;
  }

  .corner-highlight {
    width: 10px;
    height: 10px;
  }

  .terminal-header {
    flex-direction: column-reverse;
    gap: 12px;
    margin-bottom: 24px;
  }

  .icon-button {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .terminal-clock {
    font-size: 13px;
  }

  .profile-image-wrapper {
    width: 90px;
    height: 90px;
    max-width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .profile-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
  }

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

  .status-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .status-dot {
    width: 5px;
    height: 5px;
  }

  .profile-title {
    font-size: 14px;
  }

  .profile-email {
    font-size: 12px;
  }

  .terminal-tagline {
    font-size: 12px;
  }

  /* CLI Section */
  .cli-section {
    padding: 20px 16px;
  }

  .cli-minimal {
    gap: 8px;
    padding: 6px 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cli-label {
    font-size: 11px;
  }

  .cli-code {
    font-size: 12px;
    padding: 2px 6px;
  }

  .cli-copy-mini i {
    font-size: 12px;
  }

  /* GitHub Activity Section - Small Mobile */
  .github-activity-section {
    padding: 12px 16px;
  }

  .blog-spotlight {
    width: calc(100% - 24px);
    padding: 18px 0 28px;
  }

  .blog-spotlight__link {
    gap: 14px;
  }

  .building-activity {
    padding: 6px 10px;
    gap: 7px;
  }

  .building-activity i {
    font-size: 13px;
  }

  .building-label {
    font-size: 10px;
  }

  .building-project {
    font-size: 8px;
  }

  /* Projects Section */
  .projects {
    padding: 30px 16px;
  }

  .projects-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  .projects-list {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 16px;
  }

  .projects-footer-text {
    margin-top: 40px;
    padding: 0 16px;
  }

  .projects-footer-text p {
    font-size: 0.875rem;
  }

  .project-card {
    width: 100%;
    height: auto;
    min-height: 380px;
  }

  .card-image-container {
    width: 100%;
    height: 120px;
  }

  .card-content {
    padding: 16px;
  }

  .card-label {
    font-size: 10px;
    margin: 0 0 6px 0;
  }

  .card-title {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 10px 0;
  }

  .card-tags {
    margin: 0 0 12px 0;
  }

  .card-tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  .placeholder-icon {
    font-size: 40px;
  }

  /* Skills Section */
  .skills-section {
    padding: 30px 16px;
  }

  .skills-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .skills-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
  }

  .skills-categories {
    gap: 5px;
    margin-bottom: 2rem;
    padding: 5px;
    max-width: 100%;
  }

  .skills-grid {
    gap: 10px;
  }

  /* Contact Section */
  .contact {
    padding: 30px 16px 30px;
    gap: 28px;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-text {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }

  .contact-text-highlight {
    font-size: 1rem;
    margin-top: 1.5rem;
  }

  .contact-button {
    max-width: 100%;
    font-size: 13px;
    padding: 11px 18px;
  }

  .contact-button i {
    font-size: 14px;
  }

  .contact-quote {
    margin-top: 32px;
  }

  .contact-quote p {
    font-size: 0.9375rem;
  }

  /* Contact Footer - Mobile Alignment */
  .contact-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 0 16px;
    width: 100%;
  }

  /* To Top Button */
  .to-top {
    margin-top: 0;
  }

  .to-top a {
    padding: 10px 16px;
    gap: 5px;
  }

  .to-top-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .to-top-label {
    font-size: 10px;
  }

  /* Clicker */
  .hero .hero-clicker {
    right: 16px;
    top: 80px;
  }

  .hero-clicker #clickBtn {
    height: 32px;
    width: 32px;
    font-size: 14px;
  }

  .hero-clicker .clicker-count {
    font-size: 12px;
  }

  #count {
    padding: 16px;
    font-size: 22px;
  }
}

/* ========== EXTRA SMALL MOBILE (360px and below) ========== */
@media (max-width: 360px) {

  /* Side dashed lines already hidden on mobile */

  nav {
    padding: 0 12px;
  }

  /* Navbar Clock - Extra Small Mobile */
  .clock-time {
    font-size: 12px;
  }

  .clock-location {
    font-size: 8px;
  }

  nav .right {
    gap: 5px;
  }

  nav .right a {
    padding: 5px 9px;
    font-size: 11px;
    border-radius: 16px;
  }

  nav .right a i {
    font-size: 12px;
  }

  .hero {
    padding: 40px 12px;
  }

  .terminal-card {
    padding: 16px;
  }

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

  .projects {
    padding: 60px 12px;
  }

  .projects-title {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
  }

  .skills-section {
    padding: 60px 12px;
  }

  .skills-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .skills-subtitle {
    font-size: 0.875rem;
  }

  .skills-categories {
    gap: 4px;
    padding: 4px;
    max-width: 100%;
  }

  .skills-grid {
    gap: 8px;
  }

  .tags {
    gap: 6px;
  }

  .tag {
    padding: 6px 12px;
    font-size: 12px;
  }

  .contact {
    padding: 60px 12px 40px;
  }

  .contact-title {
    font-size: 1.75rem;
  }

  .contact-text {
    font-size: 0.875rem;
  }

  .contact-quote {
    margin-top: 25px;
  }

  .contact-quote p {
    font-size: 0.875rem;
  }

  /* Contact Footer - Extra Small Mobile */
  .contact-footer {
    gap: 8px;
    margin-top: 24px;
    padding: 0 12px;
  }

  .to-top a {
    padding: 8px 14px;
    gap: 4px;
  }

  .to-top-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .to-top-label {
    font-size: 9px;
  }

  .clicker {
    padding: 8px 14px;
    gap: 4px;
  }

  .clicker-wrapper {
    gap: 5px;
  }

  .hero-clicker #clickBtn {
    height: 28px;
    width: 28px;
    font-size: 13px;
  }

  #count {
    font-size: 12px;
  }

  .clicker-label {
    font-size: 9px;
  }
}

/* Projects Section - Minimal List Design */
.projects {
  padding: 80px 24px;
  background: var(--bg-color);
  position: relative;
  transition: background-color 0.3s ease;
}

.projects-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.projects-title {
  text-align: left;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 2rem 0;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

/* Bento Grid Layout */
.bento-grid {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 10px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
  }
}

/* Blogs Grid */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  width: 100%;
  height: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  opacity: 0.9;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(128, 128, 128, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
  opacity: 1;
  box-shadow: 0 16px 48px rgba(128, 128, 128, 0.25);
  transform: translateY(-4px);
}

.blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-image-container {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg,
      rgba(99, 102, 241, 0.1) 0%,
      rgba(168, 85, 247, 0.1) 100%);
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-link:hover .blog-image {
  transform: scale(1.05);
}

.blog-content {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  flex: 1;
}

.blog-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0;
}

/* Work Experience Section */
.experience-section {
  position: relative;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 24px 24px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.experience-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  height: 0;
  pointer-events: none;
  z-index: 0;
  transition: border-color 0.3s ease;
}

/* Education Section */
.education-section {
  position: relative;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 24px 24px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.education-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  height: 0;
  pointer-events: none;
  z-index: 0;
  transition: border-color 0.3s ease;
}

.education-wrap {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.education-item {
  padding: 8px 0 4px;
}

.education-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.education-institution {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.education-location {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.education-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.education-degree {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
}

.education-period {
  font-size: 14px;
  color: var(--text-muted);
}

.experience-wrap {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.experience-item {
  padding: 8px 0 4px;
}

.experience-item+.experience-item {
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  margin-top: 4px;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.company-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

.company-blur {
  filter: blur(3px);
  user-select: none;
  pointer-events: none;
}

.current-employer-indicator {
  position: relative;
  width: 12px;
  height: 12px;
  margin-left: 4px;
}

.current-employer-indicator::before,
.current-employer-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.current-employer-indicator::before {
  background: rgba(56, 189, 248, 0.45);
  transform: scale(1);
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.current-employer-indicator::after {
  background: #38bdf8;
  transform: scale(0.55);
}

@keyframes ping {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  75%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.positions-wrapper {
  position: relative;
  margin-top: 2px;
  padding-left: 16px;
}

.positions-wrapper::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 2px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.position {
  position: relative;
  padding: 4px 0 1px;
}

.position:last-child::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 16px;
  height: 10px;
  background: var(--bg-color);
}

.position-toggle {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 4px 4px 4px 0;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-color);
}

.position-toggle::before {
  content: "";
  position: absolute;
  inset: -2px -3px -3px 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.position-toggle:hover::before {
  opacity: 1;
}

.position-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
  margin-bottom: 2px;
}

.position-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: var(--text-color);
  opacity: 0.6;
}

.position-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
}

.position-chevron {
  font-size: 0.7rem;
  color: var(--text-color);
  opacity: 0.4;
  transform-origin: center;
  transition: transform 0.15s ease-out;
}

.position[data-open="true"] .position-chevron {
  transform: rotate(180deg);
}

.position-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 26px;
  font-size: 0.75rem;
  color: var(--text-color);
  opacity: 0.6;
  z-index: 1;
}

.meta-separator {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.position-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-left: 26px;
  transition: max-height 0.22s ease-out, opacity 0.2s ease-out,
    padding-top 0.22s ease-out, padding-bottom 0.22s ease-out;
}

.position[data-open="true"] .position-body {
  max-height: 400px;
  opacity: 1;
  padding-top: 4px;
  padding-bottom: 2px;
}

.position-description {
  margin: 0 0 4px;
  padding-left: 0;
  list-style: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.5;
}

.position-description li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 2px;
}

.position-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-color);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .experience-wrap {
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .experience-card {
    width: 100%;
    padding: 20px;
    margin-left: 0;
    box-sizing: border-box;
  }

  .experience-description li {
    white-space: normal;
    /* Ensure text wraps */
    word-wrap: break-word;
  }

  .company-name {
    font-size: 0.95rem;
  }

  .position-title {
    font-size: 0.85rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .stack-grid {
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 6px;
  }

  .stack-item img {
    width: 32px;
    height: 32px;
  }

  .projects-list {
    gap: 16px;
  }

  .project-card {
    min-height: 320px;
  }

  .card-image-container {
    height: 120px;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Mobile responsiveness for projects */
@media (max-width: 768px) {
  .projects-list {
    grid-template-columns: 1fr !important;
  }
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Project Card - Modern Featured Style */
.project-card {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  opacity: 0.9;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(128, 128, 128, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure all project cards have the same height */
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.projects-list .project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.project-card:hover {
  opacity: 1;
  box-shadow: 0 16px 48px rgba(128, 128, 128, 0.25);
  transform: translateY(-4px);
}

.card-link:hover {
  transform: translateY(-4px);
}

/* Card Image Container - Gradient Header */
.card-image-container {
  width: 100%;
  height: 160px;
  margin: 0;
  /* border-radius: 16px 16px 0 0; */
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* border-radius: 16px 16px 0 0; */
}

.invoicegen-image {
  object-position: center 40%;
}

.container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

h2 {
  font-size: 18px;
  margin-top: 50px;
  margin-bottom: 20px;
  color: #ffffff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 15px;
  border: 1px solid #2a2a2a;
  cursor: default;
  user-select: none;
  transition: 0.25s;
}

.tag:hover {
  background: #2a2a2a;
}

/* Placeholder for projects without images */
.card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  /* border-radius: 16px 16px 0 0; */
}

.placeholder-icon {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.8);
}

/* Card Content */
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--card-bg);
  transition: background-color 0.3s ease;
  min-height: 0;
}

/* Ensure card status section stays at bottom */
.card-status-section {
  margin-top: auto;
  padding-top: 16px;
}

/* Card Label */
.card-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

/* Card Title */
.card-title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-color);
  font-weight: 700;
  margin: 0 0 12px 0;
  hyphens: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title strong {
  font-weight: 700;
  color: var(--text-color);
}

/* Card Description */
.card-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  opacity: 0.7;
  margin: 0 0 16px 0;
  flex: 1;
}

/* Card Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px 0;
}

/* Technologies Label */
.technologies-label {
  font-size: 11px;
  color: var(--text-color);
  opacity: 0.5;
  margin: 0 0 8px 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-tag {
  padding: 3px 8px;
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid var(--border-color);
  opacity: 0.8;
  border-radius: 6px;
  font-size: 10px;
  color: var(--text-color);
  font-weight: 600;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card-link:hover .card-tag {
  opacity: 1;
}

/* Status and Action Section */
.card-status-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  opacity: 0.7;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.status-indicator.building {
  background: #ef4444;
}

.status-text {
  font-size: 12px;
  color: var(--text-color);
  font-weight: 500;
}

.card-action {
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-action:hover {
  opacity: 0.7;
  transform: translateX(2px);
}

.card-action::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.2s ease;
}

.card-action:hover::after {
  transform: translateX(2px);
}

.card-action-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-family: var(--font-sans);
}

.card-action-btn:hover {
  opacity: 0.7;
  transform: translateX(2px);
}

/* Removed arrow from View Details button */

.card-github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.card-github-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.card-github-link i {
  font-size: 16px;
}

/* Projects Footer Text */
.projects-footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
  padding: 0 24px;
}

.projects-footer-text p {
  font-size: 0.9375rem;
  color: var(--text-color);
  opacity: 0.45;
  margin: 0;
  text-align: center;
  line-height: 1.6;
  font-style: italic;
}

.projects-footer-text a {
  color: var(--text-color);
  opacity: 0.7;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.projects-footer-text a:hover {
  opacity: 0.95;
  border-bottom-color: var(--border-color);
}

/* GitHub Activity - Between Hero and Projects */
.github-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
}

.loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.activity-pills-container {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Building Activity Pill */
.building-activity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.85;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.building-activity:hover {
  background: rgba(128, 128, 128, 0.15);
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.building-activity i {
  font-size: 18px;
  color: var(--text-color);
  flex-shrink: 0;
  opacity: 0.9;
}

.building-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.building-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.95;
  margin: 0;
  letter-spacing: 0.02em;
}

.building-project {
  font-size: 11px;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0;
  font-weight: 500;
}

/* Spotify Activity Pill - Matches GitHub Activity */
.spotify-activity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.85;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  max-width: 280px;
}

.spotify-activity:hover {
  background: rgba(128, 128, 128, 0.15);
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.spotify-activity-icon {
  font-size: 18px;
  color: #1db954;
  flex-shrink: 0;
  opacity: 0.95;
}

.spotify-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.spotify-song {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.95;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.spotify-artist {
  font-size: 11px;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.spotify-play-icon {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-color);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.spotify-activity:hover .spotify-play-icon {
  color: #1db954;
  opacity: 0.9;
  transform: scale(1.2);
}

.github-icon {
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
  opacity: 0.7;
}

.github-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.github-action {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-repo {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-link-icon {
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.github-activity:hover .github-link-icon {
  color: rgba(255, 255, 255, 0.5);
  transform: translate(2px, -2px);
}

/* Contact Footer - Back to Top & Clicker */
.contact-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* Back to Top Button - Minimal & Appealing */
.to-top {
  display: flex;
  justify-content: center;
  align-items: center;
}

.to-top a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border-color);
  opacity: 0.7;
  border-radius: 24px;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}

.to-top a:hover {
  background: rgba(128, 128, 128, 0.1);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 128, 128, 0.2);
}

.to-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  opacity: 0.8;
  background: transparent;
  color: var(--text-color);
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.to-top a:hover .to-top-icon {
  background: rgba(128, 128, 128, 0.1);
  opacity: 1;
  transform: translateY(-2px);
}

.to-top-label {
  font-size: 11px;
  color: var(--text-color);
  opacity: 0.4;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.theme-icon {
  font-size: inherit;
}

/* contact - Monochrome Terminal Style */
.contact {
  padding: 120px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  background: var(--bg-color);
  position: relative;
  transition: background-color 0.3s ease;
}

.contact-title {
  text-align: left;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.contact-content {
  max-width: 680px;
  text-align: center;
}

.contact-text {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.contact-text-highlight {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  opacity: 1;
}

.contact-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--font-sans);
}

.contact-button i {
  font-size: 16px;
}

.contact-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.email-button {
  word-break: break-all;
}

.email-button span {
  font-size: 14px;
  font-family: var(--font-mono);
}

/* Contact Quote */
.contact-quote {
  margin-top: 48px;
  max-width: 700px;
  text-align: center;
}

.contact-quote p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.5;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.projectLink,
.resume {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.projectLink i,
.resume i {
  font-size: 14px;
}

.projectLink:hover,
.resume:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.projectLink:hover i,
.resume:hover i {
  color: var(--text-color);
}

.github-logo-projects {
  font-size: 35px;
  color: var(--text-color);
  text-decoration: none;
  margin-top: 50px;
}

.paper-button-wrapper {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.paper-button-wrapper .paper-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-image {
  width: 90%;
  max-width: 500px;
  border-radius: 4px;
  margin: 10px 0;
  height: 250px;
  margin-left: 17px;
}

/* Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slideInLeft 1s ease-out forwards;
}

/* Section Loader */
.section-loader {
  height: 4px;
  width: 100vw;
  --c: no-repeat linear-gradient(var(--button-bg) 0 0);
  background: var(--c), var(--c), transparent;
  background-size: 20% 100%, 20% 100%, 100% 100%;
  animation: section-bar 12s infinite;
  margin: 60px 0;
  overflow: hidden;
}

@keyframes section-bar {
  0% {
    background-position: -150% 0, -150% 0;
  }

  66% {
    background-position: 250% 0, -150% 0;
  }

  100% {
    background-position: 250% 0, 250% 0;
  }
}

.wave {
  display: inline-block;
  animation: wave-animation 5s infinite;
  transform-origin: 70% 70%;
  /* pivot around lower right of the hand */
  font-size: 3rem;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Progress Bars */
.progress-container {
  background: var(--bg-color);
  border-radius: 4px;
  padding: 20px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
  margin-top: 10px;
  border: 1px solid var(--border-color);
  /* margin-bottom: 100px; */
}

.progress-label {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 10px;
}

.progress-bar {
  position: relative;
  height: 10px;
  /* background-color: var(--progress-tooltip-text); */
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill1,
.progress-fill2,
.progress-fill3 {
  height: 100%;
  background-color: var(--progress-tooltip-bg);
  border-radius: 10px 0 0 10px;
  position: relative;
}

.progress-fill1 {
  width: 90%;
}

.progress-fill2 {
  width: 40%;
}

.progress-fill3 {
  width: 75%;
}

.progress-tooltip {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--progress-tooltip-bg);
  color: var(--progress-tooltip-text);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.progress-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--progress-tooltip-bg) transparent;
}

.progressbars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  /* margin-bottom: 100px; */
}

/* Clicker Component - Matching To-Top Style */
.clicker {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border-color);
  opacity: 0.7;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.clicker:hover {
  background: rgba(128, 128, 128, 0.1);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 128, 128, 0.2);
}

.clicker-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

#count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.9;
  min-width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Clicker button styling */
.hero-clicker #clickBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  opacity: 0.8;
  background: transparent;
  color: var(--text-color);
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.clicker:hover #clickBtn {
  background: rgba(128, 128, 128, 0.1);
  opacity: 1;
}

.hero-clicker #clickBtn:active {
  transform: scale(0.95);
}

.hero-clicker .clicker-count {
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.9;
  font-size: 14px;
}

.clicker-label {
  font-size: 11px;
  color: var(--text-color);
  opacity: 0.4;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.contact-footer .to-top a,
.contact-footer .clicker {
  width: 140px;
  min-height: 84px;
  justify-content: center;
}

@media (max-width: 1024px) {
  .contact-footer {
    gap: 14px;
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .contact-footer {
    gap: 12px;
    margin-top: 28px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .to-top,
  .clicker {
    flex: 0 0 auto;
  }

  .clicker {
    padding: 10px 16px;
    gap: 5px;
  }

  .clicker-wrapper {
    gap: 6px;
  }

  .hero-clicker #clickBtn {
    height: 30px;
    width: 30px;
    font-size: 14px;
  }

  #count {
    font-size: 13px;
  }

  .clicker-label {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .contact-footer {
    gap: 10px;
    margin-top: 24px;
  }

  .clicker {
    padding: 8px 14px;
    gap: 4px;
  }

  .clicker-wrapper {
    gap: 6px;
  }

  .hero-clicker #clickBtn {
    height: 28px;
    width: 28px;
    font-size: 13px;
  }

  #count {
    font-size: 12px;
  }

  .clicker-label {
    font-size: 9px;
  }
}

/* Footer */
.site-footer {
  background: var(--bg-color);
  padding: 40px 24px;
  margin-top: 60px;
  position: relative;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.footer-content {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  opacity: 0.7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.footer-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-link i {
  font-size: 16px;
  color: var(--text-color);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-link:hover i {
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  opacity: 0.3;
  width: 100%;
  max-width: 600px;
}

.footer-copyright p {
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.6;
  margin: 0;
  font-weight: 400;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .site-footer {
    padding: 32px 20px;
    margin-top: 40px;
  }

  .footer-content {
    gap: 20px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-link {
    font-size: 13px;
  }

  .footer-link i {
    font-size: 15px;
  }

  .footer-copyright p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 28px 16px;
    margin-top: 32px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-link span {
    display: none;
  }

  .footer-link i {
    font-size: 18px;
  }

  .footer-copyright {
    padding-top: 12px;
  }

  .footer-copyright p {
    font-size: 11px;
  }
}

/* Dino Game Styles */
.dino-game-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dino-game-container.fade-in {
  opacity: 1;
}

.game-close-btn {
  position: absolute;
  top: 0.2rem;
  right: 1rem;
  background: rgba(128, 128, 128, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0.7;
}

.game-close-btn:hover {
  background: rgba(128, 128, 128, 0.15);
  opacity: 1;
  transform: scale(1.05);
}

.game-close-btn i {
  font-size: 18px;
}

#dinoCanvas {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-color);
  image-rendering: pixelated;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 16px rgba(128, 128, 128, 0.1);
}

.dino-game-score {
  position: absolute;
  top: 3.5rem;
  right: 4rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--text-color);
  display: flex;
  gap: 1rem;
  opacity: 0.8;
}

.dino-game-instructions {
  margin-top: 2rem;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.6;
}

.terminal-card.fade-out {
  opacity: 0;
}

/* Profile image clickable cursor */
.profile-image-wrapper {
  cursor: default;
  position: relative;
  display: inline-block;
}

.game-hint-label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  color: var(--text-color);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2px;
  text-transform: lowercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: hintFade 4s ease-in-out infinite;
  white-space: nowrap;
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hint-arrow {
  width: 14px;
  height: 14px;
  display: inline-block;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(2px);
    opacity: 1;
  }
}

.game-hint-label::after {
  display: none;
}

@keyframes hintFade {

  0%,
  100% {
    opacity: 0.45;
  }

  40% {
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-hint-label {
    animation: none;
    opacity: 0.6;
  }
}

/* Project Modal Styles - Optimized for performance */
.project-modal,
#project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s linear, visibility 0.12s linear;
  pointer-events: none;
}

.project-modal.active,
#project-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  /* Removed backdrop-filter for better performance */
  transition: opacity 0.12s linear;
}

.project-modal.active .modal-overlay,
#project-modal.active .modal-overlay {
  opacity: 1;
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 100001;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.12s linear, transform 0.12s linear;
  margin: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  /* Force GPU acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.project-modal.active .modal-content,
#project-modal.active .modal-content {
  transform: translateY(0) translateZ(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100002;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-close i {
  font-size: 16px;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.modal-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.modal-github-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.modal-github-btn i {
  font-size: 16px;
}

.modal-body {
  margin-top: 24px;
}

.modal-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.modal-video-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}

.modal-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

.modal-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 24px;
  opacity: 0.9;
}

.modal-diagram-container {
  width: 100%;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.mermaid-controls {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  flex-wrap: wrap;
}

.mermaid-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  padding: 0;
}

.mermaid-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.mermaid-control-btn:active {
  transform: translateY(0);
}

.mermaid-control-btn i {
  font-size: 14px;
}

.mermaid-diagram-wrapper {
  padding: 20px;
  overflow: auto;
  max-height: 600px;
  transition: transform 0.3s ease;
  position: relative;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.mermaid-diagram-wrapper:active {
  cursor: grabbing;
}

.mermaid-diagram-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.mermaid-diagram-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.mermaid-diagram-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.mermaid-diagram-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-diagram-container .mermaid {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  width: 100%;
}

.modal-diagram-container svg {
  max-width: 100%;
  height: auto;
}

.modal-code-container {
  width: 100%;
  margin: 24px 0;
}

.modal-code-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 12px 0;
}

.modal-code {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin: 0;
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.modal-code code {
  color: var(--text-color);
  white-space: pre;
  display: block;
}

.modal-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.modal-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-color);
  font-weight: 500;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
    width: 95%;
    max-height: 95vh;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-description {
    font-size: 14px;
  }
}