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

:root {
  /* Dark Theme Default */
  --bg-color: #050505;
  --text-primary: #f0f0f0;
  --text-secondary: #9ca3af;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --glass-blur: blur(12px);
  --timeline-line: linear-gradient(to bottom, #ec4899, #8b5cf6, transparent);
  --timeline-bullet-bg: #050505;
  --timeline-bullet-border: #8b5cf6;
  --orb-1: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
  --orb-2: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
  --nav-bg: #050505;
  --nav-border: rgba(255, 255, 255, 0.15);
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-color: #f9fafb;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  --timeline-bullet-bg: #ffffff;
  --orb-1: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
  --orb-2: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  --nav-bg: #f9fafb;
  --nav-border: rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Dynamic Background Elements */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.8;
  animation: float 20s infinite ease-in-out alternate;
  transition: background 0.5s ease;
}

body::before {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--orb-1);
}

body::after {
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--orb-2);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.9); }
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin-bottom: 4rem;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 100px;
  box-shadow: var(--glass-shadow);
  position: sticky;
  top: 1rem;
  z-index: 100;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-links a.active {
  color: var(--text-primary);
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

/* Theme Toggle Button */
.theme-btn {
  position: absolute;
  top: -27px;
  right: 0;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: var(--text-primary);
}

body.light-theme .theme-btn {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.theme-btn:hover {
  transform: scale(1.1) rotate(15deg);
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 3.5rem;
  letter-spacing: -0.5px;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero Section */
.hero {
  margin-top: 6rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-text p {
  max-width: 600px;
  font-size: 1.15rem;
}

.hero-image-container {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-backdrop {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent-gradient);
  border-radius: 30px;
  filter: blur(25px);
  opacity: 0.6;
  z-index: 0;
  animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
  from { opacity: 0.4; transform: scale(0.95); }
  to { opacity: 0.7; transform: scale(1.05); }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  border: 2px solid var(--glass-border);
  z-index: 1;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .hero-image {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-image-container:hover .hero-image {
  transform: translateY(-10px) scale(1.02);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #8b5cf6;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
}

body.light-theme .tagline {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent-gradient);
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

body.light-theme .social-links a:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.social-links a:hover::before {
  opacity: 0.1;
}

/* Cards & Lists */
.timeline {
  margin-top: 3rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--timeline-line);
  border-radius: 2px;
}

.timeline-item {
  margin-bottom: 3.5rem;
  position: relative;
  padding-left: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--timeline-bullet-bg);
  border: 2px solid var(--timeline-bullet-border);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  transition: var(--transition);
}

.timeline-item:hover::before {
  background-color: var(--timeline-bullet-border);
  transform: scale(1.2);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #ec4899;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

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

.timeline-company {
  font-weight: 500;
  color: #8b5cf6;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 1.5rem;
  border-radius: 16px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-content ul {
  list-style-type: none;
}

.timeline-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.timeline-content li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-category {
  background: var(--glass-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--accent-gradient);
  opacity: 0.5;
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: var(--text-primary);
  transform: scale(1.05);
}

/* Footer */
footer {
  position: relative;
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-bottom: 3rem;
}

/* Responsive */
@media (max-width: 868px) {
  nav {
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 20px;
    gap: 1rem;
  }
  
  .nav-right {
    flex-direction: column;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
