:root {
  --primary-color: #32CD32;
  --primary-light: rgba(50, 205, 50, 0.1);
  --background: #ffffff;
  --surface: #f8f9fa;
  --text: #2d3436;
  --text-secondary: #636e72;
  --spacing: clamp(1rem, 2vw, 2rem);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: var(--spacing);
}

.header {
  text-align: center;
  padding: calc(var(--spacing) * 2) var(--spacing);
  margin-bottom: calc(var(--spacing) * 2);
  background: linear-gradient(135deg, var(--primary-light), transparent);
  border-radius: 20px;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--primary-color);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 20px var(--shadow-color);
}

.avatar:hover {
  transform: scale(1.05);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-top: calc(var(--spacing) * 2);
  text-align: center;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

h2 {
  color: var(--text);
  font-weight: 500;
}

p {
  color: var(--text-secondary);
  max-width: 65ch;
  margin: 1rem auto;
}

.flexbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing) * 1.5);
  list-style: none;
  padding: 0;
  margin-top: calc(var(--spacing) * 1.5);
}

.profile {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile p {
  padding: 1.25rem;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
  color: var(--text);
}

.profile:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow-color);
  border-color: var(--primary-color);
}

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

details {
  background: var(--surface);
  border-radius: 12px;
  margin: 1rem 0;
  padding: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

details:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 15px var(--shadow-color);
  border-color: var(--primary-color);
}

summary {
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: color 0.2s ease;
}

summary:hover {
  color: var(--primary-color);
}

.linkedin {
  display: block;
  margin: 2rem auto 0;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
  filter: grayscale(0.2);
}

.linkedin:hover {
  transform: scale(1.2) rotate(360deg);
  filter: grayscale(0);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.flow > * {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

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

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .header {
    padding: 2rem 1rem;
  }
}

.projects {
  padding: 2rem;
  border-radius: 20px;
  background: var(--background);
  margin-bottom: 2rem;
}

.workhist {
  padding: 2rem;
  border-radius: 20px;
  background: var(--background);
}