:root{
  --bg1:#120826;
  --bg2:#2a0b4b;
  --card: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.14);
  --text:#f4f1ff;
  --muted: rgba(244,241,255,.72);
  --accent:#a855f7;
  --accent2:#22d3ee;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, #2a1355 0%, transparent 55%),
              radial-gradient(900px 600px at 80% 30%, #2b0b52 0%, transparent 55%),
              linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

/* containers */
.container{
  width:min(1120px, 92%);
  margin: 0 auto;
}

/* background blobs */
.bg-blobs{ position: fixed; inset:0; z-index:-1; pointer-events:none; }
.blob{
  position:absolute;
  filter: blur(40px);
  opacity: .35;
  border-radius: 999px;
  transform: translate3d(0,0,0);
}
.b1{ width:420px; height:420px; left:-120px; top:120px; background: #a855f7; }
.b2{ width:520px; height:520px; right:-180px; top:-120px; background: #22d3ee; opacity:.22; }
.b3{ width:380px; height:380px; right:120px; bottom:-140px; background:#7c3aed; opacity:.25; }

/* header/nav */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 3, 25, .45);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .2px;
}
.brand-dot{
  width:12px;height:12px;border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(168,85,247,.55);
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.nav-link{
  text-decoration:none;
  color: rgba(244,241,255,.85);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: .2s ease;
  position: relative;
}
.nav-link:hover{
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-link.active{
  background: rgba(168,85,247,.18);
  border: 1px solid rgba(168,85,247,.35);
  box-shadow: 0 10px 30px rgba(168,85,247,.18);
  color:#fff;
}

/* mobile menu button */
.menu-btn{
  display:none;
  width:44px;height:44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.menu-btn span{
  display:block;
  height:2px;
  width:20px;
  background: rgba(244,241,255,.9);
  margin: 5px auto;
  border-radius: 99px;
}

/* hero */
.hero{
  padding: 54px 0 40px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items:center;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(244,241,255,.86);
  font-weight: 600;
  font-size: 13px;
}
.chip-dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--accent2);
  box-shadow: 0 0 18px rgba(34,211,238,.5);
}
.hero-left h1{
  margin: 16px 0 10px;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -1px;
}
.grad{
  background: linear-gradient(135deg, #e9d5ff, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}
.sub{
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 56ch;
}
.hero-actions{
  display:flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btn{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration:none;
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  background: linear-gradient(135deg, rgba(168,85,247,.9), rgba(34,211,238,.65));
  border-color: rgba(255,255,255,.14);
  color: #0b0620;
}
.btn.ghost{
  background: rgba(255,255,255,.06);
  color: rgba(244,241,255,.9);
}
.btn-glow{
  position:absolute;
  inset: -20px;
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.25), transparent 55%),
              radial-gradient(circle at 70% 60%, rgba(168,85,247,.25), transparent 55%);
  filter: blur(18px);
  z-index: -1;
  opacity: .8;
  pointer-events:none;
}

.btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* socials (icons) */
.social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}
.social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(1.1);
}
.social:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.45);
  transform: translateY(-3px);
}
.social:hover img { filter: brightness(1.3); }

/* hero right */
.hero-card{
  position:relative;
  border-radius: 26px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 220px at 20% 10%, rgba(168,85,247,.22), transparent 55%),
              radial-gradient(500px 220px at 80% 30%, rgba(34,211,238,.18), transparent 55%);
  z-index:0;
}
.hero-img{
  position:relative;
  z-index:1;
  width:100%;
  height:auto;
  display:block;
  border-radius: 18px;
  object-fit: cover;
  mix-blend-mode: normal;
  filter: saturate(1.05) contrast(1.05);
}

/* floating tags */
.floating{
  position:absolute;
  z-index:2;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  background: rgba(10,3,25,.55);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.f1{ top: 18px; left: 18px; color:#e9d5ff; }
.f2{ top: 18px; right: 18px; color:#67e8f9; }
.f3{ bottom: 18px; left: 18px; color:#c4b5fd; }
.f4{ bottom: 18px; right: 18px; color:#f0abfc; }

/* sections */
.section{ padding: 64px 0; }
.section-head{ margin-bottom: 18px; }
.section-head h2{
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: -.5px;
}
.section-head p{
  margin:0;
  color: var(--muted);
  line-height: 1.6;
}

.section-grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 26px;
  align-items:start;
}
.section-title h2{ margin:0 0 8px; font-size: 30px; }
.section-title p{ margin:0; color: var(--muted); line-height: 1.6; }

.grid{ display:grid; gap: 16px; }

/* ✅ Keep default grid layouts ONLY for non-slider usage */
.skills-grid{ grid-template-columns: repeat(4, 1fr); }
.projects-grid{ grid-template-columns: repeat(3, 1fr); }

.glass{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}

.card{ padding: 18px; }
.card h3{ margin:0 0 8px; font-size: 18px; }
.card p{
  margin:0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14.5px;
}

.mini-stats{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Stats Image Icons */
.stat { display: flex; align-items: center; gap: 14px; }
.stat-img{
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
  object-fit: contain;
}
.stat-text{ display:flex; flex-direction:column; }
.stat-num{ font-size: 22px; font-weight: 800; }
.stat-label{ font-size: 13px; opacity: 0.85; }

/* projects */
.project-top{ display:flex; gap: 8px; margin-bottom: 10px; }
.badge{
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  background: rgba(168,85,247,.18);
  border: 1px solid rgba(168,85,247,.28);
}
.badge.soft{
  background: rgba(34,211,238,.12);
  border-color: rgba(34,211,238,.22);
}
.project-actions{ display:flex; gap: 14px; margin-top: 14px; }
.link{
  color:#e9d5ff;
  font-weight: 800;
  text-decoration:none;
  border-bottom: 1px dashed rgba(233,213,255,.5);
}
.link:hover{ color:#67e8f9; border-bottom-color: rgba(103,232,249,.6); }

/* ✅ project images consistent */
.project-image{ height: 220px; overflow:hidden; border-radius: 14px;  margin-bottom: 12px;}
.project-image img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* form */
.form .field{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-bottom: 12px;
}
label{
  font-size: 13px;
  color: rgba(244,241,255,.85);
  font-weight: 700;
}
input, textarea{
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,3,25,.45);
  color: rgba(244,241,255,.92);
  outline: none;
  transition: border-color .2s ease, transform .15s ease;
}
input:focus, textarea:focus{
  border-color: rgba(34,211,238,.45);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}
.form-note{
  margin-top: 12px !important;
  font-size: 12px !important;
  color: rgba(244,241,255,.60) !important;
}

/* footer */
.footer{
  padding: 26px 0 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(10,3,25,.35);
  margin-top: 60px;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(244,241,255,.70);
  font-size: 13px;
}
.to-top{
  color:#e9d5ff;
  text-decoration:none;
  font-weight: 800;
}

/* toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events:none;
  background: rgba(10,3,25,.78);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: .25s ease;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .section-grid{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: repeat(2, 1fr); }
  .projects-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .menu-btn{ display:block; }
  .nav{
    position: absolute;
    top: 64px;
    right: 4%;
    left: 4%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: rgba(10,3,25,.72);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events:none;
    transition: .2s ease;
  }
  .nav.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events:auto;
  }
  .nav-link{ padding: 12px 14px; }
  .footer-inner{ flex-direction: column; align-items:flex-start; }
}

/* =========================
   Pulse / Glow animation
   ========================= */
.pulse-glow { position: relative; overflow: visible; }
.pulse-glow::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(168,85,247,0.6), rgba(34,211,238,0.5));
  filter: blur(18px);
  opacity: 0.7;
  z-index: -1;
  animation: pulseGlow 2.8s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%{ transform: scale(0.95); opacity: 0.5; }
  50%{ transform: scale(1.05); opacity: 0.85; }
  100%{ transform: scale(0.95); opacity: 0.5; }
}
.pulse-glow:hover::before{ filter: blur(22px); opacity: 1; }
.pulse-glow:hover{ transform: translateY(-2px); }

/* =========================
   Social Icons Horizontal Row
   ========================= */
.socials-row{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 16px;
}
.socials-row a{
  width:44px;height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all .3s ease;
}
.socials-row a img{
  width:22px;height:22px;
  object-fit: contain;
  filter: brightness(1.15);
}
.socials-row a:hover{
  background: rgba(168,85,247,0.18);
  border-color: rgba(168,85,247,0.45);
  box-shadow: 0 0 18px rgba(168,85,247,0.55);
  transform: translateY(-3px);
}

/* =========================
   SKILLS SECTION (keep your card design)
   ========================= */
.skills-section{ padding: 80px 0; position: relative; }
.skills-section::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 50% 10%, rgba(168,85,247,.22), transparent 60%),
              radial-gradient(800px 420px at 50% 100%, rgba(34,211,238,.10), transparent 60%);
  pointer-events:none;
}
.skills-head{
  text-align:center;
  margin-bottom: 42px;
  position: relative;
  z-index: 1;
}
.skills-head h2{
  margin: 0 0 10px;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 900;
  color: rgba(244,241,255,.95);
  letter-spacing: -1px;
}
.skills-head p{
  margin: 0 auto;
  max-width: 760px;
  color: rgba(244,241,255,.78);
  line-height: 1.7;
  font-size: 15.5px;
}

/* keep your skill-card design */
.skill-card{
  padding: 26px 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  text-align:center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow:hidden;
}
.skill-card::after{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(220px 120px at 50% 0%, rgba(168,85,247,.18), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.skill-card:hover{
  transform: translateY(-8px);
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 22px 60px rgba(168,85,247,.10), 0 22px 60px rgba(0,0,0,.35);
}
.skill-icon{
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  display:grid;
  place-items:center;
  border-radius: 18px;
  background: rgba(10,3,25,.25);
  border: 1px solid rgba(255,255,255,.10);
  position: relative;
  z-index: 1;
}
.skill-icon img{
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.25));
}
.skill-percent{
  font-size: 22px;
  font-weight: 900;
  color: rgba(244,241,255,.88);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.skill-name{
  margin-top: 8px;
  font-weight: 800;
  color: rgba(168,85,247,.95);
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
}

/* =========================
   SKILLS SLIDER (ONLY affects when wrapped)
   ========================= */
.skills-slider-wrapper{ position: relative; margin-top: 24px; }
.skills-slider{ overflow: hidden; scroll-behavior: smooth; }

.skills-slider .skills-grid{
  display:flex;                 /* slider mode */
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 6px;
  scrollbar-width: none;
}
.skills-slider .skills-grid::-webkit-scrollbar{ display:none; }

.skills-slider .skills-grid > *{ flex: 0 0 auto; }

/* arrows */
.skills-arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px;height:44px;
  border-radius:50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,3,25,0.55);
  backdrop-filter: blur(10px);
  color: rgba(244,241,255,0.95);
  cursor:pointer;
  font-size:20px;
  display:grid;
  place-items:center;
  transition: .25s ease;
  z-index: 5;
}
.skills-arrow:hover{
  background: rgba(168,85,247,0.22);
  border-color: rgba(168,85,247,0.45);
  box-shadow: 0 0 18px rgba(168,85,247,0.45);
}
.skills-arrow.left{ left:-18px; }
.skills-arrow.right{ right:-18px; }

@media (max-width: 768px){
  .skills-arrow{ display:none; }
  .skills-slider{ overflow: visible; }
}

/* =========================
   CONTACT SECTION FIX
   ========================= */
#contact .section-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
#contact .section-title{ max-width: 520px; }
#contact .form{
  width: 100%;
  max-width: 560px;
  justify-self: end;
}
@media (max-width: 980px){
  #contact .section-grid{ grid-template-columns: 1fr; }
  #contact .form{ justify-self: start; max-width: 100%; }
}

/* =========================
   CONTACT SECTION (Image + Form)
   ========================= */

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.contact-visual{
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-visual img{
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
  animation: floatGirl 6s ease-in-out infinite;
}



.contact-content{
  width: 100%;
}

.contact-content .form{
  max-width: 560px;
}

/* Responsive */
@media (max-width: 980px){
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-visual img{
    max-width: 320px;
  }

  .contact-content .form{
    max-width: 100%;
  }
}

/* =========================
   Contact left: image + 3 mini cards
   ========================= */

.contact-visual{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Image glass wrapper */
.glass-card{
  position: relative;
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  overflow: hidden;
}

.glass-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 260px at 20% 10%, rgba(168,85,247,.22), transparent 55%),
              radial-gradient(500px 260px at 80% 30%, rgba(34,211,238,.14), transparent 55%);
  z-index:0;
}

.contact-girl{
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 18px;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
}

/* Cards row */
.contact-mini-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Mini card */
.mini-card{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 66px;
}

.mini-card:hover{
  transform: translateY(-4px);
  border-color: rgba(168,85,247,.40);
  box-shadow: 0 18px 45px rgba(168,85,247,.12), 0 18px 45px rgba(0,0,0,.28);
}

/* Icon box */
.mini-ico{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.mini-ico img{
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(1.2);
}

/* Text */
.mini-text h4{
  margin: 0;
  font-size: 13.5px;
  font-weight: 900;
  color: rgba(244,241,255,.96);
}

.mini-text p{
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(244,241,255,.70);
  line-height: 1.2;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 980px){
  .contact-mini-cards{
    grid-template-columns: 1fr;
  }
}

/* Skills bar section styles */
/* =========================
   Skills Progress Bars
   ========================= */

.skills-bars{
  margin-top: 28px;
  padding: 22px;
  border-radius: 22px;
}

.skills-bars-title{
  margin: 0 0 18px;
  letter-spacing: 1px;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  color: rgba(244,241,255,.92);
  
}

.skill-bar{
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.skill-bar:last-child{
  border-bottom: none;
}

.skill-bar-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.skill-label{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  color: rgba(244,241,255,.92);
}

.skill-mini-icon{
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(1.15);
  opacity: .95;
}

.skill-value{
  font-weight: 900;
  color: rgba(244,241,255,.78);
  font-size: 13px;
}

.bar-track{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  position: relative;
}

.bar-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(168,85,247,.95), rgba(34,211,238,.65));
  box-shadow: 0 0 16px rgba(168,85,247,.35);
  transition: width 1.2s ease;
}

/* FORCE skills & expertise card to be smaller and centered */
.skills-section .skills-bars {
  max-width: 720px !important;   /* 👈 clearly smaller */
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 24px;
  padding: 20px;
}

@media (max-width: 1024px){
  .skills-bars{
    max-width: 92%;
  }
}

/* =========================
   Services Section
   ========================= */

.services-section {
  padding-top: 80px;
}

.section-head.center {
  text-align: center;
}

.section-head.center p {
  color: rgba(244,241,255,0.75);
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* Service Card */
.service-card {
  padding: 26px 22px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(168,85,247,0.35);
}

/* Icon */
.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 16px;
  background: rgba(168,85,247,0.2);
  box-shadow: 0 0 18px rgba(168,85,247,0.45);
}

.service-card h3 {
  margin-bottom: 10px;
  color: #e9d5ff;
  font-size: 18px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244,241,255,0.75);
}

/* Responsive */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Services – Shape Style
   ========================= */

.services-shape {
  position: relative;
  padding: 90px 0;
}

.services-shape::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(168,85,247,.25), transparent 60%),
    radial-gradient(900px 500px at 50% 100%, rgba(34,211,238,.15), transparent 60%);
  pointer-events: none;
}

.services-shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 60px;
}

/* Card */
.service-shape-card {
  position: relative;
  padding: 40px 26px 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  text-align: left;
}

/* Number + abstract shape */
.shape-number {
  position: absolute;
  top: -30px;
  left: 20px;
  width: 110px;
  height: 90px;
  background: linear-gradient(
    135deg,
    rgba(168,85,247,.55),
    rgba(34,211,238,.35)
  );
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  filter: blur(0.2px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(168,85,247,.45);
}

.shape-number img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(1.15);
}


/* Text */
.service-shape-card h3 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: 18px;
  color: #f5edff;
}

.service-shape-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(244,241,255,.75);
}

/* Responsive */
@media (max-width: 1100px) {
  .services-shape-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .shape-number {
    left: 50%;
    transform: translateX(-50%);
  }

  .service-shape-card {
    text-align: center;
  }
}

/* =========================
   Service List (Checklist)
   ========================= */

.service-list {
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: rgba(244,241,255,0.85);
  line-height: 1.6;
}

/* custom check icon */
.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 900;
  color: #a855f7;
  font-size: 15px;
}

/* =========================
   About end section (cards + short description)
   ========================= */

.about-end{
  margin-top: 26px;

  /* ✅ center the whole block */
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.about-cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}

/* ✅ make sure cards don't stretch weirdly */
.about-mini-card{
  text-align: center;
  padding: 22px 18px;
  border-radius: 22px;
}

.about-mini-icon{
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 18px rgba(168,85,247,0.25);
}

.about-mini-icon img{
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(1.1);
}

.about-mini-card h3{
  margin: 6px 0 10px;
  font-size: 20px;
  color: rgba(244,241,255,0.95);
}

.about-mini-card p{
  margin: 0 0 6px;
  color: rgba(244,241,255,0.82);
  line-height: 1.5;
  font-size: 14.5px;
}

.about-mini-card .muted{
  color: rgba(244,241,255,0.65);
  font-weight: 600;
  font-size: 13.5px;
}

.about-short{
  padding: 18px 18px;
  border-radius: 22px;

  /* ✅ keep the description card centered and same width */
  width: 100%;
}

.about-short p{
  margin: 0;
  color: rgba(244,241,255,0.78);
  line-height: 1.75;
  font-size: 14.5px;
  text-align: center;
  max-width: 72ch;
  margin-inline: auto;
}

/* responsive */
@media (max-width: 900px){
  .about-end{
    max-width: 92%;
  }

  .about-cards{
    grid-template-columns: 1fr;
  }
}

/* =========================
   ABOUT GRID: image under "Who am I" on the right side
   ========================= */

.section-grid{
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 0.75fr;
  grid-template-areas:
    "title who who"
    "end   end image";
  gap: 28px;
  align-items: start;
}

.section-title{ grid-area: title; }
.about-who{ grid-area: who; }
.about-end{ grid-area: end; }

/* Image sits in the empty right space */
.about-image{
  grid-area: image;
  justify-self: end;
  align-self: start;
  margin-top: 0px;
}

/* circle + glow */
.about-avatar-wrap{
  width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}

.about-avatar-wrap::before{
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(168,85,247,0.55),
    rgba(34,211,238,0.22),
    transparent 65%
  );
  filter: blur(14px);
  z-index: 0;
}

.about-avatar-wrap img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 22px 60px rgba(0,0,0,0.35),
              0 0 40px rgba(168,85,247,0.30);
  position: relative;
  z-index: 1;
}

/* responsive */
@media (max-width: 1024px){
  .section-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "title"
      "who"
      "end";
  }
  .about-image{
    justify-self: center;
    margin-top: 0;
  }
  .about-avatar-wrap{ width: 260px; }
}

/* =========================
   Projects top tech buttons
   ========================= */

.projects-tags{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 26px;   /* cards වලට උඩින් space */
}

/* ⬇️ pill (999px) → square-soft */
.project-tag{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;

  border-radius: 14px;   /* ✅ square look */
  text-decoration: none;

  font-weight: 800;
  font-size: 14px;
  color: rgba(244,241,255,.95);

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);

  transition: all .3s ease;
}

.project-tag img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(1.15);
}

.project-tag:hover{
  background: rgba(168,85,247,0.22);
  border-color: rgba(168,85,247,0.45);
  box-shadow: 0 0 18px rgba(168,85,247,0.45);
  transform: translateY(-2px);
}

/* mobile wrap */
@media (max-width: 600px){
  .projects-tags{
    flex-wrap: wrap;
  }
}

/* =========================
   Projects heading + buttons row
   ========================= */

.projects-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap; /* mobile safe */
}

.projects-head h2{
  margin: 0;
}

/* buttons stay right */
.projects-head .projects-tags{
  margin: 0;
}

/* =========================
   ABOUT responsive layout (ONLY for #about)
   ========================= */

#about .section-grid{
  display: grid;
  gap: 28px;
  align-items: start;

  grid-template-columns: 1.05fr 1.15fr 0.8fr;
  grid-template-areas:
    "title who who"
    "end   end image";
}

#about .section-title{ grid-area: title; }
#about .about-who{ grid-area: who; }
#about .about-end{ grid-area: end; }
#about .about-image{ grid-area: image; justify-self: end; }

/* image size */
#about .about-avatar-wrap{ width: 300px; }

/* ✅ Tablet + Mobile */
@media (max-width: 1024px){
  #about .section-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "who"
      "image"
      "end";
  }

  #about .about-image{
    justify-self: center;
    margin-top: 8px;
  }

  #about .about-avatar-wrap{ width: 240px; }
}

/* ✅ phone: cards stack */
@media (max-width: 700px){
  #about .about-cards{
    grid-template-columns: 1fr;
  }

  #about .mini-stats{
    grid-template-columns: 1fr;   /* stat 3 lines */
  }

  #about .about-short{
    padding: 16px;
  }
}

