@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400&display=swap');

:root {
  --bg-primary: #fafafa;
  --bg-secondary: #f7fafc;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --accent-primary: #6e00ff;
  --accent-secondary: #4299e1;
  --accent-hover: rgba(110, 0, 255, 0.1);
  --border-color: #e2e8f0;
  --shadow-color: rgba(45, 55, 72, 0.1);
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 80px 2rem 0 2rem;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(226, 232, 240, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg width='1200' height='150' viewBox='0 0 1200 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,75 Q300,25 600,75 T1200,75 L1200,150 L0,150 Z' fill='rgba(110, 0, 255, 0.02)'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  animation: gentleWave 12s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes gentleWave {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-5px) scale(1.01); }
}

header {
  height: 60px;
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

/* EEG Wave Animation Background */
.header-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Abstract axes for artistic appearance */
.header-waves::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(74, 85, 104, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 85, 104, 0.08) 1px, transparent 1px);
  background-size: 40px 8px;
  pointer-events: none;
  z-index: -1;
}

.header-waves::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(74, 85, 104, 0.15) 15%, rgba(74, 85, 104, 0.15) 85%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* Additional artistic vertical axes */
.header-waves-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 10%, rgba(74, 85, 104, 0.1) 30%, rgba(74, 85, 104, 0.1) 70%, transparent 90%);
  pointer-events: none;
  z-index: -1;
}

.axis-1 { left: 20%; }
.axis-2 { left: 40%; }
.axis-3 { left: 60%; }
.axis-4 { left: 80%; }

.wave-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  transition: all 0.3s ease;
}

.wave-layer:hover {
  opacity: 0.85;
  animation-duration: 1.5s !important;
}

.wave-path {
  stroke: #4a5568;
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
}

/* Different frequency wave animations - spread out layout */
.alpha-wave {
  top: 8px;
  height: 12px;
  animation: alphaWave 6s ease-in-out infinite;
}

.beta-wave {
  top: 20px;
  height: 12px;
  animation: betaWave 4.5s ease-in-out infinite;
  animation-delay: -0.75s;
}

.theta-wave {
  top: 32px;
  height: 12px;
  animation: thetaWave 7.5s ease-in-out infinite;
  animation-delay: -1.5s;
}

.delta-wave {
  top: 44px;
  height: 12px;
  animation: deltaWave 9s ease-in-out infinite;
  animation-delay: -2.25s;
}

.gamma-wave {
  top: 56px;
  height: 12px;
  animation: gammaWave 3s ease-in-out infinite;
  animation-delay: -0.375s;
}

/* Frequency-specific wave styling */
.alpha-wave .wave-path {
  stroke-width: 1.2px;
  opacity: 0.7;
}

.beta-wave .wave-path {
  stroke-width: 1px;
  opacity: 0.65;
}

.theta-wave .wave-path {
  stroke-width: 1.4px;
  opacity: 0.75;
}

.delta-wave .wave-path {
  stroke-width: 1.6px;
  opacity: 0.8;
}

.gamma-wave .wave-path {
  stroke-width: 0.8px;
  opacity: 0.6;
}

/* Wave animation keyframes */
@keyframes alphaWave {
  0%, 100% {
    d: path("M0,6 Q75,4 150,6 T300,6 T450,6 T600,6 T750,6 T900,6 T1050,6 T1200,6");
  }
  25% {
    d: path("M0,6 Q75,9 150,3 T300,8 T450,4 T600,9 T750,3 T900,8 T1050,4 T1200,6");
  }
  50% {
    d: path("M0,6 Q75,1 150,9 T300,2 T450,8 T600,1 T750,9 T900,2 T1050,8 T1200,6");
  }
  75% {
    d: path("M0,6 Q75,11 150,1 T300,10 T450,2 T600,11 T750,1 T900,10 T1050,2 T1200,6");
  }
}

@keyframes betaWave {
  0%, 100% {
    d: path("M0,9 Q50,7 100,9 T200,9 T300,9 T400,9 T500,9 T600,9 T700,9 T800,9 T900,9 T1000,9 T1100,9 T1200,9");
  }
  33% {
    d: path("M0,9 Q50,11 100,7 T200,10 T300,8 T400,11 T500,7 T600,10 T700,8 T800,11 T900,7 T1000,10 T1100,8 T1200,9");
  }
  66% {
    d: path("M0,9 Q50,3 100,11 T200,4 T300,10 T400,3 T500,11 T600,4 T700,10 T800,3 T900,11 T1000,4 T1100,10 T1200,9");
  }
}

@keyframes thetaWave {
  0%, 100% {
    d: path("M0,4 Q100,3 200,4 T400,4 T600,4 T800,4 T1000,4 T1200,4");
  }
  50% {
    d: path("M0,4 Q100,7 200,1 T400,6 T600,2 T800,7 T1000,1 T1200,4");
  }
}

@keyframes deltaWave {
  0%, 100% {
    d: path("M0,10 Q150,9 300,10 T600,10 T900,10 T1200,10");
  }
  50% {
    d: path("M0,10 Q150,5 300,11 T600,6 T900,11 T1200,10");
  }
}

@keyframes gammaWave {
  0%, 100% {
    d: path("M0,8 Q25,6 50,8 T100,8 T150,8 T200,8 T250,8 T300,8 T350,8 T400,8 T450,8 T500,8 T550,8 T600,8 T650,8 T700,8 T750,8 T800,8 T850,8 T900,8 T950,8 T1000,8 T1050,8 T1100,8 T1150,8 T1200,8");
  }
  25% {
    d: path("M0,8 Q25,11 50,5 T100,10 T150,6 T200,11 T250,5 T300,10 T350,6 T400,11 T450,5 T500,10 T550,6 T600,11 T650,5 T700,10 T750,6 T800,11 T850,5 T900,10 T950,6 T1000,11 T1050,5 T1100,10 T1150,6 T1200,8");
  }
  50% {
    d: path("M0,8 Q25,2 50,11 T100,3 T150,10 T200,2 T250,11 T300,3 T350,10 T400,2 T450,11 T500,3 T550,10 T600,2 T650,11 T700,3 T750,10 T800,2 T850,11 T900,3 T950,10 T1000,2 T1050,11 T1100,3 T1150,10 T1200,8");
  }
  75% {
    d: path("M0,8 Q25,11 50,2 T100,10 T150,3 T200,11 T250,2 T300,10 T350,3 T400,11 T450,2 T500,10 T550,3 T600,11 T650,2 T700,10 T750,3 T800,11 T850,2 T900,10 T950,3 T1000,11 T1050,2 T1100,10 T1150,3 T1200,8");
  }
}

header nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 0 2rem 0 0;
  margin: 0;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

header nav ul li {
  margin-right: 2rem;
}

header nav ul li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

header nav ul li a:hover {
  color: var(--accent-primary);
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

header nav ul li a:hover::after {
  width: 100%;
}

/**************Home Page Styles*************/
.home-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background-color: var(--bg-primary);
  flex-wrap: wrap;
  padding: 3rem 0;
  position: relative;
}

.home-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.home-text {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  margin-left: 5%;
  position: relative;
}

.home-text h1 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.home-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.pfp {
  width: 350px;
  height: auto;
  box-shadow: 0 8px 32px var(--shadow-color);
  border-radius: 16px;
  margin-right: 5%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pfp:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px var(--shadow-color);
}

.social-icons {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 3rem;
  padding-bottom: 3rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--accent-hover) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.social-link:hover::before {
  width: 120px;
  height: 120px;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.social-link i {
  position: relative;
  z-index: 1;
}

#intro-text::after {
  content: "|";
  animation: blink 1s step-start infinite;
  color: var(--accent-primary);
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

/* Neural spike animation for excitement text */
@keyframes neuralPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

#excitement-text {
  animation: neuralPulse 3s ease-in-out infinite;
}

/* Platform-specific hover colors with neural feel */
.social-link:nth-child(1):hover { color: #0072b1; } /* LinkedIn */
.social-link:nth-child(2):hover { color: #24292e; } /* GitHub */
.social-link:nth-child(3):hover { color: #c5221f; } /* Email */

/**************EEG Wave Divider**************/
.wave-divider {
  height: 60px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 20px,
    var(--border-color) 20px,
    var(--border-color) 21px
  );
  opacity: 0.3;
  margin: 3rem 0;
  position: relative;
}

.wave-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 Q25,5 50,10 T100,10' stroke='%23e2e8f0' stroke-width='1' fill='none'/%3E%3C/svg%3E") repeat-x;
  opacity: 0.5;
}

/**************Neural Grid Background**************/
.neural-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(226, 232, 240, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

/**************Neural Firing Effect**************/
.neural-firing {
  position: relative;
  overflow: hidden;
}

.neural-firing::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-hover) 0%, transparent 50%);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.neural-firing:hover::before {
  opacity: 1;
  transform: scale(1);
}

/**************Spike Animation**************/
@keyframes spike {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.2); }
}

.spike-bar {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
  margin: 0 1px;
  animation: spike 2s ease-in-out infinite;
}

.spike-bar:nth-child(2) { animation-delay: 0.2s; }
.spike-bar:nth-child(3) { animation-delay: 0.4s; }
.spike-bar:nth-child(4) { animation-delay: 0.6s; }
.spike-bar:nth-child(5) { animation-delay: 0.8s; }

/**************Oscillating Wave Background**************/
.wave-background {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg width='1200' height='200' viewBox='0 0 1200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,100 Q300,50 600,100 T1200,100 L1200,200 L0,200 Z' fill='%23f7fafc' opacity='0.3'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  animation: waveFloat 8s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes waveFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/**************Spike Train Display**************/
.spike-train {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 30px;
  margin: 2rem 0;
  opacity: 0.4;
}

/**************Typography**************/
.neural-code {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9em;
  color: var(--accent-primary);
  opacity: 0.8;
}

.neural-accent {
  color: var(--accent-primary);
  font-weight: 500;
}

.research-section h2 {
  position: relative;
  padding-left: 1rem;
}

.research-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

/***********Project Page Styles**************/
.all-projects {
  display: flex;
  gap: 3rem;
  flex-direction: column;
  align-items: flex-start;
}

.project1, .project2, .project3, .project4, .project5 {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.project1:hover, .project2:hover, .project3:hover, .project4:hover, .project5:hover {
  box-shadow: 0 8px 32px var(--shadow-color);
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.project1-text, .project2-text, .project3-text, .project4-text, .project5-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  color: var(--text-primary);
}

.project1-text h1, .project2-text h1, .project3-text h1, .project4-text h1, .project5-text h1,
.project1-text h2, .project2-text h2, .project3-text h2, .project4-text h2, .project5-text h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.project1-text p, .project2-text p, .project3-text p, .project4-text p, .project5-text p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.project1-image, .project2-image, .project3-image, .project4-image, .project5-image {
  width: 450px;
  height: auto;
  box-shadow: 0 8px 24px var(--shadow-color);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project1-image:hover, .project2-image:hover, .project3-image:hover,
.project4-image:hover, .project5-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px var(--shadow-color);
}



.project4-text {
  flex: 1 1 300px;
  min-width: 300px;
  max-width: 600px;
}
.project4-image {
  flex-shrink: 1;
  max-width: 500px;
  height: auto;
}

/**************Other Page Styles**************/
.activity-section {
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  margin: 2rem 0;
}

.activity-section:hover {
  box-shadow: 0 8px 32px var(--shadow-color);
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.activity-section h3 {
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.activity-section h3:hover {
  background-color: var(--accent-hover);
  transform: translateX(4px);
  color: var(--accent-primary);
}


/**************Interests Page Styles**************/
.food, .photos {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1rem;
  padding: 1.5rem 0;
  margin: 2rem 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.food::-webkit-scrollbar, .photos::-webkit-scrollbar {
  height: 8px;
}

.food::-webkit-scrollbar-track, .photos::-webkit-scrollbar-track {
  background: transparent;
}

.food::-webkit-scrollbar-thumb, .photos::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.food::-webkit-scrollbar-thumb:hover, .photos::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.food img, .photos img {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.food img:hover, .photos img:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-color);
  border-color: var(--accent-primary);
}

/**************Resume Page Styles**************/
.resume-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  scrollbar-width: none;
}

.resume-container::-webkit-scrollbar {
  display: none;
}
