:root {
    --bg-color: #05bbbe;
    --text-color: #025355;
    --accent-color: #1a1a1a;
    --glow-color: rgba(8, 251, 255, 0.3);
    --blue-glow: rgba(105, 243, 255, 0.766);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/_.gif') center/cover;
    z-index: -2;
    opacity: 0.4;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #000000, #0a0a0a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
        transparent 0%,
        rgba(74, 158, 255, 0.05) 45%,
        rgba(74, 158, 255, 0.1) 50%,
        transparent 55%
    );
    animation: rotateBackground 20s linear infinite;
    z-index: 1;
    will-change: transform;
}

.loading-screen::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 60% 10%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: floatingParticles 10s linear infinite;
    z-index: 1;
}

.loading-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    z-index: 3;
}

.loading-screen h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    transform-origin: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(
        45deg,
        #ffffff 0%,
        #808080 25%,
        #ffffff 50%,
        #808080 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s linear infinite;
    position: relative;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(74, 158, 255, 0.3));
}

.loading-screen h1::before {
    content: 'xalphabet.dev';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(74, 158, 255, 0.3),
        rgba(255, 255, 255, 0.3)
    );
    -webkit-background-clip: text;
    background-clip: text;
    filter: blur(15px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

.loading-screen h1::after {
    display: none;
}

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

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        filter: blur(15px) brightness(1);
        transform: scale(1.05);
    }
    50% {
        opacity: 0.7;
        filter: blur(20px) brightness(1.5);
        transform: scale(1.15);
    }
}

.loading-bar {
    width: 300px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    opacity: 1;
    transition: all 0.5s ease-out;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #808080, #ffffff);
    transition: width 3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Animation states */
.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.2) translateY(-20px);
    filter: brightness(3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.fade-out h1 {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
    filter: blur(20px) brightness(2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.fade-out .loading-bar,
.loading-screen.fade-out .click-prompt {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content styles */
.content {
    min-height: 100vh;
    padding: 2rem;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(10px) brightness(0);
}

.content.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) brightness(1);
}

.hidden {
    display: none;
}

.profile {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile::before,
.profile::after {
    display: none;
}

.profile-image {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 162, 255, 0.3);
    box-shadow: 
        0 0 10px rgba(0, 162, 255, 0.2),
        0 0 20px rgba(0, 162, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.02);
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 
        0 0 30px rgba(74, 158, 255, 0.2),
        0 0 60px rgba(74, 158, 255, 0.1);
}

.profile-info {
    margin-top: 2rem;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    backdrop-filter: none;
}

.content.visible .profile-info {
    transform: translateY(0);
    opacity: 1;
}

.bio {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.bio::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.social-links a i {
    background: linear-gradient(
        45deg,
        #ffffff 0%,
        #808080 25%,
        #ffffff 50%,
        #808080 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
    display: block;
}

.social-links a:hover i {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
           drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    transform: translateY(-2px);
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateY(-100%);
    }
    100% {
        transform: rotate(45deg) translateY(100%);
    }
}

@media (max-width: 768px) {
    .loading-screen h1 {
        font-size: 2rem;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .profile-info h2 {
        font-size: 1.5rem;
    }

    .loading-bar {
        width: 200px;
    }

    .loading-content {
        padding: 1.5rem;
        max-width: 90%;
    }

    .now-playing {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .loading-screen h1 {
        font-size: 1.5rem;
    }

    .profile-container {
        padding: 1.5rem;
    }

    .profile-title h2 {
        font-size: 1.5rem;
    }

    .profile-subtitle {
        width: 100%;
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .typewriter-container {
        min-height: 2.4em; /* Accommodate two lines if needed */
    }

    .now-playing {
        width: calc(100% - 30px);
        padding: 12px 15px;
        bottom: 15px;
    }

    .song-title {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Add styles for the click prompt */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
}

.click-prompt {
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 2;
}

/* Enhanced ready state animations */
.loading-content.ready h1 {
    animation: pulseGlow 2s infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(74, 158, 255, 0.3);
}

.loading-content.ready .click-prompt {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInOut 2s infinite;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(74, 158, 255, 0.3);
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
    100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    }
}

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

/* Ripple effect on click */
.ripple {
    position: fixed;
    border-radius: 50%;
    background: rgba(0, 162, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    animation: rippleEffect 1s linear;
    pointer-events: none;
    width: 10px;
    height: 10px;
}

@keyframes rippleEffect {
    to {
        transform: translate(-50%, -50%) scale(100);
        opacity: 0;
    }
}

/* Enhanced hover effects for social links */
.social-links a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

/* Remove any remaining border effects */
.social-links a::before,
.social-links a::after {
    display: none;
}

/* Add new animations */
@keyframes rotateBackground {
    0% {
        transform: translate(-25%, -25%) rotate(0deg);
    }
    100% {
        transform: translate(-25%, -25%) rotate(360deg);
    }
}

@keyframes floatingParticles {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(10deg);
    }
}

/* Add hover effect to the title */
.loading-content:hover h1 {
    animation: hoverGlow 0.5s ease-out forwards;
    filter: drop-shadow(0 0 15px rgba(74, 158, 255, 0.5));
}

@keyframes hoverGlow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Update ready state animations for click prompt */
.loading-content.ready .click-prompt {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInOut 2s infinite;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(74, 158, 255, 0.3);
}

/* Add hover effect for click prompt */
.loading-content.ready:hover .click-prompt {
    transform: translateY(-2px);
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.7),
        0 0 15px rgba(74, 158, 255, 0.5);
}

/* Add unlock effect styles */
.loading-screen.unlocking::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.9) 50%,
        transparent 100%
    );
    transform: translateX(-100%) skewX(-20deg);
    animation: unlockSwipe 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 2;
}

@keyframes unlockSwipe {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }
    100% {
        transform: translateX(100%) skewX(-20deg);
    }
}

/* Profile secondary section */
.profile-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 8px;
    margin: 1rem 0;
}

.secondary-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-text {
    color: #ffffff;
    font-size: 1rem;
}

.profile-subtext {
    opacity: 0;
    animation: fadeInOut 4s ease-in-out infinite;
    background: linear-gradient(
        45deg,
        #ffffff 0%,
        #808080 25%,
        #ffffff 50%,
        #808080 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    font-size: 1.2rem;
    line-height: 1;
}

.profile-subtext:hover {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Update text fade animation */
@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0.3;
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
    50% { 
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
}

/* Views counter */
.views {
    color: #808080;
    font-size: 0.9rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Adjust the loading content spacing */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Update click prompt position */
.click-prompt {
    margin-top: -5px;
}

.now-playing {
    position: fixed;
    bottom: 20px;
    left: 20px;
    transform: translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1000;
    width: 300px;
    max-width: calc(100% - 40px);
}

.now-playing.visible {
    opacity: 1;
    transform: translateY(0);
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin: 10px 0;
}

.progress {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    position: relative;
}

.control-btn {
    padding: 12px;
    font-size: 1.3rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .now-playing {
        bottom: 15px;
        left: 15px;
        padding: 12px 16px;
        width: 280px;
    }
}

@media (max-width: 480px) {
    .now-playing {
        bottom: 10px;
        left: 10px;
        padding: 10px 14px;
        width: calc(100% - 20px);
    }
}

@supports (padding: max(0px)) {
    .now-playing {
        padding-bottom: max(15px, env(safe-area-inset-bottom));
        margin-bottom: env(safe-area-inset-bottom);
        left: max(20px, env(safe-area-inset-left));
    }
}

@media (hover: none) {
    .control-btn:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.95);
    }

    .progress-bar {
        height: 8px;
    }
}

/* Add styles for the header layout */
.header-content {
    display: none;
}

/* Update profile styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 3rem;
    justify-content: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 255, 255, 0.05);
}

.profile-title {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 15px;
}

.profile-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(74, 158, 255, 0.1);
    animation: titleGlow 3s ease-in-out infinite;
    will-change: opacity, transform;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.3),
            0 0 20px rgba(255, 255, 255, 0.2),
            0 0 30px rgba(255, 255, 255, 0.1),
            0 0 40px rgba(74, 158, 255, 0.1);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3),
            0 0 40px rgba(255, 255, 255, 0.2),
            0 0 50px rgba(74, 158, 255, 0.2);
    }
}

.profile-subtitle {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
}

.profile-subtitle:hover {
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
}

.profile-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add the animation keyframes */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Update typewriter styles for header position */
.typewriter-container {
    min-height: 1.2em;
    display: flex;
    align-items: center;
    gap: 2px;
    background: none;
    padding: 0;
    box-shadow: none;
    border: none;
}

.typewriter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    min-width: 1ch;
}

.cursor {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    font-weight: 300;
    animation: blink 1s infinite;
    user-select: none;
}

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

/* Update profile container styles */
.profile-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 700px;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.profile-header {
    margin-bottom: 4rem;
    gap: 45px;
}

/* Remove duplicate info container */
.info-container {
    display: none;
}

/* Update social links to remove duplicate background */
.social-links {
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}

/* Update social links with circular glow */
.social-links a {
    position: relative;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.social-links a i {
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    font-size: 2.2rem;
}

.social-links a:hover i {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
           drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

/* Music player controls */
.progress-container {
    width: 100%;
    margin: 10px 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.control-btn i {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Add print styles */
@media print {
    .loading-screen,
    .now-playing,
    .audio-container {
        display: none !important;
    }
}

/* Update responsive media queries */
@media (max-width: 768px) {
    .loading-screen h1 {
        font-size: 2rem;
    }

    .profile-container {
        padding: 2rem;
    }

    .profile-header {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        align-items: center;
        margin-bottom: 2rem;
    }

    .profile-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .typewriter-container {
        justify-content: center;
        width: 100%;
    }

    .profile-subtitle {
        text-align: center;
        margin: 0 auto;
    }
}

/* Enhance small screen text alignment */
@media (max-width: 480px) {
    .loading-screen h1 {
        font-size: 1.5rem;
    }

    .profile-container {
        padding: 1.5rem;
    }

    .profile-title h2 {
        font-size: 1.5rem;
    }

    .profile-subtitle {
        width: 100%;
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .typewriter-container {
        min-height: 2.4em; /* Accommodate two lines if needed */
    }
}

/* Update landscape mode to maintain center alignment */
@media (max-height: 600px) and (orientation: landscape) {
    .profile-header {
        flex-direction: row;
        gap: 20px;
        text-align: left;
    }

    .profile-title {
        align-items: flex-start;
    }

    .typewriter-container {
        justify-content: flex-start;
    }
}

/* Add touch device optimizations */
@media (hover: none) {
    .social-links a {
        padding: 10px;
    }

    .control-btn {
        padding: 12px;
    }

    .progress-bar {
        height: 6px; /* Larger touch target */
    }
}

/* Add styles for the collapsed audio player */
.now-playing {
    /* ... existing styles ... */
    transition: all 0.3s ease;
}

.now-playing .song-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.title-wrapper {
    flex: 1;
    min-width: 0; /* Allows text to truncate */
    display: flex;
    flex-direction: column;
}

.song-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-controls {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.toggle-controls i {
    transition: transform 0.3s ease;
}

.player-controls {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
}

.now-playing.expanded .player-controls {
    max-height: 100px;
    opacity: 1;
    margin-top: 10px;
}

.now-playing.expanded .toggle-controls i {
    transform: rotate(180deg);
}
  