/* Main CSS for Shubhodeep's Portfolio - Moonlight Theme */
:root {
  /* Core Moonlight Theme Colors - Refined for better harmony */
  --primary-color: #1e2030;
  --secondary-color: #82aaff;
  --text-color: #c8d3f5;
  --background-color: #1e2030;
  --terminal-bg: #191a2a;
  --terminal-text: #82aaff;
  --terminal-prompt: #ff757f;
  --accent-color: #82aaff;
  --dark-accent: #191a2a;
  --light-gray: #a9b8e8;
  
  /* Syntax highlighting colors - Harmonized */
  --keyword-color: #c099ff;
  --string-color: #c3e88d;
  --comment-color: #7a88cf;
  --function-color: #ffc777;
  --number-color: #ff757f;
  --type-color: #4fd6be;
  
  /* CUDA-specific colors - Refined for better harmony */
  --cuda-green: #c3e88d;
  --cuda-blue: #82aaff;
  --cuda-orange: #ffc777;
  --cuda-red: #ff757f;
  --cuda-purple: #c099ff;
  --cuda-cyan: #86e1fc;
  
  /* Tab colors */
  --tab-active-bg: #2f334d;
  --tab-inactive-bg: #222436;
  --tab-hover-bg: #292d46;
  --tab-border: #191a2a;
  
  /* Additional accent colors - Harmonized */
  --link-hover-color: #c3e88d;
  --highlight-color: #ffc777;
  --section-title-color: #82aaff;
  --heading-color: #82aaff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--cuda-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--link-hover-color);
  text-shadow: 0 0 8px rgba(195, 232, 141, 0.5);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--dark-accent);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(130, 170, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Header content layout adjustments */
.header-content {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;
  padding: 0 10px;
  height: 60px;
}

/* Logo styling refinement - smaller text */
.logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--cuda-green);
  text-shadow: 0 0 10px rgba(195, 232, 141, 0.5);
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  white-space: nowrap;
  z-index: 10;
  margin-right: 8px;
  flex-shrink: 0;
}

.logo span {
  color: var(--text-color);
  opacity: 0.9;
}

/* IDE Tabs container adjustment */
.ide-tabs {
  display: flex;
  overflow-x: auto;
  flex-grow: 1;
  height: 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--comment-color) var(--dark-accent);
  margin: 0 10px;
}

/* IDE tab styling improvements - smaller text */
.ide-tab {
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 40px;
  background-color: var(--tab-inactive-bg);
  color: var(--light-gray);
  border-right: 1px solid var(--tab-border);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-width: 100px;
  max-width: 150px;
  justify-content: space-between;
}

.ide-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(130, 170, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.ide-tab:hover::before {
  transform: translateX(100%);
}

.ide-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--cuda-blue);
  transition: width 0.3s ease;
}

.ide-tab:hover {
  background-color: var(--tab-hover-bg);
}

.ide-tab:hover::after {
  width: 100%;
}

.ide-tab.active {
  background-color: var(--tab-active-bg);
  color: var(--cuda-cyan);
  font-weight: 500;
}

.ide-tab.active::after {
  width: 100%;
  background-color: var(--cuda-blue);
  box-shadow: 0 0 8px rgba(130, 170, 255, 0.8);
}

.ide-tab span {
  flex-grow: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 4px;
  font-size: 13px;
}

.ide-tab i {
  margin-right: 0;
  font-size: 12px;
  flex-shrink: 0;
}

.ide-tab i:first-child {
  margin-right: 4px;
}

.ide-tab i.close-tab {
  margin-left: 4px;
  opacity: 0.5;
  font-size: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ide-tab i.close-tab:hover {
  transform: scale(1.2);
  opacity: 1;
  color: var(--number-color);
}

/* Tab closing animation */
.ide-tab.closing {
  animation: tabClosing 0.3s forwards;
}

@keyframes tabClosing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Header Resume Button - smaller text */
.header-resume-btn {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background-color: rgba(195, 232, 141, 0.1);
  color: var(--cuda-green);
  border: 1px solid var(--cuda-green);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  margin-left: 12px;
  transition: all 0.3s ease;
  white-space: nowrap;
  height: 28px;
  flex-shrink: 0;
}

.header-resume-btn i {
  margin-right: 5px;
  font-size: 12px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .header-content {
    padding: 0 5px;
  }
  
  .ide-tab {
    min-width: 100px;
    padding: 0 10px;
  }
  
  .logo {
    font-size: 16px;
    padding: 12px 5px;
  }
  
  .header-resume-btn {
    position: absolute;
    right: 60px;
    top: 12px;
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .header-resume-btn i {
    margin-right: 4px;
    font-size: 12px;
  }
}

/* Mobile menu for small screens */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .ide-tabs {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: auto;
    background-color: var(--dark-accent);
    flex-direction: column;
    padding: 10px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid rgba(130, 170, 255, 0.2);
  }
  
  .ide-tabs.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .ide-tab {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--tab-border);
    justify-content: center;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 180, 255, 0.15), transparent 50%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, 
    rgba(47, 51, 77, 0.7) 0%, 
    rgba(47, 51, 77, 0.4) 100%);
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  color: var(--cuda-orange);
  font-size: 16px;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(255, 199, 119, 0.3);
}

.hero-subtitle-code {
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 25px;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(200, 211, 245, 0.3);
  letter-spacing: 0.5px;
  line-height: 1.4;
  position: relative;
  display: inline-block;
}

.hero-subtitle-code::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, 
    rgba(130, 170, 255, 0.5), 
    rgba(195, 232, 141, 0.5), 
    rgba(255, 199, 119, 0.5)
  );
  box-shadow: 0 0 10px rgba(130, 170, 255, 0.3);
}

.hero-subtitle-code .cuda-directive {
  color: var(--cuda-orange);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 199, 119, 0.3);
}

.hero-subtitle-code .code-type {
  color: var(--type-color);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(79, 214, 190, 0.3);
}

.hero-subtitle-code .code-function {
  color: var(--function-color);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 199, 119, 0.3);
}

.hero-subtitle-code .code-string {
  color: var(--string-color);
  text-shadow: 0 0 8px rgba(195, 232, 141, 0.3);
}

.hero-subtitle-code .code-comment {
  color: var(--comment-color);
  font-style: italic;
  text-shadow: 0 0 8px rgba(122, 136, 207, 0.3);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(to right, #82aaff, #c099ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 5px 15px rgba(130, 170, 255, 0.3);
}

.hero-description {
  font-size: 18px;
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--light-gray);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.hero-description br {
  content: "";
  display: block;
  margin: 10px 0;
}

.hero-description span {
  display: inline-block;
  transition: all 0.3s ease;
}

.hero-description span:hover {
  transform: translateY(-1px);
}

.cta-button {
  display: inline-block;
  background-color: transparent;
  color: var(--cuda-blue);
  border: 1px solid var(--cuda-blue);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(130, 170, 255, 0.2);
}

.cta-button:hover {
  background-color: rgba(130, 170, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(130, 170, 255, 0.4);
}

.terminal-button {
  display: inline-block;
  background-color: var(--terminal-bg);
  color: var(--cuda-green);
  border: 1px solid var(--cuda-green);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(195, 232, 141, 0.2);
}

.terminal-button:hover {
  background-color: rgba(195, 232, 141, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(195, 232, 141, 0.4);
}

.resume-button {
  background-color: var(--dark-accent);
  color: var(--type-color);
  border: 1px solid var(--type-color);
  margin-left: 15px;
}

.resume-button:hover {
  background-color: rgba(79, 214, 190, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(79, 214, 190, 0.4);
}

.resume-download {
  margin-top: 25px;
}

/* CUDA Vector Art */
.cuda-vector-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.cuda-vector-art::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 50%;
  height: 80%;
  background: 
    radial-gradient(circle at 70% 20%, rgba(130, 170, 255, 0.15), transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(195, 232, 141, 0.1), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(255, 199, 119, 0.1), transparent 40%);
  filter: blur(40px);
  opacity: 0.8;
  animation: pulse 8s ease-in-out infinite alternate;
}

/* Grid lines to represent CUDA grid */
.cuda-vector-art::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(130, 170, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(130, 170, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  transform: perspective(500px) rotateX(60deg) scale(2.5);
  transform-origin: center bottom;
}

/* Neural network nodes */
.cuda-vector-art .node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--cuda-blue);
  box-shadow: 0 0 10px rgba(130, 170, 255, 0.8);
  animation: float 4s ease-in-out infinite;
  z-index: 1;
}

/* Data flow particles */
.cuda-vector-art .data-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background-color: var(--cuda-green);
  box-shadow: 0 0 5px rgba(195, 232, 141, 0.8);
  animation: moveParticle 5s linear infinite;
  z-index: 2;
}

/* Animation for data particles */
@keyframes moveParticle {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--move-x, 100px), var(--move-y, 100px));
    opacity: 0;
  }
}

/* Animation for the glow effect */
@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

/* Animation for floating elements */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Existing code animation (move to lower z-index) */
.code-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.07;
  pointer-events: none;
}

/* About Section */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
  color: var(--section-title-color);
  text-shadow: 0 0 10px rgba(130, 170, 255, 0.3);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 3px;
  background-color: var(--cuda-blue);
  box-shadow: 0 0 10px rgba(130, 170, 255, 0.8);
}

.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--light-gray);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.skills-list li {
  position: relative;
  padding-left: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

.skills-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cuda-orange);
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 4px;
  filter: grayscale(100%) contrast(1);
  transition: all 0.3s ease;
}

.about-image:hover img {
  filter: grayscale(0%) contrast(1);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--cuda-blue);
  border-radius: 4px;
  z-index: -1;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(130, 170, 255, 0.3);
}

.about-image:hover::after {
  top: 10px;
  left: 10px;
}

.cuda-directive {
  color: var(--keyword-color);
  font-weight: 500;
}

.cuda-qualifier {
  color: var(--type-color);
  font-weight: 500;
}

.cuda-kernel {
  color: var(--cuda-purple);
  font-weight: bold;
  text-shadow: 0 0 8px rgba(192, 153, 255, 0.4);
}

.code-type {
  color: var(--type-color);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(79, 214, 190, 0.4);
}

.code-function {
  color: var(--function-color);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 199, 119, 0.4);
}

.code-string {
  color: var(--string-color);
  text-shadow: 0 0 8px rgba(195, 232, 141, 0.3);
}

.code-comment {
  color: var(--comment-color);
  font-style: italic;
  text-shadow: 0 0 8px rgba(122, 136, 207, 0.3);
}

/* Experience Section */
.experience-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--light-gray);
}

.tab-button {
  padding: 15px 25px;
  background: transparent;
  border: none;
  color: var(--light-gray);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button.active {
  color: var(--cuda-blue);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--cuda-blue);
  box-shadow: 0 0 8px rgba(130, 170, 255, 0.8);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.job-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--cuda-blue);
  margin-bottom: 5px;
}

.job-company {
  font-size: 16px;
  color: var(--cuda-orange);
  margin-bottom: 5px;
}

.job-duration {
  font-size: 14px;
  color: var(--light-gray);
  margin-bottom: 15px;
  opacity: 0.8;
}

.job-description ul {
  list-style: none;
}

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

.job-description li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cuda-green);
}

/* Timeline Layout for Experience Section */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Vertical line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 120px;
  width: 2px;
  background: linear-gradient(to bottom, 
    rgba(130, 170, 255, 0.8), 
    rgba(195, 232, 141, 0.8), 
    rgba(255, 199, 119, 0.8)
  );
  box-shadow: 0 0 10px rgba(130, 170, 255, 0.5);
}

/* Timeline items */
.timeline-item {
  position: relative;
  padding: 30px 0;
  display: flex;
  flex-direction: row;
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  left: 120px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--cuda-blue);
  box-shadow: 0 0 10px rgba(130, 170, 255, 0.8);
  transform: translateX(-50%);
  z-index: 2;
}

/* Timeline date */
.timeline-date {
  width: 120px;
  padding-right: 30px;
  text-align: right;
  font-size: 14px;
  color: var(--light-gray);
  flex-shrink: 0;
}

/* Timeline content */
.timeline-content {
  position: relative;
  margin-left: 60px;
  padding: 20px;
  background-color: rgba(47, 51, 77, 0.5);
  border-radius: 4px;
  border-left: 2px solid var(--cuda-blue);
  flex-grow: 1;
  transition: all 0.3s ease;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid rgba(47, 51, 77, 0.5);
}

/* Job details styling */
.timeline-content .job-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--cuda-blue);
  margin-bottom: 5px;
}

.timeline-content .job-company {
  font-size: 16px;
  color: var(--cuda-orange);
  margin-bottom: 15px;
}

.timeline-content .job-description ul {
  padding-left: 0;
  list-style-type: none;
}

.timeline-content .job-description li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.timeline-content .job-description li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cuda-green);
}

/* Hover effects */
.timeline-item:hover .timeline-dot {
  background-color: var(--cuda-green);
  box-shadow: 0 0 15px rgba(195, 232, 141, 0.8);
  transform: translateX(-50%) scale(1.2);
}

.timeline-item:hover .timeline-content {
  background-color: rgba(47, 51, 77, 0.7);
  transform: translateX(5px);
  border-left: 2px solid var(--cuda-green);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .timeline-container::before {
    left: 30px;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-date {
    width: auto;
    padding-right: 0;
    padding-left: 50px;
    text-align: left;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-content {
    margin-left: 0;
    margin-top: 20px;
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background-color: var(--dark-accent);
  border-radius: 4px;
  padding: 25px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(130, 170, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 15px rgba(130, 170, 255, 0.2);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(130, 170, 255, 0.2);
  border: 1px solid rgba(130, 170, 255, 0.3);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.folder-icon {
  color: var(--cuda-orange);
  font-size: 40px;
  text-shadow: 0 0 10px rgba(255, 117, 127, 0.5);
}

.project-links a {
  margin-left: 15px;
  font-size: 20px;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--cuda-blue);
}

.project-description {
  font-size: 14px;
  color: var(--light-gray);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.project-tech span {
  background-color: rgba(130, 170, 255, 0.1);
  color: var(--cuda-cyan);
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* Research Section */
.research-item {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(136, 146, 176, 0.2);
}

.research-item:last-child {
  border-bottom: none;
}

.research-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--cuda-blue);
}

.research-authors {
  color: var(--light-gray);
  font-size: 14px;
  margin-bottom: 15px;
}

.research-venue {
  color: var(--cuda-purple);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 15px;
}

.research-description {
  color: var(--text-color);
  margin-bottom: 20px;
}

.research-links a {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
}

.research-links a i {
  margin-right: 5px;
}

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

.contact-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--cuda-blue);
}

.contact-text {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--light-gray);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--cuda-blue);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--cuda-green);
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(130, 170, 255, 0.5);
}

.social-links i {
  font-size: 20px;
  color: var(--dark-accent);
  transition: all 0.3s ease;
}

/* Footer */
footer {
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cuda-blue), transparent);
}

.footer-text {
  position: relative;
  display: inline-block;
}

.footer-text::before {
  content: '<cuda_kernel>';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--cuda-blue);
  opacity: 0.7;
}

.footer-text::after {
  content: '</cuda_kernel>';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--cuda-blue);
  opacity: 0.7;
}

.footer-text a {
  color: var(--secondary-color);
}

/* Terminal */
.terminal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.terminal {
  width: 80%;
  max-width: 900px;
  height: 70%;
  background-color: var(--terminal-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(130, 170, 255, 0.3);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cuda-blue);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.2);
}

.terminal-title {
  color: var(--light-gray);
  font-size: 14px;
}

.terminal-controls {
  display: flex;
}

.terminal-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 8px;
  cursor: pointer;
}

.terminal-close {
  background-color: #ff5f56;
}

.terminal-minimize {
  background-color: #ffbd2e;
}

.terminal-maximize {
  background-color: #27c93f;
}

.terminal-body {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.terminal-output {
  margin-bottom: 15px;
  white-space: pre-wrap;
}

.terminal-prompt {
  color: var(--terminal-prompt);
  text-shadow: 0 0 8px rgba(255, 87, 127, 0.5);
}

.terminal-command {
  color: var(--cuda-orange);
}

.terminal-response {
  color: var(--light-gray);
}

.terminal-input-line {
  display: flex;
  align-items: center;
}

.terminal-input {
  background: transparent;
  border: none;
  color: var(--terminal-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  flex-grow: 1;
  caret-color: var(--terminal-text);
  outline: none;
}

/* Code Syntax Highlighting */
.code-keyword {
  color: var(--keyword-color);
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(192, 153, 255, 0.4);
}

.code-function {
  color: var(--function-color);
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(255, 199, 119, 0.4);
}

.code-string {
  color: var(--string-color);
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(195, 232, 141, 0.4);
}

.code-comment {
  color: var(--comment-color);
  font-family: 'JetBrains Mono', monospace;
  font-style: italic;
  text-shadow: 0 0 8px rgba(122, 136, 207, 0.4);
}

.code-type {
  color: var(--type-color);
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(79, 214, 190, 0.4);
}

.highlight {
  color: var(--cuda-blue);
  text-shadow: 0 0 5px rgba(130, 170, 255, 0.5);
  font-weight: 600;
  position: relative;
}

.highlight-green {
  color: var(--cuda-green);
  text-shadow: 0 0 5px rgba(195, 232, 141, 0.5);
  font-weight: 600;
  position: relative;
}

.highlight-orange {
  color: var(--cuda-orange);
  text-shadow: 0 0 5px rgba(255, 199, 119, 0.5);
  font-weight: 600;
  position: relative;
}

.highlight-cyan {
  color: var(--cuda-cyan);
  text-shadow: 0 0 5px rgba(128, 203, 196, 0.5);
  font-weight: 600;
  position: relative;
}

/* Highlight hover effects */
.highlight:hover, .highlight-green:hover, .highlight-orange:hover, .highlight-cyan:hover {
  text-shadow: 0 0 8px currentColor;
  transition: text-shadow 0.3s ease;
}

.cuda-kernel {
  color: var(--cuda-green);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(195, 232, 141, 0.4);
}

.cuda-qualifier {
  color: var(--cuda-blue);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(130, 170, 255, 0.4);
}

.cuda-directive {
  color: var(--cuda-orange);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 199, 119, 0.4);
}

/* Status bar like in code editors */
.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-accent);
  color: var(--text-color);
  padding: 5px 15px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(130, 170, 255, 0.2);
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.status-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cuda-blue), transparent);
  opacity: 0.5;
}

.status-bar-left, .status-bar-right {
  display: flex;
  align-items: center;
}

.status-bar-item {
  margin-right: 15px;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--light-gray);
}

.status-bar-item i {
  margin-right: 5px;
  font-size: 14px;
  color: var(--cuda-cyan);
}

.status-bar-item .cuda-directive {
  font-size: 10px;
  opacity: 0.8;
  margin-right: 5px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  position: relative;
}

.status-indicator::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--cuda-green);
  opacity: 0.5;
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

.status-online {
  background-color: var(--cuda-green);
  box-shadow: 0 0 8px rgba(195, 232, 141, 0.8);
}

/* Code Animation */
.code-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.07;
  pointer-events: none;
}

.code-line {
  position: absolute;
  color: var(--cuda-blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(130, 170, 255, 0.5);
  animation: codeFall linear infinite;
}

@keyframes codeFall {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-top: 50px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--dark-accent);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 1001;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 20px 0;
  }
  
  .terminal {
    width: 95%;
    height: 80%;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .cta-button, .terminal-button {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }
}

/* Enhanced paragraph styling for better readability */
p {
  color: var(--light-gray);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Improved list item styling */
li {
  color: var(--text-color);
  line-height: 1.6;
}

/* Section ending parenthesis styling */
.section-end {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  margin-top: 30px;
  color: var(--cuda-blue);
  opacity: 0.8;
  text-shadow: 0 0 8px rgba(130, 170, 255, 0.3);
  position: relative;
}

.section-end::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(130, 170, 255, 0.1) 0%, rgba(47, 51, 77, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.section-end .code-function {
  font-weight: 600;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.section-end:hover .code-function {
  transform: scale(1.2);
  text-shadow: 0 0 15px rgba(130, 170, 255, 0.6);
  color: var(--cuda-cyan);
}
