/* Neo-Brutalism Portfolio Styles */
:root {
  --black: #000000;
  --white: #ffffff;
  --primary: #00ff00;
  --secondary: #ff00ff;
  --accent: #00ffff;
  --warning: #ffff00;
  --border: 4px solid var(--black);
  --shadow: 8px 8px 0 var(--black);
  --shadow-hover: 12px 12px 0 var(--black);
}

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

body {
  font-family: "Courier New", Courier, monospace;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

.glitch-wrapper {
  position: relative;
}

.glitch {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  letter-spacing: -0.05em;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-2px, 2px);
  }
  94% {
    transform: translate(2px, -2px);
  }
  96% {
    transform: translate(-2px, -2px);
  }
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--secondary);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(random(100) + px, 9999px, random(100) + px, 0);
  }
  100% {
    clip: rect(random(100) + px, 9999px, random(100) + px, 0);
  }
}

.tagline {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin: 20px 0;
  font-weight: 700;
}

.bio {
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 700px;
  margin: 20px auto;
  line-height: 1.8;
}

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

.btn {
  padding: 15px 30px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  border: var(--border);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 4px 4px 0 var(--black);
}

/* Section Styles */
section {
  padding: 100px 0;
  border-bottom: var(--border);
}

#projects {
  background: var(--accent);
}

#experience {
  background: var(--primary);
}

#work {
  background: var(--warning);
}

#research {
  background: var(--secondary);
}

#certifications {
  background: var(--accent);
}

#skills {
  background: var(--white);
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.update-notice {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: var(--white);
  border: var(--border);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hover);
}

.project-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.project-card p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.project-meta {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.project-meta span {
  background: var(--black);
  color: var(--white);
  padding: 5px 10px;
  font-size: 0.9rem;
  border: 2px solid var(--black);
}

.project-stats {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  font-weight: 700;
}

.link {
  display: inline-block;
  margin-top: 15px;
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 3px solid var(--black);
  transition: all 0.2s ease;
}

.link:hover {
  border-bottom: 6px solid var(--black);
}

.loading {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 40px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--black);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-marker {
  position: absolute;
  left: -38px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--black);
  border: 4px solid var(--warning);
}

.timeline-content {
  background: var(--white);
  border: var(--border);
  padding: 25px;
  box-shadow: var(--shadow);
}

.timeline-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.company {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.period {
  font-size: 1.1rem;
  margin-bottom: 10px;
  opacity: 0.8;
  font-weight: 700;
}

.summary {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Research Grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.research-card {
  background: var(--white);
  border: var(--border);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.research-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hover);
}

.research-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.research-card p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.scholar-cta {
  text-align: center;
  margin-top: 60px;
}

.btn-large {
  font-size: 1.3rem;
  padding: 20px 40px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-category {
  background: var(--primary);
  border: var(--border);
  padding: 30px;
  box-shadow: var(--shadow);
}

.skill-category h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background: var(--black);
  color: var(--white);
  padding: 8px 15px;
  border: 2px solid var(--black);
  font-weight: 700;
}

/* Footer */
footer {
  background: var(--black);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

footer p {
  margin: 10px 0;
  font-size: 1.1rem;
}

.footer-note {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .glitch {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .bio {
    font-size: 1rem;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-marker {
    left: -28px;
    width: 16px;
    height: 16px;
  }

  .timeline-content h3 {
    font-size: 1.4rem;
  }

  .company {
    font-size: 1.1rem;
  }

  .period,
  .summary {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    padding: 20px;
  }

  .project-card h3 {
    font-size: 1.4rem;
  }

  .project-card p {
    font-size: 1rem;
  }

  .project-meta {
    gap: 10px;
  }

  .project-meta span {
    font-size: 0.85rem;
    padding: 4px 8px;
  }

  .research-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .research-card {
    padding: 20px;
  }

  .research-card h3 {
    font-size: 1.3rem;
  }

  .research-card p {
    font-size: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skill-category {
    padding: 20px;
  }

  .skill-category h3 {
    font-size: 1.4rem;
  }

  .skill-tags span {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
    font-size: 1rem;
    padding: 12px 24px;
  }

  .link {
    font-size: 1rem;
    display: block;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .glitch {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }

  .research-card h3 {
    font-size: 1.2rem;
  }

  .timeline-content {
    padding: 15px;
  }

  .project-card,
  .research-card,
  .skill-category {
    padding: 15px;
  }
}
