/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #4a2c5a;
    --dark-purple: #2d1a3a;
    --light-purple: #6b4a7a;
    --accent-white: #ffffff;
    --accent-gray: #e0e0e0;
    --text-white: #ffffff;
    --text-gray: #cccccc;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--dark-purple);
    background-image: url('assets/logos/Sporyn-PurpleTexture1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.texture-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.texture-main {
    background-image: url('assets/logos/Sporyn-PurpleTexture1.jpg');
    opacity: 0.7;
    animation: texture-float 60s infinite ease-in-out;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.polygon-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 1;
}

.layer-1 {
    background: 
        linear-gradient(135deg, var(--primary-purple) 0%, transparent 50%),
        linear-gradient(45deg, var(--dark-purple) 0%, transparent 50%);
    background-size: 200px 200px;
    animation: parallax-1 20s infinite linear;
    clip-path: polygon(0% 0%, 95% 5%, 100% 100%, 5% 95%);
}

.layer-2 {
    background: 
        linear-gradient(225deg, var(--light-purple) 0%, transparent 50%),
        linear-gradient(315deg, var(--primary-purple) 0%, transparent 50%);
    background-size: 150px 150px;
    animation: parallax-2 15s infinite linear reverse;
    clip-path: polygon(5% 0%, 100% 5%, 95% 100%, 0% 95%);
}

.layer-3 {
    background: 
        repeating-linear-gradient(45deg, var(--primary-purple), var(--primary-purple) 10px, var(--dark-purple) 10px, var(--dark-purple) 20px);
    animation: parallax-3 25s infinite linear;
    opacity: 0.2;
}


@keyframes texture-float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    50% { 
        transform: translate(-30px, -20px) scale(1.05);
    }
}

@keyframes parallax-1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -200px); }
}

@keyframes parallax-2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(150px, 150px); }
}

@keyframes parallax-3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-150px, 150px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 20px;
}

.hero-content {
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.wordmark-container {
    margin-bottom: 30px;
    text-align: center;
}

.hero-wordmark {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.logo-container {
    margin-bottom: 30px;
}

.logo-box {
    background: var(--accent-white);
    border: 4px solid var(--accent-white);
    border-radius: 20px;
    padding: 30px 60px;
    display: inline-block;
    position: relative;
    box-shadow: 
        0 0 0 2px var(--primary-purple),
        0 0 20px rgba(255, 255, 255, 0.3);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-purple);
    text-transform: lowercase;
    letter-spacing: 2px;
    text-shadow: 
        2px 2px 0 var(--dark-purple),
        4px 4px 0 rgba(0, 0, 0, 0.2);
    margin: 0;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent-white);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        3px 3px 0 var(--dark-purple),
        6px 6px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-white);
    clip-path: polygon(0 0, 15% 0, 85% 0, 100% 0, 100% 100%, 85% 100%, 15% 100%, 0 100%);
}

/* Product Showcase */
.products {
    background: rgba(45, 26, 58, 0.7);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    position: relative;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.product-image-wrapper {
    position: relative;
    background: var(--dark-purple);
    padding: 20px;
    border: 4px solid var(--accent-white);
    clip-path: polygon(5% 0%, 95% 0%, 100% 10%, 100% 90%, 95% 100%, 5% 100%, 0% 90%, 0% 10%);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) brightness(0.95);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
    max-height: 500px;
}

.pixel-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--accent-white);
    clip-path: polygon(5% 0%, 95% 0%, 100% 10%, 100% 90%, 95% 100%, 5% 100%, 0% 90%, 0% 10%);
    pointer-events: none;
}

/* Lab Results Accordion */
.lab-results {
    background: rgba(74, 44, 90, 0.5);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 20px;
    border: 3px solid var(--accent-white);
    clip-path: polygon(3% 0%, 97% 0%, 100% 5%, 100% 95%, 97% 100%, 3% 100%, 0% 95%, 0% 5%);
    background: var(--dark-purple);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px 30px;
    background: var(--primary-purple);
    border: none;
    color: var(--accent-white);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-header:hover {
    background: var(--light-purple);
    transform: translateX(5px);
}

.accordion-header.active {
    background: var(--light-purple);
}

.accordion-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(45, 26, 58, 0.9);
}

.accordion-content.active {
    max-height: 500px;
}

.lab-details {
    padding: 30px;
    color: var(--text-gray);
    text-align: center;
}

.lab-details p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.lab-details strong {
    color: var(--accent-white);
    font-weight: 700;
}

.pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--primary-purple);
    color: var(--accent-white);
    text-decoration: none;
    border: 2px solid var(--accent-white);
    clip-path: polygon(5% 0%, 95% 0%, 100% 10%, 100% 90%, 95% 100%, 5% 100%, 0% 90%, 0% 10%);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.pdf-download:hover {
    background: var(--light-purple);
    transform: translateX(5px) scale(1.05);
}

.pdf-icon {
    font-size: 1.2rem;
}

/* Wholesale Section */
.wholesale {
    background: rgba(45, 26, 58, 0.7);
    text-align: center;
}

.wholesale-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wholesale-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--primary-purple);
    color: var(--accent-white);
    text-decoration: none;
    border: 4px solid var(--accent-white);
    clip-path: polygon(8% 0%, 92% 0%, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0% 92%, 0% 8%);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 0 2px var(--dark-purple),
        0 0 20px rgba(255, 255, 255, 0.2);
}

.wholesale-button:hover {
    background: var(--light-purple);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 0 0 2px var(--dark-purple),
        0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Contact Form */
.contact {
    background: rgba(74, 44, 90, 0.5);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-white);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--dark-purple);
    border: 3px solid var(--accent-white);
    color: var(--accent-white);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    clip-path: polygon(3% 0%, 97% 0%, 100% 5%, 100% 95%, 97% 100%, 3% 100%, 0% 95%, 0% 5%);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--primary-purple);
    border-color: var(--light-purple);
    transform: translateX(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.submit-button {
    width: 100%;
    padding: 18px;
    background: var(--primary-purple);
    color: var(--accent-white);
    border: 4px solid var(--accent-white);
    clip-path: polygon(8% 0%, 92% 0%, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0% 92%, 0% 8%);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 0 2px var(--dark-purple),
        0 0 20px rgba(255, 255, 255, 0.2);
}

.submit-button:hover {
    background: var(--light-purple);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 0 0 2px var(--dark-purple),
        0 10px 30px rgba(255, 255, 255, 0.3);
}

.submit-button:active {
    transform: translateY(0) scale(1);
}

/* Footer */
.footer {
    background: var(--dark-purple);
    padding: 40px 0;
    text-align: center;
    border-top: 3px solid var(--accent-white);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 98%);
}

.footer p {
    margin-bottom: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.disclaimer {
    font-weight: 700;
    color: var(--accent-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-text {
        font-size: 2.5rem;
    }

    .hero-wordmark {
        max-width: 350px;
    }

    .hero-logo {
        max-width: 280px;
    }

    .logo-box {
        padding: 20px 40px;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

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

    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .accordion-header {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .lab-details {
        padding: 20px;
    }

    .wholesale-button,
    .submit-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 2rem;
    }

    .hero-wordmark {
        max-width: 280px;
    }

    .hero-logo {
        max-width: 220px;
    }

    .logo-box {
        padding: 15px 30px;
    }

    .tagline {
        font-size: 0.8rem;
    }

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

    section {
        padding: 50px 0;
    }
}

/* Prevent horizontal overflow */
body, html {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

