/* ==========================================================================
   Kövér Bertalan Portfolio - Modern Stylesheet
   ========================================================================== */

/* Custom Smooth Scrolling & Root Defaults */
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: #070a12;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #080c14;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
    border: 2px solid #080c14;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 3D Tilt Card Transformations */
.tilt-card {
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(99, 102, 241, 0.25);
}

/* Gradient text animations */
@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-text {
    background-size: 200% auto;
    animation: textShine 6s ease infinite;
}

/* Glow Border Animation */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, #6366f1, #06b6d4, #8b5cf6, #6366f1);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: textShine 8s linear infinite;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

/* Toast Notification Styles */
.toast-msg {
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

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

.toast-msg.hide {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Timeline Pulse Glow */
.timeline-dot {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

/* Focus outline glow */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
}
