/* Custom CSS for Portfolio Website */

/* Glass morphism effects */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-button {
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(255, 0, 128, 0.37);
}

/* Dark mode styles #22ac7c;*/
.dark .glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark{
    background: #1a202c;
    color: #5def08;
    transition: background-color 0.3s ease;
}

/* Light mode styles */
body:not(.dark) {
    background: linear-gradient(135deg, #D8BFD8 0%, #D8BFD8 100%);
    color: #1a202c;
}

body:not(.dark) .glass-card {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1a202c;
}

body:not(.dark) header {
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Floating animation for profile image */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Neon glow effects */
.neon-glow {
    box-shadow: 0 0 20px #ff0080, 0 0 40px #ff0080, 0 0 60px #ff0080;
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        box-shadow: 0 0 20px #ff0080, 0 0 40px #ff0080, 0 0 60px #ff0080;
    }
    to {
        box-shadow: 0 0 10px #ff0080, 0 0 20px #ff0080, 0 0 30px #ff0080;
    }
}

/* Skill cards */
.skill-card {
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

.skill-card:hover {
    background: rgba(255, 0, 128, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 128, 0.3);
}

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stagger animation for skill cards */
.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }
.skill-card:nth-child(9) { animation-delay: 0.9s; }

/* Telegram-style vanish animation */
@keyframes vanish {
    0% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) rotateY(90deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotateY(180deg);
    }
}

.vanish-animation {
    animation: vanish 0.5s ease-in-out forwards;
}

/* Telegram-style uncover animation */
@keyframes uncover {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(-180deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

.uncover-animation {
    animation: uncover 0.5s ease-in-out forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation link active state */
.nav-link.active {
    color: #ff0080;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0080, #8000ff);
    border-radius: 1px;
}

/* Typing cursor animation */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-cursor {
    animation: blink 1s infinite;
}

/* Project card hover effects */
.project-card:hover .project-description {
    display: block !important;
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card video transition */
.service-card .service-video {
    margin-top: 16px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s ease;
}

.service-card .service-video.show {
    transform: scale(1);
    opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .skill-card {
        font-size: 14px;
        padding: 8px;
    }
    
    .project-card, .service-card {
        padding: 16px;
    }
    
    .glass-card {
        backdrop-filter: blur(5px);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff0080, #8000ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff0080, #8000ff);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Button pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg, #ff0080, #8000ff, #ff0080, #8000ff);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Social icon hover effects */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 0, 128, 0.3);
}

/* Theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Parallax effect for sections */
.parallax-section {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced mobile menu */
#mobile-menu {
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced glass effect for light mode */
body:not(.dark) .glass-card {
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.3);
}

/* Video container styling */
.service-video video {
    border: 2px solid rgba(255, 0, 128, 0.3);
    transition: border-color 0.3s ease;
}

.service-video video:hover {
    border-color: rgba(255, 0, 128, 0.6);
}







@keyframes serviceShow {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes serviceHide {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.service-video.show {
    animation: serviceShow 0.3s ease-out forwards;
    display: block;
}

.service-video.hidden {
    animation: serviceHide 0.3s ease-in forwards;
    display: none;
}






