/* Custom Styles for Juul Scheers Website */

/* Root Variables */
:root {
    --primary-purple: #9333ea;
    --primary-pink: #db2777;
    --bg-dark: #000000;
    --bg-gray: #111827;
    --text-light: #ffffff;
    --text-gray: #9ca3af;
    --font-handwritten: 'Great Vibes', cursive;
}

/* Handwritten Font for Artist Name */
.artist-name,
.hero-title,
#navbar a[href="#home"],
footer h3 {
    font-family: var(--font-handwritten) !important;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Hero Title Specific Styling */
.hero-title {
    line-height: 1.1;
    text-shadow: 2px 2px 20px rgba(147, 51, 234, 0.5);
}

/* Navigation Logo Styling */
#navbar a[href="#home"] {
    line-height: 1;
}

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

/* Hide scrollbar for cleaner look (optional) */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #000;
}

body::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink);
}

/* Navigation Glassmorphism Effect */
#navbar {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 30px rgba(147, 51, 234, 0.1);
}

/* Hero Section Animations */
.hero-title {
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Title Animations */
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Album Card Hover Effects */
.album-card {
    position: relative;
    transform-style: preserve-3d;
}

.album-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-pink));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover::before {
    opacity: 1;
}

/* Music Player Card Animations */
.music-player-card {
    animation: fadeInUp 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-player-card:hover {
    transform: translateY(-5px);
}

.music-player-card img {
    transition: transform 0.3s ease;
}

.music-player-card:hover img {
    transform: scale(1.05);
}

/* Spotify Embed Placeholder */
.spotify-embed-placeholder {
    min-height: 152px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Spotify iframes styling (when added) */
.music-player-card iframe {
    border-radius: 12px;
    width: 100%;
}

/* Gallery Grid Masonry Effect */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

/* Lightbox Styles */
#lightbox {
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#lightbox-image {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Social Icons Pulse Animation */
.social-icon {
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* Form Focus Effects */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3);
}

/* Button Ripple Effect */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

button:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

/* Loading Animation for Forms */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Parallax Effect for Sections */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Selection Color */
::selection {
    background: var(--primary-purple);
    color: white;
}

::-moz-selection {
    background: var(--primary-purple);
    color: white;
}

/* Responsive Typography Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    #navbar a[href="#home"] {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    #navbar a[href="#home"] {
        font-size: 1.5rem;
    }

    footer h3 {
        font-size: 2.5rem;
    }
}

/* Accessibility: Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Performance: GPU Acceleration for Animations */
.album-card,
.gallery-item,
.social-icon,
.hero-title,
.hero-subtitle,
.hero-cta {
    will-change: transform;
}

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Custom Cursor (Optional - can be enabled) */
/*
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="8" fill="%239333ea"/></svg>'), auto;
}

a, button {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="%23db2777"/></svg>'), pointer;
}
*/

/* Print Styles */
@media print {
    nav,
    #mobile-menu,
    .scroll-indicator,
    footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
