/* =========================================================
   Freelancer Sagor Khan — Portfolio Stylesheet
   ========================================================= */

:root{
  /* Colors */
  --bg: #050505;
  --bg-soft: #0a0a0d;
  --gold: #FFC107;
  --gold-soft: #ffd35c;
  --blue-neon: #29b6ff;
  --blue-neon-2: #2979ff;
  --purple: #b84dff;
  --green: #22c55e;
  --white: #f5f5f7;
  --muted: #9aa0ab;
  --glass-bg: rgba(255,255,255,0.035);
  --glass-bg-strong: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.09);

  /* Type */
  --font-display: 'Poppins', sans-serif;
  --font-bangla: 'Hind Siliguri', 'Poppins', sans-serif;

  /* Layout */
  --container-w: 1240px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* Shadows / glows */
  --gold-glow: 0 0 20px rgba(255,193,7,.55), 0 0 60px rgba(255,193,7,.25);
  --blue-glow: 0 0 25px rgba(41,182,255,.45), 0 0 70px rgba(41,182,255,.2);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--white);
  font-family:var(--font-display);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

a{ text-decoration:none; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
img{ max-width:100%; display:block; }

.container{
  width:100%;
  max-width:var(--container-w);
  margin-inline:auto;
  padding-inline:24px;
}

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

/* =========================================================
   Background FX
   ========================================================= */
.bg-fx{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}

#particle-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.circuit-lines{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(41,182,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,182,255,.05) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  opacity:.6;
}

.glow-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  opacity:.35;
}
.glow-orb--gold{
  width:420px; height:420px;
  top:-120px; right:8%;
  background:radial-gradient(circle, var(--gold) 0%, transparent 70%);
}
.glow-orb--blue{
  width:480px; height:480px;
  bottom:-160px; left:-10%;
  background:radial-gradient(circle, var(--blue-neon) 0%, transparent 70%);
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar{
  position:sticky;
  top:0;
  z-index:100;
  width:100%;
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  background:rgba(5,5,5,.55);
  border-bottom:1px solid rgba(255,255,255,.06);
  transition:background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.navbar.scrolled{
  background:rgba(5,5,5,.85);
  box-shadow:0 8px 30px rgba(0,0,0,.45);
}

.navbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-block:18px;
}

.navbar__logo{
  font-weight:700;
  font-size:1.25rem;
  letter-spacing:.3px;
  color:var(--white);
  white-space:nowrap;
}
.navbar__logo span{ color:var(--gold); }

.navbar__nav ul{
  display:flex;
  gap:2.2rem;
}

.nav-link{
  position:relative;
  font-size:.95rem;
  font-weight:500;
  color:var(--muted);
  padding-bottom:6px;
  transition:color .25s ease;
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0%;
  height:2px;
  background:linear-gradient(90deg, var(--gold), var(--blue-neon));
  transition:width .3s ease;
  border-radius:2px;
}
.nav-link:hover{ color:var(--white); }
.nav-link:hover::after{ width:100%; }
.nav-link.active{ color:var(--gold); }
.nav-link.active::after{ width:100%; }

.navbar__toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  z-index:110;
}
.navbar__toggle span{
  width:24px; height:2px;
  background:var(--white);
  border-radius:2px;
  transition:transform .3s ease, opacity .3s ease;
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  z-index:1;
  min-height:92vh;
  display:flex;
  align-items:center;
  padding-block:60px 40px;
}

.hero__grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:40px;
}

.hero__title{
  margin:0 0 18px;
  font-size:clamp(2.6rem, 6vw, 4.6rem);
  font-weight:800;
  line-height:1.05;
}
.hero__title .line{ display:block; }
.line--white{ color:var(--white); }
.line--gold{
  color:var(--gold);
  text-shadow:0 0 30px rgba(255,193,7,.45);
}

.hero__subtitle{
  font-size:clamp(1rem, 2vw, 1.25rem);
  color:var(--muted);
  font-weight:400;
  margin-bottom:28px;
}
.hero__subtitle .dot{ color:var(--gold); margin-inline:6px; }

.hero__socials{
  display:flex;
  gap:14px;
}
.social-icon{
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(10px);
  font-size:1rem;
  transition:transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}
.social-icon:hover{
  transform:translateY(-4px);
  color:var(--bg);
}
.social-icon--fb:hover{ background:#1877f2; box-shadow:0 0 20px rgba(24,119,242,.6); }
.social-icon--ig:hover{ background:radial-gradient(circle at 30% 30%, #fdf497, #fd5949 45%, #d6249f 75%, #285AEB); box-shadow:0 0 20px rgba(214,36,159,.5); }
.social-icon--yt:hover{ background:#ff0000; box-shadow:0 0 20px rgba(255,0,0,.6); }
.social-icon--li:hover{ background:#0a66c2; box-shadow:0 0 20px rgba(10,102,194,.6); }

.hero__visual{
  display:flex;
  justify-content:center;
  align-items:center;
}
.hero__photo-wrap{
  position:relative;
  width:min(380px, 70vw);
  aspect-ratio:1/1;
}
.hero__photo{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  border:5px solid rgba(255,255,255,.85);
  box-shadow:var(--gold-glow);
  animation:floatY 5s ease-in-out infinite;
}
@keyframes floatY{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-14px); }
}

.floating-chip{
  position:absolute;
  display:flex; align-items:center; justify-content:center;
  background:var(--glass-bg-strong);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(10px);
  border-radius:14px;
  font-weight:700;
  color:var(--blue-neon);
  box-shadow:var(--blue-glow);
}
.chip--code{
  width:52px; height:52px; font-size:1.3rem;
  top:8%; left:-6%;
  animation:floatY 4s ease-in-out infinite;
}
.chip--ai{
  width:56px; height:44px; font-size:1rem;
  bottom:10%; right:-8%;
  animation:floatY 4.5s ease-in-out infinite reverse;
}

.scroll-cue{
  position:absolute;
  bottom:22px; left:50%;
  transform:translateX(-50%);
  width:26px; height:42px;
  border:2px solid rgba(255,255,255,.25);
  border-radius:20px;
}
.scroll-cue span{
  position:absolute;
  top:6px; left:50%;
  width:4px; height:8px;
  background:var(--gold);
  border-radius:2px;
  transform:translateX(-50%);
  animation:scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ opacity:1; top:6px; }
  70%{ opacity:0; top:22px; }
  100%{ opacity:0; top:6px; }
}

/* =========================================================
   Section heading (shared)
   ========================================================= */
.section-heading{
  text-align:center;
  margin-bottom:46px;
}
.section-heading h2{
  font-size:clamp(1.6rem, 4vw, 2.4rem);
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
  margin:0 0 14px;
}
.heading-underline{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:var(--gold);
}
.heading-underline span{
  width:46px; height:2px;
  background:linear-gradient(90deg, transparent, var(--gold));
}
.heading-underline span:last-child{
  background:linear-gradient(90deg, var(--gold), transparent);
}

/* =========================================================
   Awards Slider
   ========================================================= */
.awards{
  position:relative;
  z-index:1;
  padding-block:80px 40px;
}

.slider{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
}

.slider__track{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:340px;
  perspective:1400px;
}

.slide{
  position:absolute;
  width:56%;
  max-width:640px;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--glass-border);
  background:var(--glass-bg);
  backdrop-filter:blur(10px);
  transition:transform .55s cubic-bezier(.22,.9,.32,1), opacity .55s ease, filter .55s ease, z-index .1s;
  box-shadow:0 25px 60px rgba(0,0,0,.55);
}
.slide img{
  width:100%;
  height:360px;
  object-fit:cover;
  transition:transform .6s ease;
}
.slide:hover img{ transform:scale(1.06); }

.slide[data-pos="center"]{
  transform:translateX(0) scale(1);
  opacity:1; filter:none; z-index:5;
  box-shadow:0 0 0 1px rgba(255,193,7,.3), 0 30px 70px rgba(0,0,0,.6), var(--gold-glow);
}
.slide[data-pos="left"]{
  transform:translateX(-78%) scale(.78);
  opacity:.55; filter:brightness(.55) blur(.5px); z-index:3;
}
.slide[data-pos="right"]{
  transform:translateX(78%) scale(.78);
  opacity:.55; filter:brightness(.55) blur(.5px); z-index:3;
}
.slide[data-pos="hidden"]{
  transform:translateX(0) scale(.6);
  opacity:0; z-index:1;
  pointer-events:none;
}

.slide__overlay{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:16px 20px;
  display:flex;
  align-items:center;
  gap:14px;
  background:linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.15));
}
.slide__overlay i{
  color:var(--gold);
  font-size:1.4rem;
}
.slide__overlay h4{
  margin:0 0 2px;
  font-size:1.02rem;
  font-weight:600;
}
.slide__overlay p{
  margin:0;
  font-size:.82rem;
  color:var(--muted);
}

.slider__arrow{
  flex-shrink:0;
  width:50px; height:50px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--glass-bg-strong);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(10px);
  color:var(--white);
  font-size:1rem;
  transition:transform .3s ease, box-shadow .3s ease, background .3s ease;
  z-index:6;
}
.slider__arrow:hover{
  transform:scale(1.1);
  box-shadow:var(--blue-glow);
  background:rgba(41,182,255,.15);
}

.slider__dots{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:28px;
}
.dot-btn{
  width:9px; height:9px;
  border-radius:50%;
  background:rgba(255,255,255,.25);
  transition:background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.dot-btn.active{
  background:var(--gold);
  transform:scale(1.3);
  box-shadow:0 0 10px rgba(255,193,7,.7);
}

/* =========================================================
   Info Cards
   ========================================================= */
.cards-section{
  position:relative;
  z-index:1;
  padding-block:70px 100px;
}

.cards-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:26px;
}

.info-card{
  position:relative;
  padding:34px 26px;
  border-radius:var(--radius-lg);
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(14px) saturate(140%);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  transition:transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.info-card:hover{
  transform:translateY(-10px);
}

.info-card__icon{
  width:56px; height:56px;
  display:flex; align-items:center; justify-content:center;
  border-radius:16px;
  font-size:1.4rem;
  background:rgba(255,255,255,.04);
}

.info-card h3{
  margin:0;
  font-size:1.15rem;
  font-weight:700;
}

.info-card p{
  margin:0;
  color:var(--muted);
  font-size:.92rem;
  font-family:var(--font-bangla);
}

.skill-list li, .contact-list li{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.92rem;
  color:var(--muted);
}

.skill-list i{ color:var(--purple); }
.contact-list i{ color:var(--blue-neon-2); width:16px; }

.btn{
  margin-top:auto;
  padding:11px 24px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:600;
  letter-spacing:.3px;
  transition:transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.btn:hover{ transform:translateY(-3px); filter:brightness(1.1); }

.btn--gold{ background:var(--gold); color:#1a1300; box-shadow:0 0 18px rgba(255,193,7,.4); }
.btn--gold:hover{ box-shadow:0 0 30px rgba(255,193,7,.65); }

.btn--purple{ background:var(--purple); color:#1a0733; box-shadow:0 0 18px rgba(184,77,255,.4); }
.btn--purple:hover{ box-shadow:0 0 30px rgba(184,77,255,.65); }

.btn--green{ background:var(--green); color:#04210f; box-shadow:0 0 18px rgba(34,197,94,.4); }
.btn--green:hover{ box-shadow:0 0 30px rgba(34,197,94,.65); }

.btn--blue{ background:var(--blue-neon-2); color:#03102b; box-shadow:0 0 18px rgba(41,121,255,.4); }
.btn--blue:hover{ box-shadow:0 0 30px rgba(41,121,255,.65); }

.info-card--gold:hover{ border-color:rgba(255,193,7,.5); box-shadow:0 20px 45px rgba(255,193,7,.12); }
.info-card--purple:hover{ border-color:rgba(184,77,255,.5); box-shadow:0 20px 45px rgba(184,77,255,.12); }
.info-card--green:hover{ border-color:rgba(34,197,94,.5); box-shadow:0 20px 45px rgba(34,197,94,.12); }
.info-card--blue:hover{ border-color:rgba(41,121,255,.5); box-shadow:0 20px 45px rgba(41,121,255,.12); }

/* =========================================================
   Footer
   ========================================================= */
.footer{
  position:relative;
  z-index:1;
  text-align:center;
  padding:28px 20px;
  border-top:1px solid rgba(255,255,255,.06);
  color:var(--muted);
  font-size:.88rem;
}
.footer span{ color:var(--gold); font-weight:600; }

/* =========================================================
   Scroll to top
   ========================================================= */
.scroll-top{
  position:fixed;
  right:24px; bottom:24px;
  width:48px; height:48px;
  border-radius:50%;
  background:var(--glass-bg-strong);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(10px);
  color:var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .3s ease, transform .3s ease, box-shadow .3s ease;
  z-index:200;
}
.scroll-top.visible{
  opacity:1; visibility:visible; transform:translateY(0);
}
.scroll-top:hover{ box-shadow:var(--gold-glow); }

/* =========================================================
   Fade-in on scroll
   ========================================================= */
[data-aos]{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .8s ease, transform .8s ease;
}
[data-aos].in-view{
  opacity:1;
  transform:translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px){
  .cards-grid{ grid-template-columns:repeat(2, 1fr); }
  .hero__grid{ grid-template-columns:1fr; text-align:center; }
  .hero__content{ order:2; }
  .hero__visual{ order:1; }
  .hero__socials{ justify-content:center; }
  .slide{ width:70%; }
}

@media (max-width: 760px){
  .navbar__toggle{ display:flex; }
  .navbar__nav{
    position:fixed;
    top:0; right:0;
    height:100vh;
    width:min(280px, 75vw);
    background:rgba(5,5,5,.96);
    backdrop-filter:blur(20px);
    border-left:1px solid var(--glass-border);
    transform:translateX(100%);
    transition:transform .4s ease;
    padding-top:90px;
    z-index:105;
  }
  .navbar__nav.open{ transform:translateX(0); }
  .navbar__nav ul{ flex-direction:column; gap:1.6rem; padding-inline:30px; }

  .cards-grid{ grid-template-columns:1fr; }
  .slide{ width:88%; }
  .slide[data-pos="left"], .slide[data-pos="right"]{ opacity:0; pointer-events:none; }
  .slider__arrow{ width:42px; height:42px; }
}

@media (max-width: 480px){
  .hero{ min-height:auto; padding-block:110px 40px; }
  .hero__photo-wrap{ width:min(260px, 60vw); }
  .slide img{ height:240px; }
}
