/* Import retro pixel font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

body {
  margin: 0;
  font-family: 'VT323', 'Press Start 2P', monospace;
  background: #181818;
  color: #ff3c3c;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.8s;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Inter:wght@400;700&display=swap');

/* Global site background image */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: url('mr-robot-season-2-after-show.webp') center center/cover no-repeat;
  z-index: -4;
  opacity: 0.32;
  filter: blur(2.5px) brightness(0.7) grayscale(0.18);
  mix-blend-mode: lighten;
}

/* Add a dark overlay for readability */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(180deg, rgba(16,19,26,0.85) 0%, rgba(16,19,26,0.98) 100%);
  z-index: -3;
  pointer-events: none;
}

/* Animated Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(34, 51, 74, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 51, 74, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  z-index: -2;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Scanning Line Effect */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff3c3c, transparent);
  animation: scanLine 8s linear infinite;
  z-index: -1;
  opacity: 0.4;
}

@keyframes scanLine {
  0% { transform: translateY(-2px); }
  100% { transform: translateY(100vh); }
}

/* Geometric Shapes */
.geometric-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
}

.geometric-shapes::before,
.geometric-shapes::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid #b30021;
  animation: rotateShape 20s linear infinite;
}

.geometric-shapes::before {
  top: 10%;
  left: 10%;
  border-radius: 50%;
  animation-delay: 0s;
}

.geometric-shapes::after {
  bottom: 20%;
  right: 15%;
  border-radius: 0;
  animation-delay: -10s;
}

@keyframes rotateShape {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Wave Effect */
.wave-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(45deg, transparent 30%, rgba(179,0,33,0.1) 50%, transparent 70%);
  animation: waveMove 12s ease-in-out infinite;
  z-index: -1;
}

@keyframes waveMove {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.background-glow {
  position: fixed;
  top: -200px;
  left: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, #1a2a3a 0%, #7a1333 80%, transparent 100%);
  filter: blur(180px);
  z-index: -3;
  pointer-events: none;
  animation: glowMove 12s linear infinite alternate;
  opacity: 0.5;
}
@keyframes glowMove {
  0% { top: -200px; left: -200px; }
  100% { top: 100px; left: 60vw; }
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3vw;
  background: rgba(16, 19, 26, 0.92);
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid #7a1333;
  transition: top 0.4s cubic-bezier(.77,0,.18,1), background 0.3s;
}
.logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #ff3c3c;
  text-shadow: 0 0 8px #7a133399;
}
.navbar nav {
  display: flex;
  gap: 1.5rem;
}
.navbar nav a {
  color: #e0e6ed;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  background: rgba(122, 19, 51, 0.18);
  border: 1.5px solid #7a1333;
  box-shadow: 0 2px 8px 0 #7a133333;
  letter-spacing: 1px;
  position: relative;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.navbar nav a:before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #7a1333 0%, #ff3c3c 100%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s;
}
.navbar nav a:hover {
  background: rgba(255,60,60,0.08);
  color: #ff3c3c;
  box-shadow: 0 4px 16px 0 #ff3c3c33;
  transform: scale(1.07) skewX(-4deg);
}
.navbar nav a:active {
  background: #7a1333;
  color: #fff;
}
.hero {
  text-align: center;
  padding: 5rem 2vw 3rem 2vw;
  background: rgba(26, 34, 51, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);
  border-radius: 2rem;
  margin: 2.5rem auto 2.5rem auto;
  max-width: 700px;
  position: relative;
  z-index: 1;
  border: 2px solid #7a1333;
  backdrop-filter: blur(10px);
  animation: cardFadeIn 1.2s cubic-bezier(.77,0,.18,1) 0.3s backwards;
  overflow: hidden;
}
.hero h1 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.7rem;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
  color: #ff3c3c;
  text-shadow: 0 0 8px #7a133399;
}
.hero p {
  font-size: 1.2rem;
  color: #e0e6edcc;
  margin-bottom: 2rem;
}
.hero-links a {
  display: inline-block;
  margin: 0 0.7rem;
  padding: 0.7rem 1.5rem;
  border-radius: 1rem;
  background: rgba(122, 19, 51, 0.18);
  color: #ff3c3c;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 #7a133333;
  border: 1.5px solid #7a1333;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  position: relative;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hero-links a:hover {
  background: rgba(255,60,60,0.08);
  color: #fff;
  box-shadow: 0 4px 16px 0 #ff3c3c33;
  transform: scale(1.07) skewX(-4deg);
}
.card {
  background: rgba(16, 19, 26, 0.82);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 #7a133355, 0 1.5px 0 #ff3c3c inset, 0 -1.5px 0 #7a1333 inset;
  margin: 2.5rem auto;
  padding: 2.5rem 2vw 2.5rem 2vw;
  max-width: 850px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(14px);
  border: 2px solid #7a1333;
  transition: box-shadow 0.3s, border 0.3s, transform 0.2s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff3c3c 0%, #7a1333 100%);
  box-shadow: 0 0 16px 2px #ff3c3c44;
  opacity: 0.7;
  z-index: 2;
}
.card:hover {
  box-shadow: 0 12px 48px 0 #ff3c3c55, 0 1.5px 0 #ff3c3c inset, 0 -1.5px 0 #ff3c3c inset;
  border: 2.5px solid #ff3c3c;
  transform: translateY(-6px) scale(1.018);
}
.card h2 {
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 1.2rem;
  font-size: 2rem;
  color: #ff3c3c;
  text-shadow: 0 0 8px #7a133399;
  letter-spacing: 1px;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
}
.skills-list li {
  background: rgba(122, 19, 51, 0.22);
  color: #e0e6ed;
  border-radius: 2rem;
  padding: 0.7rem 1.7rem;
  font-weight: 600;
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px 0 #7a133333;
  border: 2px solid #7a1333;
  transition: box-shadow 0.2s, border 0.2s, transform 0.2s, background 0.2s;
  cursor: pointer;
  font-size: 1.08rem;
  letter-spacing: 1px;
  position: relative;
}
.skills-list li:hover {
  box-shadow: 0 4px 16px 0 #ff3c3c33, 0 0 8px #ff3c3c99;
  border: 2.5px solid #ff3c3c;
  transform: scale(1.09);
  color: #ff3c3c;
  background: rgba(255,60,60,0.13);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.project {
  background: rgba(26, 34, 51, 0.28);
  border-radius: 1.2rem;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 2px 16px 0 #7a133322;
  border: 2.5px double #7a1333;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
}
.project::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border-top: 3px solid #ff3c3c;
  border-left: 3px solid #ff3c3c;
  border-radius: 0 0 16px 0;
  z-index: 2;
  opacity: 0.7;
}
.project:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px 0 #ff3c3c55;
  border: 2.5px solid #ff3c3c;
}
.project h3 {
  color: #ff3c3c;
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
  text-shadow: 0 0 8px #7a133399;
}
.project a {
  color: #e0e6ed;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}
.project a:hover {
  color: #ff3c3c;
  text-shadow: 0 0 8px #ff3c3c33;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
#contact-form input, #contact-form textarea {
  background: rgba(26, 34, 51, 0.18);
  border: none;
  border-radius: 0.7rem;
  padding: 1rem 1.2rem;
  color: #e0e6ed;
  font-size: 1.1rem;
  font-family: 'Share Tech Mono', monospace;
  outline: none;
  box-shadow: 0 2px 8px 0 #7a133322;
  resize: none;
  border: 1.5px solid #7a1333;
  transition: box-shadow 0.2s, border 0.2s;
}
#contact-form input:focus, #contact-form textarea:focus {
  box-shadow: 0 4px 16px 0 #ff3c3c33;
  border: 2px solid #ff3c3c;
}
#contact-form button {
  background: rgba(122, 19, 51, 0.18);
  color: #ff3c3c;
  font-weight: 700;
  border: 1.5px solid #7a1333;
  border-radius: 2rem;
  padding: 1rem 2.2rem;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 #7a133333;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  font-family: 'Share Tech Mono', monospace;
  margin-top: 0.5rem;
}
#contact-form button:hover {
  background: rgba(255,60,60,0.08);
  color: #fff;
  box-shadow: 0 4px 16px 0 #ff3c3c33;
  transform: scale(1.07) skewX(-4deg);
}
.contact-links a {
  color: #ff3c3c;
  margin-right: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}
.contact-links a:hover {
  color: #e0e6ed;
  text-shadow: 0 0 8px #ff3c3c33;
}
footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #e0e6ed99;
  font-size: 1rem;
  margin-top: 2rem;
  letter-spacing: 1px;
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 4vw;
  }
  .logo {
    font-size: 1.3rem;
  }
  .navbar nav a {
    margin-left: 0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .hero {
    padding: 2.5rem 2vw 2rem 2vw;
    max-width: 98vw;
  }
  .card {
    padding: 1.2rem 2vw;
    max-width: 98vw;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Section separator lines */
.section-separator {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7a1333 40%, #ff3c3c 60%, transparent);
  margin: 3rem 0 2rem 0;
  border: none;
  opacity: 0.5;
}

/* Section separators for main content (except hero) */
.card:not(:first-of-type)::before {
  display: none;
}

/* Add horizontal section separators between cards (except after hero) */
.card + .card {
  margin-top: 4.5rem;
}
.card + .card::before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7a1333 40%, #ff3c3c 60%, transparent);
  margin-bottom: 2.5rem;
  opacity: 0.5;
  position: absolute;
  top: -2.5rem;
  left: 0;
  z-index: 0;
}

/* Hero image background */
.hero-img-bg { display: none !important; }
.hero h1, .hero p, .hero .hero-links {
  position: relative;
  z-index: 2;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(16,19,26,0.7) 0%, rgba(16,19,26,0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Bezel/frame around main content */
body > header, .hero, .card, header.navbar {
  box-sizing: border-box;
  max-width: 900px;
  margin: 2.5rem auto;
  border-radius: 0;
}

header.navbar {
  width: 100%;
  max-width: 900px;
  margin: 2.5rem auto 0 auto;
  box-sizing: border-box;
  padding: 1.5rem 2vw 1.5rem 2vw;
  border-radius: 0;
}

@media (max-width: 900px) {
  body > header, .hero, .card, header.navbar {
    max-width: 98vw;
    padding: 1.2rem 2vw;
  }
  header.navbar {
    margin: 1.2rem auto 0 auto;
  }
}
@media (max-width: 600px) {
  .logo, .hero h1, .card h2, .project h3, footer {
    font-size: 0.7rem !important;
  }
  .navbar nav a, .hero-links a, .skills-list li, #contact-form button {
    font-size: 0.6rem !important;
    padding: 0.5rem 0.7rem !important;
  }
  .hero, .card, .project, header.navbar {
    padding: 0.7rem 1vw !important;
  }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  10% { opacity: 0.95; }
  20% { opacity: 0.97; }
  30% { opacity: 0.92; }
  40% { opacity: 0.98; }
  50% { opacity: 0.93; }
  60% { opacity: 0.99; }
  70% { opacity: 0.96; }
  80% { opacity: 0.94; }
  90% { opacity: 0.99; }
}

/* Twinkling stars background */
.stars-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: -2;
}
.stars-bg .star {
  position: absolute;
  width: 2.5px; height: 2.5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
  animation: twinkle 2.5s infinite alternate;
}
.stars-bg .star.red {
  background: #ff3c3c;
  opacity: 0.8;
  animation-duration: 3.2s;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.15; }
} 