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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom text selection */
::selection {
    background-color: #A6ADC8;
    color: #11111B;
}

::-moz-selection {
    background-color: #A6ADC8;
    color: #11111B;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: #11111B;
}

::-webkit-scrollbar-thumb {
    background-color: #6C7086;
    border-radius: 6px;
    border: 2px solid #11111B;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #A6ADC8;
}

body {
    background-color: #11111B;
    color: #FFFFFF;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    max-width: 600px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

.main-title {
    font-size: 2.5rem;
    color: #A6ADC8;
    font-weight: normal;
    margin-bottom: 1rem;
    display: inline-block;
    padding-right: 4px;
}

.subtitle {
    color: #FFFFFF;
    font-size: 1rem;
}

/* Featured Cover Player */
.featured-cover {
    margin-bottom: 4rem;
}

.cover-player {
    background-color: #1E1E2E;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #313244;
}

.cover-info {
    margin-bottom: 1rem;
    text-align: center;
}

.cover-title {
    color: #A6ADC8;
    font-size: 1rem;
    font-weight: 400;
}

/* Custom Audio Player */
.custom-audio-player {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background-color: #181825;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #313244;
    flex-wrap: nowrap;
}

.custom-audio-player audio {
    display: none;
}

.play-btn,
.volume-btn {
    background-color: #A6ADC8;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.play-btn:hover,
.volume-btn:hover {
    background-color: #CDD6F4;
}

.play-btn svg,
.volume-btn svg {
    width: 20px;
    height: 20px;
    color: #11111B;
}

.volume-btn {
    width: 32px;
    height: 32px;
}

.volume-btn svg {
    width: 18px;
    height: 18px;
}

.time-display {
    color: #A6ADC8;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.progress-container {
    flex-grow: 1;
    height: 6px;
    background-color: #313244;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-container:hover {
    background-color: #45475a;
}

.progress-bar {
    height: 100%;
    background-color: #A6ADC8;
    border-radius: 25px;
    width: 0%;
    transition: width 0.1s linear;
}

.volume-slider {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background-color: #313244;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background-color: #A6ADC8;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background-color: #CDD6F4;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background-color: #A6ADC8;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background-color: #CDD6F4;
}

@media (max-width: 768px) {
    .volume-slider {
        width: 60px;
    }
    
    .custom-audio-player {
        gap: 8px;
        padding: 10px 12px;
    }
}

.section-title {
    color: #6C7086;
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 0;
}

.music-section,
.projects-section,
.socials-section,
.about-section,
.interests-section,
.friends-section {
    margin-bottom: 3rem;
}

.items-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item {
    background-color: #6C7086;
    padding: 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.item:hover {
    opacity: 0.8;
}

.item-title {
    color: #A6ADC8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.item-description {
    color: #FFFFFF;
    font-size: 0.9rem;
}

.item-description a {
    color: #A6ADC8;
    text-decoration: none;
}

.item-description a:hover {
    opacity: 0.8;
}

/* About section */
.about-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-list p {
    color: #FFFFFF;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

/* Interests section */
.interests-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.interests-list p {
    color: #FFFFFF;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

/* Stats section */
.blahaj-section {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.stat-item {
    background-color: #1E1E2E;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #313244;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-emoji {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.stat-text {
    flex: 1;
    min-width: 0;
}

.stat-label {
    color: #A6ADC8;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: #CDD6F4;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Friends section */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.friend-card {
    background-color: #1E1E2E;
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
}

.friend-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}

.friend-name {
    color: #A6ADC8;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.friend-desc {
    color: #FFFFFF;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.friend-socials {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.friend-link {
    background-color: #6C7086;
    color: #FFFFFF;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: opacity 0.2s ease;
}

.friend-link:hover {
    opacity: 0.8;
}

.friend-separator {
    grid-column: 1 / -1;
    text-align: center;
    color: #6C7086;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 1rem 0;
    margin: 0.5rem 0;
    border-top: 1px solid #313244;
    border-bottom: 1px solid #313244;
}

/* Command Palette */
.command-palette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 17, 27, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    z-index: 1000;
}

.command-palette-overlay.active {
    display: flex;
}

.command-palette {
    background-color: #1E1E2E;
    border: 2px solid #313244;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.command-palette-input {
    background-color: #181825;
    border: none;
    border-bottom: 2px solid #313244;
    color: #FFFFFF;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    outline: none;
    border-radius: 6px 6px 0 0;
}

.command-palette-input::placeholder {
    color: #6C7086;
}

.command-palette-results {
    overflow-y: auto;
    max-height: calc(60vh - 60px);
    padding: 0.5rem;
}

.command-palette-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.command-palette-item:hover,
.command-palette-item.selected {
    background-color: #313244;
}

.command-palette-item-icon {
    color: #A6ADC8;
    font-size: 0.9rem;
    min-width: 20px;
}

.command-palette-item-content {
    flex: 1;
    min-width: 0;
}

.command-palette-item-title {
    color: #FFFFFF;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.command-palette-item-description {
    color: #6C7086;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-palette-empty {
    padding: 2rem;
    text-align: center;
    color: #6C7086;
    font-size: 0.9rem;
}

/* Section anchor links */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-anchor {
    opacity: 0;
    color: #6C7086;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.section-header:hover .section-anchor {
    opacity: 1;
}

.section-anchor:hover {
    color: #A6ADC8;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .command-palette {
        width: 95%;
    }
    
    .section-anchor {
        opacity: 1;
    }
}