body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Fira Code', monospace;
    overflow: hidden;
    user-select: none;
}

.container {
    text-align: center;
    padding: 20px;
    position: relative;
}

.name {
    font-size: 7rem; 
    margin: 0;
    padding: 0;
    font-weight: 700;
    color: #d16969;
    position: relative;
    overflow: hidden;
}
.typing-animation .text {
    font-size: 3rem;
    display: inline;
}

.typing-animation .cursor {
    font-size: 3rem;
    display: inline-block;
    width: 0.6em;
    height: 1em;
    border-left: 2px solid #d16969;
    margin-left: 2px;
    animation: pulsate 1s ease-in-out infinite;
    vertical-align: bottom;
}


@media (max-width: 768px) {
    .name {
        font-size: 4.5rem;
    }
    .typing-animation .text {
        font-size: 2rem;
    }
    .typing-animation .cursor {
        font-size: 2rem;
    }
 
}

@media (max-width: 480px) {
    .name {
        font-size: 2.5rem; 
    }
    .typing-animation .text {
        font-size: 1.2em;
    }
    .typing-animation .cursor {
        font-size: 1.2rem;
    }
 
}



/* Pulsating animation */
@keyframes pulsate {
    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.5;
        transform: scaleY(1.5);
    }
}

.github-link {
    display: inline-block;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    color: #d4d4d4;
    transition: color 0.3s ease, background 0.6s ease;
    border-radius: 50%;
    padding: 0.5rem;
    z-index: 10;
}

.github-link .fab {
    font-size: 3rem;
    position: relative;
}

/* GitHub button hover effect */
.github-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, #d16969, #b71c1c);
    border-radius: 50%;
    transition: opacity 0.6s ease;
    opacity: 0;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.github-link:hover::before {
    opacity: 1;
}

.github-link:hover .fab {
    color: #ffffff;
    z-index: 1;
}

.trail {
    position: absolute;
    height: 2px; /* Thicker trail */
    background: linear-gradient(to right, rgba(209, 105, 105, 0.7), rgba(209, 105, 105, 0.1)); /* Gradient effect */
    pointer-events: none;
    animation: fadeOut 0.6s ease-out forwards;
    box-shadow: 0 0 8px rgba(209, 105, 105, 0.6);
    border-radius: 2px;
    transform-origin: 0 0;
    will-change: transform, opacity;
    filter: blur(0.5px);
}

/* Fading animation */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
