* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html::-webkit-scrollbar {
  width: 12px;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #6365f14e #dcdcff30;
}

body {
  font-family: "Poppins";
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(120deg, #f9fafb 0%, #f3f4f6 100%);
  color: #111;
}

.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(63, 94, 251, 0.1), rgba(168, 85, 247, 0.1), rgba(94, 234, 212, 0.1));
  background-size: 300% 300%;
  animation: shift 14s ease-in-out infinite;
  filter: blur(40px);
}

@keyframes shift {
  0% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 50%
  }
}

.navbar {
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.267) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4rem 1.25rem;
  min-height: 100vh;
}

.preview {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.preview img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  display: block;
}

.glass-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1100px;
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: rgba(255, 255, 255, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  overflow: hidden;
}

.glass-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between
}

.glass-grid>* {
  flex: 1 1 300px;
  min-width: 250px;
}

.copy h1 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.1;
  color: #191919;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.copy h3 {
  color: #191919;
}

.cta {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.9rem
}

.btn-custom {
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  color: white;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-custom:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
}

.btn-custom:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary-custom {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #111;
  transition: background 0.25s ease
}

.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.6)
}

.glass-card::before {
  content: "";
  position: absolute;
  left: -30%;
  top: -30%;
  width: 60%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0) 60%);
  transform: rotate(-18deg);
  filter: blur(20px);
  pointer-events: none;
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 40%;
  background: rgba(0, 0, 0, 0.15);
  transform: translate3d(0, 0, 0);
  opacity: 0;
  animation: float 8s linear infinite
}

.particle.p1 {
  left: 12%;
  top: 18%;
  animation-delay: 0s
}

.particle.p2 {
  left: 76%;
  top: 6%;
  animation-delay: 1s
}

.particle.p3 {
  left: 52%;
  top: 48%;
  animation-delay: 2.4s
}

.particle.p4 {
  left: 28%;
  top: 68%;
  animation-delay: 4.1s
}

.particle.p5 {
  left: 88%;
  top: 72%;
  animation-delay: 5.3s
}

.particle.p6 {
  left: 33%;
  top: 32%;
  animation-delay: 6.3s
}

.particle.p11 {
  left: 10%;
  top: 98%;
  animation-delay: 0s
}

.particle.p22 {
  left: 76%;
  top: 96%;
  animation-delay: 1s
}

.particle.p33 {
  left: 52%;
  top: 98%;
  animation-delay: 2.4s
}

.particle.p44 {
  left: 28%;
  top: 98%;
  animation-delay: 4.1s
}

.particle.p55 {
  left: 88%;
  top: 92%;
  animation-delay: 5.3s
}

.particle.p66 {
  left: 33%;
  top: 92%;
  animation-delay: 6.3s
}

@keyframes float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.8)
  }

  10% {
    opacity: 1
  }

  50% {
    transform: translateY(-18px) scale(1.05)
  }

  100% {
    opacity: 0;
    transform: translateY(-36px) scale(0.8)
  }
}

@media (prefers-reduced-motion:reduce) {

  .bg-animation,
  .particle {
    animation: none
  }
}

/* About contact projects Skills sections */
.about,
.skills,
.contact,
.projects {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 92%;
  margin: 3rem auto;
  background: rgba(255, 255, 255, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(14px);
}

.about h2,
.projects h2,
.contact h2,
.skills h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1)
}

@media (max-width: 768px) {

  .about,
  .projects,
  .contact,
  .skills {
    padding: 1.2rem;
    margin: 1.5rem auto;
  }

  .col-md-4 .border-end {
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #c5c5c554 !important;
    border-top: 1px solid #c5c5c554 !important;
  }

  .preview {
    justify-content: center;
    align-items: center;
    width: 100%;
    display: flex;
  }

  .preview img {
    width: 90%;
    max-width: 400px;
  }

  .btn-custom {
    padding: 0.6rem 1.1rem;
    font-size: smaller;
  }
}