/* Custom CSS for GeeksSpark Website */

/* Base styles */
body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #db6709, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effect for interactive elements */
.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(219, 103, 9, 0.4);
}

/* Animated background */
.animated-bg {
  background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #0f172a, #1e293b, #2d1b0a);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Loading animation */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.shimmer {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Remove extra spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Remove any extra space after footer */
footer {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Ensure no extra space at bottom */
.min-h-screen {
  min-height: 100vh;
}

/* Enhanced animations */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

.animate-wiggle {
  animation: wiggle 1s ease-in-out infinite;
}

.animate-bounce-in {
  animation: bounceIn 1s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-zoom-in {
  animation: zoomIn 0.5s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.6s ease-out;
}

.animate-rotate-in {
  animation: rotateIn 0.8s ease-out;
}

/* Hover effects */
.hover-lift:hover {
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(219, 103, 9, 0.5);
  transition: box-shadow 0.3s ease;
}

/* Background image overlay */
.hero-bg {
  background-attachment: scroll;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* Main container padding for non-hero sections */
main > section:not(.hero-bg) {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  main > section:not(.hero-bg) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  main > section:not(.hero-bg) {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Mouse cursor animations */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #db6709;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(219, 103, 9, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.15s ease;
}

.cursor-hover .cursor-dot {
  transform: scale(2);
  background: #0ea5e9;
}

.cursor-hover .cursor-outline {
  transform: scale(1.5);
  border-color: rgba(14, 165, 233, 0.5);
}

/* Smooth mouse follow effect */
.mouse-follow {
  transition: all 0.1s ease-out;
}

/* Custom cursor for interactive elements */
.cursor-pointer {
  cursor: none;
}

/* Hover effects with mouse animation */
.hover-mouse-effect:hover {
  transform: translateY(-5px) scale(1.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Remove parallax effect */
.parallax {
  transform: none;
  will-change: auto;
}

/* Logo styling - Updated as requested */
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 60px;
  padding: 6px;
}

/* Background card styling - Updated as requested */
.bg-card-dark {
  width: auto;
}

/* Animated Clouds */
.cloud {
  position: absolute;
  background: linear-gradient(135deg, rgba(219, 103, 9, 0.1), rgba(139, 69, 19, 0.1));
  border-radius: 50px;
  opacity: 0.6;
  animation: float-cloud 20s infinite linear;
  pointer-events: none;
}

.cloud-1 {
  width: 80px;
  height: 40px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.cloud-2 {
  width: 120px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: -5s;
  animation-duration: 30s;
}

.cloud-3 {
  width: 100px;
  height: 50px;
  top: 40%;
  left: 70%;
  animation-delay: -10s;
  animation-duration: 35s;
}

.cloud-4 {
  width: 90px;
  height: 45px;
  top: 80%;
  left: 30%;
  animation-delay: -15s;
  animation-duration: 28s;
}

.cloud-5 {
  width: 110px;
  height: 55px;
  top: 10%;
  right: 40%;
  animation-delay: -20s;
  animation-duration: 32s;
}

@keyframes float-cloud {
  0% {
    transform: translateX(-100px) translateY(0px);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(calc(100vw + 100px)) translateY(-20px);
    opacity: 0;
  }
}

/* Tech Card Interactive Effects */
.tech-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, 
    rgba(219, 103, 9, 0.3), 
    rgba(139, 69, 19, 0.3),
    rgba(59, 130, 246, 0.3)
  ) !important;
  border: 2px solid rgba(219, 103, 9, 0.5) !important;
}

/* Removed glare effect */

.tech-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 15px 30px rgba(219, 103, 9, 0.3),
    0 0 20px rgba(219, 103, 9, 0.2);
  border-color: rgba(219, 103, 9, 0.8) !important;
  background: linear-gradient(135deg, 
    rgba(219, 103, 9, 0.4), 
    rgba(139, 69, 19, 0.4),
    rgba(59, 130, 246, 0.4)
  ) !important;
}

.tech-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover .tech-icon {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 10px 20px rgba(219, 103, 9, 0.3);
}

.tech-name {
  transition: all 0.3s ease;
}

.tech-card:hover .tech-name {
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(219, 103, 9, 0.3);
}

/* Mouse Trail Effect */
.mouse-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(219, 103, 9, 0.8), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: trail-fade 0.5s ease-out forwards;
}

@keyframes trail-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

/* Particle System */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Tech Grid Animation */
.tech-grid {
  perspective: 1000px;
}

.tech-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.tech-card:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(10px);
}

/* Floating Animation for Tech Icons */
@keyframes float-tech {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.tech-icon {
  animation: float-tech 3s ease-in-out infinite;
}

.tech-card:nth-child(odd) .tech-icon {
  animation-delay: 0.5s;
}

.tech-card:nth-child(even) .tech-icon {
  animation-delay: 1s;
}

/* Magnetic Effect for Tech Cards */
.tech-card {
  transition: transform 0.1s ease-out;
}

.tech-card.magnetic {
  transform: translate(var(--mouse-x, 0), var(--mouse-y, 0)) scale(1.05);
}

/* Simplified Glow Effect on Hover */
.tech-card:hover {
  box-shadow: 
    0 0 20px rgba(219, 103, 9, 0.4),
    0 0 40px rgba(219, 103, 9, 0.2);
}

/* Simplified Active state glow */
.tech-card.active {
  animation: pulse-glow-simple 2s infinite;
  box-shadow: 
    0 0 25px rgba(219, 103, 9, 0.6),
    0 0 50px rgba(219, 103, 9, 0.3);
}

@keyframes pulse-glow-simple {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(219, 103, 9, 0.4),
      0 0 40px rgba(219, 103, 9, 0.2);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(219, 103, 9, 0.6),
      0 0 60px rgba(219, 103, 9, 0.3);
  }
}

