@import "tailwindcss";

@theme {
    --color-primary: #3b82f6;
    --color-secondary: #10b981;
    --color-accent: #f59e0b;
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

/* Custom Styles for MD Nymur Reza Portfolio */

@layer base {
    html {
        scroll-behavior: smooth;
    }
    
    body {
        @apply antialiased;
    }
}

@layer utilities {
    .glass {
        background-color: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(16px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.125);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    }
    
    .dark .glass {
        background-color: rgba(15, 23, 42, 0.6);
        border-color: rgba(255, 255, 255, 0.08);
    }
    
    .glass-card {
        background-color: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(8px) saturate(150%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .dark .glass-card {
        background-color: rgba(30, 41, 59, 0.3);
        border-color: rgba(255, 255, 255, 0.05);
    }

    .glass-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
        background-color: rgba(255, 255, 255, 0.45);
        border-color: rgba(59, 130, 246, 0.3);
    }

    .dark .glass-card:hover {
        background-color: rgba(30, 41, 59, 0.5);
        border-color: rgba(59, 130, 246, 0.4);
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    }

    .project-card-inner {
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        transform-style: preserve-3d;
    }

    .project-card:hover .project-card-inner {
        transform: rotateX(2deg) rotateY(2deg);
    }

    .btn-premium {
        @apply relative overflow-hidden transition-all duration-300 active:scale-95;
    }

    .btn-premium::before {
        content: '';
        @apply absolute inset-0 bg-white/20 translate-x-[-100%] transition-transform duration-500 skew-x-[-20deg];
    }

    .btn-premium:hover::before {
        @apply translate-x-[100%];
    }

    .bg-gradient-mesh {
        background-image: 
            radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
            radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
            radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.1) 0px, transparent 50%),
            radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    }
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

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

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

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

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

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

/* Navbar Scrolled State */
nav.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

.dark nav.scrolled {
    background-color: rgba(15, 23, 42, 0.8);
}

/* Active Nav Link */
nav a.active {
    @apply text-primary font-bold;
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 9999px;
}

/* Typing Cursor */
.typed-cursor {
    color: #3b82f6;
}

/* Skill Bar Animation */
.skill-bar {
    transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1);
}

/* Project Card Filtering */
.project-card.hidden {
    display: none;
}

/* Back to Top Visible */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #10b981);
    border-radius: 9999px;
    border: 3px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #059669);
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Grid Pattern Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
}

/* Button Pulse Effect */
@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.btn-pulse {
    animation: pulse-soft 2s infinite;
}

/* Shine Animation */
@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.animate-shine {
    position: relative;
    overflow: hidden;
}

.animate-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}
