:root {
  --primary: #14f7ff;
  --primary-shadow: rgba(20, 200, 255, 0.2);
  --primary-shadow-secondary: rgba(20, 200, 255, 0.05);
  --card-bg: rgba(0, 15, 20, 0.95);
  --neon-cyan: #00d4ff;
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  box-sizing: border-box;
}

body {
  scroll-behavior: smooth;
  background-color: #050505;
  color: white;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 5, 5, 0.95);
  border-bottom: 2px solid var(--primary);
  backdrop-filter: blur(10px);
  z-index: 999;
  box-shadow: 0 0 20px var(--primary-shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
  height: 70px;
  width: 100%;
  box-sizing: border-box;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.nav-link:hover {
  border: 1px solid var(--primary);
  background: var(--primary-shadow);
  text-shadow: 0 0 10px var(--primary);
  box-shadow: 0 0 10px var(--primary-shadow);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  gap: 6px;
  width: 30px;
  height: 24px;
  justify-content: center;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0, 13px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0, -13px);
}

section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  box-sizing: border-box;
  scroll-margin-top: 40px;
  animation: fadeIn 0.8s ease;
}

section:not(#hero) {
  margin-top: 200px;
}

#hero {
  margin-top: 0;
}



.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: 56px;
  font-weight: bold;
  letter-spacing: 3px;
  margin: 0 0 20px 0;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary);
}

.hero-subtitle {
  font-size: 24px;
  letter-spacing: 2px;
  margin: 0 0 15px 0;
  color: var(--neon-cyan);
  opacity: 0.9;
}

.hero-description {
  font-size: 16px;
  letter-spacing: 1px;
  margin: 0 0 40px 0;
  opacity: 0.7;
  line-height: 1.6;
}

.hero-button {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  padding: 15px 40px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--primary-shadow);
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 2px;
  font-weight: bold;
}

.hero-button:hover {
  background: var(--primary);
  color: black;
  box-shadow: 0 0 30px var(--primary);
  transform: translateY(-2px);
}

.section-title {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 3px;
  margin: 0 0 60px 0;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary);
  text-align: center;
  z-index: 10;
  position: relative;
}

.about-content {
  max-width: 800px;
  text-align: center;
  margin-bottom: 40px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin: 0 0 20px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
  height: 200px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary-shadow-secondary);
  transition: all 0.3s ease;
}

.skill-item:hover {
  border-color: var(--primary);
  background: var(--primary-shadow);
  box-shadow: 0 0 15px var(--primary-shadow);
  transform: translateY(-3px);
}

.skill-label {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
  text-transform: uppercase;
}

.skill-value {
  font-size: 14px;
  color: var(--neon-cyan);
  font-weight: bold;
}

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

.contact-intro {
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin: 0 0 50px 0;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 20px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--primary-shadow-secondary);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-link:hover {
  background: var(--primary-shadow);
  box-shadow: 0 0 20px var(--primary-shadow);
  transform: translateY(-5px);
  border-color: var(--neon-cyan);
}

.contact-icon {
  font-size: 32px;
  display: block;
}

.contact-text {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: bold;
  text-transform: uppercase;
}

.contact-icon img, #logo {
  filter: invert(1) hue-rotate(180deg) saturate(2) brightness(1.1) drop-shadow(0 0 10px var(--primary));
  transition: all 0.3s ease;
}

.contact-link:hover .contact-icon img {
  filter: invert(1) hue-rotate(180deg) saturate(2.5) brightness(1.3) drop-shadow(0 0 15px var(--primary));
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#counter {
  font-size: 14px;
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
  letter-spacing: 2px;
  
}

.next-button {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  padding: 10px 30px;
  margin-top: 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--primary-shadow);
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 2px;
  font-weight: bold;
}

.next-button:hover {
  background: var(--primary);
  color: black;
  box-shadow: 0 0 20px var(--primary);
}

.stack-container {
  position: relative;
  width: 300px;
  height: 450px;
  perspective: 20000px;
}

.card {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: 15px;
  background: var(--card-bg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--primary-shadow-secondary) 3px,
    transparent 4px
  );
  box-shadow: 0 0 15px var(--primary-shadow);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  box-sizing: border-box;
  padding: 20px;
  transition: all 0.5s var(--easing);
  cursor: grab;
  user-select: none;
  will-change: transform, opacity, filter;
  animation: cardEnter 0.6s var(--easing) backwards;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-shadow);
  box-shadow: 0 0 10px var(--primary);
  animation: scan 4s linear infinite;
}

@keyframes scan {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.card-banner {
  aspect-ratio: 2;
  overflow: hidden;
  border-bottom: 2px solid var(--primary);
  border-radius: 15px 15px 0 0;
  margin: -20px -20px 10px -20px;
  width: calc(100% + 40px);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.card-content {
  opacity: 0.8;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-status {
  font-size: 14px;
  opacity: 0.6;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.card-category {
  font-size: 11px;
  opacity: 0.5;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 10px;
}

.card-link {
  color: var(--neon-cyan);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.card-link:hover {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
}

.arrow-icon {
  font-size: 40px;
  position: relative;
  top: 8px;
}

.no-projects-message {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--primary);
  text-align: center;
}

.dots-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0);
}

.dot:hover {
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.dot.active {
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.loading-spinner.hidden {
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--primary-shadow);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 10px var(--primary);
}

.filter-toggle {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--primary-shadow);
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 15px;
}

.filter-toggle:hover {
  background: var(--primary);
  color: black;
  box-shadow: 0 0 20px var(--primary);
}

.filter-container {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 15px 20px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: var(--primary-shadow);
  box-shadow: 0 0 10px var(--primary-shadow);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  animation: slideDown 0.3s ease;
  box-sizing: border-box;
  max-height: 500px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.filter-container.collapsed {
  max-height: 0;
  padding: 0 20px;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.7;
  text-transform: uppercase;
  color: var(--primary);
}

.filter-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.filter-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--primary);
}

.filter-checkbox:hover {
  border: 1px solid var(--primary);
  background: var(--primary-shadow);
  text-shadow: 0 0 8px var(--primary);
}

.search-input {
  padding: 8px 12px;
  background: var(--primary-shadow-secondary);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  width: 150px;
}

.search-input::placeholder {
  color: var(--neon-cyan);
}

.search-input:focus {
  outline: none;
  background: var(--primary-shadow-secondary);
  box-shadow: 0 0 10px var(--primary);
}

.reset-button {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 11px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--primary-shadow);
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 1px;
  height: fit-content;
  align-self: flex-end;
}

.reset-button:hover {
  background: var(--primary);
  color: black;
  box-shadow: 0 0 20px var(--primary);
}

@media (max-width: 600px) {
  .stack-container {
    width: 240px;
    height: 360px;
  }
  .filter-container {
    flex-direction: column;
    width: 100%;
    max-width: 240px;
  }
  .filter-group {
    width: 100%;
  }
}

#blob {
  height: 0px;
  width:  0px;
  position: fixed;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: linear-gradient(to right, #7fffd4, #470cbb);
  filter: blur(20vmax);
  animation: rotate 20s infinite;
  z-index: -1;
}

#blur {
  height: 100%;
  width: 100%;
  position: relative;
  z-index: -1;
  backdrop-filter: blur(12vmax);
}

@keyframes rotate {
  0% {
    rotate: 0deg;
    height: 15vmax;
    width: 15vmax;
  }

  50% {
    height: 10vmax;
    width: 10vmax;
  }

  100% {
    rotate: 360deg;
    height: 15vmax;
    width: 15vmax;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
  }


  .hamburger {
    display: flex;
    flex-shrink: 0;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 2px solid var(--primary);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 20px var(--primary-shadow);
    width: 100%;
  }

  .nav-menu.active {
    max-height: 300px;
  }

  .nav-link {
    font-size: 12px;
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid var(--primary-shadow-secondary);
    border-radius: 0;
    width: 100%;
    text-align: left;
    display: block;
    white-space: nowrap;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover {
    background: var(--primary-shadow);
    border: none;
  }
}
