  h3 {
    margin: 0 0 0.75rem;
    line-height: 1.2;
  }

@font-face {
    font-family: 'Dogica';
    src: url('./static/font/dogica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'Dogica';
    src: url('./static/font/dogicabold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
  }

  @font-face {
    font-family: 'DogicaPixel';
    src: url('./static/font/dogicapixel.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: 'DogicaPixel';
    src: url('./static/font/dogicapixelbold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
  }

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

  html {
    font-size: 16px;
  }

  body {
    font-family: 'Dogica', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 0.875rem;
  }

  .container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    will-change: transform;
  }

  header {
    background: #111;
    border-bottom: 1px solid #222;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    opacity:1;
  }

  .logo {
    font-family: 'DogicaPixel', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.5rem;
  }

  .nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
  }

  .nav-links a {
    font-family: 'DogicaPixel', monospace;
    font-size: 0.85rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: #ccc;
  }

  .hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1rem 2rem;
  }

  .hero-content {
    max-width: 700px;
  }

  .hero h1 {
    font-family: 'DogicaPixel', monospace;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
  }

  .hero h1.idle-wobble {
    position: relative;
    animation: wobble 5s ease-in-out infinite;
  }

  .hero h2 {
    font-family: 'DogicaPixel', monospace;
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    margin-bottom: 1.5rem;
    color: #ccc;
  }

  .hero p {
font-size: clamp(0.85rem, 2.5vw, 1rem);
margin-bottom: 1.5rem;
color: #ccc;
transition: transform 0.3s ease;
}

  .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin: 0.5rem auto 1.5rem auto;
    display: block;
    transition: transform 0.3s ease;
  }

  .profile-image:hover {
    transform: scale(1.1);
  }

  .about,
  .skills,
  .contact {
    padding: 3rem 0;
  }

  .about {
    position: relative;
  }

  .section-title {
    font-family: 'DogicaPixel', monospace;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  

  .about-text h3 {
    font-family: 'DogicaPixel', monospace;
    font-size: 1.2rem;
    margin-bottom:2rem;
  }

  .about-text p {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 0.8rem;
  }

  .about .container {
    position: relative;
    z-index: 1;
  }

  .student-info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
  }

  .student-info h4,
  .student-info p {
    font-size: 0.85rem;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
    position: relative;
  }

  .skills-grid.is-dragging .skill-card:not(.dragging):not(.placeholder) {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: grab;
    user-select: none;
  }

  .skill-card h3 {
    font-family: 'DogicaPixel', monospace;
    font-size: 1rem;
  }

  .skill-card p {
    font-size: 0.875rem;
    color: #ccc;
  }

  .skill-card.dragging {
    opacity: 1;
    cursor: grabbing;
    background: rgba(13, 13, 13, 1);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    z-index: 1500;
  }

  .skill-card.placeholder {
    border: 1px dashed rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.35;
    pointer-events: none;
    transition: none;
  }

  .drag-indicator {
    position: absolute;
    top: -2.5rem;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-family: 'DogicaPixel', monospace;
    font-size: 0.9rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    animation: flashPulse 1.5s ease-in-out infinite;
  }

  .drag-indicator.show {
    opacity: 1;
  }

  .drag-indicator.hide {
    opacity: 0;
    animation: none;
    transition: opacity 0.3s ease;
  }

  .drag-indicator svg {
    width: 20px;
    height: 20px;
    animation: bounceArrow 1.5s ease-in-out infinite;
  }

  @keyframes flashPulse {
    0%, 100% {
      opacity: 0.6;
    }
    50% {
      opacity: 1;
    }
  }

  @keyframes bounceArrow {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(4px);
    }
  }

  @media (max-width: 768px) {
    .drag-indicator {
      display: none;
    }
  }

  .contact {
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
  }

  .contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .contact-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    min-width: 160px;
  }

  .contact-item h4 {
    font-family: 'DogicaPixel', monospace;
    margin-bottom: 0.4rem;
  }

  .contact-item p {
    font-size: 0.85rem;
  }

  footer {
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  footer p {
    color: #888;
    font-size: 0.8rem;
  }

  @media (max-width: 768px) {
    html {
      font-size: 14px;
    }

    .nav-links {
      display: none;
    }

    .about-content {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .skills-grid {
      grid-template-columns: 1fr;
    }

    .contact-info {
      flex-direction: column;
    }

    .profile-image {
      width: 75px;
      height: 75px;
    }

    .section-title {
      font-size: 1.2rem;
    }
  }

  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  ::-webkit-scrollbar {
    width: 6px;
  }

  ::-webkit-scrollbar-track {
    background: #000;
  }

  ::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 3px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #ccc;
  }

  .projects {
padding: 4rem 0;
background: rgba(255, 255, 255, 0.05);
}

.project-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}

.project-card {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.video-placeholder {
width: 100%;
aspect-ratio: 16/9;
background: #111;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}

.video-placeholder video {
width: 100%;
height: 100%;
object-fit: cover;
}

.project-info {
  padding: 1rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-info h3 {
  font-family: 'DogicaPixel', monospace;
  font-size: 1rem;
  color: #fff;
}

.project-info p {
color: #ccc;
font-size: 0.75rem;
}

.tag-filter-menu {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.tag-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: 'DogicaPixel', monospace;
  font-size: 0.9rem;
}

.add-tag-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: 'DogicaPixel', monospace;
}

.add-tag-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'DogicaPixel', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tag-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tag-btn.active {
  box-shadow: 0 0 10px currentColor;
  transform: scale(1.05);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.project-tag {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'DogicaPixel', monospace;
  font-size: 0.65rem;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.project-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-tag.active {
  box-shadow: 0 0 10px currentColor;
  transform: scale(1.05);
}

.project-card.hidden {
  display: none;
}

@media (max-width: 768px) {
.project-grid {
  grid-template-columns: 1fr;
}

    .project-info p {
    font-size: 0.8rem;
  }
}

  .organizations {
padding: 4rem 0;
}

.org-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}

.org-card {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.org-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.org-card.expanded {
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.12);
}

.org-carousel {
width: 100%;
aspect-ratio: 16/9;
background: #111;
overflow: hidden;
position: relative;
}

.org-track {
display: flex;
height: 100%;
width: 100%;
transform: translateX(0);
}

.org-track img {
width: 100%;
height: 100%;
object-fit: cover;
flex: 0 0 100%;
}

.org-info {
  padding: 1rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.org-info h3 {
  font-family: 'DogicaPixel', monospace;
  font-size: 1rem;
  color: #fff;
}

.org-toggle {
  margin-top: 0.75rem;
  background: #2b2b2b;
  border: 1px solid #5a5a5a;
  color: #ffffff;
  font-family: 'DogicaPixel', monospace;
  font-size: 0.75rem;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.org-toggle:hover {
  background: #3a3a3a;
  border-color: #707070;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

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

.org-collapsible {
  --collapsed-height: 9.5rem;
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 2.2rem; /* space for inline button when collapsed */
}

.org-card.expanded .org-collapsible {
  max-height: 1000px; /* large enough for content */
  padding-bottom: 0;
}

.org-collapsible .org-toggle {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  margin-top: 0;
  z-index: 2;
}

.org-card.expanded .org-collapsible .org-toggle {
  position: static;
  margin-top: 0.75rem;
  align-self: flex-end;
}

/* Faded edge that does not affect the button */
.org-collapsible::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,1) 100%);
  pointer-events: none;
  z-index: 1;
}

.org-card.expanded .org-collapsible::after {
  display: none;
}
.org-caption {
  color: #ccc;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  margin-bottom: 0.6rem;
}

.org-info p {
  color: #ccc;
  font-size: 0.8rem;
}

.org-role {
  color: #e6e6e6;
  font-size: 0.8rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: bold;
}

.org-details {
  margin-top: 0.5rem;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
  list-style: disc;
}

.org-details li {
  color: #ccc;
  font-size: 0.8rem;
  line-height: 1.4;
}

.org-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.org-tag {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'DogicaPixel', monospace;
  font-size: 0.65rem;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
  cursor: default;
}

.org-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.org-tag.active {
  box-shadow: 0 0 10px currentColor;
  transform: scale(1.05);
}

@media (max-width: 768px) {
.org-grid {
  grid-template-columns: 1fr;
}
}

  .about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    border: 1px solid transparent;
    transform-origin: center;
    transform: scaleX(1);
    transition:
      transform 0.6s ease,
      border-radius 0.6s ease,
      border-color 0.6s ease,
      background 0.6s ease;
    z-index: 0;
  }

@media (min-width: 769px) {
  .about.compact::before {
    transform: scaleX(var(--compact-scale, 0.85));
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
  }
}


.music-player {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.music-player:hover {
  background: #262626;
  transform: scale(1.1);
}

.music-player.playing {
  background: #333;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.music-player svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.music-player.playing svg {
  animation: pulse 2s infinite;
}

.music-info {
  position: absolute;
  right: 70px;
  top: 25%;
  transform: translateY(-50%);
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.8rem;
  font-family: 'Dogica', sans-serif;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s ease;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.music-info.show {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes wobble {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  20% {
    transform: translate3d(1px, -2px, 0) rotate(-0.3deg);
  }
  40% {
    transform: translate3d(-1px, 1px, 0) rotate(0.3deg);
  }
  60% {
    transform: translate3d(2px, 0, 0) rotate(-0.4deg);
  }
  80% {
    transform: translate3d(-1px, 2px, 0) rotate(0.2deg);
  }
}


@media (max-width: 768px) {
  .music-player {
    top: 3rem;
    right: 1rem;
    bottom: auto;
    width: 50px;
    height: 50px;
  }

  .music-player svg {
    width: 20px;
    height: 20px;
  }

  .music-info {
    right: 60px;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Size tweaks for better default scale at 100% zoom */
.projects .container {
  max-width: 900px;
}
.projects .project-grid {
  gap: 1.2rem;
}
.projects .project-card {
  border-radius: 10px;
}
.projects .project-info {
  padding: 0.75rem;
  font-size: 0.85rem;
}
.projects .project-info h3 {
  font-size: 0.9rem;
}
.projects .project-info p {
  font-size: 0.7rem;
}

.organizations .container {
  max-width: 800px;
}
.organizations .org-grid {
  gap: 1.2rem;
}
.organizations .org-card {
  border-radius: 10px;
}
.organizations .org-info {
  padding: 0.75rem;
  font-size: 0.85rem;
}
.organizations .org-info h3 {
  font-size: 0.9rem;
}
.organizations .org-info p,
.organizations .org-details li,
.organizations .org-role {
  font-size: 0.75rem;
}

@media (min-width: 1024px) {
  .organizations .container {
    max-width: 1100px;
  }
}
