/* ==========================================
   HEPBURN BIO LINK SYSTEM DESIGN
   ========================================== */

/* Modern CSS Reset & Variable Definitions */
:root {
    --bg-darkest: #09090b;
    --bg-card: rgba(18, 18, 20, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --text-primary: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dark: #71717a;
    
    --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.07);
    
    --cursor-color: rgba(255, 255, 255, 0.8);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   AMBIENT BACKGROUND EFFECTS
   ========================================== */

/* Animated gradient black & grey background */
.bg-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, #09090b, #18181b, #27272a, #0d0d0f, #1e1e21);
    background-size: 300% 300%;
    animation: grad-shift 18s ease-in-out infinite alternate;
}

/* Soft grid pattern */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -3;
    pointer-events: none;
}

/* Soft dark radial vignette */
.bg-radial-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-darkest) 95%);
    z-index: -2;
    pointer-events: none;
}

/* Light spotlight following mouse pointer */
.cursor-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 85%);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Ultra fine grain overlay for high-end cinematic texture */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}



/* ==========================================
   LAYOUT STRUCTURE
   ========================================== */
.wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    z-index: 1;
}

/* Float bio-card glassmorphism container */
.bio-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 45px 35px 35px 35px;
    box-shadow: var(--shadow-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(20px);
    opacity: 0;
    animation: entry-fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.bio-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-main), var(--shadow-glow);
}

/* ==========================================
   HEADER SECTION & TYPOGRAPHY
   ========================================== */
.card-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 35px;
}

/* Glowing Minimalist Avatar */
.avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.pfp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.avatar:hover .pfp-img {
    transform: scale(1.08);
}

.avatar-text {
    font-family: 'Italiana', serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--text-primary);
    user-select: none;
}

.avatar-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
    animation: heartbeat 3s ease-in-out infinite;
}

.avatar-ring-outer {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    z-index: 0;
    animation: rotate-dashed 20s linear infinite;
}

/* Beautiful cursive name styling */
.name-container {
    margin-bottom: 12px;
    position: relative;
}

.name {
    font-family: 'Pensum', 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.18);
    line-height: 1.2;
    transition: var(--transition-bounce);
    text-transform: lowercase;
    user-select: none;
}

.name:hover {
    transform: scale(1.03);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.35);
}

/* About me caption */
.bio-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-me {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}

.terminal-sym {
    color: var(--text-dark);
    font-weight: 300;
}

.typing-text {
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    animation: blink-caret 0.8s step-end infinite;
}

/* ==========================================
   LINKS CONTAINER
   ========================================== */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

/* Premium Magnetic Button Styling */
.link-item {
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    outline: none;
    transition: var(--transition-smooth);
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
    z-index: 1;
}

.link-item:hover::before {
    transform: translateX(100%);
    transition: all 0.8s ease;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.link-label {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Arrow/action indicator on right */
.arrow-box, .tooltip-container {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    color: var(--text-dark);
    transition: var(--transition-bounce);
}

.link-item:hover .arrow-icon {
    color: var(--text-primary);
    transform: translate(2px, -2px);
}

/* Discord Tooltip and special copy handling */
#btn-discord {
    background: rgba(255, 255, 255, 0.03);
    width: 100%;
    text-align: left;
}

.tooltip-container {
    position: relative;
}

.tooltip-text {
    font-size: 0.78rem;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    background: rgba(18, 18, 20, 0.9);
    padding: 4px 10px;
    border-radius: 6px;
    transition: var(--transition-smooth);
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
}

.link-item:hover .tooltip-text {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Copied state for tooltip */
.tooltip-text.copied {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 600;
}

/* ==========================================
   INTERACTIVE CONSOLE WIDGET
   ========================================== */
.console-widget {
    width: 100%;
    background: rgba(10, 10, 12, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.console-widget:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Sleek top window bar */
.console-bar {
    background: rgba(15, 15, 18, 0.8);
    height: 32px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.console-mac-btns {
    display: flex;
    gap: 6px;
    position: absolute;
    left: 16px;
}

.mac-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.mac-btn.close { background: rgba(255, 95, 87, 0.4); }
.mac-btn.minimize { background: rgba(254, 188, 46, 0.4); }
.mac-btn.expand { background: rgba(40, 200, 64, 0.4); }

.console-title {
    width: 100%;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-dark);
    letter-spacing: 0.05em;
    user-select: none;
}

/* Terminal output display screen */
.console-screen {
    padding: 18px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.5;
}

.console-log-row {
    color: var(--text-muted);
}

.c-prompt {
    color: var(--text-dark);
    font-weight: 500;
}

.c-input {
    color: var(--text-primary);
}

.console-log-row.output {
    color: var(--text-muted);
    border-left: 2px solid var(--border-color);
    padding-left: 10px;
    margin-left: 2px;
}

.console-log-row.hidden {
    display: none;
}

/* Dynamic slide-in fade animation for terminal response */
.console-log-row.visible-response {
    display: block;
    animation: console-fade-in 0.3s ease forwards;
}

/* Quick interactive control action buttons */
.console-buttons {
    display: flex;
    border-top: 1px solid var(--border-color);
    background: rgba(12, 12, 14, 0.9);
}

.console-action-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 10px 0;
    transition: var(--transition-smooth);
    outline: none;
}

.console-action-btn:last-child {
    border-right: none;
}

.console-action-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.console-action-btn:active {
    background: rgba(255, 255, 255, 0.04);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.card-footer {
    width: 100%;
    margin-top: 25px;
    text-align: center;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: var(--border-color);
    margin: 0 auto 16px auto;
}

.footer-credit {
    font-size: 0.75rem;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    user-select: none;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */

/* Fade-in & translate up for entry */
@keyframes entry-fade-up {
    0% {
        opacity: 0;
        transform: translateY(35px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing text caret blink animation */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: rgba(255, 255, 255, 0.75); }
}

/* Rotation for avatar accent ring */
@keyframes rotate-dashed {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse / heartbeat for inner avatar ring */
@keyframes heartbeat {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.65;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* Smooth shifting animation for the gradient background */
@keyframes grad-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Simple fade-in for terminal text rows */
@keyframes console-fade-in {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE DESIGN SYSTEM (MOBILE OPT.)
   ========================================== */
@media (max-width: 480px) {
    .wrapper {
        padding: 40px 15px;
    }
    
    .bio-card {
        padding: 35px 20px 25px 20px;
        border-radius: 24px;
    }
    
    .name {
        font-size: 4rem;
    }
    
    .avatar-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .avatar-text {
        font-size: 2.4rem;
    }
    
    .link-item {
        height: 52px;
        padding: 0 16px;
    }
    
    .link-label {
        font-size: 0.9rem;
    }
}

/* ==========================================
   AUDIO PLAYER WIDGET
   ========================================== */
.audio-player-widget {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
}

.audio-player-widget:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cover-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rotate-vinyl 12s linear infinite;
    animation-play-state: paused;
}

/* Rotate animation for cover art */
@keyframes rotate-vinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--bg-darkest);
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

.song-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.song-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.song-artist {
    font-size: 0.72rem;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
}

.player-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 2px;
}

.volume-icon {
    width: 14px;
    height: 14px;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.player-btn:hover .volume-icon {
    color: var(--text-primary);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 3px;
    border-radius: 1.5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: background 0.3s;
}

.volume-slider:hover {
    background: rgba(255, 255, 255, 0.2);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-primary);
    transition: transform 0.1s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: var(--text-primary);
    transition: transform 0.1s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.player-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    outline: none;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

.player-btn:active {
    transform: scale(0.95);
}

.play-icon, .pause-icon {
    width: 16px;
    height: 16px;
}

.play-icon.hidden, .pause-icon.hidden, .volume-icon.hidden, .hidden {
    display: none !important;
}

/* Audio progress range slider styling */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.time-label {
    font-size: 0.68rem;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
    min-width: 28px;
}

.audio-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: background 0.3s;
}

.audio-slider:hover {
    background: rgba(255, 255, 255, 0.2);
}

.audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-primary);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: transform 0.1s;
}

.audio-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.audio-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: var(--text-primary);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: transform 0.1s;
}

.audio-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
}
