#myBtn {
    display: none;  /* Hide by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    padding: 15px;
}

#myBtn i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#myBtn:hover {
    background: linear-gradient(45deg, #1089ff, #00bcd4);
}

#skillsTabs .nav-link {
    background: black;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#skillsTabs .nav-link.active {
    background: linear-gradient(45deg, #1089ff, #00bcd4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.current {
    background: linear-gradient(45deg, #1089ff, #00bcd4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#skillsTabs .tab-content {
    border: none;    /* Remove border from the content area */
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Gradient text effect */
.text-gradient {
    background: linear-gradient(45deg, #1089ff, #00bcd4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
}

/* Simple class for black text */
.text-black {
    color: #000000;
}

.text-gradient1 {
    background: linear-gradient(45deg, #1089ff, #00bcd4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Speech Bubble and Terminal Styles */
.speech-bubble {
    position: absolute;
    bottom: 90%;
    left: 90%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    width: 220px;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

/* Update the arrow position for further right positioning */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 20%; /* Decreased from 30% to 20% to match new position */
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #1e1e1e;
}

.terminal {
    background: #1e1e1e;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.terminal-header {
    margin-bottom: 8px;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    padding-right: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-content {
    color: #fff;
    font-family: monospace;
    font-size: 12px;
    min-height: 35px;
    margin-left: 5px;
}

.cursor {
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="cursor-gradient" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231089ff"/><stop offset="100%" style="stop-color:%2300bcd4"/></linearGradient></defs><path d="M3 3L10 22L12.0513 15.8461C12.6485 14.0544 14.0544 12.6485 15.846 12.0513L22 10L3 3Z" fill="url(%23cursor-gradient)"/></svg>');
    position: absolute;
    pointer-events: none;
    opacity: 0;
    animation: moveCursor 5s ease-in-out infinite;
    transform-origin: center center;
    z-index: 1000;
}

@keyframes moveCursor {
    0% {
        opacity: 0;
        left: 0;
        top: 100%;
        transform: translate(0, 0) scale(1);
    }
    30% {
        opacity: 1;
        left: 63%;
        top: 85%;
        transform: translate(-50%, -50%) scale(1);
    }
    35% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        opacity: 1;
        left: 63%;
        top: 85%;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        left: 63%;
        top: 85%;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Update media query cursor sizes with the same gradient SVG */
@media screen and (min-width: 1200px) {
    .cursor {
        width: 40px;
        height: 40px;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="cursor-gradient" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231089ff"/><stop offset="100%" style="stop-color:%2300bcd4"/></linearGradient></defs><path d="M3 3L10 22L12.0513 15.8461C12.6485 14.0544 14.0544 12.6485 15.846 12.0513L22 10L3 3Z" fill="url(%23cursor-gradient)"/></svg>');
    }
}

@media screen and (max-width: 991px) {
    .cursor {
        width: 25px;
        height: 25px;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="cursor-gradient" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231089ff"/><stop offset="100%" style="stop-color:%2300bcd4"/></linearGradient></defs><path d="M3 3L10 22L12.0513 15.8461C12.6485 14.0544 14.0544 12.6485 15.846 12.0513L22 10L3 3Z" fill="url(%23cursor-gradient)"/></svg>');
    }
}

@media screen and (max-width: 576px) {
    .cursor {
        width: 20px;
        height: 20px;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="cursor-gradient" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231089ff"/><stop offset="100%" style="stop-color:%2300bcd4"/></linearGradient></defs><path d="M3 3L10 22L12.0513 15.8461C12.6485 14.0544 14.0544 12.6485 15.846 12.0513L22 10L3 3Z" fill="url(%23cursor-gradient)"/></svg>');
    }
}

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

/* Add media query for responsive positioning */
@media (max-width: 768px) {
    .speech-bubble {
        left: 50%;
        bottom: 90%;
    }

    .speech-bubble::after {
        left: 50%;
    }

    .terminal-content {
        min-height: 30px;
        font-size: 10px;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.back-to-top {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.back-to-top.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.hero-img {
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(45deg, #1089ff, #00bcd4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-wave 8s ease infinite;
}

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

/* Responsive styles for hero section */
@media (max-width: 768px) {
    .hero-img img {
        max-width: 70%;
        margin: 0 auto;
        display: block;
    }

    .speech-bubble {
        transform: scale(0.6);
        transform-origin: bottom right;
        width: 250px;
    }

    .terminal-content {
        min-height: 30px;
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .hero-img img {
        max-width: 60%;
    }

    .speech-bubble {
        transform: scale(0.5);
        width: 320px;
    }

    .terminal-content {
        font-size: 9px;
    }
}

@media screen and (max-width: 768px) {
    .big.text-gradient.mobile-friendly {
        font-size: 5rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

.cursor-container {
    position: relative;
    display: inline-block;
    overflow: visible;
    width: 100%;
    height: 100%;
}

/* Add splash element */
.cursor::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(16,137,255,0.6) 0%, rgba(0,188,212,0) 70%);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: splashEffect 5s ease-in-out infinite;
}

/* Add splash animation */
@keyframes splashEffect {
    0%, 29% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    35% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Update cursor media queries to include larger splash for bigger screens */
@media screen and (min-width: 1200px) {
    .cursor::after {
        width: 30px;
        height: 30px;
    }
}

@media screen and (max-width: 991px) {
    .cursor::after {
        width: 15px;
        height: 15px;
    }
}

@media screen and (max-width: 576px) {
    .cursor::after {
        width: 12px;
        height: 12px;
    }
}

.project .text a {
    color: #1a58b4;
    transition: opacity 0.3s ease;
}

.project .text a:hover {
    opacity: 0.8;
    text-decoration: none;
}