﻿/* Modern Futuristic UI */
body {
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow-x: hidden;
    background: #090b13;
}

.bg-gradient-to-br {
    background: linear-gradient(135deg, #0a0a1a, #0f1a47, #090b13);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
    opacity: 0.4;
    pointer-events: none;
}

/* Particles background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.glass-card {
    background: rgba(15, 20, 40, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(93, 112, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(71, 114, 250, 0.2);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

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

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

.project-card {
    background: rgba(15, 20, 40, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(93, 112, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(71, 114, 250, 0.2);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(71, 114, 250, 0.4);
    border: 1px solid rgba(93, 112, 255, 0.4);
}

.project-card:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.project-card:hover:after {
    left: 120%;
}

.project-card img {
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Neon effects */
.neon-border {
    position: relative;
}

.neon-border::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    background: linear-gradient(45deg, #4776E6, #8E54E9, #4776E6);
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.project-card:hover .neon-border::after {
    opacity: 1;
}

.text-gradient {
    background: linear-gradient(to right, #4776E6, #8E54E9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.futuristic-button {
    background: rgba(71, 118, 230, 0.2);
    border: 1px solid rgba(71, 118, 230, 0.4);
    border-radius: 30px;
    padding: 8px 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.futuristic-button: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: 0.5s;
}

.futuristic-button:hover {
    background: rgba(71, 118, 230, 0.4);
    box-shadow: 0 0 10px rgba(71, 118, 230, 0.5), 0 0 20px rgba(71, 118, 230, 0.3);
}

.futuristic-button:hover:before {
    left: 100%;
}

#search:focus {
    box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.5), 0 0 15px rgba(71, 118, 230, 0.3);
    border-color: rgba(71, 118, 230, 0.8);
}

/* Loading skeleton animation */
.project-card-skeleton {
    background: rgba(15, 20, 40, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(93, 112, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(71, 114, 250, 0.2);
    height: 400px;
    position: relative;
    overflow: hidden;
}

.project-card-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(71, 118, 230, 0.2), transparent);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 20, 40, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(93, 112, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.social-link:hover {
    background: rgba(71, 118, 230, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(71, 118, 230, 0.4);
}

.social-link:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(71, 118, 230, 0.6);
    z-index: -1;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.social-link:hover:after {
    opacity: 0.4;
    transform: scale(1.3);
}

/* Typing effect */
.typing-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
}

.typing-text {
    display: inline-block;
    animation: typing 3.5s steps(40, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Animated background */
.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, rgba(71, 118, 230, 0.1) 0%, transparent 50%);
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 0.3; }
}

/* Floating elements animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Cyber line accents */
.cyber-line {
    position: relative;
}

.cyber-line:before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(71, 118, 230, 0.6), transparent);
}

.cyber-line:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(71, 118, 230, 0.6), transparent);
}
