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

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --dark: #1f2937;
  --light: #f9fafb;
  --gray: #6b7280;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--dark);
  line-height: 1;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fadeIn 0.8s ease;
}

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

/* Header */
.header {
  background: var(--gradient);
  padding: 60px 50px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

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

.header-content {
  position: relative;
  z-index: 1;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.profile-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}

.profile-info {
  flex: 1;
  min-width: 300px;
}

.name {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.title {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 25px;
  opacity: 0.95;
}

.contact-info {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-pdf {
  background: var(--white);
  color: var(--primary);
}

.btn-csv {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-icon {
  font-size: 1.2rem;
}

/* Sections */
.section {
  padding: 50px;
  border-bottom: 1px solid #e5e7eb;
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 35px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* About */
.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-marker {
  position: absolute;
  left: -43px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.timeline-content {
  background: var(--light);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-header h3 {
  font-size: 1.4rem;
  color: var(--dark);
}

.period {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.company {
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

.responsibilities {
  list-style: none;
  padding-left: 0;
}

.responsibilities li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 8px;
  color: var(--gray);
}

.responsibilities li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Knowledge Cards */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.knowledge-card {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.knowledge-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.knowledge-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.knowledge-card h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.knowledge-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 25px;
}

.skill-item {
  background: var(--light);
  padding: 20px;
  border-radius: 12px;
}

.skill-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.skill-bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: var(--gradient);
  width: var(--width);
  border-radius: 6px;
  animation: fillBar 1.5s ease;
}

@keyframes fillBar {
  from {
    width: 0;
  }
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.achievement-item {
  text-align: center;
  padding: 30px;
  background: var(--gradient);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.achievement-item:hover {
  transform: scale(1.05);
}

.achievement-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
}

.achievement-text {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Education */
.education-list {
  display: grid;
  gap: 20px;
}

.education-item {
  background: var(--light);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.education-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.education-item h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.institution {
  color: var(--gray);
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .container {
    border-radius: 16px;
  }

  .header {
    padding: 40px 30px;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .name {
    font-size: 2.5rem;
  }

  .title {
    font-size: 1.1rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 12px;
  }

  .section {
    padding: 35px 25px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .download-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
