/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --primary-dark: #050505;
    --primary-darker: #010101;
    --accent: #7c3aed;
    --accent-dark: #5b21b6;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --glow: #00f0ff;
    --error: #ef4444;
}
/* Dark theme adjustments */
body {
    background: var(--primary-darker);
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    color: white;
    font-weight: 600;
}

a {
    color: var(--accent);
    transition: all 0.3s ease;
}

a:hover {
    color: white;
}

/* Glitch effect */
.glitch-effect {
    position: relative;
}

.glitch-text {
    position: relative;
    animation: glitch-skew 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.glitch-text::before {
    color: var(--glow);
    z-index: -1;
    animation: glitch-effect 3s infinite;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.glitch-text::after {
    color: var(--accent);
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.8);
}
.glitch-active {
    animation: glitch-skew 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 5;
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg, 0deg);
    }
    48% {
        transform: skew(0deg, 0deg);
    }
    50% {
        transform: skew(5deg, 0deg);
    }
    52% {
        transform: skew(-5deg, 0deg);
    }
    54% {
        transform: skew(0deg, 0deg);
    }
    100% {
        transform: skew(0deg, 0deg);
    }
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
    background-clip: padding-box;
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}
/* Selection colors */
::selection {
    background: #7c3aed;
    color: white;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Section transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Custom underline effect */
.custom-underline {
    position: relative;
    display: inline-block;
}

.custom-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7c3aed;
    transition: width 0.3s ease;
}

.custom-underline:hover::after {
    width: 100%;
}