:root{
  --bg:#060010;
  --bg2:#11001b;
  --txt:#ffffff;
  --muted:#cfd3ff;
  --brand:#bf9d33;
  --brand2:#8c7325;
  --stroke:rgba(255,255,255,.08);
  --shadow:0 8px 32px rgba(0,0,0,.35);
  --radius:18px;
  --radius-sm:12px;
  --container:1100px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--txt);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
}

.page-wrap{
  min-height:100vh;
  padding-top:120px;
}

.site-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:1000;
  background:rgba(6,0,16,.85);
  border-bottom:1px solid var(--stroke);
  backdrop-filter:blur(18px);
  transform:translateY(0);
  transition:transform .4s ease, opacity .4s ease, background .3s ease;
}

.site-header.nav-hidden{
  transform:translateY(-100%);
  opacity:0;
  pointer-events:none;
}

.site-header.is-scrolled{
  background:rgba(6,0,16,.95);
  box-shadow:0 12px 32px rgba(0,0,0,.45);
}

.nav-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 16px;
}

.nav-brand{
  font-weight:700;
  letter-spacing:.02em;
  font-size:16px;
  text-transform:uppercase;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav-links a{
  color:var(--txt);
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid transparent;
  transition:color .2s ease, border-color .2s ease, background .2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible{
  border-color:var(--stroke);
  background:rgba(255,255,255,.05);
}

.nav-link-external{
  border-color:var(--stroke);
}

@media (max-width:720px){
  .nav-bar{
    flex-direction:column;
    align-items:flex-start;
  }

  .nav-links{
    width:100%;
    justify-content:flex-start;
  }
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 16px;
}

.section{
  padding:20px 0;
  scroll-margin-top:120px;
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card-padded{
  padding:22px;
}

.chip{
  display:inline-block;
  padding:6px 12px;
  border:1px solid var(--stroke);
  border-radius:999px;
  font-size:13px;
  color:#e9e8ff;
}

.btn{
  display:inline-block;
  padding:14px 18px;
  border-radius:14px;
  text-decoration:none;
  font-weight:600;
}

.btn-primary{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
}

.btn-ghost{
  border:1px solid var(--stroke);
  color:#fff;
}

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

.g-2{
  grid-template-columns:1fr;
}

.g-3{
  grid-template-columns:1fr;
}

.muted{
  color:#d9ddffb0;
}

.h2{
  font-size:clamp(24px,4vw,36px);
  line-height:1.2;
  font-weight:800;
}

.h3{
  font-size:clamp(18px,2.6vw,20px);
  font-weight:700;
}

.hero-grad{
  background:radial-gradient(1200px 600px at 20% -10%, rgba(191,157,51,.35), transparent 60%),
             radial-gradient(1000px 500px at 100% 0%, rgba(140,115,37,.25), transparent 60%);
}

.section.hero-grad{
  padding-top:0;
}

.media{
  aspect-ratio:16/10;
  background:var(--bg2);
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  display:grid;
  place-items:center;
  color:#ffffff55;
}

.media img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.badges-spaced{
  margin-top:14px;
}

.hero-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  gap:4px;
  min-height:70vh;
  padding-top:0;
  position:relative;
}

.hero-title{
  font-size:clamp(34px,7vw,68px);
  line-height:1;
  font-weight:900;
  letter-spacing:-0.02em;
  margin-bottom:4px;
}

.hero-title .wave{
  margin-left:8px;
  font-size:0.9em;
}

.hero-subtitle{
  font-size:clamp(22px,4vw,34px);
  font-weight:600;
  color:#ffffffcc;
  margin-bottom:2px;
}

.hero-text{
  max-width:640px;
  font-size:clamp(18px,3vw,24px);
  color:#e0e3ffcc;
  margin-top:0;
}

.highlight{
  color:var(--brand);
}

.scroll-label{
  margin-top:10px;
  font-size:16px;
  color:#ffffff99;
  text-decoration:none;
}

.chatbot-card{
  margin:28px 0 0;
  padding:20px 20px 18px;
  width:100%;
  max-width:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
  text-align:left;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  align-self:stretch;
}

.chat-header{
  display:flex;
  align-items:center;
  gap:12px;
}

.chat-avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  display:grid;
  place-items:center;
  font-weight:700;
  color:#fff;
}

.chat-name{
  font-weight:600;
  font-size:16px;
}

.chat-status{
  font-size:12px;
  color:#8ae6c2;
}

.chat-thread{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:280px;
  padding:6px 0;
  overflow-y:auto;
  scrollbar-width:thin;
}

.chat-thread::-webkit-scrollbar{
  width:6px;
}

.chat-thread::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.15);
  border-radius:999px;
}

.chat-bubble{
  position:relative;
  padding:12px 16px;
  border-radius:16px;
  line-height:1.5;
  max-width:100%;
  font-size:15px;
}

.chat-bubble.incoming{
  background:#181030;
  color:#ffffffd9;
  border:1px solid rgba(255,255,255,.08);
}

.chat-bubble.outgoing{
  align-self:flex-end;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
  box-shadow:0 12px 30px rgba(191,157,51,.18);
}

.chatbot-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.chat-input-row{
  display:flex;
  gap:10px;
  align-items:flex-end;
}

.chat-input{
  resize:none;
  min-height:44px;
  padding:12px 14px;
  overflow:hidden;
}

.chatbot-button{
  flex-shrink:0;
  padding:12px 18px;
}

.chatbot-status{
  min-height:18px;
  font-size:13px;
  color:#9af5c8;
}

.chatbot-status.is-error{
  color:#ffb4b4;
}

.hero-doodle{
  position:absolute;
  bottom:-16px;
  left:50%;
  width:360px;
  height:160px;
  transform:translateX(-50%);
  pointer-events:none;
}

.hero-doodle path{
  stroke:#ffffffdd;
  stroke-width:6;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
}

.hero-doodle-head{
  stroke-width:5;
}

@media (max-width:600px){
  .hero-doodle{
    display:none;
  }
}

.list{
  display:grid;
  gap:12px;
}

.list-compact{
  margin-top:10px;
}

.kpi{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:14px;
  color:#e8e7ff;
}

.kpi b{
  font-size:22px;
}

.work-grid{
  display:grid;
  gap:20px;
  grid-template-columns:1fr;
}

.work-card{
  position:relative;
  overflow:hidden;
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.work-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at top, rgba(191,157,51,.18), rgba(15,3,40,0));
  opacity:0;
  transition:opacity .35s ease;
  pointer-events:none;
}

.work-card .media{
  transition:transform .4s ease, box-shadow .4s ease, filter .4s ease;
}

.work-card .work-content{
  transition:color .35s ease;
}

@media (hover:hover){
  .work-card:hover{
    transform:translateY(-10px);
    box-shadow:0 22px 45px rgba(15,5,45,.55);
    border-color:rgba(191,157,51,.35);
  }

  .work-card:hover::before{
    opacity:1;
  }

  .work-card:hover .media{
    transform:translateY(-6px) scale(1.03);
    box-shadow:0 18px 40px rgba(27,11,68,.55);
    filter:contrast(1.05) saturate(1.1);
  }

  .work-card:hover .work-content{
    color:#fff;
  }

  .work-card:hover .work-content .muted{
    color:#f0f3ff;
  }
}

.work-card img{
  width:100%;
  display:block;
}

.work-content{
  padding:16px;
}

.project-description{
  text-align:justify;
}

.work-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

.service{
  --service-accent:var(--brand);
  --service-accent-soft:rgba(191,157,51,.25);
  --service-accent-strong:rgba(191,157,51,.4);
  position:relative;
  padding:30px 26px 34px;
  display:grid;
  gap:18px;
  border-radius:var(--radius);
  background:linear-gradient(165deg, rgba(255,255,255,.04), rgba(9,2,26,.75));
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  transition:transform .45s ease, box-shadow .45s ease, border-color .45s ease, background .45s ease;
}

.service > *{
  position:relative;
  z-index:1;
}

.service::before{
  content:"";
  position:absolute;
  inset:-60% -25%;
  background:radial-gradient(circle at top, var(--service-accent-soft), transparent 70%);
  opacity:.7;
  transform:rotate(8deg) scale(.92);
  transition:opacity .5s ease, transform .6s ease;
}

.service::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:inherit;
  border:1px solid rgba(255,255,255,.06);
  opacity:0;
  transition:opacity .45s ease;
  pointer-events:none;
}

.service-icon{
  width:64px;
  height:64px;
  border-radius:22px;
  display:grid;
  place-items:center;
  color:var(--service-accent);
  background:linear-gradient(155deg, rgba(255,255,255,.08), rgba(12,4,36,.8));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 38px rgba(10,4,30,.55);
  transition:transform .45s ease, box-shadow .45s ease;
}

.service-icon svg{
  width:32px;
  height:32px;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.service-title{
  margin:0;
}

.service-text{
  margin:0;
  font-size:15px;
  line-height:1.7;
}

.service-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.service-chip{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-size:12px;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.service-automation{
  --service-accent:#3ed7a6;
  --service-accent-soft:rgba(62,215,166,.28);
  --service-accent-strong:rgba(62,215,166,.48);
}

.service-android{
  --service-accent:#7cc4ff;
  --service-accent-soft:rgba(124,196,255,.28);
  --service-accent-strong:rgba(124,196,255,.48);
}

.service-web{
  --service-accent:#f2c977;
  --service-accent-soft:rgba(242,201,119,.28);
  --service-accent-strong:rgba(242,201,119,.48);
}

@media (hover:hover){
  .service:hover{
    transform:translateY(-12px);
    box-shadow:0 26px 55px rgba(12,2,40,.55);
    border-color:var(--service-accent-strong);
    background:linear-gradient(165deg, rgba(255,255,255,.08), rgba(12,3,34,.9));
  }

  .service:hover::before{
    opacity:1;
    transform:rotate(0deg) scale(1.05);
  }

  .service:hover::after{
    opacity:.4;
  }

  .service:hover .service-icon{
    transform:translateY(-6px) scale(1.06);
    box-shadow:0 26px 48px rgba(12,4,36,.65);
  }
}

.skill-card{
  padding:26px;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.about-section{
  display:flex;
  flex-direction:column;
  gap:36px;
}

.about-card{
  padding:42px 38px;
  display:grid;
  gap:24px;
  align-items:center;
}

.about-card-copy{
  display:grid;
  gap:18px;
}

.about-card .badges{
  gap:12px;
}

.about-card-photo{
  justify-self:center;
}

.about-card-photo img{
  width:220px;
  max-width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:50%;
  border:4px solid rgba(255,255,255,.06);
  box-shadow:0 12px 36px rgba(0,0,0,.45);
}

.skills-section{
  gap:24px;
  grid-template-columns:1fr;
}

.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(100px,1fr));
  gap:18px;
}

.skills-grid-compact{
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
}

.skill-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
}

.skill-icon{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  border-radius:20px;
  border:1px solid rgba(140,115,255,.2);
  background:linear-gradient(180deg, rgba(124,84,255,.22), rgba(18,8,48,.88));
  box-shadow:0 12px 32px rgba(5,1,17,.55);
  overflow:hidden;
}

.skill-icon img{
  display:block;
  width:70%;
  height:70%;
  object-fit:contain;
  filter:drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

.skill-label{
  font-weight:600;
  color:#f0f2ff;
  font-size:14px;
}

.progress-group{
  display:grid;
  gap:10px;
}

.progress-label{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#c7c9ffb0;
  font-weight:600;
}

.progress-bar{
  width:100%;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
}

.progress-bar-fill{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
}

.progress-value{
  justify-self:end;
  font-weight:700;
  color:#fff;
  font-size:14px;
}

.education-card{
  padding:24px 24px 28px;
  display:grid;
  gap:22px;
  background:linear-gradient(185deg, rgba(255,255,255,.02), rgba(12,4,34,.78));
  border:1px solid rgba(255,255,255,.05);
}

.education-card .section-title{
  margin-bottom:4px;
}

.education-list{
  display:grid;
  gap:14px;
}

.education-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:16px 18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(170deg, rgba(22,10,48,.75), rgba(11,4,26,.6));
  box-shadow:0 10px 28px rgba(5,2,18,.45);
}

.education-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  background:linear-gradient(155deg, rgba(255,255,255,.08), rgba(25,10,56,.9));
  border:1px solid rgba(255,255,255,.08);
  color:var(--brand);
  box-shadow:0 12px 22px rgba(8,3,24,.45);
}

.education-icon svg{
  width:24px;
  height:24px;
}

.education-content{
  display:grid;
  gap:6px;
}

.education-heading{
  margin:0;
  font-size:clamp(17px,2.2vw,20px);
  font-weight:700;
  color:#fff;
}

.education-status{
  color:var(--brand);
}

.education-subheading{
  margin:0;
  font-size:13px;
  font-weight:600;
  color:#d6d8ff;
}

.education-item .muted{
  margin:0;
  font-size:14px;
  color:#cfd1ff;
}

@media (min-width:992px){
  .about-card{
    padding:56px 60px;
  }
}

.section-title{
  margin-bottom:14px;
}

.section-intro{
  margin-bottom:22px;
}

.cols-2{
  display:grid;
  gap:22px;
  grid-template-columns:1fr;
}

.contact-grid{
  gap:26px;
}

.contact-card{
  display:grid;
  gap:18px;
  align-content:start;
}

.footer{
  border-top:1px solid var(--stroke);
  padding:28px 0;
  color:#ffffff90;
  font-size:14px;
}

.footer-bar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.link-light{
  color:#fff;
}

.contact-form{
  margin-top:14px;
}

.calendly-wrapper{
  width:100%;
  min-height:480px;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(160deg, rgba(255,255,255,.05), rgba(10,3,28,.8));
  box-shadow:0 14px 36px rgba(10,3,30,.45);
}

.calendly-wrapper iframe{
  width:100%;
  height:100%;
  border:0;
}

.form-control{
  width:100%;
  margin-bottom:10px;
  padding:12px 14px;
  border:1px solid var(--stroke);
  background:transparent;
  color:#fff;
  border-radius:var(--radius-sm);
  font:inherit;
}

.form-control::placeholder{
  color:#ffffff80;
}

.form-control:focus{
  outline:1px solid var(--brand);
  outline-offset:2px;
}

.mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

@media (min-width:768px){
  .g-2{
    grid-template-columns:1.2fr .8fr;
  }

  .g-3{
    grid-template-columns:repeat(3,1fr);
  }

  .work-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .about-card{
    grid-template-columns:minmax(0,1.25fr) auto;
  }

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

  .cols-2{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:600px){
  .education-item{
    flex-direction:column;
  }

  .education-icon{
    width:48px;
    height:48px;
  }
}
