:root {
  --navy: #0a192f;
  --light-navy: #112240;
  --lightest-navy: #233554;
  --navy-shadow: rgba(2, 12, 27, 0.7);
  --dark-slate: #495670;
  --slate: #8892b0;
  --light-slate: #a8b2d1;
  --lightest-slate: #ccd6f6;
  --white: #e6f1ff;
  --green: #64ffda;
  --green-tint: rgba(100, 255, 218, 0.1);
  --pink: #f57dff;
  --blue: #57cbff;
  --font-sans: 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  --fz-xxs: 12px;
  --fz-xs: 13px;
  --fz-sm: 14px;
  --fz-md: 16px;
  --fz-lg: 18px;
  --fz-xl: 20px;
  --fz-xxl: 22px;
  --fz-heading: 32px;
  --border-radius: 4px;
  --nav-height: 100px;
  --nav-scroll-height: 70px;
  --tab-height: 42px;
  --tab-width: 120px;
  --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  --hamburger-width: 30px;
  --ham-before: top 0.1s ease-in 0.25s, opacity 0.1s ease-in;
  --ham-before-active: top 0.1s ease-out, opacity 0.1s ease-out 0.12s;
  --ham-after: bottom 0.1s ease-in 0.25s, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ham-after-active: bottom 0.1s ease-out, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  background-color: var(--navy);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: var(--fz-xl);
  line-height: 1.3;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  z-index: 11;
  padding: 0px 50px;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  color: var(--lightest-slate);
  font-family: var(--font-mono);
  counter-reset: item 0;
  z-index: 12;
  height: 100%;
}

.nav-logo a {
  color: var(--green);
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu li {
  margin: 0 5px;
  position: relative;
  counter-increment: item 1;
  font-size: var(--fz-xs);
}

.nav-link {
  padding: 10px;
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.nav-link span {
  color: var(--green);
  font-size: var(--fz-xxs);
  margin-right: 5px;
}

.nav-link:hover {
  color: var(--green);
}

.resume-btn {
  color: var(--green);
  background-color: transparent;
  border: 1px solid var(--green);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: var(--fz-xs);
  font-family: var(--font-mono);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 15px;
}

.resume-btn:hover {
  background-color: var(--green-tint);
}

/* Main Content */
.main-content {
  margin: 0 auto;
  width: 100%;
  max-width: 1600px;
  min-height: 100vh;
  padding: 0 150px;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  position: relative;
}

#d3-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-intro {
  margin: 0 0 30px 4px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: clamp(var(--fz-sm), 5vw, var(--fz-md));
  font-weight: 400;
}

.hero-title {
  margin: 0;
  font-size: clamp(40px, 8vw, 80px);
  color: var(--lightest-slate);
  line-height: 1.1;
}

.typing-cursor::after {
  content: '|';
  color: var(--green);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(40px, 8vw, 80px);
  color: var(--slate);
  line-height: 1.1;
}

.hero-description {
  margin: 20px 0 0;
  max-width: 540px;
  color: var(--slate);
  font-size: var(--fz-xl);
  line-height: 1.3;
}

.cta-button {
  color: var(--green);
  background-color: transparent;
  border: 1px solid var(--green);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.75rem;
  font-size: var(--fz-sm);
  font-family: var(--font-mono);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 50px;
  display: inline-block;
}

.cta-button:hover {
  background-color: var(--green-tint);
  transform: translate3d(0, -3px, 0);
}

/* Sections */
.section {
  margin: 0 auto;
  padding: 100px 0;
  max-width: 1000px;
}

.section-container {
  width: 100%;
}

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10px 0 40px;
  width: 100%;
  font-size: clamp(26px, 5vw, var(--fz-heading));
  font-weight: 600;
  color: var(--lightest-slate);
  line-height: 1.1;
}

.section-number {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: clamp(var(--fz-md), 3vw, var(--fz-xl));
  font-weight: 400;
  margin-right: 10px;
}

.section-title::after {
  content: '';
  display: block;
  position: relative;
  top: -5px;
  width: 300px;
  height: 1px;
  margin-left: 20px;
  background-color: var(--lightest-navy);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  position: relative;
}

.about-text {
  position: relative;
  z-index: 2;
}

.about-text p {
  margin: 0 0 15px;
  color: var(--slate);
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.1s; }
.about-text p:nth-child(2) { animation-delay: 0.3s; }
.about-text p:nth-child(3) { animation-delay: 0.5s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 200px));
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  overflow: hidden;
  list-style: none;
}

.skills-list li {
  position: relative;
  margin-bottom: 10px;
  padding: 8px 12px 8px 25px;
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
  color: var(--slate);
  background: linear-gradient(135deg, var(--light-navy), var(--lightest-navy));
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.5s ease forwards;
}

.skills-list li:nth-child(1) { animation-delay: 0.7s; }
.skills-list li:nth-child(2) { animation-delay: 0.8s; }
.skills-list li:nth-child(3) { animation-delay: 0.9s; }
.skills-list li:nth-child(4) { animation-delay: 1.0s; }
.skills-list li:nth-child(5) { animation-delay: 1.1s; }
.skills-list li:nth-child(6) { animation-delay: 1.2s; }

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.skills-list li:hover {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
  transform: translateY(-2px);
  color: var(--green);
}

.skills-list li::before {
  content: '▹';
  position: absolute;
  left: 8px;
  color: var(--green);
  font-size: var(--fz-sm);
  line-height: 12px;
  transition: all 0.3s ease;
}

.skills-list li:hover::before {
  transform: scale(1.2);
  text-shadow: 0 0 10px var(--green);
}

.about-image {
  position: relative;
  max-width: 300px;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(45deg, var(--green), var(--blue), var(--pink));
  border-radius: var(--border-radius);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(20px);
}

.about-image:hover::before {
  opacity: 0.3;
}

.image-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius);
  background-color: var(--green);
  overflow: hidden;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(100, 255, 218, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.image-wrapper:hover::after {
  transform: translateX(100%);
}

.headshot {
  position: relative;
  border-radius: var(--border-radius);
  transition: all 0.4s ease;
  width: 100%;
  height: auto;
}

.image-wrapper:hover .headshot {
  filter: brightness(110%);
  mix-blend-mode: normal;
  transform: scale(1.05);
}

/* Floating particles for about section */
.about-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(100, 255, 218, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(87, 203, 255, 0.3), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(245, 125, 255, 0.3), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(100, 255, 218, 0.3), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(87, 203, 255, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

/* Experience Section */
.experience-content {
  max-width: 800px;
  position: relative;
}

.experience-timeline {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--blue), var(--pink));
  opacity: 0.3;
}

.job {
  margin-bottom: 40px;
  padding: 25px;
  background: linear-gradient(135deg, var(--light-navy), var(--lightest-navy));
  border-radius: var(--border-radius);
  border-left: 3px solid var(--green);
  position: relative;
  margin-left: 40px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-30px);
}

.job:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px -10px var(--navy-shadow);
  border-left-color: var(--blue);
}

.job::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 30px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  border: 3px solid var(--navy);
  transition: all 0.3s ease;
}

.job:hover::before {
  background: var(--blue);
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.job-skills {
  width: 100%;
  height: 4px;
  background: var(--lightest-navy);
  border-radius: 2px;
  margin: 15px 0;
  overflow: hidden;
}

.job-skills-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 2px;
  width: 0;
  transition: width 1.5s ease;
}

.experience-viz {
  width: 100%;
  height: 60px;
  margin: 15px 0;
}

.job:hover .company {
  color: var(--blue);
}

.job-title {
  color: var(--lightest-slate);
  font-size: var(--fz-xxl);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.company {
  color: var(--green);
}

.company a {
  color: var(--green);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.company a:hover {
  color: var(--white);
}

.company a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--green);
  transition: width 0.3s ease;
}

.company a:hover::after {
  width: 100%;
}

.job-date {
  color: var(--light-slate);
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
  margin: 5px 0 25px;
}

.job-description {
  padding: 0;
  margin: 0;
  list-style: none;
}

.job-description li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--slate);
}

.job-description li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: var(--fz-sm);
  line-height: 18px;
}

/* Projects Section */
.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project {
  position: relative;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  margin-bottom: 100px;
}

.project-content {
  position: relative;
  grid-column: 1 / 7;
  grid-row: 1 / -1;
}

.project-overline {
  margin: 10px 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
  font-weight: 400;
}

.project-title {
  color: var(--lightest-slate);
  font-size: clamp(24px, 5vw, 28px);
  margin: 0 0 20px;
}

.project-description {
  position: relative;
  z-index: 2;
  padding: 25px;
  border-radius: var(--border-radius);
  background-color: var(--light-navy);
  color: var(--light-slate);
  font-size: var(--fz-lg);
  box-shadow: 0 10px 30px -15px var(--navy-shadow);
}

.project-description p {
  margin: 0;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin: 25px 0 10px;
  padding: 0;
  list-style: none;
}

.project-tech-list li {
  margin: 0 20px 5px 0;
  color: var(--light-slate);
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
  white-space: nowrap;
}

.project-links {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 10px;
  margin-left: -10px;
  color: var(--lightest-slate);
}

.project-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  color: var(--lightest-slate);
  text-decoration: none;
  transition: var(--transition);
}

.project-links a:hover {
  color: var(--green);
}

.project-image {
  grid-column: 6 / -1;
  grid-row: 1 / -1;
  position: relative;
  z-index: 1;
}

.project-image a {
  width: 100%;
  height: 100%;
  background-color: var(--green);
  border-radius: var(--border-radius);
  vertical-align: middle;
  display: block;
}

.project-image img {
  border-radius: var(--border-radius);
  mix-blend-mode: multiply;
  filter: grayscale(100%) contrast(1) brightness(90%);
  transition: var(--transition);
  width: 100%;
  height: auto;
}

.project-image:hover img {
  filter: none;
  mix-blend-mode: normal;
  height: 120%;
  width: 120%;
}

/* Fun Facts Section */
.fun-facts-content {
  max-width: 1200px;
  margin: 0 auto;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.fact-item {
  background-color: var(--light-navy);
  border-radius: var(--border-radius);
  padding: 30px 25px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--lightest-navy);
}

.fact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -15px var(--navy-shadow);
}

.fact-image {
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.fact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  filter: grayscale(20%) brightness(90%);
}

.fact-item:hover .fact-image img {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(100%);
}

.fact-item h3 {
  color: var(--lightest-slate);
  font-size: var(--fz-xl);
  margin: 0 0 15px;
  font-weight: 600;
}

.fact-item p {
  color: var(--slate);
  font-size: var(--fz-md);
  line-height: 1.5;
  margin: 0;
}

.d3-viz {
  width: 100%;
  height: 60px;
  margin: 15px 0;
  opacity: 0.7;
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: clamp(40px, 5vw, 60px);
  color: var(--lightest-slate);
  margin: 0 0 20px;
}

.contact-description {
  color: var(--slate);
  margin: 0 0 50px;
}

.contact-button {
  color: var(--green);
  background-color: transparent;
  border: 1px solid var(--green);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.75rem;
  font-size: var(--fz-sm);
  font-family: var(--font-mono);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.contact-button:hover {
  background-color: var(--green-tint);
  transform: translate3d(0, -3px, 0);
}

/* Side Elements */
.fixed-left,
.fixed-right {
  width: 40px;
  position: fixed;
  bottom: 0;
  z-index: 10;
  color: var(--light-slate);
}

.fixed-left {
  left: 40px;
}

.fixed-right {
  right: 40px;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links::after {
  content: '';
  display: block;
  width: 1px;
  height: 90px;
  margin: 0 auto;
  background-color: var(--light-slate);
}

.social-links li {
  margin: 0 0 20px;
}

.social-links a {
  padding: 10px;
  color: var(--light-slate);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--green);
  transform: translateY(-3px);
}

.email-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.email-link::after {
  content: '';
  display: block;
  width: 1px;
  height: 90px;
  margin: 0 auto;
  background-color: var(--light-slate);
}

.email-link a {
  margin: 20px auto;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
  line-height: var(--fz-lg);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  color: var(--light-slate);
  text-decoration: none;
  transition: var(--transition);
}

.email-link a:hover {
  color: var(--green);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: auto;
  min-height: 70px;
  padding: 15px;
  text-align: center;
}

.footer-content p {
  color: var(--light-slate);
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
  line-height: 1;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1080px) {
  .main-content {
    padding: 0 100px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 0 50px;
  }
  
  .navbar {
    padding: 0 25px;
  }
  
  .about-content {
    display: block;
  }
  
  .project {
    grid-template-columns: 1fr;
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
    transition: var(--transition);
  }
  
  .project-content {
    grid-column: 1 / -1;
    padding: 40px 40px 30px;
    z-index: 5;
  }
  
  .project-image {
    grid-column: 1 / -1;
    height: 100%;
    opacity: 0.25;
  }
  
  .fixed-left,
  .fixed-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 0 25px;
  }
  
  .navbar {
    padding: 0 15px;
  }
  
  .nav-menu {
    display: none;
  }
}