body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2c2c54, #4a4e69); /* Muted deep blue to grey */
    color: #ddd;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure content is still readable */
header, main, footer {
    background: none; /* Remove previous backgrounds */
}

/* Keep header and footer styling but without background colours */
header {
    padding: 20px;
    text-align: center;
    color: white;
}
nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #ff6600;
}
main {
    padding: 40px;
    text-align: center;
}
section {
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
/* Ensure footer remains readable */
footer {
    text-align: center;
    padding: 10px;
    color: white;
    margin-top: auto;
}
.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 35px; /* Slightly increased gap */
    padding: 20px;
    justify-items: center;
}

/* Add styles for the album container */
.album-container {
    width: 150px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.album-container:hover {
    transform: scale(1.05);
}

/* Update album cover styles */
.album-cover {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
}

/* Add styles for the title and date */
.album-grid-title {
    margin: 0;
    padding: 0;
    font-size: 0.9em;
    font-weight: bold;
    color: #fff;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

/* New styles for the release type */
.album-grid-type {
    display: block;
    margin: 4px 0;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: bold;
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
    border-radius: 4px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.album-grid-date {
    margin: 4px 0 0 0;
    padding: 0;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7); /* Slightly muted white */
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    color: white;
    position: relative;
}

.modal-content img {
    width: 100%;
    border-radius: 10px;
}

.modal-content a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

.modal-content a:hover {
    color: #ff6600;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ffcc00;
    color: #222;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.btn:hover {
    background: #ff6600;
}
#album-artist {
    font-style: italic;
    color: #ffcc00;
    margin-bottom: 10px;
}

/* Hero Section */
.hero {
    height: 40vh;
    min-height: 200px;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(44, 44, 84, 0.9), rgba(74, 78, 105, 0.9));
    margin-top: -20px;
    padding: 2rem 1rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    width: 90%; /* Add this to ensure content doesn't touch screen edges */
    margin: 0 auto;
    padding: 1rem;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-text p {
    margin: 0.5rem 0;
    word-wrap: normal; /* Changed from break-word */
    overflow-wrap: normal; /* Changed from break-word */
    hyphens: none; /* Disable hyphenation */
    white-space: normal;
}

.hero-link {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.2s ease;
    word-wrap: normal;
    overflow-wrap: normal;
}

.hero-link:hover {
    color: #ff6600;
}

/* Updated typography for hero section */
.hero-content h2 {
    font-size: 2rem; /* Slightly reduced font size */
    margin: 0 0 0.5rem 0; /* Reduced margin */
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Animated Title */
.animated-title {
    animation: fadeInDown 1s ease-out;
}

/* Typing Effect */
.typing-effect {
    font-size: clamp(1.5rem, 4vw, 2rem); /* Responsive font size */
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Latest Release Section */
.latest-release {
    padding: 40px 20px;
}

.release-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.release-card:hover {
    transform: translateY(-5px);
}

/* News Feed */
.news-feed {
    padding: 40px 20px;
}

.substack-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #ffcc00 }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#album-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
    margin-left: 5px;
}

/* Add this to your existing CSS */
#album-artist a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

#album-artist a:hover {
    color: #ff6600;
}

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.project-card h2 a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-card h2 a:hover {
    color: #ff6600;
}

.project-card p {
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* Update existing button styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.btn:hover {
    background: rgba(255, 204, 0, 0.3);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }

    .hero {
        height: auto; /* Allow height to adjust based on content */
        min-height: 200px;
        padding: 2rem 1rem;
    }

    .hero-content {
        width: 95%;
        padding: 0.5rem;
    }

    .hero-text {
        padding: 0 0.5rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Add to your existing CSS */
.loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 10px;
}

.error-message p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Substack entries styling */
.substack-entries {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.substack-post {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.substack-post:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.substack-post h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.substack-post h3 a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.2s ease;
}

.substack-post h3 a:hover {
    color: #ff6600;
}

.post-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.substack-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.substack-cta p {
    margin-bottom: 1rem;
}

/* Social Media Grid */
.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Social Media Cards */
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 204, 0, 0.3);
}

.social-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffcc00;
    transition: color 0.3s ease;
}

.social-card:hover i {
    color: #ff6600;
}

.platform-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.username {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .socials-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .social-card {
        padding: 1.5rem;
    }

    .social-card i {
        font-size: 2rem;
    }
}

/* Add these styles for the Bluesky icon */
.bluesky-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    fill: #ffcc00; /* Using your site's gold color to match other icons */
    transition: fill 0.3s ease;
}

.social-card:hover .bluesky-icon {
    fill: #ff6600; /* Your hover color */
}
