/* style.css (Complete Final Version) */

body {
    margin: 0;
    padding: 3rem 1rem;
    
    /* Dark purple to teal gradient with a Sierpinski triangle overlay */
    background-color: #381945;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' opacity='0.15'%3E%3Cpath d='M60 20 L50 37.5 L70 37.5 Z M50 37.5 L40 55 L60 55 Z M70 37.5 L60 55 L80 55 Z M40 55 L30 72.5 L50 72.5 Z M30 72.5 L20 90 L40 90 Z M50 72.5 L40 90 L60 90 Z M80 55 L70 72.5 L90 72.5 Z M70 72.5 L60 90 L80 90 Z M90 72.5 L80 90 L100 90 Z' fill='%23ffffff'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #381945 0%, #065f6b 100%);
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #370B45; 
    min-height: 100vh;
    box-sizing: border-box;
}

.notebook-container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #FFFDF4; 
    background-image: 
        linear-gradient(90deg, transparent 240px, #ffb3b3 240px, #ffb3b3 242px, transparent 242px),
        linear-gradient(transparent calc(2rem - 1px), #e2e4e8 calc(2rem - 1px), #e2e4e8 2rem);
    background-size: 100% 100%, 100% 2rem;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 80vh;
    overflow: hidden;
}

.sidebar {
    padding-top: 2rem; 
    display: flex;
    flex-direction: column;
    gap: 1.5rem; 
}

.nav-flag {
    display: flex;
    align-items: center;
    height: 3rem;
    padding-left: 2rem;
    margin-right: -20px; 
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #ffffff;;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-flag:hover {
    transform: translateX(10px);
    filter: brightness(0.95);
}

/* All Flag Colors */
.flag-blog { background-color: #370B45; }
.flag-about { background-color: #531169; }
.flag-services { background-color: #6B1687; }
.flag-music { background-color: #851BA8; }
.flag-academic { background-color: #A924D6; }

/* THE CONTENT SECTION
   Padding is set to 5rem on the left to push text away from the flags.
*/
.content {
    padding: 0 4rem 4rem 5rem;
    line-height: 2rem; 
}

h1, h2, h3, p, ul {
    margin-top: 0;
    margin-bottom: 2rem; 
}

h1 {
    font-size: 2.5rem;
    padding-top: 3rem; 
    margin-bottom: 3rem; 
    letter-spacing: -1px;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px dashed #cbd5e1;
    display: inline-block;
    margin-bottom: 2rem; 
}

.update-log {
    list-style: none;
    padding: 0;
}

.update-log li {
    margin-bottom: 4rem; 
    position: relative;
}

.update-date {
    display: inline-block;
    background: #065f6b;
    color: white;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

@media (max-width: 800px) {
    .notebook-container {
        grid-template-columns: 1fr;
        background-image: 
            linear-gradient(transparent calc(2rem - 1px), #e2e4e8 calc(2rem - 1px), #e2e4e8 2rem);
        background-size: 100% 2rem;
    }
    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem;
        justify-content: center;
        border-bottom: 2px solid #e2e4e8; 
    }
    .nav-flag {
        margin-right: 0;
        padding: 0 2rem 0 1rem;
    }
    .content {
        padding: 1rem 1.5rem;
    }
}
/* --- Blog Link Styles --- */
.post-title {
    color: #370B45;
    text-decoration: none;
    font-size: 1.2rem;
}

.post-title:hover {
    text-decoration: underline;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #065f6b;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 3rem; 
    margin-bottom: -1rem; /* Adjusts spacing to keep text on the lines */
    color: #370B45;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.back-link:hover {
    color: #2d3748;
}
/* --- Creative Services Layout --- */
.service-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem; /* Keeps rhythm with the 2rem notebook lines */
    align-items: flex-start;
}

.service-image {
    width: 200px;
    height: 200px;
    object-fit: cover; /* Ensures the image fills the square without stretching */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Prevents the image from squishing on smaller screens */
}

.service-info {
    flex: 1;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 2rem;
}

.service-pricing {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-pricing li {
    margin-bottom: 0;
    line-height: 2rem;
    font-weight: 500;
}

/* A nice pill-shaped tag for the prices to make them pop */
.price-tag {
    display: inline-block;
    background-color: #2b0b3f; /* Matches your dark gradient background */
    color: #ffffff; /* White text for contrast */
    padding: 0 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
    line-height: 1.5rem;
}

/* Mobile Responsiveness for Services */
@media (max-width: 800px) {
    .service-card {
        flex-direction: column;
        gap: 1rem;
    }
    .service-image {
        width: 100%;
        height: 250px;
    }
}

/* --- Music Links --- */
.music-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin-top: 2rem;
}

.music-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.music-link:hover {
    background-color: #e8e8e8;
    transform: translateX(4px);
}

.music-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.music-bandcamp .music-icon { color: #1da0c3; }
.music-spotify .music-icon { color: #1DB954; }
.music-tidal .music-icon { color: #000000; }
.music-apple .music-icon { color: #fa233b; }
.music-youtube .music-icon { color: #FF0000; }
.music-soundcloud .music-icon { color: #ff5500; }
/* --- Academic Page --- */
.course-list,
.education-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.course-list li,
.education-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.course-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.course-meta {
    color: #6B1687;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.academic-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #065f6b;
    font-weight: bold;
    text-decoration: none;
}

.academic-link:hover {
    text-decoration: underline;
}