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

/* CSS Variables for consistent theming */
:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-glass: rgba(30, 41, 59, 0.7);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(148, 163, 184, 0.2);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  overflow-x: hidden;
}

/* Animated background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes backgroundShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

/* Modern Navigation */
.main-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 800px;
}

.main-nav nav {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}

.main-nav nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.main-nav nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.main-nav nav a:hover::before {
  left: 100%;
}

.main-nav nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.main-nav nav a.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: var(--shadow-glow);
  font-weight: 600;
}

/* Header Redesign */
header {
  background: transparent;
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
}

header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 400;
}

/* Profile Picture Enhancement */
.profile-pic {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid transparent;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 4px;
  margin: 32px auto;
  display: block;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.4);
}

/* Main Content */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* Content Cards */
section {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.2);
}

section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

section p:last-child {
  margin-bottom: 0;
}

/* Typography Improvements */
h1, h2, h3 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: 1.4rem;
  margin: 24px 0 16px;
  color: var(--primary-color);
}

/* Lists Enhancement */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
}

ul li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(8px);
}

ul li::before {
  content: '▸';
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 12px;
}

/* Timeline Specific Styling */
ul.timeline li {
  border-left: 4px solid var(--accent-color);
  position: relative;
  padding-left: 32px;
}

ul.timeline li::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  position: absolute;
  left: -8px;
  top: 20px;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

ul.timeline li strong {
  color: var(--accent-color);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

/* Links Styling */
a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }

  .main-nav {
    top: 16px;
    width: 95%;
  }

  .main-nav nav {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .main-nav nav a {
    padding: 8px 16px;
    font-size: 13px;
  }

  header {
    padding: 40px 16px 32px;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1rem;
  }

  .profile-pic {
    width: 140px;
    height: 140px;
  }

  main {
    padding: 0 16px 40px;
  }

  section {
    padding: 24px;
    border-radius: 16px;
  }

  h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 120px;
  }

  .main-nav nav a {
    padding: 6px 12px;
    font-size: 12px;
  }

  header h1 {
    font-size: 2rem;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  section {
    padding: 20px;
  }

  ul li {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--secondary-color), var(--accent-color));
}
  