:root{
  --glow: #00a6ffd7; /* requested */

  /* Dark default */
  --bg: #060a14;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);

  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.04);

  --shadow: 0 16px 60px rgba(0,0,0,0.35);
  --radius: 18px;
  --navH: 72px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.container{ width:min(1120px,92vw); margin:0 auto; }
.section{ padding: 72px 0; scroll-margin-top: calc(var(--navH) + 18px); }
.sectionHead{ margin-bottom: 18px; }
.sectionHead h2{ margin:0; font-size: 28px; letter-spacing:.2px; }
.muted{ color: var(--muted); }
.para{ margin:0; color: rgba(255,255,255,0.86); }

/* ===== Background: same animation for both modes ===== */
.bg{ position:fixed; inset:0; z-index:-3; overflow:hidden; }
.bg__shimmer{
  position:absolute; inset:-80px;
  background: linear-gradient(120deg, rgba(0,166,255,0.10), rgba(255,255,255,0.04), rgba(0,166,255,0.09));
  filter: blur(28px);
  animation: shimmerMove 22s ease-in-out infinite alternate;
  opacity: .75;
}
.bg__conic{
  position:absolute;
  width: 900px; height: 900px;
  left: -220px; top: -260px;
  background: conic-gradient(from 0deg,
    rgba(0,166,255,0.18),
    rgba(255,255,255,0.03),
    rgba(0,166,255,0.14),
    rgba(255,255,255,0.03),
    rgba(0,166,255,0.18)
  );
  filter: blur(26px);
  opacity: .65;
  animation: conicSpin 28s linear infinite;
}
.bg__noise{
  position:absolute; inset:0; opacity:.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@keyframes shimmerMove{
  0%{ transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  100%{ transform: translate3d(-18px,-22px,0) rotate(3deg) scale(1.03); }
}
@keyframes conicSpin{ to{ transform: rotate(360deg); } }

/* ===== Header ===== */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(6,10,20,0.55);
  border-bottom: 2px solid rgba(0,166,255,0.18);
}
.nav{
  height: var(--navH);
  display:flex; align-items:center; gap:14px;
  width:min(1120px,92vw);
  margin:0 auto;
}
.brand{
  font-weight: 850;
  letter-spacing:.3px;
  padding:8px 10px;
  border-radius: 12px;
}
.brand:hover{
  box-shadow: 0 0 0 2px var(--glow) inset, 0 18px 60px rgba(0,166,255,0.10);
}

.nav__toggle{
  display:none;
  margin-left:auto;
  width:44px; height:40px;
  border-radius:12px;
  border:2px solid rgba(0,166,255,0.25);
  background: rgba(255,255,255,0.04);
  cursor:pointer;
}
.nav__toggle span{
  display:block; width:18px; height:2px;
  background: rgba(255,255,255,0.86);
  margin:5px auto; border-radius:99px;
}
.nav__links{
  list-style:none;
  display:flex; gap:18px;
  margin:0; padding:0;
  align-items:center;
  margin-left:auto;
}
.nav__link{
  position:relative;
  padding:10px 4px;
  color: rgba(255,255,255,0.88);
  transition: color .2s ease;
}
.nav__link::after{
  content:"";
  position:absolute; left:0; bottom:4px;
  width:100%; height:2px;
  transform: scaleX(0);
  transform-origin:left;
  background: linear-gradient(90deg, var(--glow), transparent);
  transition: transform .25s ease;
}
.nav__link:hover{ color: rgba(255,255,255,0.98); }
.nav__link:hover::after{ transform: scaleX(1); }
.nav__link.active{
  color: rgba(255,255,255,0.98);
}
.nav__link.active::after{
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--glow), rgba(0,166,255,0.18));
}

.themeBtn{
  width:44px; height:40px;
  border-radius:12px;
  border:2px solid rgba(0,166,255,0.25);
  background: rgba(255,255,255,0.04);
  cursor:pointer;
  display:grid; place-items:center;
}
.themeBtn:hover{
  box-shadow: 0 0 0 2px rgba(0,166,255,0.22) inset, 0 18px 60px rgba(0,166,255,0.12);
}
.themeBtn__icon{ font-size:18px; }

/* ===== Cards + Glow ===== */
.sectionCard{
  background: var(--card);
  border: 2px solid rgba(0,166,255,0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hoverCard:hover{
  transform: translateY(-4px);
  border-color: rgba(0,166,255,0.45);
  box-shadow:
    0 0 0 2px rgba(0,166,255,0.16) inset,
    0 22px 90px rgba(0,166,255,0.16),
    var(--shadow);
}

.glowSection.is-glowing .sectionCard{
  border-color: rgba(0,166,255,0.60);
  box-shadow:
    0 0 0 2px rgba(0,166,255,0.20) inset,
    0 26px 105px rgba(0,166,255,0.20),
    var(--shadow);
}
.glowSection.is-glowing .sectionCard::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: calc(var(--radius) + 10px);
  border: 2px solid rgba(0,166,255,0.32);
  box-shadow: 0 0 95px rgba(0,166,255,0.22);
  pointer-events:none;
}

.hoverCardInner{
  background: var(--card2);
  border: 2px solid rgba(0,166,255,0.18);
  border-radius: 16px;
  padding: 14px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hoverCardInner:hover{
  transform: translateY(-4px);
  border-color: rgba(0,166,255,0.45);
  box-shadow:
    0 0 0 2px rgba(0,166,255,0.14) inset,
    0 18px 70px rgba(0,166,255,0.16);
}

.stack{ display:grid; gap:14px; }
.grid{ display:grid; gap:16px; }
.grid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4{ grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ===== Hero ===== */
.heroCard{ padding: 26px; }
.hero__media{ position:relative; width: fit-content; margin: 0 auto 14px; }
.hero__picBtn{ all:unset; cursor:pointer; display:block; border-radius:999px; }
.hero__pic{
  width:176px; height:176px;
  border-radius:50%;
  object-fit: cover;
  border: 2px solid var(--glow);
  box-shadow: 0 0 0 8px rgba(0,166,255,0.10);
  transition: transform .22s ease, box-shadow .22s ease, opacity .6s ease;
}
.hero__picBtn:hover .hero__pic{
  transform: scale(1.03);
  box-shadow: 0 0 0 8px rgba(0,166,255,0.12), 0 26px 110px rgba(0,166,255,0.18);
}
.hero__frame{
  position:absolute; inset:-18px;
  border-radius: 999px;
  border: 2px solid rgba(0,166,255,0.22);
  box-shadow: 0 0 75px rgba(0,166,255,0.18);
  animation: framePulse 6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes framePulse{
  0%,100%{ opacity:.75; transform: scale(1); }
  50%{ opacity:1; transform: scale(1.02); }
}

.hero__content{ text-align:center; display:grid; gap:10px; }
.hero__tag{ margin:0; font-weight: 800; color: var(--muted); }

/* Name typing + hover */
.nameType{
  margin:0;
  font-weight: 950;
  letter-spacing: .8px;
  font-size: clamp(20px, 3.4vw, 36px);
  color: rgba(255,255,255,0.96);
  text-shadow: 0 0 28px rgba(0,166,255,0.18);
  min-height: 1.2em;
}
.hoverName{
  border-radius: 14px;
  padding: 6px 10px;
  display: inline-block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hoverName:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(0,166,255,0.22) inset, 0 18px 70px rgba(0,166,255,0.16);
}

/* Social */
.socialRow{
  display:flex; justify-content:center; gap:12px;
  flex-wrap: wrap;
}
.socialRow--big{ margin-top: 14px; }
.socialBtn{
  width:42px; height:42px;
  border-radius: 14px;
  display:grid; place-items:center;
  border: 2px solid rgba(0,166,255,0.28);
  background: rgba(255,255,255,0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.socialBtn img{ width:40px; height:40px; object-fit: contain; }
.socialBtn:hover{
  transform: translateY(-3px);
  border-color: var(--glow);
  box-shadow: 0 0 0 2px rgba(0,166,255,0.16) inset, 0 18px 60px rgba(0,166,255,0.18);
}

/* Skills */
.skillCard{ text-align:center; font-weight: 900; font-size: 16px; }

/* ===== Projects flip ===== */
.projGrid{ margin-top: 6px; }
.flipCard{
  perspective: 1200px;
  border-radius: 16px;
  outline: none;
}
.flipCard:focus-visible{
  box-shadow: 0 0 0 2px var(--glow), 0 22px 90px rgba(0,166,255,0.16);
}
.flipCard__inner{
  position: relative;
  min-height: 180px;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.85,.2,1);
}

/* Desktop hover flip only when hover supported */
@media (hover: hover){
  .flipCard:hover .flipCard__inner{ transform: rotateY(180deg); }
  .flipCard:hover .flipCard__front,
  .flipCard:hover .flipCard__back{
    border-color: rgba(0,166,255,0.45);
    box-shadow: 0 0 0 2px rgba(0,166,255,0.14) inset, 0 20px 80px rgba(0,166,255,0.16);
  }
}

/* Mobile/tap flip (JS adds .is-flipped) */
.flipCard.is-flipped .flipCard__inner{
  transform: rotateY(180deg);
}

.flipCard__front, .flipCard__back{
  position:absolute; inset:0;
  border-radius: 16px;
  padding: 18px;
  backface-visibility: hidden;
  display:flex; flex-direction:column;
  justify-content:center;
  gap: 12px;
  background: var(--card2);
  border: 2px solid rgba(0,166,255,0.18);
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.flipCard__front h3{ margin:0; font-size: 24px; color: var(--text); }
.flipCard__back{
  transform: rotateY(180deg);
  align-items:center;
  text-align:center;
}

.backTitle{
  font-weight: 950;
  letter-spacing: .2px;
  font-size: 18px;
  color: var(--text);
}

/* Badges (readable on light + dark) */
.badges{ display:flex; gap:10px; flex-wrap:wrap; }
.badge{
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid rgba(0,166,255,0.28);
  background: rgba(0,166,255,0.08);
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
}

/* Button */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid rgba(0,166,255,0.30);
  background: rgba(0,166,255,0.10);
  color: var(--text);
  font-weight: 950;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover{
  transform: translateY(-2px);
  border-color: var(--glow);
  box-shadow: 0 0 0 2px rgba(0,166,255,0.14) inset, 0 18px 65px rgba(0,166,255,0.16);
}

/* Certificates */
.certGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.certCard{
  cursor:pointer;
  text-align:left;
  background: transparent;
}
.certCard img{
  width:100%;
  height:160px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(0,166,255,0.18);
}
.certCard__name{
  margin-top:10px;
  font-weight: 950;
  color: var(--text);
}

/* Contact */
.contactText .label{
  font-weight: 950;
  margin-right: 8px;
  color: var(--text);
}
.link{
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, filter .2s ease;
}
.link:hover{
  border-color: var(--glow);
  filter: brightness(1.02);
}

/* Footer */
.footer{
  padding: 22px 0;
  border-top: 2px solid rgba(0,166,255,0.16);
  background: rgba(6,10,20,0.55);
  backdrop-filter: blur(14px);
}
.footer__inner{ display:flex; justify-content:center; text-align:center; }

/* Modals */
.modal{ position:fixed; inset:0; display:none; z-index:70; }
.modal.is-open{ display:block; }
.modal__overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
}
.modal__panel{
  position: relative;
  width: min(820px, 92vw);
  margin: 9vh auto;
  background: var(--card);
  border: 2px solid rgba(0,166,255,0.35);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 2px rgba(0,166,255,0.18) inset,
    0 28px 120px rgba(0,166,255,0.16),
    var(--shadow);
  padding: 18px;
}
.modal__panel--wide{ width: min(980px, 94vw); padding: 14px; }

.modal__close{
  position:absolute; top:5px; right:5px;
  width:25px; height:25px;
  border-radius: 10px;
  border: 2px solid rgba(0,166,255,0.30);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display : none; 
}
.modal__close:hover{
  transform: translateY(-2px);
  border-color: var(--glow);
  box-shadow: 0 0 0 2px rgba(0,166,255,0.14) inset, 0 18px 65px rgba(0,166,255,0.16);
}

.modalProfile{
  display:grid;
  justify-items:center;
  gap: 10px;
  padding: 10px 6px 6px;
}
.modalPic{
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glow);
  box-shadow: 0 0 0 8px rgba(0,166,255,0.10);
}
.modalName{
  margin: 0;
  font-weight: 950;
  letter-spacing: .4px;
  color: var(--text);
}
.modalSub{
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.certBig{
  width:100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid rgba(0,166,255,0.22);
}

/* Responsive */
@media (max-width: 980px){
  .grid--4{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px){
  .nav__toggle{ display:block; }
  .nav__links{
    position:absolute;
    top: var(--navH);
    left:50%;
    transform: translateX(-50%);
    width: min(1120px,92vw);
    background: rgba(6,10,20,0.72);
    border: 2px solid rgba(0,166,255,0.22);
    border-radius: 16px;
    padding: 10px;
    display:none;
    flex-direction:column;
    gap:6px;
    margin-left:0;
  }
  .nav__links.is-open{ display:flex; }
  .nav__link{ padding:10px 10px; width:100%; border-radius:14px; }
  .nav__link:hover{ background: rgba(255,255,255,0.04); }

  .certGrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .certCard img{ height:140px; }

  .grid--3{ grid-template-columns: 1fr; }
  .grid--4{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* ===== FIX: Light mode mobile menu text WHITE ===== */
@media (max-width: 720px){
  body.light .nav__links{
    background: rgba(20, 28, 36, 0.92);  /* dark menu panel */
    border-color: var(--glow);
  }

  body.light .nav__links .nav__link{
    color: #fff !important;              /* WHITE text */
  }

  body.light .nav__links .nav__link:hover{
    color: #fff !important;
    background: rgba(0,166,255,0.12);
  }

  body.light .nav__links .nav__link.active{
    color: #fff !important;
  }
}

}

/* ===== Light mode (soft sky-blue inside + readable text) ===== */
body.light{
  --bg: #eaf6ff;
  --text: rgba(12,16,26,0.92);
  --muted: rgba(12,16,26,0.68);
  --card: rgba(255,255,255,0.92);
  --card2: rgba(255,255,255,0.84);
}

body.light .topbar{ background: rgba(234,246,255,0.78); }
body.light .nav__toggle span{ background: rgba(12,16,26,0.86); }
body.light .nav__link{ color: rgba(12,16,26,0.86); }
body.light .nav__link:hover{ color: rgba(12,16,26,1); }

body.light .nameType{
  color: #0b2f66; /* dark blue as requested */
  text-shadow: 0 0 22px rgba(0,166,255,0.18);
}

body.light .para{ color: rgba(12,16,26,0.88); }

/* Keep same animation but softer visibility */
body.light .bg__shimmer{ opacity: .55; }
body.light .bg__conic{ opacity: .48; }
body.light .bg__noise{ opacity: .05; }
body.light .modal__overlay{ background: rgba(15,20,40,0.45); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }
}


.message-form {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.input-group {
  margin-bottom: 20px;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  outline: none;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  backdrop-filter: blur(8px);
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

body.light .message-form input,
body.light .message-form textarea {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: #111;
}

body.light .message-form input::placeholder,
body.light .message-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.message-form textarea {
  resize: vertical;
  min-height: 150px;
}

#form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}



.sendBtn {
  position: relative;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sendBtn.loading {
  pointer-events: none;
  opacity: 0.9;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top: 2px solid #fff;
  border-radius: 50%;
  display: none;
  animation: spinLoader 0.8s linear infinite;
}

.sendBtn.loading .btn-loader {
  display: inline-block;
}

.sendBtn.loading .btn-text {
  opacity: 0.9;
}

@keyframes spinLoader {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 9999;
}

.popup.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup__box {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  background: rgba(15, 15, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transform: scale(0.9);
  transition: 0.3s ease;
}

.popup.show .popup__box {
  transform: scale(1);
}

body.light .popup__box {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111;
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: inherit;
}

.popup__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  background: rgba(50, 205, 50, 0.15);
  color: limegreen;
  border: 1px solid rgba(50, 205, 50, 0.35);
}

.popup__box h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.popup__box p {
  margin-bottom: 20px;
  font-size: 16px;
  opacity: 0.85;
}

.popupBtn {
  min-width: 120px;
}

@media (max-width: 600px) {
  .popup__box {
    padding: 28px 18px;
  }

  .popup__box h3 {
    font-size: 24px;
  }
}