* {
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #ec4899);
  border-radius: 4px;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
  background: rgba(23, 23, 23, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Larger FontAwesome Icons */
.fa-solid,
.fa-regular,
.fa-brands {
  font-size: 1.45rem;
  line-height: 1;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-animate {
  background: linear-gradient(90deg, #6366f1, #ec4899, #06b6d4, #6366f1);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient 8s linear infinite;
}

/* Magnetic Button Effect */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Project Card Hover */
.project-card {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-card:hover .project-image {
  transform: scale(1.1);
}

/* Service Card */
.service-card {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

/* Navigation Link Hover */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Hero Background Animation */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 10s ease-in-out infinite;
}

/* Kinetic Text */
.kinetic-char {
  display: inline-block;
  transition: transform 0.3s ease;
}
.kinetic-char:hover {
  transform: translateY(-10px) rotate(5deg);
}

/* Skill Tag */
.skill-tag {
  transition: all 0.3s ease;
}
.skill-tag:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #6366f1, #ec4899);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background-color: #6366f1;
}
.cursor-outline {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(99, 102, 241, 0.5);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

/* Loading Animation */
.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* Stats Counter */
.stat-number {
  font-variant-numeric: tabular-nums;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.project-card-horizontal {
  transition: transform 0.3s ease;
  min-width: 280px;
}

.project-card-horizontal:hover {
  transform: translateY(-5px);
}

#projects-track {
  scroll-padding-inline: 1rem;
}

@media (max-width: 768px) {
  #scroll-left,
  #scroll-right {
    display: none;
  }
}

@media (min-width: 1280px) {
  #projects-track {
    gap: 1.5rem;
  }
}
