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

body {
  min-height: 100vh;
  background: url("../images/background.png") center/cover;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #2e2e2e;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
}
@media screen and (max-width: 820px) {
  body {
    font-size: 16px;
  }
}

.container {
  width: 90%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 820px) {
  .container {
    flex-direction: column;
  }
}

.button {
  position: inherit;
  left: 30px;
  bottom: 30px;
  font-size: 14px;
  color: white;
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 10000px;
  transition: 0.3s all;
}
.button:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #2e2e2e;
}
.button-group {
  text-align: right;
}

.button-group a:first-child {
  float: left;
}

.button-group a:last-child {
  margin-right: 10px;
  float: right;
}
.pad-top {
  padding-top: 20px;
}

.glass-card {
  --bg-color: rgba(0, 0, 0, 0.18);   
  --highlight: rgba(255, 255, 255, 0.35);
  --text: #ffffff;                  
  position: relative;
  width: 30.3333%;                  
  margin: 1%;                       
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  background: rgba(255,255,255,0.05); 
  border: 1px solid rgba(255,255,255,0.22);
}

.glass-content {
  position: relative;
  z-index: 4;
  padding: 30px;                     
  color: var(--text);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;           
  align-items: center;              
  min-height: 260px;                 
}

.glass-filter,
.glass-overlay,
.glass-specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.glass-filter {
  z-index: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); 
  filter: saturate(115%) brightness(1.05);
}

.glass-overlay {
  z-index: 2;
  background: var(--bg-color);
}

.glass-specular {
  z-index: 3;
  box-shadow: inset 1px 1px 1px var(--highlight);
}

.glass-content h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}
.glass-content p { margin: 0; opacity: 0.9; }

.glass-card .button {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.glass-card .button:hover {
  background: rgba(255,255,255,0.85);
  color: #2e2e2e;
}

@media screen and (max-width: 1240px) {
  .glass-card { width: 48%; }
}
@media screen and (max-width: 820px) {
  .glass-card { width: 98%; margin-top: 2%; margin-bottom: 2%; }
}

@media (prefers-color-scheme: dark) {
  .glass-card {
    --bg-color: rgba(255,255,255,0.12);
    --highlight: rgba(255,255,255,0.6);
    --text: #ffffff;
  }
}

.glass-card {
  width: auto !important;
  height: auto !important;
  min-height: 0;
  flex: 1 1 98%;         
  margin: 1%;
  border-radius: 20px;
}

.glass-card.is-half { flex: 1 1 48%; }

.glass-card.is-max { flex: 1 1 100%; max-width: 960px; }

.glass-card:not(.badge) .glass-content {
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding: 30px;
}

@media (max-width: 1240px) {
  .glass-card:not(.is-max) { flex: 1 1 48%; }
}
@media (max-width: 820px) {
  .glass-card { flex: 1 1 98%; margin-top: 2%; margin-bottom: 2%; }
}

.certs-section { width: 100%; margin: 40px 0; }
.certs-heading {
  text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35);
  margin-bottom: 14px; font-size: 28px; letter-spacing: .5px;
}

.badge-carousel { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.badge-viewport { overflow: hidden; border-radius: 20px; }
.badge-track { display: flex; will-change: transform; transition: transform 400ms ease; }

.badge-slide {
  flex: 0 0 100%;
  display: flex; justify-content: center; align-items: center;
  padding: 20px;
}

.glass-card.badge {
  --bg-color: rgba(0,0,0,.22);
  --text: #fff;
  width: 220px;     
  height: 220px;    
  margin: 0; padding: 14px;
  display: grid; place-items: center; text-align: center;
}
.glass-card.badge img { max-width: 80%; max-height: 80%; display: block; }
.badge-label {
  position: absolute; left: 10px; bottom: 10px; font-size: 12px; opacity: .85;
  background: rgba(0,0,0,.35); padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
}

.badge-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35); color: #fff;
  font-size: 22px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; z-index: 5;
  transition: background .2s ease, color .2s ease;
}
.badge-nav:hover { background: rgba(255,255,255,.85); color: #2e2e2e; }
.badge-nav.prev { left: -8px; }
.badge-nav.next { right: -8px; }

@media (max-width: 480px) {
  .glass-card.badge { width: 180px; height: 180px; }
}

.glass-card.badge .glass-content {
  display: grid;
  place-items: center;
}

.badge-label { position: absolute; left: 10px; bottom: 10px; }

.badge-nav {
  top: 50%;
  transform: translateY(-50%); 
}

.badge-nav.prev { left: -45px; }   
.badge-nav.next { right: -45px; }

@media (max-width: 480px) {
  .badge-nav.prev { left: -30px; }
  .badge-nav.next { right: -30px; }
}
.glass-card.badge .glass-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  line-height: 0; 
}
.glass-card.badge img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.site-footer {
  --bg-color: rgba(0,0,0,.22);
  --text: #fff;
  width: 100%;
  padding: 16px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  position: relative;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.site-footer p {
  position: relative;
  z-index: 2;
  margin: 0;
}

.hero-profile {
  width: 100%;
  margin: 40px 0 24px;
  display: grid;
  place-items: center;
  text-align: center;
}

.glass-avatar {
  --bg-color: rgba(0, 0, 0, 0.22);
  --highlight: rgba(255, 255, 255, 0.45);
  position: relative;
  width: 220px;        
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,0.25);
}

.glass-avatar .glass-filter,
.glass-avatar .glass-overlay,
.glass-avatar .glass-specular {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.glass-avatar .glass-filter {
  z-index: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  filter: saturate(115%) brightness(1.05);
}

.glass-avatar .glass-overlay {
  z-index: 2;
  background: var(--bg-color);
}

.glass-avatar .glass-specular {
  z-index: 3;
  box-shadow: inset 0 0 0 1px var(--highlight);
}

.avatar-content {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.avatar-img {
  width: 88%;
  height: 88%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15) inset;
  filter: blur(6px);        
  opacity: 0.5;              
  transition: none;          
}


.hero-name {
  margin-top: 14px;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.hero-sub {
  margin-top: 6px;
  font-size: 16px;
  opacity: .9;
  color: #fff;
}

@media (max-width: 480px) {
  .glass-avatar { width: 170px; height: 170px; }
  .hero-name { font-size: 22px; }
}

@keyframes glassPopIn {
  0%   { opacity: 0; transform: translateY(12px) scale(0.96); filter: blur(6px); }
  60%  { opacity: 1; transform: translateY(0)    scale(1.02); filter: blur(0);   }
  100% { opacity: 1; transform: translateY(0)    scale(1);                      }
}
@keyframes fadeSlideUp {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0);    }
}

.hero-profile,
.hero-profile .glass-avatar,
.hero-profile .hero-name {
  will-change: opacity, transform, filter;
}

.hero-profile.animate-in .glass-avatar {
  animation: glassPopIn .8s cubic-bezier(.22,.61,.36,1) both;
}
.hero-profile.animate-in .hero-name {
  animation: fadeSlideUp .6s ease-out .12s both;
}
.hero-profile.animate-in .hero-buttons {
  animation: fadeSlideUp .6s ease-out .12s both;
}

.hero-profile .hero-buttons {
  will-change: opacity, transform;
}


@media (prefers-reduced-motion: reduce) {
  .hero-profile.animate-in .glass-avatar,
  .hero-profile.animate-in .hero-name {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.glass-avatar {
  position: relative;
}

.specular-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;           
  mix-blend-mode: screen;
  opacity: 0;
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,0) 0deg,
    rgba(255,255,255,0) 330deg,
    rgba(255,255,255,0.85) 350deg,
    rgba(255,255,255,0) 360deg
  );

  -webkit-mask: radial-gradient(circle at center,
    transparent 62%,       
    #000 66%,               
    #000 100%               
  );
          mask: radial-gradient(circle at center,
    transparent 62%,
    #000 66%,
    #000 100%
  );
}

.hero-profile.animate-in .specular-sweep {
  animation: avatar-sweep-rotate 1.4s ease-out 0.15s 1 both,
             avatar-sweep-fade   1.4s ease-out 0.15s 1 both;
}

@keyframes avatar-sweep-rotate {
  from { transform: rotate(0deg);   opacity: 1; }
  to   { transform: rotate(360deg); opacity: 1; }
}

@keyframes avatar-sweep-fade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

.hero-profile.animate-in .avatar-img {
  animation: avatar-reveal 1.4s ease-out 0.15s forwards;
}

@keyframes avatar-reveal {
  0%   { filter: blur(6px); opacity: 0.5; }
  50%  { filter: blur(3px); opacity: 0.8; }
  100% { filter: blur(0px); opacity: 1; }
}

.hero-buttons {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-buttons .button {
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero-buttons .button:hover {
  background: rgba(255,255,255,0.85);
  color: #2e2e2e;
}

.section-heading {
  text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35);
  margin: 40px 0 18px; font-size: 28px; letter-spacing: .5px;
}

.xp-timeline { width: 100%; }
.timeline {
  list-style: none;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 30px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.28);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 14px 18px;
}
.timeline-item:nth-child(odd)  { left: 0;   padding-right: 40px; }
.timeline-item:nth-child(even) { left: 50%; padding-left: 40px;  }

.timeline-pin {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: #FF6B6B;
  border: 2px solid rgba(255,255,255,0.65);
  transform: translate(-50%,-50%);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
  z-index: 2;
}

.timeline-card {
  --bg-color: rgba(0,0,0,.22);
  --text: #fff;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}
.timeline-card .glass-content {
  text-align: left;
  align-items: flex-start;
  gap: 6px;
}

.timeline-meta  { font-size: 12px; letter-spacing: .1em; opacity: .85; text-transform: uppercase; }
.timeline-role  { font-size: 18px; margin: 2px 0; }
.timeline-org   { font-size: 14px; opacity: .9; margin-bottom: 6px; }
.timeline-bullets { margin-left: 16px; }
.timeline-bullets li { margin: 4px 0; }

.reveal-on-scroll { opacity: 0; transform: translateY(14px); will-change: opacity, transform; }
.reveal-on-scroll.in-view { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.timeline-item:nth-child(even) .reveal-on-scroll.in-view,
.timeline-item:nth-child(even).in-view { transition-delay: .08s; }

@media (max-width: 820px) {
  .timeline::before { left: 22px; transform: none; }
  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    width: 100%;
    left: 0;
    padding: 14px 12px 14px 48px;
  }
  .timeline-pin { left: 22px; }
}
