
.magic-bg {
    background: linear-gradient(-45deg, #0d6efd, #6610f2, #6f42c1, #20c997);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    border-radius: 1rem;
}

.gradient-text {
    background: linear-gradient(to right, #ff6ec4, #7873f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseColor 3s infinite alternate;
}

.gradient-subtext {
    background: linear-gradient(to right, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow {
    text-shadow: 0 0 10px #fff, 0 0 20px #0ff, 0 0 30px #0ff;
}

.glow-btn {
    box-shadow: 0 0 10px #0ff, 0 0 20px #0ff inset;
    transition: 0.3s;
}

    .glow-btn:hover {
        background-color: #0ff;
        color: #000;
        box-shadow: 0 0 20px #0ff, 0 0 30px #0ff inset;
    }

/* Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseColor {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

#typewriter {
    font-weight: bold;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #ff6a00, #ee0979, #6a11cb, #2575fc, #00f260);
    background-size: 500% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#ashraf-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* show pointer on hover */
    transition: background-color 0.5s ease;
    position: relative;
}

    #ashraf-section button {
        display: none;
    }

#ashraf-section {
    width: 100vw;
    height: 100vh;
    display: flex !important;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    background: #222; /* default dark */
}

    #ashraf-section:hover {
        background: linear-gradient(135deg, #233333 0%, #000000 100%);
        box-shadow: 0 0 20px 5px #6a11cb;
    }

    #ashraf-section button {
        display: none;
    }

@media (max-width: 895px) {
    #typewriter {
        display: block !important;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    .welcome {
        display: none;
    }
}

#typewriter {
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
}

.name {
    display: inline-block;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #2223;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    #backToTop:hover {
        background-color: #444; /* lighter on hover */
        transform: scale(1.1);
    }

    #backToTop img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* ensure image fills circle */
        display: block;
        pointer-events: none;
        user-select: none;
        border-radius: 50%; /* crop image to circle as well */
    }
.glow {
    box-shadow: 0 0 15px 5px rgba(0, 123, 255, 0.7); /* Bootstrap primary blue glow */
    border-radius: 0.25rem; /* matches Bootstrap's default rounded corners */
}

.image-wrapper {
    max-height: 570px; /* adjust height as per your design */
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-radius:20px;
}

    .image-wrapper img {
        height: 100%;
        width: auto;
        object-fit: cover; /* crop to fill */
    }