/* CSS Reset and Variables */
:root {
  --bg: #05050a;
  --bg-gradient: radial-gradient(circle at center, #1a1a2e 0%, #05050a 100%);
  --text: #e0e0e0;
  --text-dim: #9ca3af;
  --accent-math: #a855f7; /* Purple */
  --accent-ai: #06b6d4; /* Cyan */
  --accent-sus: #10b981; /* Emerald */
  --accent-thesis: #f43f5e; /* Rose */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Canvas */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(5, 5, 10, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-ai), var(--accent-math));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(to right, var(--accent-math), var(--accent-ai));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Main Container */
main {
  padding-top: 80px;
}

section {
  min-height: 100vh;
  padding: 5rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Typography */
h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
}

.gradient-text-math {
  background: linear-gradient(to right, #e879f9, var(--accent-math));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-ai {
  background: linear-gradient(to right, #67e8f9, var(--accent-ai));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-sus {
  background: linear-gradient(to right, #6ee7b7, var(--accent-sus));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-thesis {
  background: linear-gradient(to right, #fda4af, var(--accent-thesis));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Hero Section */
.hero-content {
  max-width: 800px;
  animation: fadeUp 1s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(to right, var(--accent-math), var(--accent-ai)) border-box;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* Glass Cards */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.2, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent 70%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.glass-card.math:hover { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15); }
.glass-card.ai:hover { border-color: rgba(6, 182, 212, 0.5); box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15); }
.glass-card.sus:hover { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15); }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.glass-card ul {
  list-style: none;
  color: var(--text-dim);
}

.glass-card li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.glass-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text);
  opacity: 0.5;
}

/* Timeline / Experience */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-ai), var(--accent-math), var(--accent-sus));
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-ai);
  box-shadow: 0 0 10px var(--accent-ai);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-dim);
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.social-links a:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 1rem; }
  .nav-links { display: none; } /* Could add hamburger here */
  section { padding: 4rem 5%; }
  .hero-profile { flex-direction: column; align-items: flex-start; }
}
