/* =============================================
   Mole Music - DJ / Producer
   Based on Oneex structure by Ex Nihilo
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ffffff;
    --primary-dark: #cccccc;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-section: #111111;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #999999;
    --text-subtle: #666666;
    --border-color: #222222;
    --spotify-green: #1DB954;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* =============================================
   Preloader
   ============================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo img {
    width: 120px;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: var(--border-color);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: preloaderSlide 1.2s ease-in-out infinite;
}

@keyframes preloaderSlide {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 35px;
    transition: var(--transition);
}

.nav-logo-center {
    display: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-light);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop: center logo */
@media (min-width: 992px) {
    .nav-logo {
        display: none;
    }
    .nav-logo-center {
        display: block !important;
    }
    .nav-logo-center img {
        height: 40px;
    }
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-darker);
    background-image: url(../img/hero-bg1.jpg);
    background-size: cover;
    background-position: center -49px;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.5) 80%, rgba(10,10,10,1) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: 100px;
}

.hero-logo {
    margin-bottom: 5px;
}

.hero-logo img {
    width: 190px;
    max-width: 80vw;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s both;
}

.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUp 1s ease 1.2s both;
}

.scroll-indicator {
    width: 1px;
    height: 60px;
    position: relative;
    overflow: hidden;
    background: var(--border-color);
}

.scroll-line {
    position: absolute;
    top: -60px;
    width: 1px;
    height: 60px;
    background: var(--text-light);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -60px; }
    100% { top: 60px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 16px 40px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-light);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--text-muted);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-light);
    background: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 50px;
    font-size: 0.8rem;
}

.btn-spotify {
    background: var(--spotify-green);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.btn-spotify:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(29, 185, 84, 0.3);
}

.btn-spotify i {
    margin-right: 8px;
    font-size: 1rem;
    vertical-align: middle;
}

/* =============================================
   Sections
   ============================================= */
.section {
    padding: 120px 0;
}

.section-dark {
    background: var(--bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 1px;
    background: var(--primary);
    margin: 20px auto;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 2px;
}

/* =============================================
   About Section
   ============================================= */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    text-align: center;
}

.about-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: center;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.stat-line {
    width: 30px;
    height: 1px;
    background: var(--primary);
    margin: 15px auto;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* =============================================
   Releases Carousel Section
   ============================================= */
.releases-carousel-wrapper {
    padding: 0 0 60px;
    overflow: hidden;
}

.releases-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0 40px;
}

.releases-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 calc((100vw - 1200px) / 2 + 30px);
    cursor: grab;
    user-select: none;
}

.releases-track:active {
    cursor: grabbing;
}

.release-item {
    flex: 0 0 280px;
    display: block;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    perspective: 800px;
}

.release-box-item {
    flex: 0 0 280px;
}

.release-item:hover {
    transform: translateY(-10px);
}

.release-box {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.release-item:hover .release-box {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border-color: var(--primary);
}

.release-cover {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.release-item:hover .release-cover img {
    transform: scale(1.05);
}

/* Hover overlay for all release items */
.release-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
    z-index: 2;
}

.release-item:hover .release-hover {
    opacity: 1;
}

.release-hover-icon {
    font-size: 2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.release-playable:hover .release-hover-icon {
    color: var(--spotify-green);
}

.release-hover-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

.release-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--text-light);
    color: var(--bg-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    z-index: 3;
}

.release-label {
    padding: 12px 5px 0;
    text-align: center;
}

.release-label h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.release-label p {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Box items show image clean, no text below */
.release-box-item .release-cover img {
    object-fit: contain;
    background: transparent;
}

.release-box-item .release-box {
    background: transparent;
    border: none;
    box-shadow: none;
}

.release-box-item:hover .release-box {
    box-shadow: none;
    border: none;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 0 0;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    border-color: var(--text-light);
    color: var(--text-light);
    background: var(--text-light);
    color: var(--bg-dark);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--text-light);
    transform: scale(1.3);
}

/* Spotify Embed (desplegable) */
.spotify-embed {
    max-width: 600px;
    margin: 0 auto 40px;
    padding-top: 30px;
    position: relative;
    animation: slideDown 0.4s ease;
}

.spotify-close {
    position: absolute;
    top: 35px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: var(--transition);
    line-height: 1;
}

.spotify-close:hover {
    color: var(--text-light);
    border-color: var(--text-light);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Steps Section
   ============================================= */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    flex: 1;
    max-width: 300px;
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--border-color);
    line-height: 1;
    margin-bottom: 20px;
    transition: var(--transition);
}

.step-card:hover .step-number {
    color: var(--primary);
}

.step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.step-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-connector {
    width: 60px;
    height: 1px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* =============================================
   CTA Section
   ============================================= */
.section-cta {
    position: relative;
    padding: 120px 0;
    background: var(--bg-darker);
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgb(255 255 255 / 10%) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-item a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.contact-item a:hover {
    color: var(--text-light);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 60px;
}

.social-link {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--text-light);
    color: var(--text-light);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-subtle);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo img {
    height: 30px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-subtle);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =============================================
   To Top Arrow
   ============================================= */
.to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.to-top.visible {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

/* =============================================
   Scroll Animations
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 991px) {
    .nav-logo {
        display: block !important;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-logo-center {
        display: none !important;
    }

    .nav-link {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }

    .releases-track {
        padding: 0 30px;
        gap: 20px;
    }

    .release-item,
    .release-box-item {
        flex: 0 0 250px;
    }

    .about-stats {
        gap: 40px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .steps-grid {
        flex-direction: column;
        gap: 20px;
    }

    .step-connector {
        width: 1px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .hero {
        background-position: center top;
    }

    .hero-content {
        padding-bottom: 60px;
    }

    .hero-logo img {
        width: 180px;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 5px;
    }

    .hero-scroll {
        bottom: 10px;
    }

    .releases-track {
        padding: 0 20px;
        gap: 15px;
    }

    .release-item {
        flex: 0 0 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .btn {
        padding: 14px 30px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .release-item {
        flex: 0 0 180px;
    }

    .hero {
        background-position: center top;
    }

    .hero-content {
        padding-bottom: 60px;
    }

    .hero-logo img {
        width: 135px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-scroll {
        display: none;
    }
}
