:root {
  /* GitHub Dark (Colorblind) Theme Colors - Darker Version */
  --bg-primary: #010409; /* Much darker, almost black */
  --bg-secondary: #0a0e14; /* Very dark */
  --bg-tertiary: #0d1117; /* Dark tertiary */
  --bg-card: #0d1117;
  --bg-card-hover: #161b22;

  --text-primary: #f0f6fc;
  --text-secondary: #8d96a0;
  --text-muted: #6e7681;

  --accent-blue: #58a6ff;
  --accent-green: #3fb950;
  --accent-purple: #bc8cff;
  --accent-orange: #f78166;
  --accent-yellow: #d29922;

  --border-default: #30363d;
  --border-muted: #21262d;

  /* Anthropic Serif-inspired font stack */
  --font-serif: 'Tiempos Text', 'Georgia', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(88, 166, 255, 0.3);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* Asteroid Canvas Background */
#asteroidCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  animation: fadeInUp 1s var(--transition-base);
}

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

/* Hero Name - Static with High Contrast */
.hero-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #79c0ff; /* Brighter blue for better contrast */
  margin-bottom: 2rem;
  text-shadow: 0 0 40px rgba(121, 192, 255, 0.8), 0 0 80px rgba(121, 192, 255, 0.4);
}

.bio {
  margin: 2rem auto;
  max-width: 700px;
}

.bio-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #c9d1d9; /* Much lighter for better readability */
  text-align: center;
  font-weight: 400;
}

/* Education Card */
.education-card {
  background: rgba(28, 33, 40, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: all var(--transition-base);
}

.education-card:hover {
  background: rgba(28, 33, 40, 0.8);
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.education-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.education-details {
  flex: 1;
  text-align: left;
}

.education-details h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.institution {
  color: var(--accent-purple);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.duration {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.gpa {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.gpa-value {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.1rem;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.tag {
  background: var(--bg-tertiary);
  color: var(--accent-blue);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid var(--border-default);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.hero-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--border-default);
  font-weight: 500;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.link-btn:hover::before {
  left: 100%;
}

.link-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.scroll-indicator {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

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

/* Projects Section */
.projects-section {
  position: relative;
  min-height: 100vh;
  padding: 6rem 2rem;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, #0a0e14 20%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Project Cards */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-green));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-card.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.project-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: var(--bg-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-type {
  color: var(--accent-green);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--bg-tertiary);
  color: var(--accent-purple);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  border: 1px solid var(--border-muted);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--accent-purple);
  transform: scale(1.05);
}

.project-highlights {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.highlight-icon {
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  padding: 0.5rem 0;
}

.project-link:hover {
  color: var(--accent-purple);
  transform: translateX(4px);
}

.project-link.live {
  color: var(--accent-green);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Core Skills Section */
.core-skills-container {
  margin: 3rem auto;
  max-width: 900px;
  text-align: center;
  padding: 0 1rem;
}

.skills-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.skills-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.4);
  border: 1px solid var(--border-muted);
  width: 100px;
  transition: all var(--transition-base);
  cursor: default;
}

.skill-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.skill-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all var(--transition-base);
}

.skill-item:hover .skill-icon {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.skill-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-base);
}

.skill-item:hover .skill-name {
  color: var(--text-primary);
}

/* Certifications & Achievements Section */
.certifications-section {
  position: relative;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #0a0e14 0%, #010409 100%);
  z-index: 1;
  border-top: 1px solid var(--border-muted);
}

.certifications-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Certification Cards */
.cert-card {
  display: block; /* Ensure it behaves like a block */
  text-decoration: none; /* Remove underline */
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(30px);
  cursor: pointer;
}

.cert-card.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.cert-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cert-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.cert-logo svg {
  width: 28px;
  height: 28px;
}

/* Brand-specific logo colors */
.oracle-logo {
  background: rgba(240, 79, 34, 0.1);
  color: #f04f22;
}

.cert-card:hover .oracle-logo {
  background: rgba(240, 79, 34, 0.2);
  transform: scale(1.1);
}

.anthropic-logo {
  background: rgba(204, 153, 102, 0.1);
  color: #cc9966;
}

.cert-card:hover .anthropic-logo {
  background: rgba(204, 153, 102, 0.2);
  transform: scale(1.1);
}

.coursera-logo {
  background: rgba(42, 115, 204, 0.1);
  color: #2a73cc;
}

.cert-card:hover .coursera-logo {
  background: rgba(42, 115, 204, 0.2);
  transform: scale(1.1);
}

.datacamp-logo {
  background: rgba(3, 192, 60, 0.1);
  color: #03c03c;
}

.cert-card:hover .datacamp-logo {
  background: rgba(3, 192, 60, 0.2);
  transform: scale(1.1);
}

.cert-issuer {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.cert-date {
  color: var(--accent-green);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.cert-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Achievements Section */
.achievements-section {
  margin-top: 3rem;
}

.achievements-title {
  font-size: 2rem;
  color: var(--accent-blue);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

.achievement-card {
  text-decoration: none; /* Remove underline */
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: all var(--transition-base);
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
}

.achievement-card.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.achievement-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.achievement-badge {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(217, 153, 34, 0.4);
  padding: 0.5rem; /* Ensure padding prevents text hitting edges */
  text-align: center;
}

.achievement-badge svg {
  width: 32px;
  height: 32px;
  color: var(--bg-primary);
  margin-bottom: 0.2rem;
  display: block; /* Remove inline spacing */
}

.achievement-rank {
  font-size: 0.65rem;
  color: var(--bg-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-align: center;
  width: 100%;
}

.achievement-content {
  flex: 1;
}

.achievement-event {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.achievement-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.achievement-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

.achievement-description strong {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Responsive Design for Certifications */
@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr;
  }

  .achievement-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .achievement-badge {
    margin-bottom: 1rem;
  }
}

/* Footer */
.footer {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  padding: 3rem 2rem;
  text-align: center;
  z-index: 1;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-links {
    flex-direction: column;
    align-items: stretch;
  }

  .link-btn {
    justify-content: center;
  }
}

/* Scroll Animations */
[data-aos] {
  transition-property: transform, opacity;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
  opacity: 0;
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}
