/**
 * Template: Beats
 * Version: 2.0.0
 * Description: Music Producer & DJ Portfolio Template
 *
 * Color Palette:
 * - Purple: #9333EA
 * - Pink: #EC4899
 * - Black: #000000
 * - Gray scales: Tailwind grays
 *
 * Fonts:
 * - Inter: Body text
 * - Montserrat: Display/headings
 */

/* ==========================================================================
   BASE & TYPOGRAPHY
   ========================================================================== */

:root {
    /* Colors */
    --color-purple-600: #9333EA;
    --color-pink-600: #EC4899;
    --color-black: #000000;

    /* Typography Scale */
    --text-hero: clamp(3rem, 8vw, 6rem);
    --text-display: clamp(2.5rem, 5vw, 4rem);
    --text-h1: clamp(2rem, 4vw, 3rem);
    --text-h2: clamp(1.5rem, 3vw, 2.25rem);
    --text-h3: clamp(1.25rem, 2vw, 1.5rem);
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-unit: 8px;

    /* Border Radius Scale */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadow System */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow-purple: 0 0 60px rgba(147, 51, 234, 0.4);
    --shadow-glow-pink: 0 0 60px rgba(236, 72, 153, 0.4);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 500ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Animation */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Montserrat', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-purple-600);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

nav.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom-color: rgba(139, 92, 246, 0.3);
}

/* Mobile Navigation */
[data-nav-menu] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-nav-menu]:not(.active) {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

[data-nav-menu].active {
    opacity: 1;
    transform: scale(1);
    display: flex !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.6);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn:focus-visible {
    outline: 2px solid var(--color-purple-600);
    outline-offset: 2px;
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #E9D5FF;
    backdrop-filter: blur(10px);
}

.badge-small {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #E9D5FF;
}

.skill-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #D1D5DB;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.4);
    color: #E9D5FF;
    transform: translateY(-2px);
}

/* ==========================================================================
   GRADIENT TEXT
   ========================================================================== */

.gradient-text-premium {
    background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   GLOW EFFECTS
   ========================================================================== */

.glow-effect {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5),
                0 0 40px rgba(236, 72, 153, 0.3);
    animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.5),
                    0 0 40px rgba(236, 72, 153, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(147, 51, 234, 0.7),
                    0 0 60px rgba(236, 72, 153, 0.5);
    }
}

/* ==========================================================================
   ORBIT ANIMATIONS (Floating Music Notes)
   ========================================================================== */

.orbit-element {
    position: absolute;
    animation: orbit 20s linear infinite;
}

.orbit-1 {
    top: 20%;
    left: 10%;
    animation-duration: 25s;
}

.orbit-2 {
    top: 60%;
    left: 80%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orbit-3 {
    top: 40%;
    right: 15%;
    animation-duration: 28s;
    animation-delay: -10s;
}

.orbit-4 {
    bottom: 30%;
    left: 70%;
    animation-duration: 22s;
    animation-delay: -15s;
}

@keyframes orbit {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(0, -100px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translate(-50px, -50px) rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.4;
    }
}

/* ==========================================================================
   EQUALIZER ANIMATION
   ========================================================================== */

.equalizer-bar {
    display: inline-block;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #9333EA 0%, #EC4899 100%);
    border-radius: 3px;
    animation: equalizer 1.2s ease-in-out infinite;
}

.equalizer-bar:nth-child(1) { animation-delay: 0s; }
.equalizer-bar:nth-child(2) { animation-delay: 0.1s; }
.equalizer-bar:nth-child(3) { animation-delay: 0.2s; }
.equalizer-bar:nth-child(4) { animation-delay: 0.15s; }
.equalizer-bar:nth-child(5) { animation-delay: 0.3s; }
.equalizer-bar:nth-child(6) { animation-delay: 0.05s; }
.equalizer-bar:nth-child(7) { animation-delay: 0.25s; }
.equalizer-bar:nth-child(8) { animation-delay: 0.35s; }
.equalizer-bar:nth-child(9) { animation-delay: 0.1s; }
.equalizer-bar:nth-child(10) { animation-delay: 0.2s; }
.equalizer-bar:nth-child(11) { animation-delay: 0.3s; }

@keyframes equalizer {
    0%, 100% {
        height: 20%;
    }
    50% {
        height: 80%;
    }
}

/* ==========================================================================
   PLAY BUTTONS
   ========================================================================== */

.play-button-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.5);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

.play-button-large::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(15px);
}

.play-button-large:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.7);
}

.play-button-large:hover::before {
    opacity: 0.7;
}

.play-button-large:active {
    transform: scale(1.05);
}

/* ==========================================================================
   BEAT CARDS
   ========================================================================== */

.beat-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    backdrop-filter: blur(10px);
}

.beat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
}

.beat-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
}

.beat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.beat-card:hover .beat-card-image img {
    transform: scale(1.1);
}

.beat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.beat-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.beat-card:hover .beat-play-btn {
    transform: scale(1);
}

.beat-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.6);
}

/* Audio player mockup (non-functional UI) */
.audio-player-mockup {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   TESTIMONIAL CARDS
   ========================================================================== */

.testimonial-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.2);
}

/* ==========================================================================
   PRICING CARDS
   ========================================================================== */

.pricing-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s var(--ease-smooth);
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.2);
}

.pricing-card-featured {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 2px solid rgba(147, 51, 234, 0.5);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(147, 51, 234, 0.4);
}

.pricing-card-featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

.pricing-card-featured:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 40px 80px rgba(147, 51, 234, 0.5);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

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

.form-input:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

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

.form-input.error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #FCA5A5;
    font-size: 0.875rem;
    margin-top: 4px;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

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

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

/* Fade up (default) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth),
                transform 0.8s var(--ease-smooth);
}

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

/* Fade from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s var(--ease-smooth);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Fade from right */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s var(--ease-smooth);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--ease-smooth);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Blur in */
.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: all 0.8s var(--ease-smooth);
}

.reveal-blur.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================================================
   HOVER ANIMATIONS
   ========================================================================== */

/* Card lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image zoom */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.6s var(--ease-smooth);
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* Shine effect */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hover-shine:hover::before {
    left: 100%;
}

/* ==========================================================================
   CONTINUOUS ANIMATIONS
   ========================================================================== */

/* Pulse slow */
.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Animation delays */
.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse ring (SaaS style) */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Subtle bounce */
@keyframes subtle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce-subtle {
    animation: subtle-bounce 2s ease-in-out infinite;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-purple-600);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   REDUCED MOTION (REQUIRED FOR ACCESSIBILITY)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-blur {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .orbit-element,
    .equalizer-bar,
    .glow-effect,
    .animate-pulse-slow,
    .animate-float,
    .pulse-ring,
    .animate-gradient,
    .animate-bounce-subtle {
        animation: none;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .pricing-card-featured {
        transform: scale(1);
    }

    .pricing-card-featured:hover {
        transform: translateY(-8px);
    }

    .beat-card:hover {
        transform: translateY(-4px);
    }

    .testimonial-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 640px) {
    .play-button-large {
        width: 60px;
        height: 60px;
    }

    .equalizer-bar {
        width: 4px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    nav,
    .skip-link,
    .btn,
    .play-button-large,
    .beat-play-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .gradient-text-premium {
        -webkit-text-fill-color: inherit;
        background: none;
        color: black;
    }
}
