* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: black;
    color: white;
    overflow: hidden;
}

#enter-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    color: white;
    height: 100vh;
    width: 100%;
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    font-size: clamp(1.5rem, 5vw, 2rem);
    transition: opacity 0.8s ease-out;
    padding: 1rem;
}

#enter-screen.fade-out {
    opacity: 0;
}

#enter-screen h1 {
    animation: pulse 2s ease-in-out infinite;
    text-align: center;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

#main-content {
    display: none;
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

#main-content.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: grayscale(100%) contrast(120%);
}

.overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem);
    overflow-y: auto;
}

header .profile-pic {
    opacity: 0;
    animation: slideDown 0.8s ease-out 0.3s forwards;
}

header .profile-pic img {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    border-radius: 50%;
    border: 2px solid white;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

header .profile-pic img:hover,
header .profile-pic img:active {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.6);
    filter: brightness(1.3);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

header h1#typing-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    border-right: 2px solid white;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards, blink 1s step-end infinite;
    max-width: 90vw;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 50%, 100% { border-color: white; }
    25%, 75% { border-color: transparent; }
}

header .title {
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 0.9s forwards;
    padding: 0 1rem;
    line-height: 1.4;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 0.8; transform: scale(1); }
}

.links {
    margin-top: clamp(1.5rem, 4vw, 2rem);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    opacity: 0;
    animation: slideUp 0.8s ease-out 1.2s forwards;
    padding: 0 1rem;
}

.links a {
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
}

.links a:hover,
.links a:active {
    transform: scale(1.3) translateY(-5px);
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.8));
    color: #ff0000;
}

@media (hover: none) {
    .links a:active {
        transform: scale(1.2) translateY(-3px);
    }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-top: clamp(1.5rem, 3vw, 2rem);
    justify-content: center;
    width: 100%;
    max-width: 300px;
    padding: 0 1rem;
}

.volume-control i {
    font-size: clamp(1rem, 3vw, 1.2rem);
    min-width: 20px;
}

#volume-slider {
    flex: 1;
    max-width: 150px;
    cursor: pointer;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    touch-action: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

#view-container {
    position: absolute;
    bottom: clamp(10px, 3vw, 20px);
    left: clamp(10px, 3vw, 20px);
    font-size: clamp(14px, 3vw, 18px);
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 10px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .overlay {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    header .title {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .links {
        gap: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .links a {
        font-size: 1.8rem;
    }
    
    header h1#typing-title {
        font-size: 1.8rem;
    }
    
    #volume-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    #volume-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    header .profile-pic img {
        width: 90px;
        height: 90px;
    }
    
    header .title {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .links {
        gap: 1rem;
    }
    
    .links a {
        font-size: 1.6rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .overlay {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    header .profile-pic img {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }
    
    header h1#typing-title {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    header .title {
        font-size: 0.7rem;
    }
    
    .links {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .volume-control {
        margin-top: 1rem;
    }
}

@media (min-width: 1920px) {
    header .profile-pic img {
        width: 140px;
        height: 140px;
    }
    
    header h1#typing-title {
        font-size: 3rem;
    }
    
    header .title {
        font-size: 1.4rem;
    }
    
    .links a {
        font-size: 2.5rem;
    }
}
  .clickable {
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .clickable:hover {
            color: #fff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        }
        
        .tooltip {
            position: absolute;
            background: rgba(0, 0, 0, 0.9);
            color: #fff;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            pointer-events: none;
            z-index: 10000;
            display: none;
            white-space: nowrap;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }