:root {
  --bg-color: #f5f5f7;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --accent-color: #0071e3;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  --section-spacing: 60px;
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --card-bg: rgba(28, 28, 30, 0.8);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: var(--section-spacing);
  padding: 40px 0;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* Profile Image */
.profile-image-container {
  margin-bottom: 20px;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--card-shadow);
  border: 4px solid var(--card-bg);
  /* Creates a nice ring effect */
  transition: var(--transition);
}

.profile-image:hover {
  transform: scale(1.05);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  text-decoration: none;
  background-color: var(--card-bg);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.location {
  color: var(--text-secondary);
  cursor: default;
}

.location:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Sections */
.section {
  margin-bottom: 40px;
}

.section-header {
  margin-bottom: 20px;
  padding-left: 10px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  /* Slightly lifted */
}

.profile-card {
  text-align: center;
}

/* Experience */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-item {
  position: relative;
  overflow: hidden;
}

.role-header {
  margin-bottom: 1rem;
}

.role-header .company {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.role-header .location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-right: 8px;
}

.role-header .date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.role-content p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.role-content ul {
  list-style-type: none;
  padding-left: 0;
}

.role-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.role-content ul li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.tag {
  background-color: rgba(0, 113, 227, 0.1);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Grids */
.grid-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .grid-section {
    grid-template-columns: 1fr;
  }
}

/* Lists */
.styled-list {
  list-style: none;
}

.styled-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

.styled-list li:last-child {
  border-bottom: none;
}

.skills-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.level {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 500;
}

/* References */
.references-card .note {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

@media (max-width: 600px) {
  h1 {
    font-size: 2.5rem;
  }

  .grid-section {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }
}