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

:root {
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --dark-text: #202124;
  --light-text: #5f6368;
  --light-bg: #f8f9fa;
  --border-color: #dadce0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: #ffffff;
}

/* Navigation */
nav {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  box-shadow: var(--shadow);
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav li {
  margin: 0 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header Section */
.header {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.header-image {
  flex-shrink: 0;
}

.header-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.header-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.header-content .title {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.header-content p {
  font-size: 1rem;
  color: var(--light-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: var(--secondary-color);
}

/* Sections */
section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--light-bg);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Education Section */
.education-list {
  list-style: none;
}

.education-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: white;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.education-item strong {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.education-item .degree {
  display: block;
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--dark-text);
}

.education-item .date {
  display: block;
  font-size: 0.9rem;
  color: var(--light-text);
  margin-top: 0.5rem;
}

/* Experience Section */
.experience-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.experience-table thead {
  background-color: var(--primary-color);
  color: white;
}

.experience-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.experience-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.experience-table tbody tr:hover {
  background-color: #f0f7ff;
}

.experience-table tbody tr:last-child td {
  border-bottom: none;
}

.date-range {
  color: var(--primary-color);
  font-weight: 500;
}

.position {
  color: var(--dark-text);
  font-weight: 600;
}

.company {
  color: var(--light-text);
  font-size: 0.95rem;
}

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

.skill-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

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

.skill-rating {
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  color: #ffc107;
}

/* Key Achievements */
.achievements-list {
  list-style: none;
}

.achievements-list li {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  background-color: white;
  border-left: 4px solid var(--secondary-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.achievements-list li:hover {
  transform: translateX(8px);
}

.achievements-list li::before {
  content: "✓ ";
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--dark-text);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

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

footer a:hover {
  text-decoration: underline;
}

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

.language {
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.language strong {
  color: var(--primary-color);
  font-size: 1.05rem;
}

.language .proficiency {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Hobbies Section */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.hobby-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.hobby-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.hobby-card strong {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  background-color: #1557b0;
  box-shadow: var(--shadow-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .header-content h1 {
    font-size: 1.8rem;
  }

  .header-image img {
    width: 140px;
    height: 140px;
  }

  nav ul {
    gap: 0;
  }

  nav li {
    margin: 0 1rem;
  }

  main {
    padding: 1rem;
  }

  section {
    padding: 1.5rem;
  }

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

  .experience-table {
    font-size: 0.9rem;
  }

  .experience-table th,
  .experience-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-content h1 {
    font-size: 1.5rem;
  }

  .header-content .title {
    font-size: 1rem;
  }

  nav li {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }

  .header {
    padding: 1rem;
  }

  main {
    padding: 0.5rem;
  }
}