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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  color: #2C2C2C;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Add padding for fixed navbar on resume page */
body.resume-page {
  padding-top: 90px !important;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: #2563EB;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

.resume-container {
  max-width: 1400px;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  color: #F8FAFC;
  padding: 60px 40px 60px 40px;
  position: sticky;
  top: 0;
  align-self: start;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  flex: 1;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .title {
  font-size: 16px;
  color: #60A5FA;
  margin-bottom: 8px;
  font-weight: 500;
}

.header .location {
  font-size: 15px;
  color: #64748B;
  font-weight: 400;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-link {
  color: #E2E8F0;
  font-size: 15px;
  padding: 20px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.contact-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(251, 191, 36, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
  position: relative;
  z-index: 1;
  line-height: 1;
  transition: transform 0.3s ease;
}

.contact-label {
  font-size: 14px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-link:hover::before {
  opacity: 1;
}

.contact-link:hover .contact-icon {
  transform: scale(1.1);
}

.contact-link.certifications-tile {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link.certifications-tile:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
  position: relative;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 24px;
}

.certification-item {
  margin-bottom: 20px;
}

.certification-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.certification-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.certification-badge {
  width: 120px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.certification-info {
  flex: 1;
}

.certification-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 8px 0;
}

.certification-info p {
  font-size: 14px;
  color: #CBD5E1;
  margin: 0 0 12px 0;
}

.view-credential {
  font-size: 13px;
  color: #60A5FA;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.view-credential i {
  font-size: 11px;
}

.certification-link:hover .view-credential {
  color: #60A5FA;
}

.skills-section h2,
.education-section h2 {
  font-size: 14px;
  font-weight: 600;
  color: #60A5FA;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(96, 165, 250, 0.3);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-category {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid #60A5FA;
  transition: all 0.2s ease;
}

.skill-category:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.skill-category h3 {
  font-size: 13px;
  font-weight: 600;
  color: #FBBF24;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-category p {
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.6;
}

.education-item {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid #FBBF24;
  transition: all 0.2s ease;
}

.education-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.education-item:last-child {
  margin-bottom: 0;
}

.education-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 6px;
}

.education-item p {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.5;
}

/* Main Content */
.main-content {
  padding: 40px 60px;
  background: #FFFFFF;
  position: relative;
}

.main-content h2 {
  font-size: 14px;
  font-weight: 600;
  color: #2563EB;
  margin-bottom: 24px;
  margin-top: 0;
  padding-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-bottom: 12px;
  border-bottom: 2px solid #E2E8F0;
  position: relative;
}

.main-content h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #60A5FA);
  border-radius: 2px;
}

.summary-section {
  margin-bottom: 80px;
  margin-top: 0;
  padding-top: 0;
}

.experience-section {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  padding-top: 0;
}

.experience-section h2 {
  margin-bottom: 24px;
  margin-top: 0;
  padding-top: 0;
}

.summary-section p {
  font-size: 18px;
  line-height: 1.8;
  color: #475569;
  max-width: none;
  padding: 32px;
  background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.job {
  padding: 28px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border-left: 4px solid #2563EB;
}

.job:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-left-color: #60A5FA;
}

.job:last-child {
  margin-bottom: 0;
}

.job-header {
  margin-bottom: 16px;
}

.job-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.job-header .company {
  font-size: 18px;
  font-weight: 500;
  color: #2563EB;
  margin-bottom: 3px;
  line-height: 1.4;
}

.job-header .dates {
  font-size: 15px;
  color: #64748B;
  font-weight: 400;
  font-style: italic;
}

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

.job-details li {
  font-size: 16px;
  line-height: 1.4;
  color: #475569;
  margin-bottom: 6px;
  padding-left: 24px;
  position: relative;
}

.job-details li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #2563EB;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  transition: transform 0.2s ease;
}

.job-details li:hover::before {
  transform: translateX(4px);
  color: #60A5FA;
}

.site-footer {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  padding: 40px;
  text-align: center;
  color: #64748B;
  font-size: 14px;
  border-top: 1px solid #E2E8F0;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  color: #2563EB;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .resume-container {
    grid-template-columns: 320px 1fr;
  }
  
  .sidebar {
    padding: 50px 30px;
  }
  
  .main-content {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  body::before {
    display: none;
  }
  
  body.resume-page {
    padding-top: 80px !important;
  }
  
  .resume-container {
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 0;
  }
  
  .sidebar {
    position: static;
    height: auto;
    padding: 30px 20px;
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  .sidebar-content {
    gap: 32px;
  }
  
  .header h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }
  
  .header .title {
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .header .location {
    font-size: 13px;
  }
  
  .contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  
  .contact-link {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    padding: 16px 12px;
  }
  
  .contact-icon {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .contact-label {
    font-size: 13px;
  }
  
  .skills-section h2,
  .education-section h2 {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  .skill-category {
    margin-bottom: 16px;
    padding: 16px;
  }
  
  .skill-category h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .skill-category p {
    font-size: 12px;
    line-height: 1.5;
  }
  
  .education-item {
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .education-item h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }
  
  .education-item p {
    font-size: 12px;
  }
  
  .main-content {
    padding: 30px 20px 40px 20px;
  }
  
  .main-content h2 {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 20px;
    font-size: 13px;
  }
  
  .summary-section {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 40px;
  }
  
  .summary-section p {
    padding: 20px;
    font-size: 16px;
    line-height: 1.7;
  }
  
  .experience-section {
    margin-top: 0;
    padding-top: 0;
  }
  
  .experience-section h2 {
    margin-top: 0;
    padding-top: 0;
  }
  
  .job {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .job-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
  }
  
  .job-header .company {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  .job-header .dates {
    font-size: 14px;
  }
  
  .job-details {
    margin-top: 12px;
  }
  
  .job-details li {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.5;
  }
}

@media (max-width: 500px) {
  body.resume-page {
    padding-top: 80px !important;
  }
  
  .resume-container {
    margin: 0;
    border-radius: 0;
  }
  
  .sidebar {
    padding: 25px 15px;
  }
  
  .sidebar-content {
    gap: 28px;
  }
  
  .header h1 {
    font-size: 22px;
  }
  
  .contact {
    flex-direction: column;
    gap: 10px;
  }
  
  .contact-link {
    flex: 1 1 100%;
    padding: 14px 12px;
  }
  
  .skill-category {
    padding: 14px;
    margin-bottom: 12px;
  }
  
  .education-item {
    padding: 14px;
    margin-bottom: 10px;
  }
  
  .main-content {
    padding: 25px 15px 35px 15px;
  }
  
  .main-content h2 {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 18px;
    font-size: 12px;
  }
  
  .summary-section {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 35px;
  }
  
  .summary-section p {
    padding: 18px;
    font-size: 15px;
    line-height: 1.6;
  }
  
  .experience-section {
    margin-top: 0;
    padding-top: 0;
  }
  
  .experience-section h2 {
    margin-top: 0;
    padding-top: 0;
  }
  
  .job {
    padding: 18px;
    margin-bottom: 25px;
  }
  
  .job-header h3 {
    font-size: 18px;
  }
  
  .job-header .company {
    font-size: 15px;
  }
  
  .job-header .dates {
    font-size: 13px;
  }
  
  .job-details li {
    font-size: 14px;
    margin-bottom: 6px;
  }
}
