/* ==========================================================================
   Design Tokens & Global Setup
   ========================================================================== */
:root {
  --primary-color: #cc005f;
  --primary-hover: #e00069;
  --primary-light: #ff3388;
  --primary-glow: rgba(204, 0, 95, 0.45);
  --primary-glow-subtle: rgba(204, 0, 95, 0.15);
  --dark-bg: #0d0d11;
  --card-dark: rgba(24, 24, 28, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(204, 0, 95, 0.5);
  --font-heading: 'Poppins', sans-serif;
  --font-serif: 'Lora', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-heading);
  color: #333333;
  overflow-x: hidden;
  background-color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #0d0d10;
}
::-webkit-scrollbar-thumb {
  background: #2b2b36;
  border-radius: 10px;
  border: 2px solid #0d0d10;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.py-6 {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

/* ==========================================================================
   Main Navigation Bar (Glassmorphic & Sticky)
   ========================================================================== */
.main-navbar {
  position: fixed !important;
  top: 0;
  padding: 18px 0;
  background: rgba(14, 14, 18, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 990;
}

.main-navbar.scrolled {
  padding: 12px 0;
  background: rgba(12, 12, 16, 0.95);
  border-bottom: 1px solid rgba(204, 0, 95, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo-img {
  transform: rotate(10deg) scale(1.08);
}

.brand-name {
  color: #ffffff;
  font-size: 1.4rem;
  letter-spacing: -0.3px;
}

.main-navbar .nav-link {
  color: #cfd0d8 !important;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 16px !important;
  position: relative;
  transition: color 0.3s ease;
}

.main-navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary-color);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: #ffffff !important;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta-btn {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(204, 0, 95, 0.35);
}

.nav-cta-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 95, 0.6);
}

/* Custom Hamburger Toggler */
.custom-toggler {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff !important;
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .custom-toggler {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse {
    background: rgba(12, 12, 16, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem 1rem 0.5rem;
    margin-top: 0.9rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  }

  .main-navbar .navbar-nav {
    gap: 0.2rem;
  }

  .main-navbar .nav-item {
    width: 100%;
  }

  .main-navbar .nav-link {
    display: block;
    padding: 0.7rem 0.75rem !important;
  }

  .main-navbar .nav-cta-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

.custom-toggler:hover,
.custom-toggler:focus {
  background: rgba(204, 0, 95, 0.25) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 15px rgba(204, 0, 95, 0.5) !important;
  outline: none !important;
}

.custom-toggler-icon {
  font-size: 1.35rem;
  color: #ffffff !important;
  transition: transform 0.3s ease, color 0.3s ease;
}

.custom-toggler[aria-expanded="true"] .custom-toggler-icon {
  transform: rotate(90deg);
  color: var(--primary-light) !important;
}

/* ==========================================================================
   Hero / Header Section
   ========================================================================== */
.header {
  background:  url("../images/intro-bg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 14, 0.85) 0%,
    rgba(12, 12, 16, 0.7) 60%,
    rgba(14, 14, 18, 0.95) 100%
  );
}

.hero-backdrop-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(204, 0, 95, 0.18) 0%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.header .text-container {
  z-index: 10;
  padding-top: 60px;
}

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #e5e5eb;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}

.hero-title {
  min-height: 1.2em;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header .roles {
  font-family: var(--font-serif);
  letter-spacing: 1px;
  color: #e0e0e8;
}

.hero-cta-btn {
  background: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 25px rgba(204, 0, 95, 0.4);
}

.hero-cta-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(204, 0, 95, 0.6);
}

.hero-secondary-btn {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-4px);
}

.header .social {
  bottom: 50px;
}

.social-glass-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.social-glass-icon:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 18px var(--primary-glow);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  text-decoration: none;
  animation: mouseBounce 2s infinite;
  transition: color 0.2s ease;
}

.scroll-down-indicator:hover {
  color: var(--primary-light);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
  background: #fdfdfd;
}

.about-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}

.about-avatar-wrapper {
  position: relative;
}

.avatar-glow-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #cc005f, #ff3388, #7952b3, #cc005f);
  filter: blur(12px);
  opacity: 0.45;
  animation: rotateRing 8s linear infinite;
}

.about-img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border: 4px solid #ffffff;
}

.experience-badge {
  position: absolute;
  bottom: 0;
  right: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 6px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.experience-badge small {
  font-size: 0.7rem;
  color: #6c757d;
  text-transform: uppercase;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(204, 0, 95, 0.06);
  color: #1e293b;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid rgba(204, 0, 95, 0.18);
  transition: all 0.2s ease;
}

.about-pill:hover {
  background: rgba(204, 0, 95, 0.12);
  transform: translateY(-2px);
}

/* ==========================================================================
   Tech Marquee Section
   ========================================================================== */
.tech-marquee-section {
  position: relative;
  padding: 3rem 0 1.25rem;
  background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
  border-top: 1px solid rgba(8, 8, 12, 0.05);
  border-bottom: 1px solid rgba(8, 8, 12, 0.05);
  overflow: hidden;
}

.marquee-title {
  position: relative;
  z-index: 1;
}

.tech-marquee {
  overflow: hidden;
  padding: 0.5rem 0 0.25rem;
}

.tech-marquee .swiper-wrapper {
  transition-timing-function: linear;
}

.tech-marquee .swiper-slide {
  width: auto !important;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.04);
  border: 1px solid rgba(204, 0, 95, 0.12);
  color: #1d1d24;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.tech-pill span {
  position: relative;
}

.tech-pill span::before {
  content: "";
  position: absolute;
  inset: -0.2rem -0.45rem;
  border-radius: 999px;
  background: rgba(204, 0, 95, 0.08);
  z-index: -1;
}

/* ==========================================================================
   Skills Showcase & Swiper Section
   ========================================================================== */
.skills-showcase {
  background:radial-gradient(circle at 90% 80%, rgba(204, 0, 95, 0.05) 0%, transparent 40%),
              #121214;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.skills-showcase-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(204, 0, 95, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.badge.bg-primary-subtle {
  background: rgba(204, 0, 95, 0.15) !important;
  color: #ff3388 !important;
  border: 1px solid rgba(204, 0, 95, 0.3);
  font-size: 0.78rem;
  letter-spacing: 1px;
}

.skills-swiper {
  position: relative;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 45px !important;
  user-select: none;
}

.skills-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.skill-swiper-card {
  width: 100%;
  background: var(--card-dark);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              background-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.skill-swiper-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(360deg, transparent, rgba(204, 0, 95, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.skill-swiper-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  background-color: rgba(30, 30, 36, 0.92);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(204, 0, 95, 0.22);
}

.skill-swiper-card:hover::before {
  opacity: 1;
}

.skill-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-swiper-card:hover .skill-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.skill-icon-wrapper.react-icon { background: rgba(97, 218, 251, 0.15); color: #61dafb; border: 1px solid rgba(97, 218, 251, 0.3); }
.skill-icon-wrapper.laravel-icon { background: rgba(255, 45, 32, 0.15); color: #ff2d20; border: 1px solid rgba(255, 45, 32, 0.3); }
.skill-icon-wrapper.node-icon { background: rgba(104, 159, 99, 0.15); color: #689f63; border: 1px solid rgba(104, 159, 99, 0.3); }
.skill-icon-wrapper.js-icon { background: rgba(247, 223, 30, 0.15); color: #f7df1e; border: 1px solid rgba(247, 223, 30, 0.3); }
.skill-icon-wrapper.db-icon { background: rgba(0, 117, 143, 0.15); color: #00bcd4; border: 1px solid rgba(0, 188, 212, 0.3); }
.skill-icon-wrapper.bootstrap-icon { background: rgba(121, 82, 179, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.skill-icon-wrapper.web3-icon { background: rgba(98, 126, 234, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }
.skill-icon-wrapper.seo-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.skill-icon-wrapper.git-icon { background: rgba(240, 80, 50, 0.15); color: #f05032; border: 1px solid rgba(240, 80, 50, 0.3); }

.skill-level-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  color: #d1d1d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
}

.skill-card-desc {
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.skill-tag {
  font-size: 0.73rem;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #c4c4cc;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.skill-swiper-card:hover .skill-tag {
  background: rgba(204, 0, 95, 0.12);
  color: #ffffff;
  border-color: rgba(204, 0, 95, 0.25);
}

.skills-swiper-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
}

.skills-swiper-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 16px var(--primary-glow);
  transform: scale(1.08);
}

.skills-swiper-btn:active {
  transform: scale(0.95);
}

.skills-swiper-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
  opacity: 0.6;
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  transition: all 0.35s ease;
}

.skills-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  opacity: 1;
  width: 24px;
  border-radius: 6px;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================================================================
   Profile & Core Skills Section
   ========================================================================== */
.profile {
  background: #f8f9fc;
}

.profile-card,
.skills-card {
  border-color: rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.profile-info-item {
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.profile-info-item:hover {
  background: #ffffff;
  border-color: rgba(204, 0, 95, 0.25);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(204, 0, 95, 0.1);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.custom-progress {
  height: 10px;
  border-radius: 10px;
  background: #e9ecef;
  overflow: hidden;
}

.custom-progress-bar {
  border-radius: 10px;
  background: linear-gradient(90deg, #cc005f 0%, #ff3388 100%);
  box-shadow: 0 0 12px rgba(204, 0, 95, 0.4);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio {
  background: url("../images/bg1.jpg") no-repeat center center;
  background-size: cover;
  /*background-attachment: fixed;*/
}

.project {
  position: relative;
  overflow: hidden;
  background-color: #0b0b0b;
  border-radius: 1.2rem;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.project:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.portfolio-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  background-color: #151515;
}

.project:hover .portfolio-video {
  transform: scale(1.03);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.project-tech-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.project:hover .video-badge {
  background: rgba(204, 0, 95, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary-glow);
}

.project.is-playing .video-badge {
  background: rgba(204, 0, 95, 0.95);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 18px var(--primary-glow);
}



/* ==========================================================================
   Services Section (Pure bg.jpg background)
   ========================================================================== */
.services {
  background: url("../images/bg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.services-lead-text {
  color: #f1f5f9 !important;
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.service-card {
  background: rgba(14, 14, 20, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 1.25rem !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              background-color 0.35s ease;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(204, 0, 95, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(204, 0, 95, 0.65) !important;
  background-color: rgba(20, 20, 30, 0.95) !important;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.7), 0 0 28px rgba(204, 0, 95, 0.3) !important;
}

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

.service-card.featured-service {
  border-color: rgba(204, 0, 95, 0.5) !important;
  background: rgba(18, 16, 24, 0.92) !important;
}

.service-card-text {
  color: #cbd5e1 !important;
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-features-list li {
  color: #e2e8f0 !important;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-tag {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.2s ease;
}

.service-card:hover .service-tag {
  background: rgba(204, 0, 95, 0.18);
  color: #ffffff;
  border-color: rgba(204, 0, 95, 0.35);
}

.service-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(6deg);
}

.service-icon-wrapper.react-srv-icon {
  background: rgba(97, 218, 251, 0.18);
  color: #61dafb;
  border: 1px solid rgba(97, 218, 251, 0.4);
}

.service-icon-wrapper.fullstack-srv-icon {
  background: rgba(204, 0, 95, 0.2);
  color: #ff3388;
  border: 1px solid rgba(204, 0, 95, 0.45);
  box-shadow: 0 0 20px rgba(204, 0, 95, 0.3);
}

.service-icon-wrapper.ecom-srv-icon {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.service-icon-wrapper.api-srv-icon {
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.service-icon-wrapper.cms-srv-icon {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.service-icon-wrapper.seo-srv-icon {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Contact Section & Footer
   ========================================================================== */
.contact {
  background: #09090c;
}

.contact-info-card,
.contact-form-card {
  background: rgba(20, 20, 26, 0.75);
  border-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  border-color: rgba(204, 0, 95, 0.4) !important;
  transform: translateX(5px);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.custom-form-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  padding: 12px 18px !important;
  transition: all 0.3s ease;
}

.custom-form-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 16px rgba(204, 0, 95, 0.35) !important;
  outline: none !important;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 0 14px var(--primary-glow);
}

#status {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#status.show {
  opacity: 1;
  transform: translateY(0);
}

#status.success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

#status.error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1020;
  box-shadow: 0 8px 24px rgba(204, 0, 95, 0.45);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(204, 0, 95, 0.65);
}

/* ==========================================================================
   Animation on Scroll (Reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes mouseBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ==========================================================================\n   Responsive Overflow Protection & Mobile Layout Fixes\n   ========================================================================== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Prevent flex/grid children from creating a wider layout than their parent. */
.container,
.container-fluid,
.row,
[class*="col-"],
.d-flex,
.profile-info-item,
.skill-swiper-card,
.service-card,
.contact-info-card,
.contact-form-card {
  min-width: 0;
}

/* Long text, URLs and email addresses must be allowed to wrap. */
.profile-info-item > div:last-child,
.profile-info-val,
.service-card,
.skill-card-desc,
.project-info,
.contact-info-card,
.contact-form-card {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Swiper owns its horizontal track; don't let it expand the page itself. */
.skills-showcase,
.skills-swiper,
.skills-swiper .swiper-wrapper,
.tech-marquee-section,
.tech-marquee {
  max-width: 100%;
  min-width: 0;
}

/* Large decorative elements are intentionally oversized, so contain them. */
.hero-backdrop-glow,
.skills-showcase-bg-glow {
  max-width: 100vw;
  pointer-events: none;
}

/* Reveal animations should never create a horizontal scrollbar while entering. */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .header {
    background-attachment: scroll;
  }

  .services {
    background-attachment: scroll;
  }

  .main-navbar .container {
    width: 100%;
    max-width: 100%;
  }

  .header .text-container {
    padding-top: 70px;
  }

  .hero-backdrop-glow {
    width: 90vw;
    height: 45vh;
    filter: blur(60px);
  }

  .hero-status-badge {
    max-width: calc(100vw - 32px);
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .header .roles {
    max-width: calc(100vw - 32px);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
  }

  .about-card,
  .profile-card,
  .skills-card,
  .contact-info-card,
  .contact-form-card {
    max-width: 100%;
  }

  .profile-info-item {
    align-items: flex-start !important;
  }

  .profile-info-item > div:last-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .skills-showcase-bg-glow {
    width: 90vw;
    height: 320px;
  }
}

@media (max-width: 767.98px) {
  .py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .header {
    min-height: 100svh;
    height: 100svh !important;
  }

  .header .text-container {
    padding-top: 55px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-status-badge {
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 6px 12px;
  }

  .hero-title {
    width: 100%;
    font-size: clamp(2.15rem, 10vw, 3.4rem) !important;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .header .roles {
    font-size: clamp(0.95rem, 4vw, 1.35rem) !important;
    letter-spacing: 0.5px;
  }

  .header .roles .role-separator {
    margin-left: 0.2rem !important;
    margin-right: 0.2rem !important;
  }

  .header .social {
    bottom: 44px;
    gap: 0.55rem !important;
    max-width: calc(100vw - 24px);
    justify-content: center;
  }

  .social-glass-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .scroll-down-indicator {
    bottom: 6px;
  }

  .about-card {
    padding: 1.25rem !important;
  }

  .about-img {
    width: 180px;
    height: 180px;
  }

  .experience-badge {
    right: 0;
  }

  .about-card h3 {
    font-size: 1.35rem;
  }

  .skills-showcase .container,
  .portfolio .container,
  .profile .container,
  .services .container,
  .contact .container {
    max-width: 100%;
  }

  .skills-showcase-bg-glow {
    width: 80vw;
    height: 260px;
    filter: blur(45px);
  }

  .skill-swiper-card {
    padding: 1.35rem;
  }

  .skill-card-title {
    font-size: 1.1rem;
  }

  .skill-card-desc {
    font-size: 0.86rem;
  }

  .project-overlay {
    padding: 1rem !important;
  }

  .project-tech-badge {
    max-width: calc(100% - 50px);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .project-info h5,
  .project-info p {
    overflow-wrap: anywhere;
  }

  .service-card {
    padding: 1.35rem !important;
  }

  .service-features-list li {
    align-items: flex-start;
  }

  .contact-info-card:hover {
    transform: none;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  /* The reveal offsets are too large for narrow screens and can expose\n     transformed content beyond the viewport during animation. */
  .reveal-left {
    transform: translateX(-24px);
  }

  .reveal-right {
    transform: translateX(24px);
  }
}

@media (max-width: 575.98px) {
  .main-navbar {
    padding: 12px 0;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-logo-img {
    width: 29px;
    height: 29px;
  }

  .header .text-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 2.7rem) !important;
  }

  .hero-status-badge {
    max-width: calc(100vw - 24px);
  }

  .hero-cta-btn,
  .hero-secondary-btn {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .header .social {
    gap: 0.4rem !important;
  }

  .social-glass-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .about-pill {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.8rem;
  }

  .skills-swiper-controls {
    justify-content: center;
  }

  .profile-info-item {
    gap: 0.65rem !important;
    padding: 0.85rem !important;
  }

  .profile-icon-box {
    width: 38px;
    height: 38px;
  }

  .profile-info-val {
    font-size: 0.85rem;
  }

  .service-card {
    padding: 1.15rem !important;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 1.15rem !important;
  }
}
