* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #f0f0f0;
  background-color: #000; /* Ensures subpages are black */
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.visitor-counter {
  position: fixed;
  top: 10px;
  right: 15px;
  background-color: rgba(0, 0, 0);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}



#typed-name {
  font-size: 3rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #f0f0f0;
  width: fit-content;
  animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {
  0% { border-color: transparent; }
  50% { border-color: #f0f0f0; }
  100% { border-color: transparent; }
}




body.home {
  background: linear-gradient(to right, #3a0ca3, #4361ee);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  height: 120%;
  width: 120%;
  background-image: url('slope-curves-transparent.png');
  background-repeat: repeat;
  background-size: contain;
  filter: brightness(1.6) contrast(1.8);
  mix-blend-mode: screen;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  animation: drift 60s linear infinite;
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(5%, 5%);
  }
  100% {
    transform: translate(0, 0);
  }
}

body * {
  position: relative;
  z-index: 1;
}

body.home nav {
  display: none;
}

nav {
  background-color: #111;
  text-align: center;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

nav a {
  color: #62c1ff;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #a678f2;
}

header {
  height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: none;
  color: white;
}

h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

a.button,
.nav-buttons a,
.social-icons a,
.resume-button {
  background-color: #111;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

a.button:hover,
.nav-buttons a:hover,
.social-icons a:hover,
.resume-button:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 3rem 1.5rem 6rem;
  min-height: 100vh;
  background-color: transparent;
}

section h2 {
  font-size: 2rem;
  border-bottom: 2px solid #4361ee;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-list {
  list-style: none;
  padding-left: 0;
}

.project-list li a {
  display: block;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #111;
  border-left: 4px solid #5a189a;
  border-radius: 6px;
  color: #f0f0f0;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, border-left-color 0.3s ease;
}

.project-list li a:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  border-left-color: #7209b7;
}

.resume-button {
  margin-top: 1rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #999;
  background: #111;
}





