:root {
  --primary: #1e3c72;
  --secondary: #2a5298;
  --accent: #ffb347;
  --bg: #f7fafc;
  --white: #fff;
  --text: #333;
  --shadow: 0 2px 16px rgba(30,60,114,0.10);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --radius: 18px;
  --spacing: 18px;
}
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--bg);
  margin: 0;
  color: var(--text);
}
.resume-bg {
  background: var(--gradient);
  min-height: 100vh;
  padding-bottom: 0;
  position: relative;
}
header {
  padding: 2rem 0 1rem 0;
  background: transparent;
  position: relative;
  z-index: 2;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2vw;
}
.profile {
  display: flex;
  align-items: center;
  gap: 2vw;
  position: relative;
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2vw 2vw 2vw 2vw;
}
.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.avatar:hover {
  transform: scale(1.08) rotate(-5deg);
}
.profile-info {
  flex: 1;
}
.profile-info h1 {
  margin: 0;
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
}
.profile-info h2 {
  margin: 0.25rem 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary);
}
.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.contact li {
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.contact a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.contact a:hover {
  color: var(--accent);
}

.hero-blob {
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  background: var(--accent);
  opacity: 0.18;
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
}

main {
  background: var(--white);
  margin-top: -2vw;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  padding: 2vw 0 2vw 0;
  position: relative;
}
.section {
  margin: 2vw 0;
  padding: 0 2vw;
}
.section h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1vw;
}
.section p {
  font-size: 1.08rem;
}

.competency-grid, .skill-grid, .lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}
.competency-grid span, .skill-grid span, .lang-grid span {
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 32px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 1px 8px rgba(30,60,114,0.08);
  transition: background 0.3s;
}
.competency-grid span:hover, .skill-grid span:hover {
  background: var(--accent);
  color: var(--primary);
}

.timeline {
  border-left: 3px solid var(--accent);
  margin-left: 8px;
}
.job {
  margin-bottom: 2vw;
  position: relative;
  padding-left: 1.5vw;
}
.job:before {
  content: '';
  position: absolute;
  left: -21px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(255,179,71,0.08);
}
.job-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5vw;
}
.job-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
}
.job-company {
  color: var(--secondary);
  font-size: 0.97rem;
}
.job-date {
  color: var(--accent);
  font-size: 0.97rem;
}
.job ul {
  margin: 0 0 0.7vw 0;
  padding-left: 1.1rem;
}
.job ul li {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 2vw;
}
.edu-item {
  background: #f3f7fa;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1vw 1vw 1vw 1vw;
}
.edu-main {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
  align-items: center;
  font-size: 1.07rem;
  font-weight: 500;
  margin-bottom: 0.5vw;
}
.edu-main .degree {
  color: var(--primary);
}
.edu-main .school {
  color: var(--secondary);
}
.edu-main .date {
  color: var(--accent);
  font-size: 0.95rem;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
}
.cert-item {
  background: #f3f7fa;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1vw 1vw 1vw 1vw;
  min-width: 240px;
  flex: 1;
}
.cert-item strong {
  color: var(--primary);
}
.cert-item span {
  color: var(--accent);
  font-size: 0.97rem;
}
.cert-item ul {
  margin: 0.5vw 0 0 0;
  padding-left: 1.1rem;
}
.cert-item ul li {
  font-size: 0.97rem;
}

.awards ul, .publications ul {
  list-style: none;
  padding: 0;
  margin: 0.6vw 0 0.6vw 0;
}
.awards ul li, .publications ul li {
  font-size: 1.01rem;
  margin-bottom: 0.3vw;
  padding-left: 1.1rem;
  position: relative;
}
.awards ul li:before, .publications ul li:before {
  content: '🏅';
  position: absolute;
  left: 0;
  top: 0;
}

.skill-grid {
  gap: 0.7rem;
}

footer {
  background: var(--gradient);
  color: var(--white);
  padding: 1.2rem 0 1.5rem 0;
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
  box-shadow: 0 -2px 20px rgba(30,60,114,0.10);
  position: relative;
  z-index: 10;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
}
footer .social {
  display: flex;
  gap: 1.2vw;
}
footer .social a {
  color: var(--accent);
  font-size: 1.3rem;
  transition: color 0.2s;
}
footer .social a:hover {
  color: var(--white);
}

/* Interactivity: Blob background animation */
.resume-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 60% 18%, #ffd58055 0%, #1e3c7260 60%, #f7fafc00 100%);
  animation: blobmove 16s ease-in-out infinite alternate;
}

@keyframes blobmove {
  0% { background-position: 60% 18%; }
  100% { background-position: 20% 80%; }
}

@media (max-width: 800px) {
  .profile {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .avatar {
    margin-bottom: 1vw;
  }
  .container {
    padding: 0 3vw;
  }
  main {
    padding: 3vw 0 3vw 0;
  }
  .section {
    padding: 0 3vw;
  }
}

@media (max-width: 600px) {
  .profile-info h1 {
    font-size: 1.55rem;
  }
  .profile-info h2 {
    font-size: 1rem;
  }
  .avatar {
    width: 80px;
    height: 80px;
  }
  .competency-grid span, .skill-grid span, .lang-grid span {
    font-size: 0.96rem;
    padding: 0.4rem 0.8rem;
  }
  .edu-main, .job-header {
    flex-direction: column;
    gap: 0.2vw;
  }
  .cert-item, .edu-item {
    padding: 3vw;
  }
}

::-webkit-scrollbar {
  width: 8px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}
