/* Liquid animated background inside hero social icons */
.icon::before, .icon::after{
  content: "";
  position: absolute;
  width: 180%;
  height: 180%;
  top: -60%;
  left: -40%;
  z-index: 0; /* behind glyph */
}
@media (max-width: 900px){ .icon{ width: 50px; height: 50px; } .socials .icon svg{ width: 24px; height: 24px; } }
@media (max-width: 600px){ .icon{ width: 46px; height: 46px; } .socials .icon svg{ width: 22px; height: 22px; } }
.icon::before{
  border-radius: 45%;
  background: rgba(20,20,20,1);
  box-shadow: 0 0 8px 4px #D9D9D9, inset 0 0 4px #D9D9D9;
  animation: liquid-rotate-1 6s linear infinite;
  opacity: .16; /* slightly stronger for visibility over #eee */
}
.icon::after{
  border-radius: 40%;
  box-shadow: 0 0 8px rgba(26,26,26,.5), inset 0 0 4px rgba(26,26,26,.5);
  background: rgba(26,26,26,.4);
  animation: liquid-rotate-2 8s linear infinite;
  opacity: .12;
}

/* Keep icon letters centered above animation */
.icon{ z-index: 1; }
/* Base reset and tokens */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.cdnfonts.com/css/bebas-neue');
@import url('https://fonts.cdnfonts.com/css/poppins');
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  color: #0a0a0a;
  background: #000; /* right side background */
  line-height: 1.5;
}

:root{
  --bg-right: #000;
  --bg-left: #d9d9d9;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --white: #fff;
  --shadow: 0 6px 14px rgba(0,0,0,.18);
  --radius: 28px;
  --spacing: 24px;
  --maxw: 1200px;
  /* Laptop screen placement (percent of image size) */
  --screen-left: 16%;
  --screen-top: 11%;
  --screen-width: 68%;
  --screen-height: 46%;
}

/* Responsive variable tweaks */
@media (max-width: 900px){
  :root{
    --screen-left: 15%;
    --screen-top: 12%;
    --screen-width: 70%;
    --screen-height: 46%;
  }
}
@media (max-width: 600px){
  :root{
    --screen-left: 14%;
    --screen-top: 12.5%;
    --screen-width: 72%;
    --screen-height: 46%;
  }
}

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 900px){ .container{ padding: 0 18px; } }
@media (max-width: 600px){ .container{ padding: 0 14px; } }

/* Header / Navbar */
.site-header{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 22px 5%;
}
@media (max-width: 900px){ .site-header{ padding: 16px 5%; } }
@media (max-width: 600px){ .site-header{ padding: 12px 5%; } }

.nav{
  display: grid;
  grid-template-columns: 34% 1fr 16%;
  align-items: center;
}

.brand img{
  height: 20vh;
  width: auto;
  display: block;
  filter: none; /* keep logo dark over gray panel */
}
@media (max-width: 900px){ .brand img{ height: 64px; } }
@media (max-width: 600px){ .brand img{ height: 54px; } }

.nav-links{
  display: flex;
  justify-content: center;
  gap: 42px;
}

.nav-links a{
  color: var(--white);
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: .2px;
  opacity: .92;
  position: relative;
  transition: opacity .15s ease, transform .15s ease;
}
.nav-links a:hover{ opacity: 1; transform: translateY(-1px); }
.nav-links a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 6px;
}

/* Mobile hamburger toggle (hidden on desktop) */
.nav-toggle{
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  justify-self: start;
}
.nav-toggle span{
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px; /* pill */
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  background: transparent;
  color: var(--white);
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .25s ease;
  justify-self: end;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.22); }
.btn:active{ transform: translateY(0); }
.btn:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; }

/* Contact button themed style */
.contact-btn{
  background: #000;
  border: 1px solid #fff;
  color: #fff;
  font-size: 13px;
  padding: 10px 24px;
  position: relative;
  overflow: hidden;
}
.contact-btn:hover{ background: #0b0b0b; box-shadow: 0 8px 18px rgba(0,0,0,.28); }
.liquid-btn .btn-label{ position: relative; z-index: 2; }

/* Hero Section */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-right);
}

/* Left angled gray panel */
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-left);
  /* angled edge */
  clip-path: polygon(0 0, 55% 0, 40% 100%, 0 100%);
  z-index: 0;
}

/* layout inside hero */
.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 40px;
  padding-top: 90px;   /* space for header */
  padding-bottom: 60px;
  min-height: 100vh;
}

.hero-copy{
  padding-left: 12%;
  margin-top: 14vh; /* push text down like reference */
  max-width: 700px;
  color: var(--text);
}
@media (max-width: 900px){ .hero-copy{ padding-left: 0; margin-top: 10vh; } }
@media (max-width: 600px){ .hero-copy{ margin-top: 8vh; } }

.eyebrow{
  margin: 0 0 8px 0;
  font-size: 40px;
  font-weight: bold;
  color: var(--text);
}
@media (max-width: 900px){ .eyebrow{ font-size: 28px; } }
@media (max-width: 600px){ .eyebrow{ font-size: 24px; } }

.hero-title{
  margin: 0 0 10px 0;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.05;
  font-weight: 900;
  color: var(--text);
}
@media (max-width: 900px){ .hero-title{ font-size: clamp(34px, 7vw, 56px); } }
@media (max-width: 600px){ .hero-title{ font-size: clamp(28px, 8vw, 46px); } }

.subtitle{
  margin: 0 0 30px 0;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 900px){ .subtitle{ font-size: 14px; } }
@media (max-width: 600px){ .subtitle{ font-size: 13px; } }

/* Typing cursor style */
.typing-cursor{
  display: inline-block;
  width: 0;
  border-right: 2px solid #fff;
  margin-left: 2px;
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink{ 50%{ border-color: transparent; } }

/* Social icons */
.socials{
  display: flex;
  gap: 14px;
  margin-top: 28px;
}
.icon{
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #D9D9D9;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative; /* for liquid bg */
  overflow: hidden;   /* hide overflow */
}
.icon:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

/* Hero socials: solid black inner circle with glyph on top (override liquid) */
.socials .icon{
  background: #D9D9D9;      /* outer square */
  color: #000;              /* glyph color */
  font-size: 22px;
  font-weight: 900;
}
/* Use DOM layers (bg1/bg2) for GSAP control instead of pseudo-elements */
.socials .icon{ z-index: 1; }
.socials .icon .bg1,
.socials .icon .bg2{
  position: absolute;
  width: 180%;
  height: 180%;
  top: -60%;
  left: -40%;
  z-index: 0; /* behind glyph */
  pointer-events: none;
}
.socials .icon .bg1{
  border-radius: 45%;
  background: rgba(20,20,20,1);
  box-shadow: 0 0 8px 4px #D9D9D9, inset 0 0 4px #D9D9D9;
  opacity: .14;
}
.socials .icon .bg2{
  border-radius: 40%;
  box-shadow: 0 0 8px rgba(26,26,26,.5), inset 0 0 4px rgba(26,26,26,.5);
  background: rgba(26,26,26,.4);
  opacity: .10;
}
/* Make inline SVG icons bigger and black */
.socials .icon svg{ position: relative; z-index: 1; display: block; width: 28px; height: 28px; }
.socials .icon svg path{ fill: #000; }
/* Showcase: laptop with overlaid code screen */
.showcase{ padding: 20px 0; position: relative; overflow: hidden; min-height: 100vh; }
.showcase::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-left); /* inverse light panel from the right */
  /* angled edge coming from the right side (mirror of hero) */
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 50% 100%);
  z-index: 0; /* behind content, above galaxy bg */
  /* opacity: .85; */
}
.laptop{ 
  position: relative; 
  width: min(1000px, 95%); 
  margin: 0 auto; 
}
.laptop-img{ 
  width: 100%; 
  height: auto; 
  display: block; 
}
.laptop-screen{
  position: absolute;
  left: var(--screen-left);
  top: var(--screen-top);
  width: var(--screen-width);
  height: var(--screen-height);
  background: #000000;
  color: #f8f8f2;
  /* border: 1px solid #1e1f1c; */
  border-radius: 6px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.45;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.35);
}

/* Showcase layout mirrors hero-inner */
.showcase .container{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 40px;
  padding-top: 30px;   /* space for header */
  padding-bottom: 30px;
  min-height: 100vh;
}
@media (max-width: 600px){ .showcase .container{ padding-top: 90px; } }
.showcase .star-field{ position: absolute; inset: 0; perspective: 600px; -webkit-perspective: 600px; z-index: -2; }
@keyframes sf-fly-by-1 { from { transform: translateZ(-600px); opacity: .5; } to { transform: translateZ(0); opacity: .5; } }
@keyframes sf-fly-by-2 { from { transform: translateZ(-1200px); opacity: .5; } to { transform: translateZ(-600px); opacity: .5; } }
@keyframes sf-fly-by-3 { from { transform: translateZ(-1800px); opacity: .5; } to { transform: translateZ(-1200px); opacity: .5; } }
.showcase .star-field .layer{
  box-shadow: -411px -476px #cccccc, 777px -407px #d4d4d4, -387px -477px #fcfcfc, -91px -235px #d4d4d4, 491px -460px #f7f7f7, 892px -128px #f7f7f7, 758px -277px #ededed, 596px 378px #cccccc, 647px 423px whitesmoke, 183px 389px #c7c7c7, 524px -237px #f0f0f0, 679px -535px #e3e3e3, 158px 399px #ededed, 157px 249px #ededed, 81px -450px #ebebeb, 719px -360px #c2c2c2, -499px 473px #e8e8e8, -158px -349px #d4d4d4, 870px -134px #cfcfcf, 446px 404px #c2c2c2, 440px 490px #d4d4d4, 414px 507px #e6e6e6, -12px 246px #fcfcfc, -384px 369px #e3e3e3, 641px -413px #fcfcfc, 822px 516px #dbdbdb, 449px 132px #c2c2c2, 727px 146px #f7f7f7, -315px -488px #e6e6e6, 952px -70px #e3e3e3, -869px -29px #dbdbdb, 502px 80px #dedede, 764px 342px #e0e0e0, -150px -380px #dbdbdb, 654px -426px #e3e3e3, -325px -263px #c2c2c2, 755px -447px #c7c7c7, 729px -177px #c2c2c2, -682px -391px #e6e6e6, 554px -176px #ededed, -85px -428px #d9d9d9, 714px 55px #e8e8e8, 359px -285px #cfcfcf, -362px -508px #dedede, 468px -265px #fcfcfc, 74px -500px #c7c7c7, -514px 383px #dbdbdb, 730px -92px #cfcfcf, -112px 287px #c9c9c9, -853px 79px #d6d6d6, 828px 475px #d6d6d6, -681px 13px #fafafa, -176px 209px #f0f0f0, 758px 457px #fafafa, -383px -454px #ededed, 813px 179px #d1d1d1, 608px 98px whitesmoke, -860px -65px #c4c4c4, -572px 272px #f7f7f7, 459px 533px #fcfcfc, 624px -481px #e6e6e6, 790px 477px #dedede, 731px -403px #ededed, 70px -534px #cccccc, -23px 510px #cfcfcf, -652px -237px whitesmoke, -690px 367px #d1d1d1, 810px 536px #d1d1d1, 774px 293px #c9c9c9, -362px 97px #c2c2c2, 563px 47px #dedede, 313px 475px #e0e0e0, 839px -491px #e3e3e3, -217px 377px #d4d4d4, -581px 239px #c2c2c2, -857px 72px #cccccc, -23px 340px #dedede, -837px 246px white, 170px -502px #cfcfcf, 822px -443px #e0e0e0, 795px 497px #e0e0e0, -814px -337px #cfcfcf, 206px -339px #f2f2f2, -779px 108px #e6e6e6, 808px 2px #d4d4d4, 665px 41px #d4d4d4, -564px 64px #cccccc, -380px 74px #cfcfcf, -369px -60px #f7f7f7, 47px -495px #e3e3e3, -383px 368px #f7f7f7, 419px 288px #d1d1d1, -598px -50px #c2c2c2, -833px 187px #c4c4c4, 378px 325px whitesmoke, -703px 375px #d6d6d6, 392px 520px #d9d9d9, -492px -60px #c4c4c4, 759px 288px #ebebeb, 98px -412px #c4c4c4, -911px -277px #c9c9c9;
  transform-style: preserve-3d; position: absolute; top: 50%; left: 50%; height: 4px; width: 4px; border-radius: 2px;
}
.showcase .star-field .layer:nth-child(1){ animation: sf-fly-by-1 5s linear infinite; }
.showcase .star-field .layer:nth-child(2){ animation: sf-fly-by-2 5s linear infinite; }
.showcase .star-field .layer:nth-child(3){ animation: sf-fly-by-3 5s linear infinite; }

/* CTA column inside grid (no absolute positioning) */
.showcase-cta{
  position: static;
  transform: none;
  justify-self: end; /* push to right side */
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
  align-items: flex-end; /* align content to right */
  text-align: right;
  padding-right: 12%;
  max-width: 550px;
}
.animated-btn{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  background-color: #000; /* black to match showcase bg */
  border: 1px solid #fff; /* white border */
  border-radius: 999px; /* fully rounded */
  padding: 12px 28px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
  user-select: none;
  outline: none;
  position: relative;
  overflow: hidden; /* hide star overflow */
}
.animated-btn:hover{ background-color: #0b0b0b; }

/* Animated drawing border (starts bottom-left) */
.animated-btn::before{
  content: "";
  position: absolute;
  inset: -1px; /* sit just outside the static border */
  border-radius: inherit;
  padding: 1.5px; /* border thickness */
  --start: 225deg; /* bottom-left corner */
  --p: 0%;
  background: conic-gradient(from var(--start), #ffffff var(--p), transparent 0) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0) padding-box;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0) padding-box;
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.animated-btn:hover::before, .animated-btn:focus-visible::before{
  animation: btn-ring 1.2s linear forwards;
}
@keyframes btn-ring{ to{ --p: 100%; } }

/* subtle white glow on hover for a modern look */
.animated-btn:hover{ 
  box-shadow: 0 8px 18px rgba(0,0,0,0.28), 0 0 0 2px rgba(255,255,255,0.08) inset; 
}

/* Star field inside button */
.animated-btn .btn-stars{ 
  position: absolute; 
  inset: 0; 
  perspective: 600px; 
  z-index: 1; 
}
.animated-btn .btn-label{ 
  position: relative; 
  z-index: 2; 
}
.animated-btn .btn-stars .layer{
  box-shadow: -111px -76px #cccccc, 177px -107px #d4d4d4, -187px -177px #fcfcfc, -61px -135px #d4d4d4, 191px -160px #f7f7f7, 292px -28px #f7f7f7, 258px -77px #ededed, 196px 78px #cccccc, 247px 123px whitesmoke, 83px 89px #c7c7c7, 224px -137px #f0f0f0, 279px -235px #e3e3e3, 58px 99px #ededed, 57px 49px #ededed, 41px -150px #ebebeb, 219px -160px #c2c2c2;
  transform-style: preserve-3d;
  position: absolute; 
  top: 50%; 
  left: 50%; 
  height: 3px; 
  width: 3px; 
  border-radius: 2px;
}
.animated-btn .btn-stars .layer:nth-child(1){ 
  animation: sf-fly-by-1 5s linear infinite; 
}
.animated-btn .btn-stars .layer:nth-child(2){ 
  animation: sf-fly-by-2 5s linear infinite; 
}
.animated-btn .btn-stars .layer:nth-child(3){ 
  animation: sf-fly-by-3 5s linear infinite; 
}

/* Responsive adjustments for CTA placement */
@media (max-width: 900px){
  .showcase .container{ 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 16px; 
    padding-top: 100px; 
  }
  .showcase-cta{ 
    margin-top: 24px; 
    align-items: center; 
    text-align: center; 
    justify-self: center; 
  }
}

/* About block in showcase right column */
.about-heading{
  margin: 0;
  font-size: clamp(28px, 4vw, 80px);
  font-weight: 900;
  color: var(--text);
}
.about-summary{
  margin: 10px 0 18px 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
}

/* Liquid Button Background Animation (from CodePen, adapted) */
.liquid-btn{ 
  position: relative; 
  overflow: hidden; 
  border-radius: inherit; 
  isolation: isolate; 
}
.liquid-btn .liquid{ 
  position: absolute; 
  top: -60px; 
  left: 0; 
  width: 100%; 
  height: 200px; 
  background: #D9D9D9; 
  box-shadow: inset 0 0 50px rgba(0,0,0,0.6); 
  z-index: 0; 
  transition: top .6s ease; 
}
.liquid-btn .liquid::after, .liquid-btn .liquid::before{ 
  position: absolute; 
  content: ""; 
  width: 200%; 
  height: 200%; 
  top: 0; 
  left: 0; 
  transform: translate(-25%, -75%); 
}
.liquid-btn .liquid::after{ 
  border-radius: 45%; 
  background: rgba(20,20,20,1); 
  box-shadow: 0 0 10px 5px #D9D9D9, inset 0 0 5px #D9D9D9; 
  animation: liquid-rotate-1 5s linear infinite; 
  opacity: .8; 
}
.liquid-btn .liquid::before{ 
  border-radius: 40%; 
  box-shadow: 0 0 10px rgba(26,26,26,.5), inset 0 0 5px rgba(26,26,26,.5); 
  background: rgba(26,26,26,.5); 
  animation: liquid-rotate-2 7s linear infinite; 
}
.liquid-btn:hover .liquid{ top: -120px; }
.liquid-btn:hover{ 
  box-shadow: 0 0 5px #D9D9D9, inset 0 0 5px #D9D9D9; 
  transition-delay: .2s; 
}

/* ==========================
   Skills Section
   ========================== */
.skills{ 
  position: relative; 
  padding: 60px 0; 
  background: #D9D9D9; 
}
.skills .container{ 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 28px; 
}

/* Boxed title */
.section-title{ display: inline-block; margin: 0; }
.section-title span{
  display: inline-block;
  padding: 10px 32px;
  border: 2px solid #111;
  border-radius: 10px;
  background: #fff;
  letter-spacing: 3px;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Eyebrow subtitle */
.section-eyebrow{
  margin: 6px 0 10px 0;
  font-weight: 700;
  letter-spacing: 2px;
  color: #000;
  text-transform: uppercase;
}

/* Grid */
.skills-grid{
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 28px;
  align-items: start;
}
.skill-item{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  color: #111;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  opacity: 0;                     /* entrance animation */
  transform: translateY(8px);
  animation: skills-fade-up .45s ease-out forwards;
  will-change: transform;
  position: relative;            /* for liquid bg */
  overflow: hidden;              /* hide overflow of liquid */
}
.skill-item:hover{ 
  transform: translateY(-4px); 
  box-shadow: 0 14px 32px rgba(0,0,0,.14); 
}
.skill-item img{ 
  width: 56px; 
  height: 56px; 
  object-fit: contain; 
  filter: saturate(.85) drop-shadow(0 6px 14px rgba(0,0,0,.10)); 
  transition: filter .18s ease, transform .18s ease; 
}
@media (max-width: 900px){ .skill-item{ padding: 16px 14px; } .skill-item img{ width: 48px; height: 48px; } }
@media (max-width: 600px){ .skill-item{ padding: 14px 12px; } .skill-item img{ width: 44px; height: 44px; } }
.skill-item:hover img{ 
  filter: saturate(1.15) drop-shadow(0 10px 18px rgba(0,0,0,.14)); 
  transform: translateY(-2px) scale(1.06) rotate(-3deg); 
  animation: icon-tilt .6s ease; 
}
.skill-item span{ font-size: 13px; opacity: .75; text-transform: none; }

/* Liquid background behind skill icons (adapted from .liquid-btn) */
.skill-item::before, .skill-item::after{
  content: "";
  position: absolute;
  width: 220%;
  height: 220%;
  top: -70%;
  left: -60%;
  z-index: 0; /* behind content */
}
.skill-item::before{
  border-radius: 45%;
  background: rgba(20,20,20,1);
  box-shadow: 0 0 10px 5px #D9D9D9, inset 0 0 5px #D9D9D9;
  animation: liquid-rotate-1 6s linear infinite;
  opacity: .10; /* subtle on white card */
}
.skill-item::after{
  border-radius: 40%;
  box-shadow: 0 0 10px rgba(26,26,26,.5), inset 0 0 5px rgba(26,26,26,.5);
  background: rgba(26,26,26,.4);
  animation: liquid-rotate-2 8s linear infinite;
  opacity: .08;
}

/* Keep icon and label above the animated background */
.skill-item img, .skill-item span{ position: relative; z-index: 1; }

/* Staggered reveal delays */
.skills-grid .skill-item:nth-child(1){ 
  animation-delay: .00s; 
}
.skills-grid .skill-item:nth-child(2){ 
  animation-delay: .03s; 
}
.skills-grid .skill-item:nth-child(3){ 
  animation-delay: .06s; 
}
.skills-grid .skill-item:nth-child(4){ 
  animation-delay: .09s; 
}
.skills-grid .skill-item:nth-child(5){ 
  animation-delay: .12s; 
}
.skills-grid .skill-item:nth-child(6){ 
  animation-delay: .15s; 
}
.skills-grid .skill-item:nth-child(7){ 
  animation-delay: .18s; 
}
.skills-grid .skill-item:nth-child(8){ 
  animation-delay: .21s; 
}
.skills-grid .skill-item:nth-child(9){ 
  animation-delay: .24s; 
}
.skills-grid .skill-item:nth-child(10){ 
  animation-delay: .27s; 
}
.skills-grid .skill-item:nth-child(11){ 
  animation-delay: .30s; 
}
.skills-grid .skill-item:nth-child(12){ 
  animation-delay: .33s; 
}
.skills-grid .skill-item:nth-child(13){ 
  animation-delay: .36s; 
}
.skills-grid .skill-item:nth-child(14){ 
  animation-delay: .39s; 
}
.skills-grid .skill-item:nth-child(15){ 
  animation-delay: .42s; 
}
.skills-grid .skill-item:nth-child(16){ 
  animation-delay: .45s; 
}
.skills-grid .skill-item:nth-child(17){ 
  animation-delay: .48s; 
}
.skills-grid .skill-item:nth-child(18){ 
  animation-delay: .51s; 
}
.skills-grid .skill-item:nth-child(19){ 
  animation-delay: .54s; 
}
.skills-grid .skill-item:nth-child(20){ 
  animation-delay: .57s; 
}

/* Keyframes */
@keyframes skills-fade-up{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes icon-tilt{
  0%{ transform: translateY(-2px) scale(1.06) rotate(-3deg); }
  50%{ transform: translateY(-3px) scale(1.08) rotate(2deg); }
  100%{ transform: translateY(-2px) scale(1.06) rotate(0deg); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .skill-item{ animation: none; opacity: 1; transform: none; }
  .skill-item img{ transition: none; }
}

@media (max-width: 900px){
  .skills{ padding: 40px 0; }
  .skills-grid{ 
    grid-template-columns: repeat(3, minmax(110px, 1fr)); 
    gap: 22px; 
  }
}
@media (max-width: 600px){
  .skills-grid{ 
    grid-template-columns: repeat(2, minmax(120px, 1fr)); 
    gap: 18px; 
  }
}

/* Wider screens: more columns */
@media (min-width: 1280px){
  .skills-grid{ 
    grid-template-columns: repeat(6, minmax(140px, 1fr)); 
  }
}

/* Certifications section: center icon and label inside each card */
#certifications .skills-grid{ 
  /* justify-items: center;  */
  margin-left: 12%; 
}
@media (max-width: 900px){ #certifications .skills-grid{ margin-left: 0; } }
#certifications .skill-item{ 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
}
#certifications .skill-item span{ 
  text-align: center; 
}

/* ==========================
   Experience Section
   ========================== */
.experience{
  position: relative;
  padding: 60px 0;
  background: var(--bg-left); /* keep light like skills for site theme */
}
.experience .container{
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center; /* center section content */
}
.exp-list{ 
  display: flex; 
  flex-direction: column; 
  gap: 64px; 
  width: 100%;
}
.exp-list::before{
  /* vertical timeline line */
  content: "";
  position: absolute;
  left: calc(50% - var(--maxw)/2 + 24px); /* align with container left padding */
  /* Fallback: place relative to container padding */
}
.experience { position: relative; }
.experience .container { position: relative; }
.experience .container::before{
  /* vertical line inside container so it stays aligned */
  display: none; /* hidden to keep centered layout clean */
}
.exp-item{
  display: grid;
  grid-template-columns: 320px 1fr; /* left meta + right details */
  gap: 40px;
  align-items: start;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
  max-width: 1080px;         /* center block width */
  margin: 0 auto;            /* center the grid */
}
.exp-item.in-view{
  opacity: 1;
  transform: none;
}
.exp-left{
  position: relative;
  padding-left: 0; /* centered layout */
  color: var(--text);
  text-align: center;
}
.exp-dot{
  display: none; /* hide dot in centered layout */
}
.exp-period{
  margin: 0 0 6px 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: .4px;
  text-align: center;
}
.exp-role{
  margin: 0;
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 22px);
  text-align: center;
}
.exp-company{
  margin: 4px 0 0 0;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}
.exp-details{
  margin: 0 auto;
  padding-left: 0;
  display: grid;
  gap: 10px;
  color: var(--text);
  /* list-style-position: inside;
  text-align: center; */
}
.exp-details li{
  line-height: 1.6;
}

/* Staggered reveal */
.exp-item:nth-child(1){ transition-delay: .0s; }
.exp-item:nth-child(2){ transition-delay: .08s; }
.exp-item:nth-child(3){ transition-delay: .16s; }
.exp-item:nth-child(4){ transition-delay: .24s; }

@keyframes exp-pulse{
  0%,100%{ box-shadow: 0 0 0 4px rgba(0,0,0,.15), 0 0 0 rgba(0,0,0,0); }
  50%{ box-shadow: 0 0 0 4px rgba(0,0,0,.15), 0 0 18px rgba(0,0,0,.25); }
}

.experience .about-heading{ text-align: center; }
.exp-list::before{ display: none; }


@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero-visual{ max-width: 520px; margin: 16px auto 0; }
  .exp-item{ grid-template-columns: 1fr; gap: 14px; }
  .exp-left{ padding-left: 0; }
  .experience .container::before{ left: 12px; }
}

@keyframes liquid-rotate-1{ 
  0%{ transform: translate(-25%, -75%) rotate(0); } 
  100%{ transform: translate(-25%, -75%) rotate(360deg); } 
}
@keyframes liquid-rotate-2{ 
  0%{ transform: translate(-25%, -75%) rotate(0); } 
  100%{ transform: translate(-25%, -75%) rotate(360deg); } 
}

/* ==========================
   Portfolio Section
   ========================== */
.portfolio{
  padding: 60px 0;
  background: var(--bg-right, #f7f8fb);
}
.portfolio .container{
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.portfolio .about-heading{ text-align: center; }
.portfolio .about-summary{ text-align: center; max-width: 820px; }

.portfolio-embed{
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 16 / 9;
  background: #00000010;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.portfolio-iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (max-width: 768px){
  .portfolio{ padding: 44px 0; }
  .portfolio-embed{ border-radius: 10px; }
}

/* Portfolio Slider (local) */
.portfolio-slider{
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  background: var(--card, #fff);
}
.ps-viewport{
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.ps-track{
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform: translateX(0);
}
.ps-slide{
  position: relative;
  min-width: 100%;
  height: auto;
}
.ps-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
}
.ps-prev{ left: 12px; }
.ps-next{ right: 12px; }
.ps-nav:hover{ background: rgba(0,0,0,0.6); }

.ps-dots{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.ps-dots button{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}
.ps-dots button[aria-selected="true"], .ps-dots button.active{
  background: #fff;
}

@media (max-width: 768px){
  .ps-nav{ width: 46px; height: 46px; } /* larger tap target */
  .ps-dots button{ width: 10px; height: 10px; } /* slightly larger dots */
}

/* Portfolio Card Slider (PCS - namespaced) */
.pcs-root{ width: 100%; }
.pcs-container{
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 720px; /* adapt from 800x400 */
  margin: 0 auto;
  background: #f5f5f5;
  box-shadow: 0 30px 50px #dbdbdb;
  border-radius: 20px;
  overflow: hidden;
}
.pcs-slide{ position: relative; height: 100%; border-radius: 20px; }
.pcs-item{
  width: 200px;
  height: 250px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
  background-position: 50% 50%;
  background-size: cover;
  display: inline-block;
  transition: all 0.5s;
}

/* Dark overlay over background image for readability */
.pcs-item::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* subtle top gradient to stronger bottom for contrast */
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  z-index: 1;
}

/* First two take the full canvas */
.pcs-slide .pcs-item:nth-child(1),
.pcs-slide .pcs-item:nth-child(2){
  top: 0; left: 0; transform: translate(0, 0);
  width: 100%; height: 100%; border-radius: 20px;
}

/* Stacked previews on the right */
.pcs-slide .pcs-item:nth-child(3){ left: 50%; }
.pcs-slide .pcs-item:nth-child(4){ left: calc(50% + 220px); }
.pcs-slide .pcs-item:nth-child(5){ left: calc(50% + 440px); }
.pcs-slide .pcs-item:nth-child(n + 6){ left: calc(50% + 660px); opacity: 0; }

.pcs-content{
  position: absolute;
  top: 50%;
  left: 100px;
  width: 480px; /* increased text width */
  text-align: left;
  color: #fff; /* portfolio slider text set to white */
  transform: translate(0, -50%);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: none;
  /* readability backdrop */
  /* background: rgba(0,0,0,0.35); */
  padding: 14px 16px;
  border-radius: 12px;
  /* box-shadow: 0 8px 24px rgba(0,0,0,0.35); */
  backdrop-filter: blur(2px);
  z-index: 2; /* ensure above overlay */
}
.pcs-slide .pcs-item:nth-child(2) .pcs-content{ display: block; }
.pcs-name{
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0;
  animation: pcs-animate 1s ease-in-out 1 forwards;
}
@media (max-width: 900px){ .pcs-name{ font-size: 30px; } }
@media (max-width: 600px){ .pcs-name{ font-size: 24px; } }
.pcs-des{
  margin-top: 10px;
  margin-bottom: 20px;
  opacity: 0;
  animation: pcs-animate 1s ease-in-out .3s 1 forwards;
}
@media (max-width: 900px){ .pcs-des{ font-size: 14px; } }
@media (max-width: 600px){ .pcs-des{ font-size: 13px; } }
.pcs-seeMore button{
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  opacity: 0;
  border-radius: 10px;
  background-color: rgba(255,255,255,.67);
  transition: all .5s;
  animation: pcs-animate 1s ease-in-out .6s 1 forwards;
}
.pcs-seeMore button:hover{ background-color: #fff; }

@keyframes pcs-animate{
  from{ opacity: 0; transform: translate(0, 100px); filter: blur(33px); }
  to{ opacity: 1; transform: translate(0); filter: blur(0); }
}

.pcs-controls{
  position: absolute;
  display: flex;
  gap: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  align-items: center;
  text-align: center;
  bottom: 20px;
}
.pcs-controls button{
  width: 40px;
  height: 35px;
  border-radius: 8px;
  border: 2px solid #000000bd;
  cursor: pointer;
  margin: 0 5px;
  transition: .3s;
  background: rgba(255,255,255,.58);
}
.pcs-controls button:hover{
  color: #000;
  border-color: #ffffffbd;
  transform: scale(1.1);
}
.pcs-controls button:focus{
  transform: scale(1.1);
  background: #fff;
  border-color: #ffffffbd;
}
.pcs-controls .pcs-next{ padding-left: 3px; }
.pcs-controls .pcs-prev{ padding-right: 3px; }

@media (max-width: 900px){
  .pcs-container{ height: 360px; }
  .pcs-content{ left: 60px; width: 340px; }
}
@media (max-width: 600px){
  .pcs-container{ height: 300px; }
  .pcs-content{ left: 24px; width: calc(100% - 48px); }
}

/* Utility color helpers */
.color-white{ color: #fff !important; }

/* Showcase liquid background overlay */
.showcase { position: relative; }
.showcase .container{ position: relative; z-index: 2; }
.showcase .liquid-bg{
  position: absolute;
  inset: 0;
  background: radial-gradient(150px 150px at 20% 20%, rgba(255,255,255,.06), transparent 60%),
              radial-gradient(200px 200px at 80% 60%, rgba(255,255,255,.04), transparent 60%);
  z-index: 1;
}
.showcase .liquid-bg::before{
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: 0;
  left: 0;
  transform: translate(-25%, -75%);
}
.showcase .liquid-bg::after{
  border-radius: 45%; 
  background: rgba(20,20,20,1);
  box-shadow: 0 0 10px 5px #D9D9D9, inset 0 0 5px #D9D9D9;
  animation: liquid-rotate-1 6s linear infinite; opacity: .6;
}
.showcase .liquid-bg::before{
  border-radius: 40%; 
  box-shadow: 0 0 10px rgba(26,26,26,.5), inset 0 0 5px rgba(26,26,26,.5);
  background: rgba(26,26,26,.4); 
  animation: liquid-rotate-2 8s linear infinite;
}
.showcase:hover .liquid-bg{ top: -120px; }

/* Slight adjustments on large screens */
@media (min-width: 1440px){
  :root{
    --screen-left: 9%;
    --screen-top: 2.5%;
    --screen-width: 82%;
    --screen-height: 88.5%;
  }
}

/* Right visual */
.hero-visual{
  display: flex;
  align-items: end;
  justify-content: flex-end;
}
.profile-img{
  width: min(1100px, 120%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
  transform: translateY(10%);
  margin-top: -50%;
}

/* Responsive */
@media (max-width: 1024px){
  .nav{ grid-template-columns: 120px 1fr 140px; }
  .nav-links{ gap: 28px; }
  .hero::before{ clip-path: polygon(0 0, 70% 0, 58% 100%, 0 100%); }
}

/* Large desktop: widen header container and tune spacing to match reference */
@media (min-width: 1440px){
  :root{ --maxw: 1760px; }
  .nav{ grid-template-columns: 50% 1fr 14%; }
  .nav-links{ gap: 56px; }
  .btn{ padding: 12px 26px; }
}

/* ==========================
   Footer
   ========================== */
.site-footer{
  background: #0a0a0a;
  color: #fff;
  border-top: 1px solid #1a1a1a;
}
.site-footer .footer-centered{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px 0 26px;
}

/* Back to top */
.footer-top{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
}
.footer-top .arrow{ font-size: 12px; line-height: 1; opacity: .9; }
.footer-top:hover{ color: #fff; }

/* Social icons row */
.footer-socials{ display: flex; gap: 14px; margin-top: 8px; }
.social-btn{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 6px;
  text-decoration: none;
  transition: transform .15s ease, border-color .2s ease, background-color .2s ease;
}
.social-btn:hover{ transform: translateY(-2px); border-color: #fff; background: rgba(255,255,255,.06); }

.footer-copy{ margin: 6px 0 0 0; color: rgba(255,255,255,.8); font-size: 12px; }
.site-footer .footer-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: 40px 0;
}
.footer-brand{ max-width: 420px; }
.footer-logo{ height: 56px; width: auto; display: block; filter: none; }
.footer-tagline{ margin: 12px 0 0 0; color: rgba(255,255,255,.75); }

.footer-nav{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}
.footer-nav a{
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 700;
}
.footer-nav a:hover{ color: #fff; text-decoration: underline; }

.footer-contact p{ margin: 6px 0; }
.footer-contact a{ color: #fff; text-decoration: none; }
.footer-contact a:hover{ text-decoration: underline; }

.footer-bottom{ border-top: 1px solid #111; background: #000; }
.footer-bottom .container{ padding: 14px 0; text-align: center; }
.footer-bottom p{ margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }

@media (max-width: 800px){
  .site-footer .footer-inner{ justify-content: center; text-align: center; }
  .footer-nav{ align-items: center; }
  .footer-brand{ max-width: none; }
}

@media (max-width: 800px){
  .nav-toggle{ display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  .nav-links{ display: none; } /* hidden by default on mobile */
  .nav-links.open{ 
    display: flex; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: rgba(0,0,0,0.96); 
    backdrop-filter: blur(6px);
    padding: 14px 5%; 
    flex-direction: column; 
    gap: 14px; 
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open a{ 
    font-size: 18px; 
    padding: 8px 4px; 
    border-radius: 8px; 
  }
  /* animate hamburger to X when expanded */
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .hero-inner{
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .hero::before{
    /* make gray panel cover top half diagonally */
    clip-path: polygon(0 0, 100% 0, 70% 60%, 0 60%);
  }
  .hero-copy{ max-width: none; }
  .hero-visual{
    justify-content: flex-end;
  }
  .profile-img{
    width: 68%;
    transform: translateY(0);
    margin-top: 0; /* reset large-screen negative margin to avoid clipping on small screens */
  }
}

/* Small helpers for anchor targets later */
section[id]{ scroll-margin-top: 90px; }

/* ==========================
   Contact (Minimal Underlined Form)
   ========================== */
.contact{
  position: relative;
  padding: 60px 0 70px;
  background: var(--bg-left);
  overflow: hidden; /* allow animated bg to stay clipped to section */
}
.contact .container{ position: relative; z-index: 1; }

/* Animated liquid background over the entire contact section */
.contact::before, .contact::after{
  content: "";
  position: absolute;
  inset: -20% -10%; /* extend beyond bounds for smooth edges */
  z-index: 0;       /* behind content */
  filter: blur(22px);
}
.contact::before{
  border-radius: 45%;
  background: rgba(20,20,20,0.10);
  box-shadow: 0 0 10px 5px rgba(217,217,217,0.22), inset 0 0 5px rgba(217,217,217,0.22);
  animation: liquid-rotate-1 26s linear infinite;
}
.contact::after{
  border-radius: 40%;
  background: rgba(26,26,26,0.08);
  box-shadow: 0 0 10px rgba(26,26,26,.22), inset 0 0 5px rgba(26,26,26,.22);
  animation: liquid-rotate-2 34s linear infinite;
}
.contact .about-heading{ text-align: center; color: var(--text); }
.contact .about-summary{
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cf-divider{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0 24px;
}
.cf-divider span{
  display: inline-block;
  width: 34px;
  height: 2px;
  background: #111;
}
.cf{ 
  max-width: 720px; 
  margin: 0 auto; 
  position: relative; 
  border-radius: 12px; 
}
.cf-field{ margin: 18px 0; }
.cf-input{
  width: 100%;
  padding: 14px 4px 12px;
  background: transparent;
  border: none;
  border-bottom: 3px solid #111;
  color: #111;
  font-weight: 700;
  font-size: 14px;
}
.cf-input::placeholder{
  color: #111;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cf-input:focus{ outline: none; border-bottom-color: #000; }
.cf-textarea{ min-height: 140px; resize: vertical; }

.cf-submit-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}
.cf-submit-row .line{ width: 36px; height: 2px; background: #111; display: inline-block; }
.cf-submit:not(.btn){
  background: transparent;
  border: none;
  color: #111;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 10px;
}
.cf-submit:not(.btn):hover{ opacity: .85; }

@media (max-width: 600px){
  .contact{ padding: 44px 0 54px; }
  .cf{ max-width: 92%; }
  .cf-input{ font-size: 13px; }
  .cf-submit-row{ gap: 12px; }
}