/* ============================================================
   Ashraful Ishlam Akib PORTFOLIO — style.css
   Dark Premium Portfolio | Poppins | Navy/Black/Cyan/Purple
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #060b18;
  --bg-secondary: #0b1426;
  --bg-card: #0d1a30;
  --bg-glass: rgba(13, 26, 48, 0.55);

  --accent-blue: #4f8ef7;
  --accent-purple: #7c3aed;
  --accent-cyan: #22d3ee;
  --accent-pink: #ec4899;

  --gradient-main: linear-gradient(
    135deg,
    #4f8ef7 0%,
    #7c3aed 50%,
    #22d3ee 100%
  );
  --gradient-alt: linear-gradient(135deg, #7c3aed, #ec4899);
  --gradient-glow: linear-gradient(
    135deg,
    rgba(79, 142, 247, 0.2),
    rgba(124, 58, 237, 0.2)
  );

  --text-primary: #f0f6ff;
  --text-secondary: #94a3b8;
  --text-muted: #4e6080;

  --border-color: rgba(79, 142, 247, 0.15);
  --border-hover: rgba(79, 142, 247, 0.5);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow:
    0 0 40px rgba(79, 142, 247, 0.25), 0 0 80px rgba(124, 58, 237, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-color);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-blue), var(--accent-purple));
  border-radius: 4px;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(124, 58, 237, 0.35);
  color: #fff;
}

/* ---------- Utility ---------- */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 100px 0;
}

.section-dark {
  background-color: var(--bg-secondary);
}

/* ---------- Buttons ---------- */
.btn-glow {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.35);
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}
.btn-glow:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 8px 35px rgba(79, 142, 247, 0.5),
    0 0 0 4px rgba(79, 142, 247, 0.15);
  color: #fff;
}
.btn-glow:hover::after {
  opacity: 1;
}

.btn-outline-glow {
  background: transparent;
  color: var(--accent-blue);
  border: 1.5px solid var(--accent-blue);
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-outline-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}
.btn-outline-glow span,
.btn-outline-glow i {
  position: relative;
  z-index: 1;
}
.btn-outline-glow:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(79, 142, 247, 0.4);
}
.btn-outline-glow:hover::before {
  opacity: 1;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.glass-nav {
  background: rgba(6, 11, 24, 0.6) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  transition: var(--transition);
  z-index: 999;
}
.glass-nav.scrolled {
  background: rgba(6, 11, 24, 0.92) !important;
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.brand-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: var(--transition);
}
.brand-logo:hover {
  opacity: 0.85;
}

.brand-highlight {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.9rem;
}

.nav-custom {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: 6px;
  position: relative;
  transition: color var(--transition);
}
.nav-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
}
.nav-custom:hover {
  color: var(--text-primary) !important;
}
.nav-custom:hover::after {
  width: 60%;
}

.nav-btn-cta {
  background: var(--gradient-main);
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 22px !important;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 3px 15px rgba(79, 142, 247, 0.35);
  transition: var(--transition) !important;
}
.nav-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(79, 142, 247, 0.5) !important;
}

/* Custom hamburger */
.custom-toggler {
  border: none;
  background: transparent;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toggler-icon {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
  transition: var(--transition);
}
.custom-toggler:focus {
  box-shadow: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
}

/* Animated glows */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}
.glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(79, 142, 247, 0.18);
  top: -100px;
  left: -150px;
  animation: glowFloat1 8s ease-in-out infinite alternate;
}
.glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.22);
  bottom: -80px;
  right: -100px;
  animation: glowFloat2 10s ease-in-out infinite alternate;
}
.glow-3 {
  width: 250px;
  height: 250px;
  background: rgba(34, 211, 238, 0.14);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowFloat1 6s ease-in-out infinite alternate-reverse;
}

@keyframes glowFloat1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(40px, 30px) scale(1.1);
  }
}
@keyframes glowFloat2 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-30px, -40px) scale(1.12);
  }
}

.hero-row {
  min-height: calc(100vh - 160px);
}

/* Hero text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.3);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: #22d3ee;
  border-radius: 50%;
  box-shadow: 0 0 8px #22d3ee;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-name {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.name-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  min-height: 36px;
  font-family: 'Space Mono', monospace;
}
.cursor-blink {
  color: var(--accent-cyan);
  animation: blink 0.9s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-tagline {
  font-size: 0.97rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  gap: 12px;
}
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  text-decoration: none;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
}
.social-icon:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.25);
}

/* Hero image */
.hero-img-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrapper {
  position: relative;
  width: 420px;
  height: 420px;
  max-width: 100%;
}

.img-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spinRing 18s linear infinite;
}
.ring-outer {
  width: 460px;
  height: 460px;
  border-color: rgba(79, 142, 247, 0.25);
}
.ring-inner {
  width: 360px;
  height: 360px;
  border-color: rgba(124, 58, 237, 0.35);
  animation-direction: reverse;
  animation-duration: 12s;
}
@keyframes spinRing {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.profile-img-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--gradient-main) border-box;
  box-shadow: var(--shadow-glow);
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Floating animation */
.float-anim {
  animation: floatUpDown 4s ease-in-out infinite;
}
@keyframes floatUpDown {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-14px);
  }
}

/* Skill chips */
.skill-chip {
  position: absolute;
  background: rgba(13, 26, 48, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.chip-1 {
  top: 12%;
  left: -10%;
  animation: chipFloat 5s ease-in-out infinite;
}
.chip-2 {
  bottom: 18%;
  right: -8%;
  animation: chipFloat 5.5s ease-in-out infinite 0.8s;
}
.chip-3 {
  top: 65%;
  left: -12%;
  animation: chipFloat 4.5s ease-in-out infinite 1.5s;
}
@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Stat badges */
.stat-badge {
  position: absolute;
  background: var(--gradient-main);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 8px 30px rgba(79, 142, 247, 0.4);
}
.stat-1 {
  top: 5%;
  right: -5%;
}
.stat-2 {
  bottom: 5%;
  left: -5%;
}
.stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(var(--accent-blue), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.4;
    transform: scaleY(0.6);
  }
}

/* Fade-up animation (initial) */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 10px;
}

.section-tag {
  display: inline-block;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.3);
  color: var(--accent-blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.title-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-main);
  border-radius: 3px;
  margin: 0 auto;
}

/* Reveal animation (scroll-triggered via JS) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-img-wrap {
  position: relative;
  display: inline-block;
}
.about-img-bg {
  position: absolute;
  inset: -16px;
  border-radius: var(--radius-lg);
  background: var(--gradient-main);
  opacity: 0.12;
  z-index: 0;
}
.about-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--gradient-main) border-box;
  box-shadow: var(--shadow-card);
}
.about-exp-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient-main);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  z-index: 2;
  box-shadow: 0 8px 30px rgba(79, 142, 247, 0.45);
  line-height: 1.4;
}
.about-exp-badge strong {
  font-size: 1.8rem;
  display: block;
}

.about-greeting {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.3;
}
.about-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.85;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.info-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: var(--transition);
}
.info-item:hover {
  border-color: var(--border-hover);
}
.info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.info-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}
.available-dot::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   CV / TIMELINE
   ============================================================ */
.cv-col-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(
    var(--accent-blue),
    var(--accent-purple),
    transparent
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-dot {
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 10px rgba(79, 142, 247, 0.5);
}

.timeline-year {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(79, 142, 247, 0.1);
  color: var(--accent-blue);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
  border: 1px solid rgba(79, 142, 247, 0.2);
}
.timeline-content h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   EXPERTISE SECTION
   ============================================================ */
.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.expertise-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-blue);
  margin-bottom: 18px;
  transition: var(--transition);
}
.expertise-card:hover .expertise-icon {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
  transform: rotate(-5deg) scale(1.1);
}

.expertise-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.expertise-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.expertise-tags span {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--accent-purple);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

/* Skill bars */
.skills-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
}
.skills-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-bar-item {
  margin-bottom: 22px;
}
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.skill-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-main);
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.35);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-hover);
}

.portfolio-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  opacity: 0.6; /* পাশের আইকনগুলোর মতো হালকা দেখানোর জন্য */
  transition: var(--transition); /* স্মুথ ট্রানজিশনের জন্য */
}
.portfolio-card:hover .icon-img {
  opacity: 1;
  transform: scale(1.15);
}
.port-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}
.portfolio-card:hover .port-icon {
  color: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.portfolio-overlay {
  background: var(--bg-card);
  padding: 22px 24px;
  border-top: 1px solid var(--border-color);
}
.port-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  display: block;
}
.portfolio-overlay h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.portfolio-overlay p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.port-links {
  display: flex;
  gap: 10px;
}
.port-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.port-links a:hover {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-val {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-socials {
  display: flex;
  gap: 12px;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
}

.form-group-custom {
  position: relative;
}

.form-input-custom {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  padding: 18px 16px 8px;
  outline: none;
  transition: var(--transition);
  resize: none;
}
.form-input-custom:focus {
  border-color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.06);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}
.form-textarea {
  min-height: 140px;
}

.form-label-custom {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}
.form-input-custom:focus ~ .form-label-custom,
.form-input-custom:not(:placeholder-shown) ~ .form-label-custom {
  top: 5px;
  font-size: 0.68rem;
  color: var(--accent-blue);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.contact_link {
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent-blue);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.4);
  z-index: 998;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(79, 142, 247, 0.55);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 120px 0 80px;
  }
  .hero-row {
    flex-direction: column-reverse;
    gap: 50px;
    min-height: auto;
  }
  .hero-img-col {
    margin-bottom: 20px;
  }
  .hero-img-wrapper {
    width: 300px;
    height: 300px;
  }
  .ring-outer {
    width: 340px;
    height: 340px;
  }
  .ring-inner {
    width: 260px;
    height: 260px;
  }
  .profile-img-container {
    width: 220px;
    height: 220px;
  }
  .chip-1 {
    left: -5%;
  }
  .chip-2 {
    right: -5%;
  }
  .chip-3 {
    left: -5%;
  }
  .stat-1 {
    right: 0;
  }
  .stat-2 {
    left: 0;
  }
  .about-exp-badge {
    right: 0;
    bottom: -14px;
  }
  .skills-wrap {
    padding: 28px 20px;
  }
  .contact-form-card {
    padding: 28px 20px;
  }
  .about-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 70px 0;
  }
  .hero-name {
    font-size: 2.2rem;
  }
  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero-btns .btn-glow,
  .hero-btns .btn-outline-glow {
    width: 100%;
    text-align: center;
  }
  .portfolio-filters {
    gap: 8px;
  }
  .filter-btn {
    padding: 7px 16px;
    font-size: 0.8rem;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}
