/* =============================================
   Bento Portfolio - Styles
   A modern bento grid portfolio design
   ============================================= */

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    content-visibility: auto;
}

.bento-card, .project-card {
    will-change: transform;
    contain: layout style paint;
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

html,
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Bento Card Styles */
.bento-card {
    transition: all 0.3s ease;
}

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

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark Mode */
.dark-mode {
    background: #0f0f23;
    color: #ffffff;
}

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

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

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Animation for Profile Image */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Highlighted Section (for editing mode) */
.highlighted-section {
    outline: 2px solid #3F20FB;
    background-color: rgba(63, 32, 251, 0.1);
}

/* Edit Button */
.edit-button {
    position: absolute;
    z-index: 1000;
}

/* Fade In Animation for Elements */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

/* Stagger Animations */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

/* Progress Bar Styles */
.progress-bar {
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Card Hover Effects */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .content {
    transform: translateY(0);
}

/* Tool Cards */
.tool-card {
    transition: all 0.3s ease;
}

.tool-card:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tool-card:hover i {
    transform: scale(1.1);
}

/* Social Link Cards */
.social-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-card:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Stats Card Hover */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    border-color: currentColor;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bento-card {
        padding: 1rem;
    }

    .hero-headline {
        font-size: 2.5rem;
    }
}

/* Custom Gradient Classes */
.gradient-purple-blue {
    background: linear-gradient(to right, #8b5cf6, #3b82f6);
}

.gradient-green-teal {
    background: linear-gradient(to right, #22c55e, #14b8a6);
}

.gradient-orange-red {
    background: linear-gradient(to right, #f97316, #ef4444);
}

.gradient-blue-cyan {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
}

.gradient-green-emerald {
    background: linear-gradient(to right, #22c55e, #10b981);
}

.gradient-purple-pink {
    background: linear-gradient(to right, #9333ea, #ec4899);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Tag Colors */
.tag-ui-ux {
    background-color: #2563eb;
}

.tag-mobile {
    background-color: #9333ea;
}

.tag-branding {
    background-color: #16a34a;
}

.tag-web {
    background-color: #ea580c;
}

.tag-illustration {
    background-color: #db2777;
}

.tag-print {
    background-color: #ca8a04;
}

.tag-ui-design {
    background-color: #4f46e5;
}
