/*
Theme Name: Izan Acosta - A Quemarropa
Theme URI: https://izanacosta.com
Author: Izan Acosta
Author URI: https://izanacosta.com
Description: Tema oficial para el álbum A Quemarropa de Izan Acosta
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: izan-acosta
*/

:root {
    --blood-red: #8B1E1E;
    --blood-red-light: #C42B2B;
    --concrete: #4A4A4A;
    --concrete-light: #6B6B6B;
    --off-white: #F5F3F0;
    --deep-black: #0A0A0A;
    --charcoal: #1A1A1A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: var(--deep-black);
    color: var(--off-white);
    overflow-x: hidden;
    cursor: default;
}

/* Custom cursor effect */
.cursor-follower {
    width: 20px;
    height: 20px;
    border: 1px solid var(--blood-red);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    opacity: 0.8;
}

.cursor-follower.hovering {
    transform: scale(2);
    background: rgba(139, 30, 30, 0.2);
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navigation */
nav.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--off-white);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--off-white);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blood-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--deep-black) 0%, var(--charcoal) 50%, var(--concrete) 100%);
}

.hero-image-container {
    position: relative;
    z-index: 2;
    width: 45vw;
    max-width: 600px;
    animation: fadeInUp 1.5s ease-out;
}

.hero-image {
    width: 100%;
    height: auto;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.hero-image:hover {
    filter: grayscale(0%) contrast(1.15);
    transform: scale(1.02);
}

.hero-title {
    display: none;
}

.hero-subtitle {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    color: var(--off-white);
    opacity: 0.7;
}

/* Floating elements */
.floating-text {
    position: absolute;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15vw;
    color: var(--off-white);
    opacity: 0.02;
    pointer-events: none;
    z-index: 1;
}

.floating-text.left {
    left: -5%;
    top: 20%;
    transform: rotate(-90deg);
}

.floating-text.right {
    right: -5%;
    bottom: 20%;
    transform: rotate(90deg);
}

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

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--blood-red), transparent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 60px rgba(139, 30, 30, 0.5); }
    50% { text-shadow: 0 0 80px rgba(139, 30, 30, 0.8), 0 0 120px rgba(139, 30, 30, 0.4); }
}

/* Album Section */
.album-section {
    padding: 8rem 4rem;
    background: var(--charcoal);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.2em;
    color: var(--off-white);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--blood-red);
}

.section-header .year {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    opacity: 0.5;
}

.album-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.album-cover-wrapper {
    position: relative;
}

.album-cover {
    width: 100%;
    max-width: 500px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.album-cover:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 40px 80px rgba(139, 30, 30, 0.3);
}

.album-cover-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--blood-red);
    opacity: 0.3;
    transition: all 0.5s ease;
}

.album-cover-wrapper:hover::before {
    top: -30px;
    left: -30px;
    opacity: 0.5;
}

.album-info {
    padding: 2rem 0;
}

.tracklist {
    list-style: none;
    margin-bottom: 3rem;
}

.tracklist li {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.tracklist li:hover {
    padding-left: 1rem;
    border-color: var(--blood-red);
    cursor: pointer;
}

.tracklist li .play-icon {
    opacity: 0;
    width: 20px;
    height: 20px;
    fill: var(--blood-red);
    transition: opacity 0.3s ease;
    margin-left: auto;
}

.tracklist li:hover .play-icon {
    opacity: 1;
}

.tracklist li.playing {
    background: rgba(139, 30, 30, 0.1);
    padding-left: 1rem;
    border-color: var(--blood-red);
}

.tracklist li.playing .play-icon {
    opacity: 1;
}

.track-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--blood-red);
    opacity: 0.5;
    width: 2rem;
}

.track-title {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.tracklist li:hover .track-number {
    opacity: 1;
}

/* Spotify Player */
.spotify-player {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spotify-player h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    color: var(--blood-red);
}

.spotify-embed {
    border-radius: 12px;
    overflow: hidden;
}

/* Links Section */
.links-section {
    padding: 8rem 4rem;
    background: var(--deep-black);
    position: relative;
}

.links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--blood-red), transparent);
}

.links-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-decoration: none;
    color: var(--off-white);
    transition: all 0.3s ease;
}

.link-card:hover {
    background: rgba(139, 30, 30, 0.1);
    border-color: var(--blood-red);
    transform: translateY(-5px);
}

.link-card svg {
    width: 30px;
    height: 30px;
    fill: var(--off-white);
    transition: fill 0.3s ease;
}

.link-card:hover svg {
    fill: var(--blood-red);
}

.link-card span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
}

/* Footer */
footer {
    padding: 4rem;
    text-align: center;
    background: var(--deep-black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    color: var(--blood-red);
}

footer p {
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .album-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .album-cover-wrapper {
        display: flex;
        justify-content: center;
    }

    .album-cover {
        max-width: 400px;
    }

    .album-cover-wrapper::before {
        display: none;
    }

    .links-grid {
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    nav.main-nav {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 0.2em;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 1rem;
    }

    .hero-image-container {
        width: 90vw;
        max-width: 350px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
        bottom: -2rem;
        white-space: nowrap;
    }

    .floating-text {
        display: none;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .scroll-indicator span {
        font-size: 0.7rem;
    }

    .section-header h2 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .album-section {
        padding: 3rem 1.5rem;
    }

    .links-section {
        padding: 3rem 1.5rem 6rem 1.5rem;
        overflow: visible;
    }

    .album-content {
        gap: 2rem;
    }

    .album-cover {
        max-width: 280px;
    }

    .tracklist li {
        padding: 1rem 0;
        gap: 1rem;
    }

    .track-number {
        font-size: 1.2rem;
        width: 1.5rem;
    }

    .track-title {
        font-size: 1.1rem;
    }

    .spotify-player {
        padding: 1.5rem;
    }

    .spotify-player h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .links-grid {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding-bottom: 2rem;
        opacity: 1 !important;
        transform: none !important;
    }

    .link-card,
    .links-grid a,
    .links-grid a:nth-child(4) {
        padding: 1.5rem 2rem;
        justify-content: flex-start;
        gap: 1rem;
        width: 100%;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .link-card svg {
        width: 24px;
        height: 24px;
    }

    .link-card span {
        font-size: 0.9rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }

    footer .name {
        font-size: 1.5rem;
    }

    footer p {
        font-size: 0.75rem;
    }

    .cursor-follower {
        display: none;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .hero-image-container {
        width: 95vw;
        max-width: 280px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .album-section,
    .links-section {
        padding: 2.5rem 1rem;
    }

    .track-title {
        font-size: 1rem;
    }
}
