@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-down {
  animation: fadeDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}
.animate-slide-in {
  opacity: 0;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delays for mobile menu items */
.delay-1 {
  animation-delay: 0.05s;
}
.delay-2 {
  animation-delay: 0.1s;
}
.delay-3 {
  animation-delay: 0.15s;
}
.delay-4 {
  animation-delay: 0.2s;
}
.delay-5 {
  animation-delay: 0.25s;
}
.delay-6 {
  animation-delay: 0.3s;
}

/* Navbar link hover underline */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu overlay */
.mobile-overlay {
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Sticky navbar shadow */
.navbar-sticky {
  transition:
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}
.navbar-sticky.scrolled {
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* CTA button pulse */
.cta-pulse {
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}
@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -22px);
  }
}
@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-14px, 16px);
  }
}
/* slider */
.slider-container {
  width: 100%;
}

.slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider-wrapper:last-child {
  margin-bottom: 0;
}

.slider-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  padding: 0.75rem 1.5rem;
  animation: scrollLeft 28s linear infinite;
}

.slider-track-reverse {
  animation: scrollRight 28s linear infinite;
}

.slider-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  letter-spacing: 0.01em;
  padding: 0.3rem 0.9rem 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(226, 232, 240, 0.4);
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(56, 69, 189, 0.075);
  cursor: pointer;
}

.slider-item i {
  font-size: 1.2rem;
  color: #001f44;
  width: 1.4rem;
  text-align: center;
}

/* pause on hover */
.slider-wrapper:hover .slider-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* heading style */
.slider-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.slider-label i {
  font-size: 0.65rem;
  color: #94a3b8;
}
/* about */
.about-section {
  position: relative;
  overflow: hidden;
  background-color: #3c516e00;
  backdrop-filter: blur(2px);
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.about-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: #ef4444;
  opacity: 0.06;
  filter: blur(100px);
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.visual-card {
  animation: floatVisual 6s ease-in-out infinite;
}

@keyframes floatVisual {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.orbit {
  animation: orbitSpin 18s linear infinite;
  transform-origin: center;
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.orbit-reverse {
  animation: orbitSpinReverse 22s linear infinite;
  transform-origin: center;
}

@keyframes orbitSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.accent-line {
  width: 0;
  transition: width 1s ease 0.5s;
}

.reveal.active .accent-line {
  width: 55px;
}

.read-more-btn {
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.read-more-btn:hover {
  transform: translateY(-3px);
}

.read-more-btn span {
  transition: transform 0.3s ease;
}

.read-more-btn:hover span {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .visual-card,
  .orbit,
  .orbit-reverse {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* crafting */
/* custom animations & effects */
@keyframes pulseOrb {
  0%,
  100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1) translate(10px, -10px);
    opacity: 1;
  }
}
@keyframes floatParticle {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-10px, 20px) scale(0.9);
  }
  75% {
    transform: translate(30px, 10px) scale(1.05);
  }
}
@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.6);
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-pulse-orb {
  animation: pulseOrb 8s ease-in-out infinite;
}
.animate-float-1 {
  animation: floatParticle 12s ease-in-out infinite;
}
.animate-float-2 {
  animation: floatParticle 14s ease-in-out infinite reverse;
  animation-delay: -3s;
}
.animate-float-3 {
  animation: floatParticle 10s ease-in-out infinite;
  animation-delay: -6s;
}
.animate-fade-up {
  animation: fadeInUp 0.9s ease forwards;
  opacity: 0;
}
.animate-fade-down {
  animation: fadeInDown 0.8s ease forwards;
  opacity: 0;
}
.animate-pulse-dot {
  animation: pulseDot 2s ease-in-out infinite;
}
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}

/* feature card hover */
.feature-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #4f46e5, #7c3aed);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 32px -12px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.15);
  background: white;
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
  transform: scale(1.05) rotate(-4deg);
}
.feature-icon {
  transition: all 0.3s ease;
}

/* cta button */
.cta-btn {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}
.cta-btn:hover::before {
  left: 100%;
}
.cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px -12px rgba(37, 99, 235, 0.5);
}
.cta-btn:active {
  transform: scale(0.96);
}
.cta-btn i {
  transition: transform 0.3s ease;
}
.cta-btn:hover i {
  transform: translateX(6px);
}

/* gradient text */
.gradient-text {
  background: linear-gradient(135deg, #2563eb, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.work-card {
  max-width: 1200px;
  width: 100%;
  background: rgba(253, 253, 253, 0);
  padding: 4rem 3.5rem;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.06),
    0 10px 20px -6px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

/* subtle background glow */
.work-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    circle at 70% 40%,
    rgba(37, 99, 235, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ===== FRAMER MOTION STYLE ANIMATIONS ===== */
.motion-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.motion-scale {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* work item card */
.card-wapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  background-color: transparent;
}
.work-item {
  position: relative;
  /* background: rgba(255, 255, 255, 0.349); */
  border: 1px solid rgba(226, 232, 240, 0.4);
  border-radius: 1.2rem;
  padding: 1.8rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  opacity: 1;
  transform: scale(1);
}

.work-item.hidden-item {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.work-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #4f46e5, #7c3aed);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover::before {
  transform: scaleX(1);
}

.work-item:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.1);
  box-shadow: 0 16px 40px -16px rgba(37, 99, 235, 0.08);
}

.work-item .image-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #94a3b8;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.work-item:hover .image-placeholder {
  background: linear-gradient(135deg, #e8edf5, #d5dce8);
}

.work-item .image-placeholder .overlay-icon {
  position: absolute;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: white;
  font-size: 1.2rem;
  background: rgba(5, 22, 59, 0.85);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.work-item:hover .image-placeholder .overlay-icon {
  opacity: 1;
  transform: scale(1);
}

.work-item .image-placeholder .bg-pattern {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(37, 99, 235, 0.03) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.work-item:hover .image-placeholder .bg-pattern {
  opacity: 1;
}

.work-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.work-item p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.work-item .tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 600;
  color: #001f44;
  letter-spacing: 0.02em;
  border: 1px solid rgba(37, 99, 235, 0.06);
  margin-top: 0.5rem;
}

/* Filter Pills */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.2rem;
  background: rgba(241, 245, 249, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.4);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.filter-pill:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
  color: #2563eb;
  transform: translateY(-1px);
}

.filter-pill.active {
  background: linear-gradient(135deg, #061a47, #0f0969);
  color: white;
  border-color: #04112c;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.3);
}

.filter-pill.active:hover {
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.filter-pill i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.filter-pill.active i {
  opacity: 1;
}

/* badge pulse */
.badge-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #031233;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.8);
    opacity: 1;
  }
}

/* responsive */
@media (max-width: 1024px) {
  .work-card {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .work-card {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
  }
  .work-item {
    padding: 1.5rem;
  }
  .work-item .image-placeholder {
    height: 140px;
  }
  .filter-pill {
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .work-card {
    padding: 1.5rem 1rem;
  }
  .work-item .image-placeholder {
    height: 120px;
  }
  .filter-pills-wrapper {
    gap: 0.4rem;
  }
}

.tech-card {
  position: relative;

  display: flex;

  min-height: 112px;

  min-width: 105px;

  align-items: center;

  justify-content: center;

  flex-direction: column;

  gap: 10px;

  border: 1px solid rgba(8, 18, 36, 0.08);

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.8);

  padding: 20px 14px;

  box-shadow: 0 1px 2px rgba(8, 18, 36, 0.03);

  backdrop-filter: blur(10px);

  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    background 0.4s ease;

  cursor: default;
}

.tech-card:hover {
  transform: translateY(-8px) scale(1.035);

  border-color: rgba(239, 68, 68, 0.25);

  background: rgba(255, 255, 255, 1);

  box-shadow: 0 20px 45px rgba(8, 18, 36, 0.08);
}

/*
     * Technology abbreviation / logo
     */
.tech-icon {
  display: flex;

  height: 42px;

  min-width: 42px;

  align-items: center;

  justify-content: center;

  font-size: 16px;

  font-weight: 800;

  letter-spacing: -0.04em;

  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover .tech-icon {
  transform: translateY(-3px) scale(1.08);
}

/*
     * Technology name
     */
.tech-card span {
  font-size: 11px;

  font-weight: 500;

  letter-spacing: 0.01em;

  color: #64748b;

  transition: color 0.3s ease;
}

.tech-card:hover span {
  color: #081224;
}

/*
     * Featured final card
     */
.tech-card-featured {
  min-width: 150px;

  border-color: rgba(239, 68, 68, 0.18);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1),
    rgba(254, 242, 242, 0.8)
  );
}

.tech-card-featured span {
  color: #081224;

  font-weight: 600;
}

/*
     * Reveal animation
     */
[data-tech-reveal],
[data-tech-card] {
  opacity: 0;

  transform: translateY(40px) scale(0.94);

  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-tech-reveal].tech-visible,
[data-tech-card].tech-visible {
  opacity: 1;

  transform: translateY(0) scale(1);
}

/*
     * Mobile:
     * keep pyramid feeling while allowing
     * cards to remain readable.
     */
@media (max-width: 639px) {
  .tech-row {
    width: 100%;

    justify-content: center;
  }

  .tech-card {
    min-width: 0;

    min-height: 100px;

    padding: 16px 8px;

    border-radius: 15px;
  }

  .tech-icon {
    height: 36px;

    min-width: 36px;

    font-size: 14px;
  }

  .tech-card span {
    font-size: 10px;
  }
}

/*
     * Reduced motion
     */
@media (prefers-reduced-motion: reduce) {
  [data-tech-reveal],
  [data-tech-card] {
    opacity: 1;

    transform: none;

    transition: none;
  }

  .tech-card:hover {
    transform: none;
  }
}
