/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333333; /* Darker Gray for text */
  background-color: #fdfdfd; /* Off-white background */
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #1c1c1c; /* Dark charcoal background */
  color: white;
  padding: 60px 0;
  text-align: center;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

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

.name {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 8px;
  opacity: 0.9;
}

.location {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 25px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Main Content */
.main {
  padding: 80px 0;
}

.section {
  margin-bottom: 60px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.section h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #1c1c1c; /* Dark charcoal for headings */
  border-bottom: 3px solid #b89a6a; /* Gold accent */
  padding-bottom: 10px;
}

/* About Section */
#about p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555555; /* Medium Gray */
}

/* Experience Section */
.experience {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.experience:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.experience-header {
  margin-bottom: 20px;
}

.job-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #222222; /* Very Dark Gray */
  margin-bottom: 8px;
}

.company-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.company {
  font-size: 1.1rem;
  font-weight: 500;
  color: #b89a6a; /* Gold accent */
}

.dates {
  font-size: 0.95rem;
  color: #666666; /* Medium Gray */
  font-weight: 500;
}

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

.responsibilities li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #555555; /* Medium Gray */
}

.responsibilities li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #b89a6a; /* Gold accent */
  font-weight: bold;
}

.responsibilities a {
  color: #b89a6a; /* Gold accent */
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.responsibilities a:hover {
  border-bottom-color: #b89a6a; /* Gold accent */
}

/* Skills Section */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  list-style: none;
}

.skills li {
  background: #333333; /* Dark Gray background for skills */
  color: white;
  padding: 12px 20px;
  border-radius: 8px; /* Less rounded for a more formal look */
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.skills li:hover {
  transform: translateY(-2px);
}

/* Education Section */
.education {
  margin-bottom: 25px;
  padding: 20px;
  background: #f9f9f9; /* Light gray background */
  border-radius: 8px;
  border-left: 4px solid #b89a6a; /* Gold accent */
}

.education h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1c1c1c; /* Dark charcoal */
  margin-bottom: 8px;
}

.institution {
  font-size: 1rem;
  color: #b89a6a; /* Gold accent */
  font-weight: 500;
  margin-bottom: 4px;
}

.year {
  font-size: 0.9rem;
  color: #666;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header {
    padding: 40px 0;
  }

  .name {
    font-size: 2.2rem;
  }

  .title {
    font-size: 1.2rem;
  }

  .section {
    padding: 25px 20px;
    margin-bottom: 30px;
  }

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

  .main {
    padding: 40px 0;
  }

  .company-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .profile-header {
    gap: 20px;
  }

  .contact-links {
    gap: 15px;
  }

  .contact-link {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 1.8rem;
  }

  .title {
    font-size: 1rem;
  }

  .section {
    padding: 20px 15px;
  }

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

  .profile-image img {
    width: 120px;
    height: 120px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .section {
    border: 2px solid #333;
  }

  .contact-link {
    border: 2px solid white;
  }
}
