/* Custom Animations */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes circle-rotate-1 {
    0% {
        transform: rotate(0deg) translateX(0);
    }
    100% {
        transform: rotate(360deg) translateX(0);
    }
}

@keyframes circle-rotate-2 {
    0% {
        transform: rotate(360deg) scale(1);
    }
    100% {
        transform: rotate(0deg) scale(1.1);
    }
}

@keyframes circle-rotate-3 {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(-360deg) scale(0.9);
    }
}

@keyframes line-pulse {
    0%, 100% {
        opacity: 0.1;
        stroke-width: 1.5;
    }
    50% {
        opacity: 0.4;
        stroke-width: 2.5;
    }
}

@keyframes grid-fade {
    0%, 100% {
        opacity: 0.05;
    }
    50% {
        opacity: 0.15;
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.5), inset 0 0 5px rgba(34, 197, 94, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.8), inset 0 0 10px rgba(34, 197, 94, 0.2);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Tailwind Config Extensions */
:root {
    --animation-delay-2000: 2s;
    --animation-delay-4000: 4s;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

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

/* Logo Animations */
@keyframes text-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes circle-pulse {
    0%, 100% {
        border-width: 2px;
        opacity: 0.6;
    }
    50% {
        border-width: 2.5px;
        opacity: 1;
    }
}

@keyframes number-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-container:hover {
    transform: scale(1.08);
}

.logo-container:hover .logo-text-animate {
    filter: brightness(1.2);
}

.logo-container:hover .logo-four-circle {
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
}

/* Logo Text Animation */
.logo-text-animate {
    animation: text-float 3s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.logo-text-animate:nth-child(3) {
    animation-delay: 0.3s;
}

/* Logo Four Circle */
.logo-four-circle {
    animation: circle-pulse 2s ease-in-out infinite;
    transition: box-shadow 0.3s ease;
}

/* Logo Four Text */
.logo-four-text-animate {
    animation: number-pulse 2s ease-in-out infinite;
}

/* Navigation Links */
.nav-link {
    position: relative;
    font-weight: 600;
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #06b6d4, #a855f7);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #06b6d4;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button Hover Effects */
.group:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Table Row Animations */
tbody tr {
    animation: slide-in 0.5s ease-out forwards;
}

tbody tr:nth-child(1) { animation-delay: 0.1s; }
tbody tr:nth-child(2) { animation-delay: 0.2s; }
tbody tr:nth-child(3) { animation-delay: 0.3s; }
tbody tr:nth-child(4) { animation-delay: 0.4s; }
tbody tr:nth-child(5) { animation-delay: 0.5s; }
tbody tr:nth-child(6) { animation-delay: 0.6s; }

/* Background SVG Animations */
.bg-circle-1 {
    animation: circle-rotate-1 20s linear infinite;
    transform-origin: 200px 150px;
}

.bg-circle-2 {
    animation: circle-rotate-2 25s ease-in-out infinite;
    transform-origin: 1000px 600px;
}

.bg-circle-3 {
    animation: circle-rotate-3 30s ease-in-out infinite;
    transform-origin: 600px 400px;
}

.bg-line-1 {
    animation: line-pulse 4s ease-in-out infinite;
}

.bg-line-2 {
    animation: line-pulse 5s ease-in-out infinite 0.5s;
}

.bg-line-3 {
    animation: line-pulse 6s ease-in-out infinite 1s;
}

.grid-lines {
    animation: grid-fade 8s ease-in-out infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #06b6d4, #a855f7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #22d3ee, #c084fc);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-link {
        font-size: 0.875rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }
}

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

/* Text Selection */
::selection {
    background: linear-gradient(to right, #06b6d4, #a855f7);
    color: white;
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}
