/* --- Base Styles --- */
body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background-color: #0a0a0f;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
}

.font-display {
    font-family: 'Orbitron', sans-serif;
}

.font-body {
    font-family: 'Rajdhani', sans-serif;
}

/* --- Animations --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    }
}

@keyframes text-pulse-glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }

    50% {
        text-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    }
}

@keyframes scan-line {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes glitch {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-2px, 2px);
    }

    94% {
        transform: translate(2px, -2px);
    }

    96% {
        transform: translate(-2px, -2px);
    }

    98% {
        transform: translate(2px, 2px);
    }
}

/* --- Animation Classes --- */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-text-glow {
    animation: text-pulse-glow 2s ease-in-out infinite;
}

.glitch-hover:hover {
    animation: glitch 0.3s ease-in-out;
}

/* --- UI Elements --- */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
}

.gradient-border {
    background: linear-gradient(135deg, #0d0d0d, #1a1a2e);
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #00ff88, #00d4ff, #ff00aa);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    border-radius: inherit;
    pointer-events: none;
}

.scanline-overlay {
    position: relative;
    min-height: 100vh;
}

.scanline-overlay::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent, transparent 2px,
            rgba(0, 255, 136, 0.03) 2px,
            rgba(0, 255, 136, 0.03) 4px);
    pointer-events: none;
    z-index: 100;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
    z-index: 1000;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff88, #00d4ff);
    border-radius: 5px;
    border: 2px solid #0a0a0f;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d4ff, #00ff88);
}

.nav-link {
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.project-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(13, 13, 13, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    text-align: center;
}

.skill-bar {
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    height: 100%;
    border-radius: inherit;
}

.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

button {
    cursor: pointer;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.05);
}

/* Skill bars container */
.h-3 {
    height: 0.75rem;
    border-radius: 9999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}