/* Custom styles for Anisul Kibria's portfolio */

/* Animated background particles */
.particle {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    filter: blur(0.5px);
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(100, 100, 255, 0.7);
    will-change: transform, opacity, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    border-radius: 50%;
    /* Remove CSS animations to avoid conflicts with GSAP */
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-5px) translateX(5px); }
    50% { transform: translateY(5px) translateX(-5px); }
    75% { transform: translateY(-3px) translateX(-3px); }
}

.particle:nth-child(even) {
    animation-duration: 70s;
    animation-delay: -20s;
}

.particle:nth-child(3n) {
    animation-duration: 50s;
    animation-delay: -15s;
}

.particle:nth-child(5n) {
    animation-duration: 80s;
    animation-delay: -25s;
}

#animatedBackground {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Custom transition for theme toggle */
.dark .theme-transition,
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background-color: rgba(243, 244, 246, 0.8);
}

.dark ::-webkit-scrollbar-track {
    background-color: rgba(17, 24, 39, 0.8);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(59, 130, 246, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(59, 130, 246, 0.8);
}

/* Text gradient animation */
.animated-gradient-text {
    background-image: linear-gradient(90deg, #3b82f6, #8b5cf6, #d946ef, #8b5cf6, #3b82f6);
    background-size: 300% 100%;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-animation 8s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero image clip path */
.clip-hero {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Testimonial carousel improvements */
.testimonial-slide {
    transition: transform 0.5s ease;
}

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

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

/* Portfolio item hover effect */
.portfolio-item {
    overflow: hidden;
    position: relative;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: height 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
    height: 100%;
}

/* Add this to make images load with a fade effect */
img.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img.lazy-load.loaded {
    opacity: 1;
}

/* Mobile menu styles */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Custom focus styles */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Add a subtle texture to backgrounds */
.subtle-texture {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
} 