/* Base styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'VT323', monospace;
  background-color: #010815;
  color: #c8d8f7;
  scroll-behavior: smooth;
}

/* Noise overlay reminiscent of CRT static */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAQElEQVR42mO0bduW/v///wwGVpVqFqNItP//vwzG0zCAAAgY6Ew3TCtaPwkxXkZR3XTi0XfqUiN6PrRh6+JGREAQB+OwAHTqbCuAAAAAElFTkSuQmCC') repeat;
  opacity: 0.05;
  animation: noiseShift 2s steps(8) infinite;
}

@keyframes noiseShift {
  0% { transform: translate(0,0); }
  20% { transform: translate(-10%, 5%); }
  40% { transform: translate(5%, -10%); }
  60% { transform: translate(-5%, 15%); }
  80% { transform: translate(15%, -5%); }
  100% { transform: translate(0,0); }
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3;
}

.nav-logo {
  font-size: 1.2rem;
  color: #00bfff;
  text-decoration: none;
  text-shadow: 1px 0 #006bb3, -1px 0 #00ffff;
}

.nav-links a {
  margin-left: 1rem;
  font-size: 1rem;
  color: #99c7ff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #00bfff;
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Channel indicator styled like Kaisermann */
.channel-indicator {
  font-size: 0.8rem;
  color: #00bfff;
  letter-spacing: 1px;
  text-shadow: 1px 0 #006bb3, -1px 0 #00ffff;
}

/* Hero section */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 3rem 1rem 4rem;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}

/* swirling background reminiscent of Kalp Senghani site */
.swirl-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 191, 255, 0.25), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(0, 191, 255, 0.20), transparent 60%),
    radial-gradient(circle at 40% 60%, rgba(0, 191, 255, 0.15), transparent 70%),
    radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.18), transparent 70%);
  background-size: 200% 200%;
  animation: swirlMove 25s linear infinite;
}

@keyframes swirlMove {
  0%   { background-position: 0% 50%, 50% 0%, 100% 100%, 0% 100%; }
  50%  { background-position: 100% 0%, 0% 50%, 50% 100%, 100% 50%; }
  100% { background-position: 0% 50%, 50% 0%, 100% 100%, 0% 100%; }
}

/* Glitch effect for hero title */
.glitch {
  font-size: 3rem;
  color: #ffffff;
  position: relative;
  display: inline-block;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #00ffff;
  animation: glitchTop 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #ff0080;
  animation: glitchBottom 1.5s infinite linear alternate-reverse;
}

@keyframes glitchTop {
  0% { clip: rect(0, 900px, 0, 0); }
  10% { clip: rect(10px, 900px, 55px, 0); }
  20% { clip: rect(15px, 900px, 30px, 0); }
  40% { clip: rect(5px, 900px, 20px, 0); }
  60% { clip: rect(25px, 900px, 60px, 0); }
  80% { clip: rect(10px, 900px, 45px, 0); }
  100% { clip: rect(0, 900px, 0, 0); }
}

@keyframes glitchBottom {
  0% { clip: rect(0, 900px, 0, 0); }
  10% { clip: rect(40px, 900px, 85px, 0); }
  30% { clip: rect(20px, 900px, 60px, 0); }
  50% { clip: rect(35px, 900px, 80px, 0); }
  70% { clip: rect(10px, 900px, 65px, 0); }
  100% { clip: rect(0, 900px, 0, 0); }
}

.intro-text {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: #99c7ff;
  line-height: 1.4;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid #00bfff;
  color: #00bfff;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #00bfff;
  color: #010815;
}

/* Content sections */
.content-section {
  padding: 4rem 1rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 2px 0 #00bfff, -2px 0 #006bb3;
}

/* Education list */
.education-list {
  list-style-type: square;
  padding-left: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #b0c6e8;
}

/* Skills columns */
.skill-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.skill-columns > div {
  flex: 1 1 280px;
}

.skill-columns h3 {
  font-size: 1.4rem;
  color: #ffffff;
  text-shadow: 1px 0 #00ffff, -1px 0 #ff0080;
}

.skill-columns ul {
  list-style-type: square;
  padding-left: 1.3rem;
  color: #b0c6e8;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Projects */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.project-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 6px;
  background-color: rgba(1, 8, 21, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

.project-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #ffffff;
  text-shadow: 1px 0 #00bfff, -1px 0 #006bb3;
}

.project-item p {
  font-size: 1.05rem;
  color: #b0c6e8;
  line-height: 1.4;
}

/* Contact */
.contact-list {
  list-style-type: none;
  padding-left: 0;
  font-size: 1.1rem;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list a {
  color: #00bfff;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .glitch {
    font-size: 2.3rem;
  }
  .intro-text {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
}