:root {
    --bg-rgb: 10 10 10;
    --text-rgb: 255 255 255;
    --accent-rgb: 255 183 178;
    --secondary-rgb: 255 158 153;
    --panel-rgb: 26 26 26;
    --gray-rgb: 156 163 175;

    --bg-color: rgb(var(--bg-rgb));
    --text-color: rgb(var(--text-rgb));
    --accent-color: rgb(var(--accent-rgb));
    --secondary-color: rgb(var(--secondary-rgb));
    --panel-color: rgb(var(--panel-rgb));
    --gray-color: rgb(var(--gray-rgb));
    
    --card-bg: rgba(var(--panel-rgb), 0.6);
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: none;
    transition: background-color 1.5s cubic-bezier(0.4, 0, 0.2, 1), color 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    transition-property: background-color, border-color, color, fill, stroke, box-shadow;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.5s ease;
}
body:hover .cursor-ring {
    opacity: 1;
}
.cursor-hover .cursor-ring {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}
.cursor-hover .cursor-dot {
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.text-stroke {
    -webkit-text-stroke: 1px var(--text-color);
    color: transparent;
    transition: all 0.3s ease;
}
.group:hover .text-stroke {
    color: var(--accent-color);
    -webkit-text-stroke: 0px;
}

.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--accent-color);
}
@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

#loader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.loader-bar {
    width: 0%;
    height: 4px;
    background-color: var(--accent-color);
    transition: width 0.5s ease;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.petal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    display: block;
    width: 15px;
    height: 10px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 10px 0px 10px 0px;
    opacity: 0.8;
    top: -20px;
    animation: falling 10s linear infinite;
    transition: background 1s ease;
}

.petal:nth-child(2n) { width: 12px; height: 8px; animation-duration: 12s; animation-delay: 1s; background: var(--secondary-color); }
.petal:nth-child(3n) { width: 18px; height: 12px; animation-duration: 8s; animation-delay: 2s; background: var(--accent-color); }
.petal:nth-child(4n) { width: 10px; height: 7px; animation-duration: 15s; animation-delay: 0.5s; }
.petal:nth-child(5n) { animation-duration: 11s; animation-delay: 3s; }

@keyframes falling {
    0% {
        transform: translate3d(0, -20px, 0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translate3d(100px, 100vh, 0) rotate(360deg);
        opacity: 0;
    }
}

.backdrop-blur-custom {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.music-card {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 320px;
    transform: translateY(0) scale(1);
    opacity: 1;

    @media screen and (max-width: 768px) {
        width: 91%;
        border-radius: 12px;
        padding: 10px;
        gap: 6px;
    }
}

.music-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.music-hint {
    font-size: 12px;
    color: var(--gray-color);
    text-align: center;
    width: 100%;
    opacity: 0.7;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;

     @media screen and (max-width: 768px) {
        font-size: 8px;
    }
}

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

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-container:hover .progress-bar {
    background: var(--text-color);
}

.music-card.hidden-card {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.music-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.3);
    transform: translateY(-5px) scale(1.02);

    @media screen and (max-width: 768px) {
        border-color: transparent;
        transform: translateY(-1px) scale(1.01);
    }
}

.album-art {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--panel-color);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;

    @media screen and (max-width: 768px) {
        width: 40px;
        height: 40px;
    }
}

.album-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    opacity: 0.3;
    transition: background 1s ease;
}

.music-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.song-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;

    @media screen and (max-width: 768px) {
        font-size: 16px;
    }

    @media screen and (max-width: 480px) {
        font-size: 14px;
        line-height: 1.1;
    }
}

.artist-name {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--gray-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    @media screen and (max-width: 480px) {
        font-size: 10px;
    }
}

.music-controls {
    display: flex;
    gap: 4px;
    align-items: center;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.control-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.equalizer {
    display: flex;
    gap: 2px;
    height: 12px;
    align-items: flex-end;
    margin-left: 4px;
}

.bar {
    width: 3px;
    background-color: var(--accent-color);
    animation: equalize 1s infinite ease-in-out;
    transition: background-color 1s ease;
}

.bar:nth-child(1) { animation-delay: 0.0s; height: 40%; }
.bar:nth-child(2) { animation-delay: 0.2s; height: 80%; }
.bar:nth-child(3) { animation-delay: 0.4s; height: 50%; }

@keyframes equalize {
    0%, 100% { height: 40%; }
    50% { height: 100%; }
}

.music-card.paused .bar {
    animation-play-state: paused;
    height: 20%;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cursor-grab {
    cursor: grab;
}
.cursor-grabbing {
    cursor: grabbing;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--accent-rgb), 0.1);
}
