:root{
  --bg: #f5f6fa;
  --ink: #13234a;
  --muted: rgba(19,35,74,.70);
  --line: rgba(19,35,74,.10);
  --card: rgba(255,255,255,.75);
  --shadow: 0 18px 50px rgba(16,24,40,.12);

  --accent: #6c63ff;
  --accent2:#2dd4bf;
  --radius: 16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 20px}

/* ===== Floating header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245,246,250,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19,35,74,.08);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled{
  box-shadow: 0 10px 30px rgba(16,24,40,.10);
  background: rgba(245,246,250,.92);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:.2px;
}
.brand-mark{
  width:42px;height:42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(108,99,255,.20), rgba(45,212,191,.16));
  border: 1px solid rgba(108,99,255,.25);
  display:grid;place-items:center;
}

/* ===== Modern tabs ===== */
.tabs{
  display:flex;
  gap:10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(19,35,74,.06);
  border: 1px solid rgba(19,35,74,.08);
}
.tabs a{
  font-size:14px;
  color: rgba(19,35,74,.75);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  border: 1px solid transparent;
}
.tabs a:hover{
  background: rgba(255,255,255,.7);
  color: var(--ink);
  transform: translateY(-1px);
}
.tabs a.active{
  background: #fff;
  color: var(--ink);
  border-color: rgba(19,35,74,.10);
  box-shadow: 0 10px 24px rgba(16,24,40,.08);
}

/* ===== Parallax background accents ===== */
.parallax{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.blob{
  position:absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: .35;
  transform: translate3d(0,0,0);
}
.blob.one{
  left: -120px;
  top: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(108,99,255,.55), transparent 55%),
              radial-gradient(circle at 70% 60%, rgba(45,212,191,.45), transparent 55%);
}
.blob.two{
  right: -160px;
  top: 140px;
  background: radial-gradient(circle at 30% 30%, rgba(45,212,191,.55), transparent 55%),
              radial-gradient(circle at 70% 60%, rgba(108,99,255,.42), transparent 55%);
}
.blob.three{
  left: 20%;
  bottom: -220px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at 30% 30%, rgba(108,99,255,.45), transparent 55%),
              radial-gradient(circle at 70% 60%, rgba(245,158,11,.18), transparent 55%);
}

/* ===== Hero layout ===== */
.hero{
  padding: 72px 0 30px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items:center;
}
@media (max-width: 900px){
  .hero{grid-template-columns: 1fr; padding-top: 52px;}
}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(19,35,74,.08);
  color: rgba(19,35,74,.70);
  font-size: 13px;
}

.hero h1{
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.6px;
  margin: 14px 0 10px;
}
.hero h1 .accent{color: var(--accent)}
.hero p{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
}

.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(19,35,74,.10);
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(108,99,255,.25);
}
.btn.primary{
  background: linear-gradient(135deg, rgba(108,99,255,.18), rgba(45,212,191,.12));
  border-color: rgba(108,99,255,.25);
}

/* ===== Cards / sections ===== */
.section{
  padding: 26px 0;
}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.card{
  grid-column: span 12;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(19,35,74,.08);
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{transform: translateY(-2px); box-shadow: var(--shadow);}
@media (min-width: 900px){
  .col6{grid-column: span 6}
  .col4{grid-column: span 4}
  .col8{grid-column: span 8}
}
.meta{font-size:13px;color: rgba(19,35,74,.65)}
.pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(19,35,74,.10);
  background: rgba(255,255,255,.65);
  color: rgba(19,35,74,.70);
}

.h2{margin: 8px 0 8px; font-size: 26px; letter-spacing: -0.2px;}
.about-text{margin:0; color: var(--muted);}

/* ===== Skills Bars ===== */
.skill{ margin-top: 14px; }
.skill-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  font-size: 14px;
  color: rgba(19,35,74,.85);
}
.skill-val{ font-size: 13px; color: rgba(19,35,74,.60); }
.bar{
  margin-top: 10px;
  height: 12px;
  border-radius: 999px;
  background: rgba(19,35,74,.08);
  border: 1px solid rgba(19,35,74,.10);
  overflow:hidden;
}
.fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(108,99,255,.75), rgba(45,212,191,.65));
  transition: width 1.1s cubic-bezier(.2,.9,.2,1);
}

/* ===== Mesh (Hero) ===== */
.mesh-wrap{
  height: 420px;
  border-radius: 24px;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow:hidden;
  position: relative;
  display:grid;
  place-items:center;

  transition: transform .55s ease, opacity .55s ease, background .55s ease, border-color .55s ease, box-shadow .55s ease;
}
.mesh-img{
  width: min(420px, 90%);
  height: auto;

  filter: drop-shadow(0 20px 40px rgba(0,0,0,.15));

  mix-blend-mode: multiply;
}
.mesh-hint{
  position:absolute;left:16px;bottom:16px;
  font-size: 13px;
  color: rgba(19,35,74,.65);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(19,35,74,.10);
  padding: 8px 10px;
  border-radius: 999px;
}
/* ===== Footer ===== */
.site-footer{
  margin-top: 42px;
  border-top: 1px solid rgba(19,35,74,.10);
  background: rgba(255,255,255,.55);
}
.footer-inner{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 14px;
  padding: 22px 0;
}
@media (max-width: 900px){
  .footer-inner{grid-template-columns: 1fr}
}
.footer-title{font-weight: 800; margin-bottom: 8px;}
.footer-links{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}
.footer-links a{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(19,35,74,.10);
  background: rgba(255,255,255,.75);
}
.small{font-size:13px;color: rgba(19,35,74,.65)}
/* ===== Hologram effect (mesh) ===== */
.mesh-wrap.holo{
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;

  /* hologram vibe */
  filter: drop-shadow(0 22px 48px rgba(15, 23, 42, .18));
  transform: translateZ(0);
}

/* gentle floating */
.mesh-wrap.holo .mesh-img{
  display:block;
  width: min(420px, 90%);
  height: auto;

  /* makes it blend into background */
  mix-blend-mode: multiply;

  /* hologram tint + contrast */
  filter: contrast(1.05) brightness(1.03);

  animation: holoFloat 5.5s ease-in-out infinite;
  will-change: transform, filter;
}

/* scanlines overlay */
.holo-scan{
  position:absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events:none;
  opacity: .22;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(45,212,191,.14) 0px,
      rgba(45,212,191,.14) 1px,
      rgba(255,255,255,0) 6px,
      rgba(255,255,255,0) 10px
    );

  mix-blend-mode: multiply;
  animation: holoScan 2.6s linear infinite;
}

/* shimmer sweep overlay */
.holo-shimmer{
  position:absolute;
  inset: -10%;
  pointer-events:none;
  opacity: .16;

  background: linear-gradient(
    120deg,
    rgba(108,99,255,0) 0%,
    rgba(108,99,255,.22) 40%,
    rgba(45,212,191,.18) 55%,
    rgba(108,99,255,0) 75%
  );

  transform: translateX(-35%) translateY(0) rotate(0deg);
  mix-blend-mode: screen;
  animation: holoShimmer 3.8s ease-in-out infinite;
}

/* subtle flicker (optional) */
.mesh-wrap.holo{
  animation: holoFlicker 6.5s linear infinite;
}

/* Animations */
@keyframes holoFloat{
  0%   { transform: translate3d(0,0,0) rotate(-.3deg); }
  50%  { transform: translate3d(0,-8px,0) rotate(.3deg); }
  100% { transform: translate3d(0,0,0) rotate(-.3deg); }
}

@keyframes holoScan{
  0%   { transform: translateY(-10px); }
  100% { transform: translateY(10px); }
}

@keyframes holoShimmer{
  0%   { transform: translateX(-40%) rotate(6deg); }
  50%  { transform: translateX(5%) rotate(6deg); }
  100% { transform: translateX(-40%) rotate(6deg); }
}

@keyframes holoFlicker{
  0%, 100% { opacity: 1; }
  8% { opacity: .92; }
  10%{ opacity: 1; }
  52%{ opacity: .95; }
  54%{ opacity: 1; }
  80%{ opacity: .93; }
}
/* ===== Terminal brand ===== */
.brand-terminal{
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .3px;
  color: var(--ink);
  min-width: 210px;
  white-space: nowrap;
}

.brand-terminal .prompt{
  color: var(--ink);
}

.brand-terminal .accent{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-terminal .dim{
  color: rgba(19,35,74,.60);
}

.brand-terminal .cursor{
  display: inline-block;
  width: 10px;
  animation: blink 1s step-end infinite;
}

@keyframes blink{
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
