/* Landing Page Specific Styles */
:root {
    --landing-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary-glow: rgba(0, 255, 204, 0.3);
}

.landing-wrapper {
    background-color: transparent;
    color: white;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.landing-wrapper h1, 
.landing-wrapper h2, 
.landing-wrapper h3, 
.landing-wrapper h4 {
    font-family: 'Orbitron', sans-serif;
}

.hero-v3 {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 204, 0.10), transparent 55%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

/* GFX elements positioned absolutely for full width */
.hero-v3 .floating-particles,
.hero-v3 .bg-gfx-elements,
.hero-v3 .bg-gfx-grid,
.hero-v3 .gfx-stars,
.hero-v3 .gfx-scanner,
.hero-v3 .gfx-vignette,
.hero-v3 .gfx-tech-circle,
.hero-v3 .gfx-cursor-glow,
.hero-v3 .gfx-blob {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.lightning-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
    background: transparent;
}

.lightning-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lightning-bolt {
    position: absolute;
    pointer-events: none;
}

.lightning-path {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Bolt 1 - Blue White */
.bolt-1 .lightning-path.main {
    stroke-width: 4;
    stroke: #e3f2fd;
    filter: drop-shadow(0 0 10px #e3f2fd) drop-shadow(0 0 20px #2196f3) drop-shadow(0 0 40px #2196f3);
}

.bolt-1 .lightning-path.branch {
    stroke-width: 2;
    stroke: #2196f3;
    filter: drop-shadow(0 0 5px #2196f3);
}

/* Bolt 2 - Purple Pink */
.bolt-2 .lightning-path.main {
    stroke-width: 4;
    stroke: #fce4ec;
    filter: drop-shadow(0 0 10px #fce4ec) drop-shadow(0 0 20px #e91e63) drop-shadow(0 0 40px #e91e63);
}

.bolt-2 .lightning-path.branch {
    stroke-width: 2;
    stroke: #e91e63;
    filter: drop-shadow(0 0 5px #e91e63);
}

/* Bolt 3 - Green Yellow */
.bolt-3 .lightning-path.main {
    stroke-width: 4;
    stroke: #f0f4c3;
    filter: drop-shadow(0 0 10px #f0f4c3) drop-shadow(0 0 20px #cddc39) drop-shadow(0 0 40px #cddc39);
}

.bolt-3 .lightning-path.branch {
    stroke-width: 2;
    stroke: #cddc39;
    filter: drop-shadow(0 0 5px #cddc39);
}

/* Bolt 4 - Orange Red */
.bolt-4 .lightning-path.main {
    stroke-width: 4;
    stroke: #ffe0b2;
    filter: drop-shadow(0 0 10px #ffe0b2) drop-shadow(0 0 20px #ff5722) drop-shadow(0 0 40px #ff5722);
}

.bolt-4 .lightning-path.branch {
    stroke-width: 2;
    stroke: #ff5722;
    filter: drop-shadow(0 0 5px #ff5722);
}

/* Bolt 5 - Original Cyan */
.bolt-5 .lightning-path.main {
    stroke-width: 4;
    stroke: #fff;
    filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px #00ffff) drop-shadow(0 0 40px #00ffff);
}

.bolt-5 .lightning-path.branch {
    stroke-width: 2;
    stroke: #00ffff;
    filter: drop-shadow(0 0 5px #00ffff);
}

/* Test lightning animation */
@keyframes testFlash {
    0%, 90%, 100% { opacity: 0.3; }
    95% { opacity: 1; }
}

/* Lightning strike animations - More frequent */
@keyframes realStrike1 {
    0%, 70%, 74%, 100% { opacity: 0; }
    71% { opacity: 1; }
    71.5% { opacity: 0.3; }
    72% { opacity: 1; }
    73% { opacity: 0; }
}

@keyframes realStrike2 {
    0%, 50%, 54%, 100% { opacity: 0; }
    51% { opacity: 1; }
    51.2% { opacity: 0.4; }
    51.4% { opacity: 1; }
    51.6% { opacity: 0.3; }
    52% { opacity: 1; }
    53% { opacity: 0; }
}

@keyframes realStrike3 {
    0%, 60%, 64%, 100% { opacity: 0; }
    61% { opacity: 1; }
    61.3% { opacity: 0.2; }
    62% { opacity: 1; }
    63% { opacity: 0; }
}

@keyframes realStrike4 {
    0%, 40%, 44%, 100% { opacity: 0; }
    41% { opacity: 1; }
    41.2% { opacity: 0.5; }
    41.5% { opacity: 1; }
    41.8% { opacity: 0.3; }
    42% { opacity: 1; }
    43% { opacity: 0; }
}

@keyframes realStrike5 {
    0%, 80%, 84%, 100% { opacity: 0; }
    81% { opacity: 1; }
    81.4% { opacity: 0.3; }
    82% { opacity: 1; }
    83% { opacity: 0; }
}

/* Apply animations to each bolt - More frequent cycles */
.bolt-1 {
    animation: realStrike1 3s infinite;
}

.bolt-2 {
    animation: realStrike2 2.5s infinite;
}

.bolt-3 {
    animation: realStrike3 3.5s infinite;
}

.bolt-4 {
    animation: realStrike4 2s infinite;
}

.bolt-5 {
    animation: realStrike5 4s infinite;
}

.hero-v3::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 1.5rem;
    width: 100%;
}

.hero-v3 h1 {
    font-size: clamp(3rem, 12vw, 6.5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 0.9;
    letter-spacing: -2px;
    position: relative;
    color: #fff;
}

.hero-v3 h1 span {
    display: block;
    font-size: 0.4em;
    letter-spacing: 15px;
    margin-top: 0.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 30px var(--primary-glow);
}

/* Glitch/Loose Connection Animation */
.glitch-text {
    position: relative;
    animation: glitchSkew 4s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    animation: glitchTop 1.5s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    color: #0ff;
    left: 2px;
}

.glitch-text::after {
    animation: glitchBottom 2.1s infinite linear alternate-reverse;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    color: #f0f;
    left: -2px;
}

@keyframes glitchTop {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-3px, 1px); opacity: 0.5; }
}

@keyframes glitchBottom {
    0%, 100% { transform: translate(0); }
    15% { transform: translate(3px, 2px); }
    25% { transform: translate(-3px, -2px); }
    35% { transform: translate(3px, -2px); }
    45% { transform: translate(-3px, 2px); }
    55% { transform: translate(4px, -1px); opacity: 0.3; }
}

@keyframes glitchSkew {
    0%, 100% { transform: skew(0deg); }
    20% { transform: skew(-1deg); }
    25% { transform: skew(3deg); }
    30% { transform: skew(-2deg); }
    35% { transform: skew(1deg); }
}

.hero-v3 p {
    font-size: clamp(1rem, 4vw, 1.4rem);
    opacity: 0.9;
    margin: 2rem auto;
    max-width: 600px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn-hero {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-hero:hover::after {
    left: 100%;
}

.btn-primary-hero {
    background: var(--primary-color);
    color: #000 !important;
    border: none;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary-hero:hover {
    background: #fff;
    color: #000 !important;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.5);
}

.btn-outline-hero {
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline-hero:hover {
    background: var(--primary-color);
    color: #000 !important;
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.4);
}

@media (max-width: 768px) {
    .hero-v3 {
        height: auto;
        min-height: 100svh;
        padding: 100px 0 60px;
        align-items: center;
    }

    .hero-content {
        padding: 0 1.25rem;
        width: 100%;
        text-align: center;
    }

    /* Scale down the giant title to fit properly */
    .hero-v3 h1 {
        font-size: clamp(1.8rem, 10vw, 3rem);
        letter-spacing: -0.5px;
        line-height: 1.05;
        margin-bottom: 0.75rem;
        word-break: break-word;
        hyphens: auto;
    }

    /* Subtitle */
    .hero-v3 p {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin: 1.25rem auto;
        max-width: 100%;
        padding: 0 0.5rem;
        line-height: 1.6;
    }

    /* Storage notice */
    .storage-notice {
        font-size: 0.8rem !important;
        padding: 10px 14px !important;
        margin: 12px 0 !important;
        text-align: left !important;
    }

    /* Buttons */
    .hero-btns {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
        margin-top: 1.5rem;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
}

/* Extra small phones */
@media (max-width: 380px) {
    .hero-v3 h1 {
        font-size: clamp(1.5rem, 9vw, 2rem);
        letter-spacing: 0px;
    }

    .hero-content {
        padding: 0 1rem;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 800;
}

.section-header h2 span {
    color: var(--primary-color);
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Grid Layouts */
.catalog-grid, .latest-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Ensure cards don't stretch too much if there's only one */
.track-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.featured-card {
    transition: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.2);
}

.card-art {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: none;
}

.featured-card:hover .art-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    transition: none;
}


.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-body .artist {
    opacity: 0.6;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.btn-add {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-add:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.features-list {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    color: var(--primary-color);
}

.image-stack {
    position: relative;
    padding: 40px;
}

.stack-item {
    position: absolute;
    border-radius: 20px;
}

.item-1 {
    width: 80%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.item-2 {
    width: 80%;
    height: 80%;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.item-main {
    position: relative;
    z-index: 2;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.item-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animations */
.animate-up {
    opacity: 1;
    animation: none;
}

.no-animate {
    opacity: 1;
    animation: none;
}

@keyframes fadeInUp {
    0% {
        opacity: 1;
        transform: translateY(30px);
    }
    25% {
        opacity: 1;
        transform: translateY(-5px);
    }
    50% {
        opacity: 1;
        transform: translateY(-8px) rotate(1deg);
    }
    75% {
        opacity: 1;
        transform: translateY(-3px) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

@keyframes logoPulse {
    0% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.5; 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    25% { 
        transform: scale(1.05) rotate(90deg); 
        opacity: 0.3; 
        box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.4);
    }
    50% { 
        transform: scale(1.1) rotate(180deg); 
        opacity: 0.2; 
        box-shadow: 0 0 30px 10px rgba(59, 130, 246, 0.2);
    }
    75% { 
        transform: scale(1.05) rotate(270deg); 
        opacity: 0.3; 
        box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.4);
    }
    100% { 
        transform: scale(1) rotate(360deg); 
        opacity: 0.5; 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
}

.hero-v3 h1 {
    position: relative;
    display: inline-block;
}

.hero-v3 h1::before {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .latest-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Center the catalog grid on mobile */
    .catalog-grid {
        justify-content: center !important;
        padding: 0 1rem;
    }
    
    /* Center track cards */
    .track-card {
        margin: 0 auto !important;
    }
    
    /* Center latest list */
    .latest-list {
        padding: 0 1rem;
        justify-content: center !important;
    }
    
    /* Center latest releases track cards specifically */
    .section-latest .track-card {
        margin: 0 auto !important;
    }
    
    /* Center featured section */
    .section-featured {
        text-align: center;
    }
    
    .section-featured .catalog-grid {
        justify-content: center !important;
    }
    
    .row-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Responsive grid columns */
    .catalog-grid, .latest-list {
        grid-template-columns: 1fr;
    }
}

/* Tablet - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .catalog-grid, .latest-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Small Desktop - 3 columns */
@media (min-width: 1025px) and (max-width: 1400px) {
    .catalog-grid, .latest-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

/* Large Desktop - 4 columns */
@media (min-width: 1401px) {
    .catalog-grid, .latest-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}
