/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Fira Code', monospace;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;  /* Reduced width */
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Header Section */
.header {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 30px;
    border-radius: 50%;
    padding: 4px;
    background: #0d1117;
}

.profile-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg,
        #ff0000, #ff7300, #fffb00, #48ff00,
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    -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;
    animation: animateGradient 20s linear infinite;
    background-size: 400% 400%;
}

.profile-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg,
        #ff0000, #ff7300, #fffb00, #48ff00,
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
    animation: animateGradient 20s linear infinite;
    background-size: 400% 400%;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-wrapper:hover .profile-pic {
    transform: scale(1.05) rotate(5deg);
}

.profile-wrapper:hover::after {
    filter: blur(15px);
    opacity: 0.8;
}

@keyframes animateGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 150%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Profile Section */
.profile-section {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    border-radius: 22px;
    z-index: -1;
    animation: animateGradient 20s linear infinite;
    opacity: 0.5;
}

.profile-section:hover::before {
    opacity: 0.8;
}

/* Profile Text Animations */
.profile-name {
    color: #ffffff;
    font-size: 2.5rem;
    margin: 15px 0;
    background: linear-gradient(45deg,
        #ff0000, #ff7300, #fffb00, #48ff00,
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: animateGradient 20s linear infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-title {
    color: #c9d1d9;
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.profile-section:hover .profile-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Add glow effect on hover */
.profile-wrapper:hover {
    box-shadow: 
        0 0 15px rgba(255, 0, 0, 0.3),
        0 0 30px rgba(255, 115, 0, 0.2),
        0 0 45px rgba(255, 251, 0, 0.1);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(255, 0, 0, 0.3),
            0 0 30px rgba(255, 115, 0, 0.2),
            0 0 45px rgba(255, 251, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(255, 0, 0, 0.4),
            0 0 40px rgba(255, 115, 0, 0.3),
            0 0 60px rgba(255, 251, 0, 0.2);
    }
}

h1 {
    color: #58a6ff;
    font-size: 2.5rem; /* Reduced font size */
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
}

/* Enhanced Rainbow Text with Glitch Effect */
.rainbow-text {
    font-weight: bold;
    background: linear-gradient(90deg, 
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 400%;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    display: inline-block;
    white-space: nowrap;
    animation: rainbow 5s linear infinite;
}

.rainbow-text::before {
    content: attr(data-text-1);
    animation: 
        typing1 3s steps(30, end),
        text-switch1 12s infinite,
        glitch 3s infinite;
    position: relative;
    display: inline-block;
}

.rainbow-text::after {
    content: attr(data-text-1);
    position: absolute;
    left: 0;
    animation: 
        typing1 3s steps(30, end),
        text-switch1 12s infinite,
        glitch-layer 3s infinite;
    top: 0;
    background: #0d1117;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

@keyframes glitch {
    0% {
        transform: none;
        opacity: 1;
    }
    7% {
        transform: skew(-0.5deg, -0.9deg);
        opacity: 0.75;
    }
    10% {
        transform: none;
        opacity: 1;
    }
    27% {
        transform: none;
        opacity: 1;
    }
    30% {
        transform: skew(0.8deg, -0.1deg);
        opacity: 0.75;
    }
    35% {
        transform: none;
        opacity: 1;
    }
    52% {
        transform: none;
        opacity: 1;
    }
    55% {
        transform: skew(-1deg, 0.2deg);
        opacity: 0.75;
    }
    50% {
        transform: none;
        opacity: 1;
    }
    72% {
        transform: none;
        opacity: 1;
    }
    75% {
        transform: skew(0.4deg, 1deg);
        opacity: 0.75;
    }
    80% {
        transform: none;
        opacity: 1;
    }
    100% {
        transform: none;
        opacity: 1;
    }
}

@keyframes glitch-layer {
    0% {
        transform: none;
        opacity: 0.25;
    }
    7% {
        transform: translate(-2px, -3px);
        opacity: 0.5;
    }
    10% {
        transform: none;
        opacity: 0.25;
    }
    27% {
        transform: none;
        opacity: 0.25;
    }
    30% {
        transform: translate(-5px, -2px);
        opacity: 0.5;
    }
    35% {
        transform: none;
        opacity: 0.25;
    }
    52% {
        transform: none;
        opacity: 0.25;
    }
    55% {
        transform: translate(-5px, -1px);
        opacity: 0.5;
    }
    50% {
        transform: none;
        opacity: 0.25;
    }
    72% {
        transform: none;
        opacity: 0.25;
    }
    75% {
        transform: translate(-2px, -6px);
        opacity: 0.5;
    }
    80% {
        transform: none;
        opacity: 0.25;
    }
    100% {
        transform: none;
        opacity: 0.25;
    }
}

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

@keyframes text-switch1 {
    0%, 33% { 
        content: attr(data-text-1);
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    33.1%, 66% { 
        content: attr(data-text-2);
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    66.1%, 100% { 
        content: attr(data-text-3);
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

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

/* Green Highlight for Security Researcher */
.highlight-green {
    color: #4ade80;
}

/* About Section */
.about {
    background-color: #161b22;
    padding: 20px;  /* Reduced padding */
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
    max-width: 700px; /* Reduced width */
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

h2 {
    color: #58a6ff;
    font-size: 1.8rem;  /* Reduced font size */
    margin-bottom: 15px;
}

.about p {
    color: #c9d1d9;
    font-size: 1.1rem; /* Reduced font size */
    line-height: 1.6;
}

.about i {
    color: #58a6ff;
    font-size: 1.2rem;
    min-width: 24px;
}

.about strong {
    color: #58a6ff;
    margin: 0 5px;
}

/* Technologies & Tools Section */
.skills {
    margin-bottom: 40px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(33, 38, 45, 0.8);
    padding: 15px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    animation: cardFloat 4s ease-in-out infinite;
}

.icon-card::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;
}

.icon-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(45deg, 
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    -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;
    background-size: 400%;
    animation: borderGlow 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(88, 166, 255, 0.2);
    box-shadow: 0 8px 32px rgba(88, 166, 255, 0.3);
}

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

.icon-card:hover::after {
    opacity: 1;
}

.icon-card img {
    width: 45px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.icon-card:hover img {
    transform: scale(1.1);
}

.icon-card p {
    color: #c9d1d9;
    margin-top: 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.icon-card:hover p {
    color: #ffffff;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes borderGlow {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Stagger the floating animation for tech cards */
.icon-card:nth-child(1) { animation-delay: 0s; }
.icon-card:nth-child(2) { animation-delay: 0.1s; }
.icon-card:nth-child(3) { animation-delay: 0.2s; }
.icon-card:nth-child(4) { animation-delay: 0.3s; }
.icon-card:nth-child(5) { animation-delay: 0.4s; }
.icon-card:nth-child(6) { animation-delay: 0.5s; }
.icon-card:nth-child(7) { animation-delay: 0.6s; }
.icon-card:nth-child(8) { animation-delay: 0.7s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-icons {
        gap: 15px;
        padding: 15px;
    }
    
    .icon-card {
        width: 100px;
        padding: 12px;
    }
    
    .icon-card img {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .tech-icons {
        gap: 10px;
        padding: 10px;
    }
    
    .icon-card {
        width: 90px;
        padding: 10px;
    }
    
    .icon-card img {
        width: 35px;
    }
}

/* Footer Section */
.footer {
    margin-top: 40px;
}

.footer p {
    font-size: 1rem; /* Reduced footer text size */
    color: #c9d1d9;
}

.footer a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    text-decoration: underline;
    color: #1f6feb;
}

/* Social Links Section */
.social-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    color: #c9d1d9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-btn:hover::before {
    opacity: 1;
}

/* Platform-specific styles */
.github {
    color: #6e5494;
}

.github:hover {
    background-color: #6e5494;
    color: white;
    transform: translateY(-5px) scale(1.1) rotate(360deg);
}

.facebook {
    color: #3b5998;
}

.facebook:hover {
    background-color: #3b5998;
    color: white;
    transform: translateY(-5px) scale(1.1) rotate(360deg);
}

.linkedin {
    color: #0077b5;
}

.linkedin:hover {
    background-color: #0077b5;
    color: white;
    transform: translateY(-5px) scale(1.1) rotate(360deg);
}

.twitter {
    color: #1da1f2;
}

.twitter:hover {
    background-color: #1da1f2;
    color: white;
    transform: translateY(-5px) scale(1.1) rotate(360deg);
}

/* Add tooltip effect */
.social-btn::after {
    content: attr(data-platform);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* Add ripple effect on click */
.social-btn:active {
    transform: scale(0.95);
}

/* Add floating animation for social icons */
@keyframes floatSocial {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.social-btn {
    animation: floatSocial 3s ease-in-out infinite;
}

/* Stagger the floating animation for each icon */
.social-btn:nth-child(1) { animation-delay: 0s; }
.social-btn:nth-child(2) { animation-delay: 0.2s; }
.social-btn:nth-child(3) { animation-delay: 0.4s; }
.social-btn:nth-child(4) { animation-delay: 0.6s; }

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Keybinds section styling */
.keybinds {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 900px;
}

.keybinds h2 {
    color: #58a6ff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.keybinds table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.keybinds table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.keybinds table tr:last-child td {
    border-bottom: none;
}

.keybinds table tr {
    transition: all 0.3s ease;
}

.keybinds table tr:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

.keybinds a {
    color: #58a6ff;
    text-decoration: none;
}

.keybinds a:hover {
    text-decoration: underline;
}

/* Update Notification Styles */
.update-notification {
    background: rgba(30, 34, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(88, 166, 255, 0.2);
    min-width: 300px;
    max-width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(88, 166, 255, 0.2);
    animation: notificationSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.update-notification::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.update-notification.show::before {
    opacity: 1;
}

.update-message-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    position: relative;
    overflow: hidden;
    background: rgba(88, 166, 255, 0.05);
    border-radius: 10px;
    box-shadow: inset 0 0 15px rgba(88, 166, 255, 0.1);
}

.update-message {
    color: #58a6ff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    text-align: center;
    margin: 0;
    padding: 10px 20px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 8px;
    position: relative;
    animation: messageFloat 3s ease-in-out infinite;
    border: 1px solid rgba(88, 166, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.update-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(88, 166, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

.update-message::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, #58a6ff, #4ade80);
    border-radius: 9px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes notificationSlideUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 40px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.update-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 5px;
    background: rgba(88, 166, 255, 0.05);
    border-radius: 10px;
    box-shadow: inset 0 0 15px rgba(88, 166, 255, 0.1);
}

.update-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 140px;
}

.update-btn::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;
}

.update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
    background: #1e88e5;
}

.update-btn:hover::before {
    left: 100%;
}

.update-btn:active {
    transform: scale(0.95);
}

.update-btn:disabled {
    background: #2f333d;
    cursor: not-allowed;
    transform: none;
}

/* Version Popup Styles */
.version-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.version-popup.show {
    opacity: 1;
    visibility: visible;
}

.version-popup-content {
    background: #1e222a;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.version-popup.show .version-popup-content {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-header h3 {
    margin: 0;
    color: #58a6ff;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #58a6ff, #4ade80);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 3s ease infinite;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) rotate(180deg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.version-entry {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.version-section {
    text-align: center;
    margin-bottom: 25px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.version-section:nth-child(1) { animation-delay: 0.2s; }
.version-section:nth-child(2) { animation-delay: 0.4s; }

.version-section h4 {
    color: #58a6ff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: 'Fira Code', monospace;
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.version-section.current h4 {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    animation: pulseGlow 2s ease-in-out infinite;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.changelog-item {
    color: #e1e1e1;
    font-size: 1rem;
    padding: 15px;
    background: #282c34;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    line-height: 1.4;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.changelog-item:hover {
    background: #2f333d;
    transform: translateX(5px);
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(74, 222, 128, 0.2); }
    50% { box-shadow: 0 0 20px rgba(74, 222, 128, 0.4); }
}

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

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Generate delays for changelog items */
.changelog-item:nth-child(1) { animation-delay: 0.3s; }
.changelog-item:nth-child(2) { animation-delay: 0.4s; }
.changelog-item:nth-child(3) { animation-delay: 0.5s; }
.changelog-item:nth-child(4) { animation-delay: 0.6s; }
.changelog-item:nth-child(5) { animation-delay: 0.7s; }
.changelog-item:nth-child(6) { animation-delay: 0.8s; }
.changelog-item:nth-child(7) { animation-delay: 0.9s; }
.changelog-item:nth-child(8) { animation-delay: 1.0s; }
.changelog-item:nth-child(9) { animation-delay: 1.1s; }

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

.version-entry::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.version-entry::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.version-entry::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments for profile */
@media (max-width: 768px) {
    .profile-wrapper {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .profile-wrapper {
        width: 150px;
        height: 150px;
    }
}

.version-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
}

.version-info span {
    font-size: 0.9rem;
    color: #e1e1e1;
}

.version-info .version-arrow {
    color: #58a6ff;
    font-weight: bold;
}

.current-version {
    color: #e1e1e1;
}

.new-version {
    color: #58a6ff;
    font-weight: bold;
}

/* Fade out animation */
.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

/* Version popup content styles */
.version-popup-content .version-info {
    margin: 15px 0;
    padding: 12px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 8px;
}

.version-popup-content .version-info span {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .version-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .version-info span {
        font-size: 0.85rem;
    }
}

.update-banner {
    background: linear-gradient(45deg, rgba(88, 166, 255, 0.1), rgba(74, 222, 128, 0.1));
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.5s ease forwards;
}

.update-icon {
    color: #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

.update-icon svg {
    width: 24px;
    height: 24px;
}

.update-text {
    color: #e1e1e1;
    font-size: 1.1rem;
    font-weight: 500;
    flex-grow: 1;
}

.install-btn {
    background: linear-gradient(45deg, #58a6ff, #4ade80);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.install-btn::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;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 166, 255, 0.3);
}

.install-btn:hover::before {
    left: 100%;
}

.install-btn .btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.install-btn:hover .btn-icon {
    transform: translateY(2px);
}

.install-btn.installing {
    background: #2f333d;
    pointer-events: none;
}

.install-btn.installing .loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.install-btn.installed {
    background: #4ade80;
    pointer-events: none;
}

.install-btn.installed .btn-icon {
    animation: checkmark 0.5s ease forwards;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
