@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --primary: #8b45ff;
    --secondary: #ff6b6b;
    --neon-glow: rgba(139, 69, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-strong-bg: rgba(255, 255, 255, 0.08);
    --glass-strong-border: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    background-image: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(139, 69, 255, 0.15) 100%
    );
    min-height: 100vh;
    color: white;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glassmorphism:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.glassmorphism-strong {
    background: var(--glass-strong-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-strong-border);
    transition: all 0.3s ease;
}

.neon-text {
    text-shadow: 0 0 10px var(--neon-glow);
}

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

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.portfolio-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.portfolio-card:nth-child(2) { animation-delay: 0.1s; }
.portfolio-card:nth-child(3) { animation-delay: 0.2s; }
.portfolio-card:nth-child(4) { animation-delay: 0.3s; }
.portfolio-card:nth-child(5) { animation-delay: 0.4s; }

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 69, 255, 0.2);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
}

.portfolio-card:hover::before {
    left: 100%;
}

audio {
    width: 100%;
    margin: 10px 0;
    border-radius: 8px;
    background: var(--glass-bg);
}

video {
    @apply rounded-lg;
    max-height: 360px;
}

.aspect-video {
    max-height: 360px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        @apply px-4;
    }
}