html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
    opacity: 0; 
    animation: fadeIn 1s forwards; 
    cursor: url('https://r2.guns.lol/af153b95-5c99-4a75-8fe5-2c4cf75bcce7.png') 16 16, auto !important;
    background-color: black; 
    font-family: 'Inter', sans-serif;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

img { pointer-events: none; }

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%) blur(3px);
    transform: scale(1.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-section {
    text-align: center;
    margin: 0 auto;
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    width: 100%;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-title {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    animation: neonGlow 1.5s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff, 0 0 40px #ffffff;
    }
    to {
        text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 15px #ffffff, 0 0 20px #ffffff;
    }
}

.subtitle { font-size: 0.9em; color: #e0e0e0; }

.section-title {
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 30px;
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.profile-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
    margin: -40px auto 0 auto;
    padding: 0 15px;
    max-width: 600px;
    width: 100%;
    animation: slideIn 1s ease-out forwards;
    position: relative;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.profile {
    border-radius: 50%;
    overflow: hidden;
    width: clamp(40px, 6vw, 70px);
    height: clamp(40px, 6vw, 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer; 
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    touch-action: manipulation;
    will-change: transform;
}

.profile img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    border: none; 
    outline: none; 
}

.profile-name {
    margin-top: 10px;
    color: #fff;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.profile:hover {
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Mobile touch */
@media (hover: none) and (pointer: coarse) {
    .profile:active {
        transform: scale(1.1) rotate(2deg);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    .profile:hover {
        transform: none;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    }
}

@media (min-width: 769px) {
    .profile-grid { margin-top: -190px; }
}

.caption {
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background-color: rgba(0, 0, 0, 0.7); 
    color: white; 
    padding: 10px; 
    border-radius: 5px; 
    font-size: 16px; 
    z-index: 100; 
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ascii-art {
    white-space: pre;
    font-family: monospace;
    text-align: center;
    line-height: 1;

    /* gradient text */
    background-image: repeating-linear-gradient(
        0deg, /* Vertical gradient */
        #ffffff 0%, /* White */
        #ffffff 5%,
        #ffe0f0 5%, /* Very light pink */
        #ffe0f0 10%,
        #ffc0e0 10%, /* Soft pink */
        #ffc0e0 15%,
        #e0c0ff 15%, /* Lighter purple */
        #e0c0ff 20%
    ) !important;
    background-size: 100% 600% !important; /* Adjusted for vertical wave movement */
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;

    animation: waveGradient 15s linear infinite alternate; /* Slower animation, reverses */

    margin: 0 auto 20px auto;
    font-size: clamp(0.6rem, 1vw, 1.2rem);
    display: inline-block !important;
    max-width: 95%;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    padding: 0 10px;
}

/* Override prefers-reduced-motion for .ascii-art */
@media (prefers-reduced-motion: no-preference) {
    .ascii-art {
        animation-duration: 15s !important; /* Match animation duration */
        animation-iteration-count: infinite !important;
    }
}

@keyframes waveGradient {
    0%   { background-position: 0% 0%; } /* Start at the top */
    100% { background-position: 0% 100%; } /* Move to the bottom */
}


.name-links a {
    font-family: monospace;
    font-size: clamp(14px, 2vw, 16px);
    color: #33FF7A;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s ease;
}

.name-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px #33FF7A;
}

/* Responsive ASCII scaling */
@media (max-width: 1200px) {
    .ascii-art { font-size: clamp(0.5rem, 1.2vw, 1rem); }
}

@media (max-width: 768px) {
    .ascii-art { font-size: clamp(0.4rem, 1vw, 0.8rem); }
}

@media (max-width: 480px) {
    .ascii-art { font-size: clamp(0.3rem, 0.8vw, 0.6rem); }
}

@media (max-width: 320px) {
    .ascii-art { font-size: clamp(0.3rem, 1vw, 0.6rem); }
}
