


:root {
    --primary-bg: #000000;
    --secondary-bg: #0f1724;
    --accent: #2b65b2;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --button-bg: #2b65b2;
    --button-text: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--primary-bg);
    color: var(--text-primary);
}

.content-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.6s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;

    scrollbar-width: none;
}

.section::-webkit-scrollbar {
    display: none;
}

.linktree-section {
    transform: translateX(0);
}

.blog-section {
    transform: translateX(100%);
}

.content-wrapper.show-blog .linktree-section {
    transform: translateX(-100%);
}

.content-wrapper.show-blog .blog-section {
    transform: translateX(0);
}

.blog-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2rem 1.5rem;
    text-align: left;
}

.blog-content {
    width: 90%;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 2rem 1.5rem;
    color: var(--text-primary);
}

.blog-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 6px rgba(43, 101, 178, 0.6);
}

.blog-post {
    margin-bottom: 2rem;
}

/* Add a subtle dividing line between blog posts to match the site aesthetic */
.blog-post:not(:last-child) {
    border-bottom: 1px solid rgba(43, 101, 178, 0.4);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Center the back button within the blog content */
#back-button {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    display: block;
}

.blog-post .post-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 0 0.5rem 0;
}

.blog-post .post-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.blog-post .post-body {
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}


@media (max-width: 480px) {
    body {
        background-attachment: scroll;
    }

    /*
     * On small screens we maintain a single column layout for the linktree
     * container and simply reduce some padding and font sizes to ensure the
     * entire list of links and controls fits within the viewport height. The
     * container itself still uses flex-direction: column and
     * justify-content: space-evenly as defined in the base styles. Safe-area
     * insets are applied to the horizontal padding so content stays clear of
     * notches or rounded corners on mobile devices.
     */
    .linktree-container {
        width: 100%;
        max-width: none;
        margin: 0.75rem auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
        padding-left: calc(0.75rem + env(safe-area-inset-left));
        padding-right: calc(0.75rem + env(safe-area-inset-right));
        box-sizing: border-box;
    }

    /* Reduce the logo and tagline sizes slightly on narrow screens */
    .tree-logo {
        width: 80%;
        margin-bottom: 0.4rem;
    }

    .tagline {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .link-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        gap: 0.6rem;
    }

    /* Collapse the grid to a single column on narrow screens */
    .links-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .blog-container {
        padding: 1rem;
    }

    .blog-content {
        width: 100%;
        max-width: none;
        padding: 1.5rem 1rem;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

header {
    background: var(--primary-bg);
    border-bottom: 2px solid var(--accent);
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

.hero {
    background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    color: var(--text-primary);
    text-align: center;
    padding: 5rem 0;
}

.hero .logo-image {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: none;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.btn {
    display: inline-block;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background: #3a7be0;
    color: var(--button-text);
}

.music h2 {
    color: var(--accent);
}

.music .soundcloud-embed {
    margin-top: 1.5rem;
}

.about, .contact {
    background: var(--primary-bg);
    padding: 4rem 0;
}

.about h2, .contact h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.about p, .contact p {
    line-height: 1.6;
    max-width: 800px;
    color: var(--text-secondary);
}

.socials {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.socials a {
    margin-right: 1.5rem;
    display: inline-block;
    width: 40px;
    height: 40px;
}

.socials img {
    width: 100%;
    height: 100%;
    filter: invert(1) grayscale(1) contrast(1.2);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.socials a:hover img {
    transform: scale(1.1);
    filter: invert(0.7) sepia(1) saturate(5) hue-rotate(190deg);
}

footer {
    background: var(--primary-bg);
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.875rem;
}

.linktree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Align items at the top but rely on grid inside for layout; height is automatic */
    justify-content: flex-start;
    padding: 1.5rem 1rem;
    width: 90%;
    max-width: 600px;
    margin: 1rem auto;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tree-logo {
    width: 90%;
    max-width: 500px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 12px rgba(43, 101, 178, 0.7));
}

.linktree-container h1 {
    margin: 0;
    margin-bottom: 0.5rem;
    font-size: 2.25rem;
    color: var(--text-primary);
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    text-shadow: 0 0 6px rgba(43, 101, 178, 0.6);
    margin-bottom: 0.5rem;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 380px;
    padding: 0.75rem 1.25rem;
    margin: 0.5rem 0;
    text-align: center;
    border: 2px solid var(--accent);
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(43, 101, 178, 0.25) 0%, rgba(43, 101, 178, 0.05) 100%);
    backdrop-filter: blur(2px);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    /* Ensure consistent typography across anchor and button elements used for link buttons */
    font-size: 1rem;
    font-family: inherit;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;

    box-sizing: border-box;
}

.link-button:hover {
    background: var(--accent);
    color: var(--button-text);
    transform: translateY(-2px);
}

.button-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: invert(1) grayscale(1) brightness(1.4);
    transition: filter 0.3s ease;
}

.link-button:hover .button-icon {
    filter: invert(1) grayscale(1) brightness(1.8);
}

/*
 * Grid layout for the link buttons. This container will automatically
 * arrange its children into two columns (or more if space allows) on
 * larger screens and collapse to a single column on narrow screens.
 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.75rem;
}