/* Custom styles for the portfolio */

/* Glass Navigation Bar */
.glass-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Dark mode glass effect */
[data-theme="dark"] .glass-nav {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass-nav:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glass navbar elements */
.glass-nav .language-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-nav .language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

[data-theme="dark"] .glass-nav .language-btn {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass-nav .language-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile menu glass effect */
.glass-nav #mobile-menu {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass-nav #mobile-menu {
    background: rgba(0, 0, 0, 0.2);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Language selector styles */
.language-btn {
    transition: all 0.3s ease;
}

.language-btn:hover {
    transform: translateY(-1px);
}

/* Navigation styles */
.nav-item {
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.nav-item:hover {
    border-bottom-color: white;
    color: #1a1a1a !important;
}

.nav-item.nav-active {
    border-bottom-color: white;
}

/* Mobile navigation styles */
.mobile-nav {
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin: 4px 0;
}

.mobile-nav:hover {
    border-bottom-color: white;
    color: #1a1a1a !important;
}

.mobile-nav.nav-active {
    border-bottom-color: white;
}

/* Mobile menu animations */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Flag icons */
.flag-icon {
    width: 16px;
    height: 12px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.flag-br {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIxIiBoZWlnaHQ9IjE1IiBmaWxsPSIjMDA5NzM5Ii8+Cjxwb2x5Z29uIHBvaW50cz0iMTAuNSw3LjUgMTguMzc1LDEyIDIuNjI1LDEyIiBmaWxsPSIjRkZERjAwIi8+Cjxwb2x5Z29uIHBvaW50cz0iMTAuNSw3LjUgMTguMzc1LDMgMi42MjUsMyIgZmlsbD0iI0ZGREYwMCIvPgo8Y2lyY2xlIGN4PSIxMC41IiBjeT0iNy41IiByPSIzIiBmaWxsPSIjMDAyNzc2Ii8+Cjwvc3ZnPgo=');
}

.flag-us {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIxIiBoZWlnaHQ9IjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1NCIgZmlsbD0iI0ZGRkZGRiIvPgo8cmVjdCB5PSIyLjMwOCIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEuMTU0IiBmaWxsPSIjRkZGRkZGIi8+CjxyZWN0IHk9IjQuNjE1IiB3aWR0aD0iMjEiIGhlaWdodD0iMS4xNTQiIGZpbGw9IiNGRkZGRkYiLz4KPHJlY3QgeT0iNi45MjMiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1NCIgZmlsbD0iI0ZGRkZGRiIvPgo8cmVjdCB5PSI5LjIzMSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEuMTU0IiBmaWxsPSIjRkZGRkZGIi8+CjxyZWN0IHk9IjExLjUzOCIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEuMTU0IiBmaWxsPSIjRkZGRkZGIi8+CjxyZWN0IHk9IjEzLjg0NiIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEuMTU0IiBmaWxsPSIjRkZGRkZGIi8+CjxyZWN0IHdpZHRoPSI5IiBoZWlnaHQ9IjguMDc3IiBmaWxsPSIjM0MzQjZFIi8+Cjwvc3ZnPgo=');
}

/* Sci-Fi Font for H1 Elements */
.sci-fi-font {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Advanced Effects CSS */

/* Typing Animation */
@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: currentColor; }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid;
    animation: blink 1s infinite;
}

/* Floating Elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(var(--float-amplitude, -20px));
    }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

/* Magnetic Cursor Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

/* Scroll-Triggered Animations */
.scroll-animate {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-zoomIn {
    animation: zoomIn 0.8s ease-out forwards;
}

.animate-slideInDown {
    animation: slideInDown 0.8s ease-out forwards;
}

/* Morphing Shapes */
.morph-shape {
    transition: clip-path 1s ease-in-out;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Custom Button Styles - Updated for grayish-blue palette */
.neon-btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 5px;
    background-color: #152026 !important;
    color: #92A4A6 !important;
    border: 2px solid #92A4A6 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out !important;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.neon-btn:hover {
    background-color: #92A4A6 !important;
    color: #152026 !important;
    border: 2px solid #92A4A6 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(146, 164, 166, 0.3);
}

.neon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(146, 164, 166, 0.2);
}

.neon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(146, 164, 166, 0.4);
}

/* Pulsing animation for neon button */
@keyframes neon-pulse {
    0%, 100% {
        background-color: #152026;
        color: #92A4A6;
        border-color: #92A4A6;
        box-shadow: none;
    }
    50% {
        background-color: #92A4A6;
        color: #152026;
        border-color: #92A4A6;
        box-shadow: 0 4px 8px rgba(146, 164, 166, 0.3);
    }
}

.neon-btn-pulse {
    animation: neon-pulse 2s ease-in-out infinite;
}

/* Enhanced Glow Effects */
.glow-green {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow-green:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

.glow-red {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow-red:hover {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(0, 100, 255, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow-blue:hover {
    box-shadow: 0 0 30px rgba(0, 100, 255, 0.6);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

.bounce-effect {
    animation: bounce 2s ease infinite;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake-effect:hover {
    animation: shake 0.5s ease-in-out;
}

/* Neon Text Effect */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px #00ff00,
        0 0 35px #00ff00,
        0 0 40px #00ff00;
    animation: neon-flicker 2s ease-in-out infinite alternate;
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px #00ff00,
            0 0 35px #00ff00,
            0 0 40px #00ff00;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Tooltips for skill cards */
.tooltip-container {
    position: relative;
}

.tooltip-container::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    margin-bottom: 8px;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

.tooltip-container:hover::after {
    opacity: 1;
}

/* Dark theme tooltip */
[data-theme="dark"] .tooltip-container::after {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: 1px solid rgba(146, 164, 166, 0.3);
}

/* Responsive tooltip */
@media (max-width: 768px) {
    .tooltip-container::after {
        font-size: 0.75rem;
        padding: 6px 10px;
        max-width: 200px;
    }
}