@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --bg-color: #0f0f13;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent-color: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --nav-glass: rgba(15, 15, 19, 0.8);
  --font-main: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.4s forwards;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-glass);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-sizing: border-box;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  padding: 0 1rem;
}

#hero h1 {
  font-size: 4rem;
  margin: 0;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* Sections */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

section {
  margin-bottom: 8rem;
  padding-top: 4rem;
  /* For anchor scroll offset */
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

h2::after {
  content: '';
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex-grow: 1;
}

/* Experience Timeline */
.timeline {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.timeline-company {
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: inline-block;
}

/* Education & Skills */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* Slightly smaller min to fit 3 in row */
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* Contact */
.contact-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.btn:hover {
  background: #7c3aed;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Responsive */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  /* Mobile nav would go here, simplified for now */
}