:root{
  --bg-1: #0f1724; 
  --bg-2: #071129;
  --glass: rgba(255,255,255,0.06);
  --glass-2: rgba(255,255,255,0.03);
  --muted: rgba(255,255,255,0.7);
  --accent: #8BE5D0;
  --accent-2: #8C7CFF;
  --card-shadow: 0 8px 30px rgba(2,6,23,0.6);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --gap: 20px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: linear-gradient(135deg, #0f1724, #071129, #1e3c72, #2a5298);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; } 
  100% { background-position: 100% 50%; }
}

@media (max-width: 900px){
  header{
    grid-template-columns: 1fr;
    text-align: left;
    padding: 22px;
  }
  header nav{
    justify-self: start;
    margin-top: 10px;
    flex-wrap: wrap;  
  }
  .social-link-container{ margin-left: 0; }
  .project-image-container{ width:120px; height:86px; }
  .tenure{ min-width: 70px; font-size:12px; }
  .card-header{ font-size:15px; }
  .experience-card, .project-card{
    flex-direction: row;
  }
}


@media (max-width: 520px){
  header{ padding: 18px; margin: 18px; border-radius: 14px; }
  main{ padding: 0 16px 60px; }
  .experience-card, .project-card{
    flex-direction: column;
    align-items: stretch;
  }
  .project-image-container{ width: 100%; height: 170px; }
  .sticky-header { position: static; margin-bottom: 8px; }
  .about-contents p,
  .experience-contents,
  .project-contents,
  .certification-contents{
    padding: 12px;
  }
  .tag-container{
    justify-content: flex-start;
  }
  .language-card{
    padding: 10px;
  }
  header h1{ font-size: clamp(20px, 6vw, 28px); }
  header h2{ font-size: clamp(16px, 4vw, 22px); padding-left:0; }
  header nav a{ font-size:12px; padding: 6px 10px; }
  footer{ padding: 16px; font-size:12px; }
}



body {
  margin: 0;
  min-height: 100%;
  color: #E6EEF6;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: transparent;
}


body{
  margin: 0;
  min-height: 100%;
  background: linear-gradient(135deg, #0f1724, #071129, #1e3c72, #2a5298);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  color: #E6EEF6;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  -webkit-tap-highlight-color: transparent;
  
}
.my-container {
  width: 250px;
  overflow-wrap: break-word;
}

.language-category {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.language-category-contents {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.language-card {
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 10px 30px rgba(2,6,23,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.language-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px 6px rgba(139,124,255,0.7);
}

.language-bar {
  width: 100%;
  height: 6px; 
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.language-fill {
  width: var(--fill);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  transition: width 0.6s ease;
}



.language-card h3 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.rating-bar {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
}

.rating-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5eead4, #2a5298);
  border-radius: 8px;
}


.underlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 800px at 10% 10%, rgba(140,124,255,0.12), transparent 8%),
    radial-gradient(700px 700px at 90% 90%, rgba(139,229,208,0.08), transparent 10%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.48));
  mix-blend-mode: overlay;
  z-index: 0;
  overflow-wrap: break-word;
}

header{
  position: relative;
  z-index: 5;
  max-width: var(--max-width);
  margin: 48px auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap);
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.04);
}

header a h1{
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 3.6vw, 34px);
  color: #ffffff;
}
header h4{
  margin: 8px 0 0 0;
  font-weight: 500;
  color: var(--muted);
  font-size: 16px;
  padding-bottom: 10px;
}
header h2{
  margin: 8px 0 0 0;
  font-weight: 500;
  color: #8BE5D0;
  font-size: 20px;
  padding-left: 50px;
}

header > p{
  margin: 12px 0 0 0;
  color: rgba(230,238,246,0.8);
  font-size: 14px;
  max-width: 60ch;
}

header nav{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-self: end;
}
.anchor-text{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration:none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: transform .22s ease, background .22s ease, color .22s ease;
  position: relative;
  overflow: visible;
  font-weight: 600;
  font-size: 13px;
}
.anchor-text:hover,
.anchor-text:focus{
  color: #071129;
  transform: translateY(-3px);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(140,124,255,0.12);
  outline: none;
}

.nav-line{
  width: 6px;
  height: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(140,124,255,0.12);
  flex-wrap: wrap;
  display: grid;
}

.social-link-container{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-left: 8px;
}
.social-link{
  display:inline-grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:10px;
  text-decoration:none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.04);
  color: var(--muted);
  transition: transform .18s ease, color .18s ease, background .18s ease;
}
.social-link i{ font-size: 16px; }
.social-link:hover,
.social-link:focus{
  transform: translateY(-4px);
  color: #071129;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 30px rgba(8,10,40,0.65);
}

main{
  max-width: var(--max-width);
  margin: 36px auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 3;
}

.sticky-header{
  position: sticky;
  top: 20px;
  z-index: 2;
  margin-bottom: 16px;
}
.sticky-header h2{
  margin:0;
  margin-top: 30px;
  font-size: 18px;
  color: rgba(230,238,246,0.85);
  font-weight: 700;
  letter-spacing: -0.01em;
  display:inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
}

.about-contents,
.experience-contents,
.project-contents{
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.about-contents p{
  margin:0;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255,255,255,0.03);
  color: rgba(230,238,246,0.92);
  font-size: 15px;
}

.experience-card,
.project-card{
  display:flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 10px 30px rgba(2,6,23,0.45);
}

.tenure{
  min-width: 92px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  opacity: 0.9;
}

.card-column{
  flex:1;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.card-header{
  margin:0;
  font-size: 16px;
  color: #fff;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.card-header-link{
  text-decoration:none;
  color:inherit;
}
.anchor-icon{
  opacity:0.7;
  font-size: 12px;
}

.experience-card p,
.project-card p{
  margin:0;
  color: rgba(230,238,246,0.85);
  font-size: 14px;
  padding-left: 12px;
}
.certification-contents {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.certification-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(2,6,23,0.5);
  transform: translateY(30px);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

.certification-card p {
  padding-left: 12px;
}
.certification-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(140,124,255,0.6));
}
.certification-card:hover {
  transform: scale(1.03) rotateX(4deg);
  transition: transform 0.3s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowing-border {
  0% { border-color: var(--accent); }
  50% { border-color: var(--accent-2); }
  100% { border-color: var(--accent); }
}

.sticky-header h2 {
  border: 2px solid var(--accent);
  animation: glowing-border 3s linear infinite;
}

.experience-card:hover,
.project-card:hover,
.certification-card:hover {
  box-shadow: 0 20px 40px rgba(140,124,255,0.3);
}

html {
  scroll-behavior: smooth;
}

.tag-container{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.tag{
  padding: 6px 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.03);
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.project-image-container{
  width:150px;
  height:96px;
  border-radius: 12px;
  overflow:hidden;
  flex-shrink:0;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,0.03);
}
.project-image-container img{
  width:100px;
  height:100px;
  object-fit:cover;
  display:block;
  transform: scale(1);
  transition: transform .35s ease;
}
.project-image-container:hover img{ transform: scale(1.06); }

.project-stat-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
  text-decoration:none;
  color:var(--muted);
  font-weight:700;
}

.project-archive-link,
.resume-link{
  display:inline-flex;
  gap:8px;
  align-items:center;
  margin-top:18px;
  text-decoration:none;
  color: var(--accent);
  font-weight:700;
}
.project-archive-link:hover,
.resume-link:hover{ text-decoration: underline; }

footer{
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 24px;
  text-align:center;
  color: rgba(230,238,246,0.74);
  font-size: 13px;
}
.scroll-to-top{
  display:inline-grid;
  place-items:center;
  width:40px;
  height:40px;
  margin-top:12px;
  border-radius:10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  color: var(--muted);
  text-decoration:none;
}

a:focus, button:focus, .anchor-text:focus, .social-link:focus {
  outline: 3px solid rgba(139,124,255,0.16);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  * { transition:none !important; animation:none !important; scroll-behavior: auto !important; }
}

@media (max-width: 900px){
  header{
    grid-template-columns: 1fr;
    text-align: left;
    padding: 22px;
  }
  header nav{
    justify-self: start;
    margin-top: 10px;
  }
  .social-link-container{ margin-left: 0; }
  .project-image-container{ width:120px; height:86px; }
  .tenure{ min-width: 70px; font-size:12px; }
  .card-header{ font-size:15px; }
}

@media (max-width: 520px){
  header{ padding: 18px; margin: 18px; border-radius: 14px; }
  main{ padding: 0 16px 60px; }
  .experience-card, .project-card{
    flex-direction: column;
    align-items: stretch;
  }
  .project-image-container{ width: 100%; height: 170px; }
  .sticky-header { position: static; margin-bottom: 8px; }
}