@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

:root {
  --bg: #000;
  --panel: rgba(255, 255, 255, .06);
  --panel2: rgba(255, 255, 255, .04);
  --text: #fff;
  --muted: rgba(255, 255, 255, .75);
  --accent: #0ea5e9;
  --accent2: #38bdf8;
  --line: rgba(255, 255, 255, .12);
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.bg-anim {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.bg-anim::before,
.bg-anim::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(38px);
  opacity: .20;
  background: radial-gradient(circle at 30% 30%, var(--accent2), transparent 60%);
  animation: float1 14s ease-in-out infinite;
}

.bg-anim::before {
  left: -140px;
  top: -120px;
}

.bg-anim::after {
  right: -180px;
  bottom: -160px;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%);
  animation: float2 18s ease-in-out infinite;
  opacity: .18;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(14, 165, 233, .10), transparent 55%),
    radial-gradient(circle at 80% 25%, rgba(56, 189, 248, .08), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: auto, auto, 70px 70px, 70px 70px;
  opacity: .25;
}

@keyframes float1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(120px, 70px) scale(1.05);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-130px, -80px) scale(1.06);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, .38);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.logo {
  font-size: 2.9rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .3px;
  transition: .2s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(14, 165, 233, .45));
}

.menu-btn {
  display: none;
  background: transparent;
  color: #fff;
  font-size: 2.7rem;
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
  gap: .7rem;
}

nav a {
  position: relative;
  font-size: 1.65rem;
  color: #fff;
  font-weight: 500;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  transition: .25s ease;
  opacity: .92;
  border: 1px solid transparent;
}

nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  background: linear-gradient(90deg, rgba(14, 165, 233, .22), rgba(56, 189, 248, .10));
  opacity: 0;
  transform: translateY(7px);
  transition: .25s ease;
  z-index: -1;
}

nav a:hover {
  color: var(--accent2);
  opacity: 1;
  border-color: rgba(14, 165, 233, .35);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

nav a:hover::before {
  opacity: 1;
  transform: translateY(0);
}

nav a.active {
  color: var(--accent2);
  border-color: rgba(14, 165, 233, .45);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}

main {
  padding: 10rem 9% 5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
  min-height: calc(100vh - 10rem);
}

.hero-img {
  display: flex;
  justify-content: center;
}

.hero-img .ring {
  border-radius: 30px;
  padding: 0;
  position: relative;
  background: transparent;
  box-shadow: none;
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-img img {
  width: min(360px, 74vw);
  border-radius: 30px;
  display: block;
  border: 2px solid rgba(255, 255, 255, .10);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
  transition: .22s ease;
  animation: none;
}

.hero-img img:hover {
  transform: scale(1.02) rotate(2deg);
  filter: saturate(1.1);
}

.kicker {
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  padding: .75rem 1.2rem;
  border: 1px solid rgba(14, 165, 233, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 1.35rem;
  color: rgba(255, 255, 255, .85);
  width: fit-content;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, .14);
}

h1 {
  font-size: 5.0rem;
  line-height: 1.15;
  margin-top: 1.6rem;
  font-weight: 800;
}

h1 span {
  color: var(--accent);
}

.typing-text {
  margin-top: 1.2rem;
  font-size: 3.0rem;
  font-weight: 700;
}

.typing-text span {
  position: relative;
}

.typing-text span::before {
  content: "Software Developer";
  color: var(--accent2);
  animation: words 14s infinite;
}

.typing-text span::after {
  content: "";
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  right: -8px;
  border-left: 3px solid var(--bg);
  animation: cursor .65s infinite;
}

@keyframes cursor {
  to {
    border-left: 3px solid var(--accent);
  }
}

@keyframes words {

  0%,
  20% {
    content: "Software & Web Developer";
  }

  21%,
  40% {
    content: "ISP Entrepreneur";
  }

  41%,
  60% {
    content: "Network Developer";
  }

  61%,
  80% {
    content: "Database & Backend Builder";
  }

  81%,
  100% {
    content: "CSE Student (AIUB)";
  }
}

.lead {
  margin-top: 1.8rem;
  font-size: 1.6rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 70ch;
}

.meta {
  margin-top: 2.0rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pill {
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  font-size: 1.35rem;
  color: rgba(255, 255, 255, .86);
}

.pill a {
  color: rgba(255, 255, 255, .86);
}

.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 4.3rem;
  height: 4.3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: .2rem solid var(--accent);
  color: var(--accent);
  font-size: 2rem;
  background: transparent;
  transition: .25s ease;
}

.social-icons a:hover {
  color: #000;
  transform: scale(1.15) translateY(-5px);
  background: var(--accent);
  box-shadow: 0 0 25px rgba(14, 165, 233, .7);
}

.actions {
  margin-top: 2.6rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 2.8rem;
  border-radius: 4rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .18rem;
  cursor: pointer;
  transition: .25s ease;
  border: 2px solid var(--accent);
  color: var(--accent2);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 25px rgba(14, 165, 233, .7);
}

.btn.secondary {
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .88);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  box-shadow: none;
}

.section {
  margin-top: 6.5rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 3.2rem;
  font-weight: 800;
}

.section-sub {
  font-size: 1.5rem;
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.85;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  padding: 2.0rem;
  transition: .25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, .35);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.9rem;
  margin-bottom: .8rem;
}

.card p {
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1.85;
}

.tags {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.tag {
  font-size: 1.2rem;
  padding: .6rem .95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .86);
}

.list {
  margin-top: 1.2rem;
  display: grid;
  gap: .9rem;
}

.li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, .85);
  line-height: 1.8;
}

.li a {
  color: var(--accent2);
}

.check {
  color: var(--accent2);
  margin-top: .25rem;
}

.edu-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.edu-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  padding: .7rem;
}

.edu-inst {
  font-size: 1.45rem;
  color: rgba(255, 255, 255, .78);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.panel {
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  padding: 2rem;
}

.panel h3 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.panel p {
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1.85;
}

.form {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.input,
.textarea {
  width: 100%;
  padding: 1.3rem 1.4rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 1.5rem;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

footer {
  padding: 2.2rem 9%;
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .70);
  text-align: center;
  font-size: 1.4rem;
  margin-top: 5rem;
}

@media(max-width:995px) {
  .menu-btn {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 18px;
    width: min(340px, 88vw);
    display: none;
    flex-direction: column;
    gap: .6rem;
    border: 1px solid rgba(14, 165, 233, .40);
    background: rgba(10, 10, 10, .95);
    border-radius: 2rem;
    padding: 1.2rem;
  }

  nav.active {
    display: flex;
  }

  nav a {
    width: 100%;
    font-size: 1.9rem;
  }

  main {
    padding: 9.2rem 6% 4.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 3.5rem;
    padding-top: 1.5rem;
  }

  h1 {
    font-size: 4.0rem;
  }

  .typing-text {
    font-size: 2.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

/* ===== animated lighting ring around circular image ===== */
.glow-ring {
  position: relative;
  isolation: isolate;
}

.glow-ring::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      rgba(14, 165, 233, .00),
      rgba(14, 165, 233, .85),
      rgba(56, 189, 248, .65),
      rgba(14, 165, 233, .00));
  filter: blur(8px);
  opacity: .65;
  z-index: -1;
  animation: spinRing 3.8s linear infinite;
}

.glow-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, .25), transparent 60%);
  opacity: .55;
  z-index: -1;
  animation: pulseGlow 2.6s ease-in-out infinite;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: .45;
  }

  50% {
    transform: scale(1.03);
    opacity: .70;
  }
}

/* ===== low opacity underline shimmer under texts ===== */
.reveal-underline {
  position: relative;
}

.reveal-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, .45), transparent);
  opacity: .35;
  transform: translateX(-30%);
  animation: underlineMove 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes underlineMove {
  0% {
    transform: translateX(-35%);
    opacity: .20;
  }

  50% {
    transform: translateX(15%);
    opacity: .42;
  }

  100% {
    transform: translateX(-35%);
    opacity: .20;
  }
}

/* tighter underline spacing for small pills/buttons/icons */
.pill.reveal-underline::after,
.social-icons a.reveal-underline::after,
.btn.reveal-underline::after {
  bottom: -6px;
  height: 2px;
  opacity: .22;
}

/* ===== certification image styling ===== */
.cert-wrap {
  display: block;
  margin-top: 1.2rem;
}

.cert-img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

/* ===== skill logos row ===== */
.skill-logos {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.2rem;
}

.slogo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.0rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  font-size: 1.35rem;
  color: rgba(255, 255, 255, .88);
}

.slogo i {
  color: var(--accent2);
  font-size: 1.7rem;
}

.slogo b {
  font-weight: 700;
}

/* ===== links inside panels ===== */
.link {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link:hover {
  color: var(--accent);
}

/* ===== Modal/Popup ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s ease;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 450px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: slideUp .4s ease;
}

.modal-icon {
  font-size: 4rem;
  color: var(--accent2);
  margin-bottom: 1.5rem;
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.modal-content p {
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}