* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: white;
    min-height: 100vh;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 0 1rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}


.main-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #1e293b;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: #64748b;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1e293b;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Home Page Styles */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    padding-top: 12rem;
}

.content-wrapper {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

.text-column {
    flex: 0 0 80%;
    max-width: 80%;
}

.photo-column {
    flex: 0 0 20%;
    max-width: 20%;
}

.main-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subheading {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #64748b;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

.about-content {
    margin-bottom: 3.5rem;
}

.about-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #334155;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content .tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #64748b;
    margin-bottom: 2rem;
}


.skills-section {
    margin-bottom: 2.5rem;
}

.skills-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1e293b;
    margin-bottom: 1rem;
}

.skills-list {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #334155;
    line-height: 1.8;
}

.photo-container,
.photo-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-container img {
    height: 600px;
    display: block;
    border-radius: 8px;
}

.photo-placeholder {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Music Page Styles */
.music-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    padding-top: 12rem;
}

.music-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.music-content iframe,
.music-content video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.music-content video {
    display: block;
    background: #000;
}

/* Code Page Styles */
.code-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    padding-top: 12rem;
}

.code-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.code-content h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.code-content p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
}

/* Art Portfolio Styles */
.portfolio-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 12rem 1rem 3rem;
}

.art-intro {
    padding: 0 2rem 0 2rem;
}

.art-intro p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.8;
}

.artwork {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* First artwork: image left, blurb right */
.artwork-1 {
    display: flex;
    flex-direction: row;
    opacity: 0;
    transform: translateY(20px);
    gap: 2rem;
    padding: 0 2rem 2rem 2rem;
    margin-bottom: 0;
    height: 100%;
    align-items: flex-end;
}

.artwork-1 .artwork-image {
    flex: 0 0 70%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 3rem;
}

.artwork-1 .artwork-blurb,
.artwork-5 .artwork-blurb {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.artwork-1 .artwork-blurb {
    padding-left: 1rem;
}

/* Fifth artwork: blurb left, image right */
.artwork-5 {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.artwork-5 .artwork-blurb {
    padding-right: 1rem;
}

.artwork-5 .artwork-image {
    flex: 0 0 70%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Artwork grouping: 2nd and 3rd on left, 4th on right */
.artwork-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.group-left-column,
.group-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.group-left-column {
    gap: 5rem;
}

.group-right-column {
    justify-content: center;
}

/* Second, Third, and Fourth artworks: image left, blurb below */
.artwork-2,
.artwork-3,
.artwork-4 {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin-bottom: 0;
}

.artwork-2 .artwork-image,
.artwork-3 .artwork-image,
.artwork-4 .artwork-image {
    width: 100%;
    margin-bottom: 2rem;
}

.artwork-2 .artwork-blurb,
.artwork-3 .artwork-blurb,
.artwork-4 .artwork-blurb {
    width: 100%;
}

.artwork-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    max-width: 100%;
}

.artwork-image img {
    height: auto;
    display: block;
    object-fit: contain;
    will-change: transform;
    border-radius: 8px;
    max-width: 100%;
    width: 100%;
}

.artwork-1 .artwork-image img,
.artwork-5 .artwork-image img {
    max-width: 1000px;
}

.artwork-2 .artwork-image img,
.artwork-3 .artwork-image img {
    max-width: 600px;
}

.artwork-4 .artwork-image img {
    max-width: 900px;
}

.artwork-blurb h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.artwork-blurb p {
    margin-bottom: 1rem;
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.8;
}

.artwork-blurb p:last-child {
    margin-bottom: 0;
}

footer {
    background-color: transparent;
    color: #1e293b;
    text-align: center;
    padding: 3rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        gap: 4rem;
    }
    
    .main-heading {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0 0.75rem 0;
    }

    .logo {
        font-size: 2.5rem;
    }

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

    .main-nav {
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 0.7rem;
    }

    .main-content {
        padding: 3rem 1.5rem;
        padding-top: 10rem;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .text-column,
    .photo-column {
        flex: 1;
        max-width: 100%;
    }

    .main-heading {
        font-size: 2.5rem;
    }

    .subheading {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .photo-container,
    .photo-placeholder {
        min-height: 200px;
    }

    .photo-container img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: center -125px;
    }

    .music-container,
    .code-container {
        padding: 3rem 1.5rem;
        padding-top: 10rem;
    }

    .music-content iframe,
    .music-content video {
        height: auto;
        min-height: 250px;
    }

    .code-content h2 {
        font-size: 2rem;
    }

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

    .portfolio-container {
        padding: 2rem 1rem;
        padding-top: 10rem;
    }

    .artwork-1 {
        flex-direction: column;
        padding: 1.5rem;
        align-items: center;
    }

    /* Ensure images always appear before blurbs on mobile */
    .artwork .artwork-image {
        order: 1;
    }

    .artwork .artwork-blurb {
        order: 2;
    }

    .artwork-1 .artwork-image,
    .artwork-5 .artwork-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .artwork-1 .artwork-image {
        padding-top: 2rem;
    }

    .artwork-1 .artwork-blurb,
    .artwork-5 .artwork-blurb {
        flex: 0 0 auto;
        width: 100%;
    }

    .artwork-1 .artwork-blurb {
        padding-left: 0;
    }

    .artwork-5 {
        flex-direction: column;
        padding: 1.5rem;
    }

    .artwork-5 .artwork-blurb {
        padding-right: 0;
        padding-left: 0;
        padding-bottom: 1rem;
    }

    .artwork-group {
        flex-direction: column;
        gap: 3rem;
    }

    .group-left-column {
        gap: 3rem;
    }

    .artwork-2,
    .artwork-3,
    .artwork-4 {
        padding: 1.5rem;
    }

    .artwork-blurb h2 {
        font-size: 1rem;
    }

    .artwork-blurb p {
        font-size: 0.8rem;
    }

    .artwork-2 .artwork-image img,
    .artwork-3 .artwork-image img,
    .artwork-4 .artwork-image img,
    .artwork-5 .artwork-image img {
        max-width: 100%;
    }
}
