/* --- Base Reset & Defaults --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Enable smooth scrolling */
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 16px; /* Base font size */
}

/* Main Colour 
var(--main-color); 
color: #40e0d0;
color: #FF69B4;
*/
@property --main-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #35D6E8;
}

@property --main-color-50p {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(53, 214, 232,0.8);
}

/* --- Container --- */
.container {
    max-width: 1100px; /* Wider container for more content */
    width: 90%;
    margin: 0 auto; /* Center container */
    padding: 0 20px; /* Add horizontal padding */
}

/* --- Header --- */
.site-header {
    background-color: rgba(18, 18, 18, 0.9); /* Slightly transparent dark */
    color: #fff;
    padding: 15px 0;
    position: sticky; /* Make header sticky */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Blur effect for background */
    border-bottom: 1px solid #333;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    text-align: left;
}

.logo {
    color: #ffffff;
    font-size: 2em; /* Slightly smaller for header */
    letter-spacing: 1px;
    margin-bottom: -5px;
    text-shadow: 0 0 5px rgba(200, 200, 255, 0.2);
}

.rubik-glitch-regular {
  font-family: "Rubik Glitch", system-ui;
  font-weight: 400;
  font-style: normal;
}

.subtitle {
    font-size: 0.7em;
    color: #a0a0a0;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: -2px;
}

/* --- Navigation --- */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px; /* Spacing between nav items */
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    background-color: #333;
    color: #fff;
    outline: none;
}

/* --- Main Content Sections --- */
.content-section {
    padding: 60px 0; /* Vertical padding for sections */
    border-bottom: 1px solid #2a2a2a; /* Subtle separator */
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    color: #ffffff;
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #444;
    display: inline-block;
    padding-bottom: 10px;
}

.content-section h3 {
    color: #cccccc;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.content-section h4 {
    color: #e0e0e0;
    font-size: 1.2em;
    margin-bottom: 8px;
}


.content-section p {
    margin-bottom: 15px;
    color: #b0b0b0;
    max-width: 800px; /* Limit paragraph width for readability */
    margin-left: auto;
    margin-right: auto; /* Center paragraphs */
    text-align: center; /* Center text in general paragraphs */
}

.content-section p:last-of-type {
     margin-bottom: 0;
}

.alt-bg {
    background-color: #1a1a1a; /* Slightly different background for alternating sections */
}

.highlight {
    /*color: var(--main-color);*/
    font-weight: bold;
}

.section-footer-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #888;
    font-size: 0.9em;
}

/* --- Grid Container --- */
.grid-container {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

/* Default to 1 column, adjust below */
.artist-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.release-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


.grid-item {
    background-color: #252525; /* Card background */
    padding: 25px;
    border-radius: 6px;
    text-align: left; /* Align text left within cards */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* --- Artist & Release Cards --- */
.artist-card h3, .release-card h4 {
    text-align: center; /* Center heading within card */
    margin-bottom: 15px; /* Space below heading */
}
.artist-card p, .release-card p {
    font-size: 0.95em;
    text-align: left; /* Ensure paragraph text is left-aligned */
    max-width: none; /* Remove max-width limit within cards */
    margin-left: 0;
    margin-right: 0;
}

.artist-placeholder-img,
.release-placeholder-img {
    width: 100%;
    padding-top: 60%; /* Aspect ratio placeholder (adjust as needed) */
    background-color: #333;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-weight: bold;
    font-size: 1.5em;
}
.release-placeholder-img {
    padding-top: 100%; /* Square aspect ratio for releases */
    background-image: linear-gradient(45deg, #333 25%, #404040 25%, #404040 50%, #333 50%, #333 75%, #404040 75%, #404040 100%);
    background-size: 56.57px 56.57px; /* Subtle pattern */
}

.label { /* For 'Format:', 'Status:' labels */
    font-weight: bold;
    color: #999;
}

/* --- News Section --- */
.news-item {
    background-color: #252525;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid var(--main-color);
    text-align: left;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item h3 {
    margin-bottom: 5px;
    font-size: 1.3em;
}

.news-date {
    display: block;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.news-item p {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}


/* --- Contact Section --- */
.contact-info, .demo-policy {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #1f1f1f;
    border-radius: 5px;
}

.contact-info p, .demo-policy p {
    text-align: center;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}


.contact-info strong {
    color: #fff;
}

.contact-info a, .demo-policy a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover, .demo-policy a:hover,
.contact-info a:focus, .demo-policy a:focus {
    color: var(--main-color);
    text-decoration: underline;
}

.demo-policy h3 {
    text-align: center;
    margin-top: 0;
}

/* --- Footer --- */
.site-footer {
    background-color: #1a1a1a;
    color: #777777;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #333;
    font-size: 0.9em;
}
.site-footer p {
    margin-bottom: 5px;
    color: #777777; /* Ensure footer p inherits correct color */
    text-align: center;
    max-width: none;
}
.site-footer p:last-child {
    margin-bottom: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px; /* Adjust for potentially smaller header */
    }

    .header-container {
        flex-direction: column; /* Stack logo and nav */
        align-items: center;
    }

    .logo-area {
        text-align: center;
        margin-bottom: 10px;
    }

    .main-nav ul {
        justify-content: center; /* Center nav items */
        flex-wrap: wrap; /* Allow nav items to wrap */
        gap: 10px; /* Reduce gap */
        padding-top: 10px;
    }
     .main-nav a {
        font-size: 0.9em;
        padding: 4px 8px;
    }

    .content-section h2 {
        font-size: 1.8em;
    }

    .content-section h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
     .container {
        width: 95%;
        padding: 0 10px;
    }

    .logo {
        font-size: 1.8em;
    }
    .subtitle {
        font-size: 0.6em;
        letter-spacing: 3px;
    }

    .content-section {
        padding: 40px 0;
    }

     .grid-container {
        grid-template-columns: 1fr; /* Stack grid items on small screens */
        gap: 20px;
    }

    .content-section h2 {
        font-size: 1.6em;
    }
    .content-section h3 {
        font-size: 1.2em;
    }
    .content-section p {
        font-size: 0.95em;
    }
}

/* --- About Section Specific Styles --- */
.about-section {
    position: relative; /* Needed for absolute positioning of children */
    overflow: hidden; /* Hide any overflow from the canvas */
    padding: 0;
}

#plasma-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind the content */
    /* Canvas itself will be added here by p5.js */
}

#plasma-background canvas {
    display: block; /* Prevent extra space below canvas */
    /* Optional: Add a filter for effect */
    /* filter: blur(5px) brightness(0.8); */
}


.about-content {
    /* This is the .container div *inside* #about */
    position: relative; /* Position relative to stack above canvas */
    z-index: 2; /* Ensure content is above the canvas */
    padding: 60px 20px; /* Re-apply padding here */
    margin-top: 40px; /* Adjust spacing */
    margin-bottom: 40px; /* Adjust spacing */
    max-width: 640px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.7); /* Slightly transparent black */
    border: 1px solid #333; /* Subtle border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Subtle shadow */
}
/* Ensure text inside about-content remains readable */
.about-content h2,
.about-content p {
    color: #e5e5e5; /* Ensure high contrast text */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Subtle shadow for readability */
    text-align:left;
}

.about-content h2 {
    color: #ffffff;
}

/* Adjustments for smaller screens if needed */
@media (max-width: 768px) {
    .about-content {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 40px 15px;
    }
}

.purple-glow {
    background-image: linear-gradient(to bottom, rgba(128, 0, 128, 0.1), rgba(128, 0, 128, 0)); /* Subtle purple to transparent */
    /* Or a slightly different angle */
    /* background-image: linear-gradient(45deg, rgba(170, 0, 170, 0.05), rgba(170, 0, 170, 0)); */
  }


/* Make release images responsive and contained */
.release-placeholder-img {
    height: 0;
    position: relative;
    overflow: hidden;
    margin: 0 auto 15px; /* Center the image horizontally */
    background-color: #1a1a1a; /* Background color for container */
    border-radius: 4px;
}

.release-placeholder-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
    background-color: transparent; /* Make image background transparent */
}

/* Optional: Add a subtle hover effect */
.release-placeholder-img:hover img {
    transform: scale(1.05);
}

/* Ensure the release cards have proper spacing */
.release-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 15px; /* Reduce padding inside the card */
}

/* Center text in release cards */
.release-card p {
    text-align: center;
    margin-bottom: 5px;
}


/* Glowing Buttons for Eye catcher*/
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.glow-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--main-color-50p);;
    color: white;
    border: 2px solid var(--main-color);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.glow-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    opacity: 0.2;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.glow-button:hover {
    box-shadow: 0 0 15px var(--main-color), 0 0 30px var(--main-color, rgba(138, 43, 226, 0.3));
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.glow-button:hover:before {
    transform: translateX(0);
}

.glow-button:active {
    transform: translateY(1px);
    box-shadow: 0 0 10px var(--main-color);
}