:root {
  --default-font: "Inter", system-ui, sans-serif;
  --heading-font: "Montserrat", sans-serif;
  --main-bg-color: #070606;
  --main-text-color: #fff;
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: var(--default-font);
  background-color: var(--main-bg-color);
  color: var(--main-text-color);
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-bottom: 50px;
}

h1, h2, h3 {
  font-family: var(--heading-font);
}

#navMenu {
  position: fixed;
  top: -80px;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.85);
  color: white;
  text-align: center;
  padding: 15px 0;
  transition: top 0.5s ease;
  z-index: 1000;
}

#navMenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

#navMenu a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

#navMenu.visible {
  top: 0;
}

#copyMessage {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  background: #333;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.9em;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#copyMessage.show {
  opacity: 1;
}

#welcomeModal {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: clamp(17px, 3vw, 34px);
  opacity: 0;
  transition: opacity 1s;
}

#scrollArrow {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: clamp(14px, 1.5vw, 18px);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 20;
  pointer-events: auto;
  user-select: none;
}

#scrollArrow span {
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}

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

#scrollArrow.hidden {
  opacity: 0;
  pointer-events: none;
}

#projects, #about {
  margin-bottom: clamp(300px, 12vw, 400px);
}

#about {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
  text-align: center;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: clamp(13px, 1vw, 16px);
  margin: 120px auto 100px;
  max-width: 700px;
  line-height: 1.5;
  box-sizing: border-box;
}

#about.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

#projects {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
  text-align: center;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: clamp(13px, 1vw, 16px);
  margin-top: clamp(400px, 12vw, 800px);
}

#projects.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.project.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: clamp(15px, 3vw, 40px); 
  margin-top: 15px;
}

.project.card {
  flex: 1 1 180px;
  max-width: 240px;
  min-width: 160px;

  background-color: #111;
  border-radius: 8px;
  padding: 10px;
  font-size: clamp(12px, 0.9vw, 14px);
  text-align: center;

  transform: translateY(0) translateZ(0) scale(1);
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms cubic-bezier(.2,.9,.2,1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  will-change: transform, box-shadow;
  position: relative;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.project.card:hover,
.project.card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  z-index: 10;
  outline: none;
}

.project.card:focus-visible {
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 3px rgba(255,255,255,0.06);
}

.project.card:active {
  transform: translateY(-4px) scale(1.02);
  transition-duration: 120ms;
}

@media (prefers-reduced-motion: reduce) {
  .project.card,
  .project.card:hover,
  .project.card:focus-visible,
  .project.card:active {
    transform: none;
    transition: none;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  }
}

.project.image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.badge {
  display: inline-block;
  background: #444;
  color: #fff;
  padding: 2px 6px;
  margin: 2px;
  border-radius: 3px;
  font-size: 0.8em;
}

.typing {
  border-right: 2px solid black;
  overflow: hidden;
}

.typing::after {
  content: "|";
  display: inline-block;
  width: 0;
  animation: blink 0.7s step-start infinite;
  margin-left: 2px;
  position: relative;
}

@keyframes blink{
  50% { opacity: 0; }
}

#projects-more {
  margin-top: 20px;
  padding: 12px 26px;
  font-size: 1em;
  background: linear-gradient(135deg, #222, #333);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#projects-more:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #333, #555);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
              0 0 8px rgba(255, 255, 255, 0.1);
}

#projects-more:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

