/* Custom Animations & Premium Polishing */

:root {
    --primary: #0ea5e9;
    --dark: #020617;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Text Masking */
.hero-mask {
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

/* Navbar Scroll Style */
nav.scrolled {
    @apply h-16 bg-dark/80 backdrop-blur-xl border-b border-white/10;
}

/* Interactive Magnetic Button Feel (Simple Version) */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.6s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 0;
}

.btn-premium:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

/* Project Card Glow */
.project-card:hover {
    box-shadow: 0 0 40px -10px rgba(14, 165, 233, 0.15);
}

/* Custom Scrollbar for Modal Content */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Modal States */
#project-modal.active {
    display: flex;
}
#project-modal.active #modal-overlay {
    opacity: 1;
}
#project-modal.active #modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Enhanced Transition Easing */
#modal-overlay, #modal-content {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scroll {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

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

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

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

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