/* ============================================
   PUNK ALLLIEN — Main Stylesheet
   Chintzy CPU font + Psychedelic effects
   ============================================ */

/* === CHINTZY CPU FONT === */
@font-face {
    font-family: 'Chintzy CPU';
    src: url('https://fonts.cdnfonts.com/css/chintzy-cpu') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Fallback: import from cdnfonts if available */
@import url('https://fonts.cdnfonts.com/css/chintzy-cpu');

/* === CSS VARIABLES === */
:root {
    --magenta: #E64AEB;
    --purple:  #8A22E9;
    --navy:    #1F135A;
    --yellow:  #F3D042;
    --green:   #009917;
    --dark:    #0A0714;
    --darker:  #060410;
}

/* === BASE === */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--darker);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

::selection {
    background: var(--magenta);
    color: white;
}

/* === CHINTZY FONT APPLICATION === */
.font-chintzy,
.logo-text,
.hero-brand {
    font-family: 'Chintzy CPU', 'Courier New', monospace !important;
    letter-spacing: 0.05em;
}

/* === GRAIN OVERLAY === */
.grain-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* === NAVBAR === */
#navbar {
    background: transparent;
    backdrop-filter: none;
    transition: all 0.4s ease;
}
#navbar.scrolled {
    background: rgba(6, 4, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(138, 34, 233, 0.3);
    box-shadow: 0 0 30px rgba(230, 74, 235, 0.1);
    padding-top: 12px;
    padding-bottom: 12px;
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--magenta), var(--purple));
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after { width: 100%; }

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.aurora-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        -45deg,
        #060410,
        #1F135A,
        #4a0080,
        #E64AEB33,
        #060410,
        #1F135A,
        #8A22E9,
        #060410
    );
    background-size: 400% 400%;
    animation: aurora 12s ease infinite;
    z-index: 0;
}

@keyframes aurora {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: floatBlob 8s ease-in-out infinite;
}
.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--magenta), transparent);
    top: -100px; right: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--purple), transparent);
    bottom: -50px; left: -50px;
    animation-delay: 3s;
}
.blob-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--yellow), transparent);
    top: 50%; left: 40%;
    opacity: 0.1;
    animation-delay: 5s;
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* === GLITCH EFFECT === */
.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: transparent;
}
.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--magenta);
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
    animation: glitch-1 2s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 var(--purple);
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
    animation: glitch-2 3s infinite linear alternate-reverse;
}
@keyframes glitch {
    0%, 90%, 100% { text-shadow: 2px 0 var(--magenta), -2px 0 var(--purple); }
    92% { text-shadow: -3px 0 var(--magenta), 3px 0 var(--purple), 0 0 20px var(--yellow); }
    94% { text-shadow: 3px 0 var(--yellow), -3px 0 var(--green); }
    96% { text-shadow: -2px 0 var(--magenta), 2px 0 var(--purple); }
}
@keyframes glitch-1 {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); transform: translate(-2px, 0); }
    10% { clip-path: polygon(0 15%, 100% 15%, 100% 25%, 0 25%); }
    30% { clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%); transform: translate(2px, 0); }
    50% { clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%); }
    70% { clip-path: polygon(0 30%, 100% 30%, 100% 35%, 0 35%); transform: translate(-2px, 0); }
    100% { clip-path: polygon(0 85%, 100% 85%, 100% 90%, 0 90%); }
}
@keyframes glitch-2 {
    0% { clip-path: polygon(0 60%, 100% 60%, 100% 68%, 0 68%); transform: translate(3px, 0); }
    25% { clip-path: polygon(0 40%, 100% 40%, 100% 45%, 0 45%); }
    50% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); transform: translate(-3px, 0); }
    75% { clip-path: polygon(0 75%, 100% 75%, 100% 85%, 0 85%); }
    100% { clip-path: polygon(0 25%, 100% 25%, 100% 35%, 0 35%); }
}

/* === NEON GLOW === */
.neon-text {
    text-shadow:
        0 0 7px var(--magenta),
        0 0 10px var(--magenta),
        0 0 21px var(--magenta),
        0 0 42px var(--purple),
        0 0 82px var(--purple);
}
.neon-btn {
    box-shadow:
        0 0 10px var(--magenta),
        0 0 20px rgba(230, 74, 235, 0.4),
        inset 0 0 10px rgba(230, 74, 235, 0.1);
    transition: all 0.3s ease;
}
.neon-btn:hover {
    box-shadow:
        0 0 20px var(--magenta),
        0 0 40px rgba(230, 74, 235, 0.6),
        0 0 80px rgba(138, 34, 233, 0.4),
        inset 0 0 20px rgba(230, 74, 235, 0.2);
    transform: translateY(-2px);
}
.neon-border {
    box-shadow: 0 0 15px rgba(230, 74, 235, 0.3), inset 0 0 15px rgba(230, 74, 235, 0.05);
    border: 1px solid rgba(230, 74, 235, 0.4);
}
.neon-border:hover {
    box-shadow: 0 0 25px rgba(230, 74, 235, 0.5), inset 0 0 25px rgba(230, 74, 235, 0.1);
}

/* === HERO BRAND SLIDER (Chintzy) === */
.brand-slider-container {
    overflow: hidden;
    padding: 20px 0;
    background: linear-gradient(90deg, transparent, rgba(230,74,235,0.05), transparent);
    border-top: 1px solid rgba(230,74,235,0.2);
    border-bottom: 1px solid rgba(230,74,235,0.2);
}
.brand-slider-track {
    display: flex;
    animation: brandScroll 20s linear infinite;
    white-space: nowrap;
    gap: 0;
}
.brand-slider-track:hover { animation-play-state: paused; }
.brand-slide-item {
    font-family: 'Chintzy CPU', 'Courier New', monospace !important;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--magenta);
    padding: 0 2rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(230,74,235,0.5);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.brand-slide-item .separator {
    color: var(--yellow);
    font-size: 0.5em;
    opacity: 0.7;
}
@keyframes brandScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === HERO SWIPER SLIDER === */
.hero-swiper { width: 100%; height: 100%; position: absolute; inset: 0; }
.swiper-slide-content { position: relative; z-index: 2; }

/* === PRODUCT CARDS === */
.product-card {
    background: linear-gradient(135deg, rgba(31,19,90,0.8), rgba(6,4,16,0.9));
    border: 1px solid rgba(138,34,233,0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230,74,235,0.05), transparent, rgba(138,34,233,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230,74,235,0.5);
    box-shadow: 0 20px 60px rgba(230,74,235,0.2), 0 0 30px rgba(138,34,233,0.1);
}
.product-card:hover::before { opacity: 1; }
.product-card .product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, var(--navy), var(--dark));
}
.product-card:hover .product-img { transform: scale(1.08); }
.product-card .quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3;
}
.product-card:hover .quick-add { transform: translateY(0); }

/* === ARTWORK PACKAGES === */
.package-card {
    background: linear-gradient(135deg, rgba(31,19,90,0.6), rgba(138,34,233,0.1));
    border: 1px solid rgba(138,34,233,0.3);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}
.package-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--magenta), var(--purple), var(--yellow));
}
.package-card.popular {
    border-color: var(--magenta);
    box-shadow: 0 0 40px rgba(230,74,235,0.2);
    transform: scale(1.03);
}
.package-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--magenta);
    box-shadow: 0 0 50px rgba(230,74,235,0.25);
}
.package-card.popular:hover { transform: translateY(-8px) scale(1.04); }

/* === PORTFOLIO MASONRY === */
.portfolio-grid {
    columns: 3 250px;
    column-gap: 1rem;
}
@media (max-width: 768px) { .portfolio-grid { columns: 2 150px; } }
@media (max-width: 480px) { .portfolio-grid { columns: 1; } }
.portfolio-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}
.portfolio-item:hover { transform: scale(1.02); }
.portfolio-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,4,16,0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}
.portfolio-item:hover .overlay { opacity: 1; }

/* === TESTIMONIALS === */
.testimonial-card {
    background: rgba(31,19,90,0.5);
    border: 1px solid rgba(138,34,233,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--magenta);
    opacity: 0.2;
    line-height: 1;
    font-family: 'Syne', serif;
}

/* === SECTIONS === */
.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    line-height: 1;
}
.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(230,74,235,0.1);
    border: 1px solid rgba(230,74,235,0.3);
    border-radius: 9999px;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--magenta);
    margin-bottom: 1rem;
}

/* === FILTER BUTTONS === */
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(138,34,233,0.3);
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--magenta), var(--purple));
    border-color: transparent;
    color: white;
    box-shadow: 0 0 15px rgba(230,74,235,0.4);
}

/* === STAT COUNTERS === */
.stat-number {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, var(--magenta), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === FORM ELEMENTS === */
.form-input {
    background: rgba(31,19,90,0.5);
    border: 1px solid rgba(138,34,233,0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--magenta);
    box-shadow: 0 0 15px rgba(230,74,235,0.2);
    background: rgba(31,19,90,0.7);
}
.form-input::placeholder { color: rgba(156,163,175,0.6); }

/* === SKELETON LOADER === */
.skeleton {
    background: linear-gradient(90deg, rgba(31,19,90,0.5) 25%, rgba(138,34,233,0.1) 50%, rgba(31,19,90,0.5) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* === LIGHTBOX === */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
#lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
}

/* === CART DRAWER === */
#cartDrawer {
    box-shadow: -20px 0 60px rgba(0,0,0,0.8);
}
#cartDrawer.open { transform: translateX(0) !important; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--magenta), var(--purple)); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--magenta); }

/* === ANIMATE ON SCROLL === */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].animated { opacity: 1; transform: translateY(0); }
[data-aos="fade-left"] { transform: translateX(-30px); }
[data-aos="fade-left"].animated { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(30px); }
[data-aos="fade-right"].animated { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-in"].animated { transform: scale(1); }

/* === HERO CONTENT === */
.hero-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--yellow);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .brand-slide-item { font-size: 1.5rem; }
}
