/* ============================================
   PIERRE DOLNEU — Custom Styles
   Trance / Electronic Music Producer
   ============================================ */

/* --- Base Reset & Scroll --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #00f0ff15 #0a0a0f;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f0ff30, #7b2ff730);
    border-radius: 3px;
}

body {
    background: #0a0a0f;
    overflow-x: hidden;
}

/* --- Selection Color --- */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: #fff;
}

/* --- Navigation Glass --- */
.nav-glass {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-scrolled .nav-glass {
    background: rgba(10, 10, 15, 0.9);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.03);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(123, 47, 247, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 0, 110, 0.06) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* --- Neon Text Glow --- */
.neon-text {
    text-shadow: 
        0 0 10px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(0, 240, 255, 0.3),
        0 0 80px rgba(0, 240, 255, 0.15);
}

.neon-text-magenta {
    text-shadow: 
        0 0 10px rgba(255, 0, 110, 0.5),
        0 0 40px rgba(255, 0, 110, 0.3),
        0 0 80px rgba(255, 0, 110, 0.15);
}

.neon-text-purple {
    text-shadow: 
        0 0 10px rgba(123, 47, 247, 0.5),
        0 0 40px rgba(123, 47, 247, 0.3),
        0 0 80px rgba(123, 47, 247, 0.15);
}

/* --- Hero Title Animation --- */
.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #00f0ff 40%, #7b2ff7 70%, #ff006e 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.2));
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Subtitle Typing Effect --- */
.hero-subtitle {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid rgba(0, 240, 255, 0.7);
    animation: typing 3s steps(35) 1s forwards, blink-caret 0.75s step-end infinite;
    max-width: 0;
    display: inline-block;
}

@keyframes typing {
    from { max-width: 0; }
    to { max-width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(0, 240, 255, 0.7); }
}

/* --- Equilizer Bars --- */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
}

.eq-bar {
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #00f0ff, #7b2ff7);
    animation: eq-dance var(--eq-speed) ease-in-out infinite alternate;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

@keyframes eq-dance {
    0% { height: var(--eq-min); }
    100% { height: var(--eq-max); }
}

/* --- CTA Button --- */
.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #00f0ff;
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 60px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(123, 47, 247, 0.1));
    border-radius: 60px;
    opacity: 0;
    transition: opacity 0.4s;
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-btn:hover {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.2),
        0 0 60px rgba(0, 240, 255, 0.1),
        inset 0 0 20px rgba(0, 240, 255, 0.05);
    transform: translateY(-2px);
    color: #fff;
}

.cta-btn .btn-pulse {
    width: 8px;
    height: 8px;
    background: #00f0ff;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 10px #00f0ff;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px #00f0ff; }
    50% { opacity: 0.5; transform: scale(0.7); box-shadow: 0 0 5px #00f0ff; }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator .mouse .wheel {
    width: 3px;
    height: 8px;
    background: #00f0ff;
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* --- Section Styles --- */
.section-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00f0ff);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.15);
    background: rgba(20, 20, 40, 0.6);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 240, 255, 0.05);
    transform: translateY(-8px);
}

/* --- Track Card --- */
.track-card {
    position: relative;
}

.track-card .track-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
}

.track-card .track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s;
}

.track-card:hover .track-cover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.track-card .track-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 15, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.track-card:hover .track-overlay {
    opacity: 1;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.15);
    border: 2px solid rgba(0, 240, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.play-btn:hover {
    background: rgba(0, 240, 255, 0.25);
    border-color: #00f0ff;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    transform: scale(1.1);
}

.play-btn svg {
    width: 24px;
    height: 24px;
    fill: #00f0ff;
    margin-left: 3px;
}

.play-btn.playing svg {
    margin-left: 0;
}

/* --- Audio Waveform Player --- */
.waveform-player {
    position: relative;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px 24px;
    backdrop-filter: blur(10px);
}

.waveform-canvas {
    width: 100%;
    height: 60px;
    cursor: pointer;
    border-radius: 8px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.player-time {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

.progress-bar-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f0ff, #7b2ff7);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.player-small-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #00f0ff;
}

.player-small-btn:hover {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* --- Now Playing Bar (sticky bottom) --- */
.now-playing-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding: 12px 24px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.now-playing-bar.active {
    transform: translateY(0);
}

.now-playing-bar .np-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f0ff, #7b2ff7, #ff006e);
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* --- About Section --- */
.about-image-wrapper {
    position: relative;
    display: inline-block;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, #00f0ff, #7b2ff7, #ff006e, #00f0ff);
    background-size: 300% 300%;
    animation: gradient-shift 4s ease infinite;
    z-index: -1;
    opacity: 0.6;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, #00f0ff, #7b2ff7, #ff006e, #00f0ff);
    background-size: 300% 300%;
    animation: gradient-shift 4s ease infinite;
    z-index: -2;
    filter: blur(20px);
    opacity: 0.4;
}

.about-image-wrapper img {
    border-radius: 20px;
    display: block;
}

/* --- Stats --- */
.stat-card {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00f0ff, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* --- Contact Form --- */
.form-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(20, 20, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(20, 20, 40, 0.6);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Animated Gradient Orbs --- */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orb-float 20s ease-in-out infinite;
    pointer-events: none;
}

.gradient-orb-1 {
    width: 400px;
    height: 400px;
    background: #00f0ff;
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 350px;
    height: 350px;
    background: #7b2ff7;
    top: 60%;
    right: -5%;
    animation-delay: -7s;
}

.gradient-orb-3 {
    width: 300px;
    height: 300px;
    background: #ff006e;
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* --- Horizontal Animated Line --- */
.animated-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #00f0ff 20%, #7b2ff7 50%, #ff006e 80%, transparent 100%);
    background-size: 200% 100%;
    animation: line-flow 3s linear infinite;
}

@keyframes line-flow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Genre Tags --- */
.genre-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: rgba(0, 240, 255, 0.6);
    background: rgba(0, 240, 255, 0.03);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        letter-spacing: 0.08em;
    }
    
    .equalizer {
        height: 30px;
    }
    
    .eq-bar {
        width: 3px;
    }
}

/* --- Glow Divider --- */
.glow-divider {
    position: relative;
    height: 200px;
    overflow: hidden;
    pointer-events: none;
}

.glow-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff40, #7b2ff740, transparent);
    border-radius: 50%;
}

.glow-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0, 240, 255, 0.04) 0%, transparent 70%);
}

/* --- Loading Screen --- */
#loading-screen {
    position: fixed;
    inset: 0;
    background: #0a0a0f;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity 0.8s, visibility 0.8s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #00f0ff;
    border-right-color: #7b2ff7;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: rgba(0, 240, 255, 0.4);
    text-transform: uppercase;
}

/* --- Track Number --- */
.track-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    -webkit-text-stroke: 1px rgba(0, 240, 255, 0.1);
    -webkit-text-fill-color: transparent;
    position: absolute;
    top: -10px;
    right: 20px;
    line-height: 1;
    pointer-events: none;
}

/* --- Waveform animation for hero --- */
.hero-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 50px;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.hero-waveform .bar {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #00f0ff, #7b2ff730);
    animation: wave-bar-dance var(--speed) ease-in-out infinite alternate;
}

@keyframes wave-bar-dance {
    0% { height: var(--min-h); opacity: 0.4; }
    100% { height: var(--max-h); opacity: 1; }
}
