body {
    background-image: url('website images/Website_Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* Prevent scrolling */
    font-family: 'Inter', sans-serif;
}

/* --- Social Navigation Bar --- */
.social-nav {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    /* Optional glassmorphism background to make it stand out against the background texture */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 15px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.social-nav a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-nav a:hover {
    color: #cccccc;
    transform: scale(1.2) translateY(-2px);
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.item {
    position: absolute;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
    transition: filter 0.3s ease;
}

.item:hover,
.center-group:hover .item {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7)) brightness(1.1);
}

.item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Base scale transition for the inner image */
.item:hover img,
.center-group:hover .item img {
    transform: scale(1.05);
}


/* --- Specific Positioning & Sizing --- */

/* Mike Magann Logo - Top Center */
.item-logo {
    width: 35vw;
    max-width: 500px;
    top: -12vh;
    /* Moved further up since the PNG itself has a lot of transparent padding on top */
    left: 50vw;
    transform: translate(-50%, 0);
    z-index: 10;
}

/* Headshot - Center */
.item-headshot {
    /* Scaled up by 1.2x */
    width: 53vw;
    /* Was 44vw */
    max-width: 900px;
    /* Was 750px */
    top: 52vh;
    /* Slight adjustment to true visual center based on PNG padding */
    left: 50vw;
    transform: translate(-50%, -50%);
    z-index: 5;
}

/* Feat - Mid Left */
.item-feat {
    width: 30vw;
    max-width: 480px;
    top: 50vh;
    /* Lowered halfway: previously 38vh, social media is roughly bottom 8vh (top 92vh) -> (38 + 92)/2 was too far, visual halfway is around 50vh */
    left: 20vw;
    transform: translate(-50%, -50%) rotate(-6deg);
    z-index: 6;
}

/* Social Media - Mid Left */
.item-social {
    width: 32vw;
    max-width: 500px;
    top: 50vh;
    left: 20vw;
    transform: translate(-50%, -50%) rotate(-3deg);
    z-index: 7;
}

/* Videography - Bottom Left-ish */
.item-video {
    width: 40vw;
    max-width: 600px;
    bottom: -4vh;
    /* Moved further down */
    left: 36vw;
    transform: translate(-50%, 0) rotate(-3deg);
    z-index: 10;
}

/* Photography - Bottom Right-ish */
.item-photo {
    width: 37.5vw;
    /* Increased by 1.25x (from 30vw) */
    max-width: 563px;
    /* Increased by 1.25x (from 450px) */
    bottom: 0vh;
    left: 64vw;
    transform: translate(-50%, 0) rotate(4deg);
    z-index: 9;
}

/* Worcester - Mid Right */
.item-worcester {
    width: 30vw;
    max-width: 480px;
    top: 38vh;
    /* Match feat's vertical alignment */
    right: 20vw;
    /* Match feat's horizontal push-out */
    transform: translate(50%, -50%) rotate(5deg);
    z-index: 6;
    filter: none;
    pointer-events: none;
}

/* And More - Bottom Right */
.item-andmore {
    width: 32vw;
    max-width: 500px;
    bottom: 8vh;
    /* Match social media's vertical push-down */
    right: 18vw;
    /* Match social media's horizontal push-out */
    transform: translate(50%, 0) rotate(8deg);
    z-index: 7;
}

/* --- Top Navigation Bar --- */
.top-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 12px 40px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 25px;
    white-space: nowrap;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.top-nav a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.top-nav a.active {
    opacity: 1;
    font-weight: 600;
}

/* --- Subpages Global --- */
.subpage-body {
    overflow-y: auto;
    /* Allow scrolling for subpages */
    overflow-x: hidden;
}

.back-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 100;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.subpage-container {
    position: relative;
    max-width: 1000px;
    margin: 120px auto 50px auto;
    background: transparent;
    padding: 20px;
    color: white;
    z-index: 50;
}

/* --- About Page Specific --- */
.typewriter-header {
    font-family: 'Special Elite', monospace;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-photo-wrapper {
    flex: 0 0 400px;
}

.about-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    /* More like a printed photo */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 8px solid white;
    /* Classic photo border */
    display: block;
    transform: rotate(-2deg);
    /* Artistic tilt */
    transition: transform 0.3s ease;
}

.about-photo:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-text {
    flex: 1.5;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-text p {
    margin-bottom: 20px;
}

/* --- Videography Page Specific --- */
.videography-content {
    max-width: 800px;
    margin: 0 auto;
}

.video-container {
    margin: 40px 0;
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.video-placeholder i {
    font-size: 3rem;
}

/* --- Photography Page Specific --- */
.photography-intro {
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.photography-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 20px 0;
    margin-top: 40px;
}

.gallery-item {
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    width: 260px;
    flex-shrink: 0;
    transition: none;
    /* User wants it flat */
}

.gallery-item:hover {
    transform: none;
    /* Remove hover scaling */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* --- And More Page Specific --- */
.and-more-content {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.art-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.art-item {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-item.placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Special Elite';
    font-size: 1.2rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.art-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Social Media Profiles Specific --- */
.social-profiles-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0 auto 40px auto;
    width: max-content;
    max-width: 100%;
    flex-wrap: wrap;
}

.social-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    background: #fff !important;
    border: 3px solid #fff;
    color: #000 !important;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-ig {
    transform: rotate(-3deg);
}

.box-ig:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.box-tiktok {
    transform: rotate(4deg);
}

.box-tiktok:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.profile-icon {
    font-size: 1.8rem;
    color: #000 !important;
}

.profile-name {
    font-family: 'Special Elite', monospace;
    font-weight: 400;
    font-size: 1.2rem;
    color: #000 !important;
}

/* Make it stack on smaller screens */
@media (max-width: 800px) {

    /* General Subpage layout */
    .about-content {
        flex-direction: column;
    }

    .about-photo-wrapper {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .subpage-container {
        margin: 100px 15px 50px 15px;
        /* Remove left padding so it centers nicely */
        padding: 20px;
    }

    .about-text {
        padding: 20px;
    }

    .video-container {
        margin: 20px 0;
        border-radius: 8px;
    }

    .typewriter-header {
        font-size: 2rem;
    }

    .photography-gallery,
    .art-gallery {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .gallery-item,
    .art-item {
        width: 100%;
        max-width: 350px;
    }

    .social-profiles-container {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .social-box {
        width: 100%;
        max-width: 300px;
    }

    /* Fixed Navigation Restructuring for Mobile */
    .social-nav {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100vw;
        flex-direction: row;
        justify-content: space-evenly;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 0;
        padding: 15px 0;
        z-index: 1000;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .top-nav {
        width: 100vw;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        justify-content: center;
        overflow-x: auto;
        padding: 15px 10px;
        background: rgba(0, 0, 0, 0.8);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Index Canvas specific resizing */
    .canvas-container {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .item {
        position: relative !important;
        transform: none !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 80vw !important;
        margin-bottom: 20px;
    }

    .center-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}