/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Navigation styles */
.nav-link {
    @apply text-gray-300 hover:text-green-400 transition-colors relative px-1;
}

.nav-link::after {
    content: '';
    @apply absolute bottom-0 left-0 w-0 h-0.5 bg-green-400 transition-all duration-300;
}

.nav-link:hover::after {
    @apply w-full;
}

.nav-active {
    @apply text-green-400;
}

.nav-active::after {
    @apply w-full;
}

/* Particle animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: rgba(74, 222, 128, 0.2);
    border-radius: 50%;
    pointer-events: none;
    animation: float 5s infinite;
    animation-delay: var(--delay);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    25% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(-200px) translateX(100px);
        opacity: 0.8;
    }
    75% {
        opacity: 0.5;
    }
}

/* Text animations */
.animate-text {
    animation: hue 10s infinite;
    -webkit-background-clip: text;
}

.animate-text-delay {
    animation: hue 10s infinite;
    animation-delay: 0.5s;
    -webkit-background-clip: text;
}

@keyframes hue {
    0%, 100% {
        filter: hue-rotate(0deg);
}
    50% {
        filter: hue-rotate(60deg);
    }
}

/* Card hover effects */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -5px rgba(74, 222, 128, 0.2);
}

/* Button hover effects */
.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn-hover:hover::before {
    left: 100%;
}

/* Glassmorphism effects */
.glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Counter animation */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.counter {
    animation: countUp 1s ease-out forwards;
} 

/* Page transitions */
.page-transition {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form input focus effects */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

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

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

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

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

/* Gradient border animation */
.gradient-border {
    position: relative;
    border-radius: 0.5rem;
    background: linear-gradient(45deg, #10b981, #3b82f6, #8b5cf6);
    padding: 2px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.5rem;
    background: linear-gradient(45deg, #10b981, #3b82f6, #8b5cf6);
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Loading animation */
.loading {
    position: relative;
    width: 24px;
    height: 24px;
}

.loading::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #10b981;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 640px) {
    .nav-link {
        @apply text-sm;
}

    h1 {
        @apply text-3xl;
}

    h2 {
        @apply text-2xl;
}

    .particle {
        --size: 1px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    h1 {
        @apply text-4xl;
    }
    
    h2 {
        @apply text-3xl;
}

    .particle {
        --size: 1.5px;
    }
}

/* Utility classes */
.text-gradient {
    @apply bg-clip-text text-transparent bg-gradient-to-r from-green-400 via-blue-500 to-purple-500;
}

.bg-gradient {
    @apply bg-gradient-to-r from-green-500 via-blue-500 to-purple-500;
    }

.hover-scale {
    @apply transform transition-transform hover:scale-105;
}

.hover-glow {
    @apply transition-shadow hover:shadow-lg hover:shadow-green-500/20;
}

.hover-text-glow {
    @apply transition-colors hover:text-green-400;
    }

.hover-border-glow {
    @apply transition-colors hover:border-green-500/50;
} 