/**
 * Custom CSS for Portfolio
 *
 * This file is for custom styles not covered by Tailwind CSS
 */

/* Mobile menu toggle */
#mobile-menu.hidden {
    display: none;
}

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

/* Ensure proper stacking context for hero section */
.hero-section {
    position: relative;
    z-index: 10;
}

/* Portfolio section should not interfere with other sections */
[data-portfolio-section] {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

/* Ensure portfolio items are properly contained */
[data-portfolio-section] [data-category] {
    position: relative;
    z-index: auto;
}

/* Fix any potential overlay issues */
[data-portfolio-section] .group .absolute {
    z-index: 2;
}

/* Prevent any invisible clickable areas */
[data-portfolio-section] .absolute.inset-0 {
    pointer-events: none;
}

/* Hero section should be clickable normally */
.hero-section * {
    pointer-events: auto;
}

/* Only portfolio items should have portfolio hover effects */
[data-category]:hover {
    /* Portfolio specific hover styles */
}

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

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

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.gradient-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Loading spinner (optional) */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3490dc;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

