/* Hinge Analysis Sub-tab Styles */
.hinge-upload-widget {
    max-width: 400px;
    margin: 40px auto 30px auto;
    text-align: center;
}
.drop-area {
    border: 2px dashed #bbb;
    border-radius: 10px;
    padding: 40px 20px;
    background: #fafbfc;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.drop-area.dragover {
    border-color: #0078d7;
    background: #f0f8ff;
}
.drop-area p {
    margin: 0;
    font-size: 1.1em;
}
.upload-status {
    margin-top: 15px;
    color: #0078d7;
    font-size: 1em;
    min-height: 24px;
}
.hinge-analysis-results {
    margin: 40px auto 0 auto;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}
.hinge-analysis-results img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    background: #fff;
    margin-bottom: 10px;
}
.hinge-analysis-results .plot-caption {
    font-size: 1em;
    color: #444;
    margin-bottom: 18px;
    text-align: center;
}
/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    padding: 20px 10px; /* Reduced horizontal padding */
    padding-left: 80px; /* Add padding equal to or more than bar width + some space */
    font-weight: 300;
    letter-spacing: 0.02em;
}

header {
    margin-bottom: 0;
    border-bottom: none; /* Remove border for cleaner overlap */
    padding: 15px 0; /* Padding for top and bottom */
    background-color: rgba(255, 255, 255, 0.85); /* More transparent background */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Ensure header is above other content */
    padding-left: 80px; /* Same as body padding-left */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Center tabs */
    gap: 30px; /* Space between tabs */
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 300;
    font-size: 0.95em;
    padding: 5px 10px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent; /* For active state */
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

nav a:hover,
nav a.active {
    color: #000;
    border-bottom: 1px solid #000; /* Thinner underline for elegance */
}

main {
    max-width: 1200px; /* Increased from 960px to 1200px for wider layout */
    margin: 0 auto; /* Center main content */
    padding-top: 60px; /* Add padding to account for fixed header */
}

.tab-content {
    display: none; /* Hide all tabs by default */
    padding: 10px 0; /* Reduced from 20px to 10px */
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block; /* Show active tab */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h2 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #000;
}
/* Home Hero Container */
.hero-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0; /* Remove padding to reduce gap */
}

.hero-image-wrapper {
    width: 100%;
    height: 100vh; /* Use full viewport height */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px; /* Negative margin to pull image up under the header */
}

/* Home Tab Image */
.home-image {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    margin: 0;
    transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1), filter 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.05);
    filter: brightness(0.8);
}

.home-image.animate-loaded {
    transform: scale(1);
    filter: brightness(1);
}

/* New About Me Section Styles */
.about-container {
    display: flex;
    align-items: center; /* Keep items vertically centered */
    gap: 50px; /* Increased gap for more space */
    padding: 40px 20px; /* Add more padding */
}

.about-image-container {
    flex: 0 0 400px; /* Increased fixed width for the image container */
    margin-right: 0; /* Remove right margin, gap will handle spacing */
    /* Image container will be centered by the parent's align-items: center */
    margin-top: 0; /* Reset margin-top, adjust with padding on .about-container if needed */
}

.about-photo {
    width: 100%;
    height: 80%;
    display: block;
    border-radius: 0px; /* Optional: if you want rounded corners */
}

.about-text-container {
    flex: 1; /* Text container takes the remaining space */
    text-align: center; /* Center the text */
}

.about-text-container p {
    margin-bottom: 1.2em; /* Increased bottom margin for better separation */
    line-height: 1.7; /* Increased line height for readability */
    color: #333;
    font-size: 1.05em; /* Slightly larger font size */
}

.about-text-container .about-intro {
    font-size: 1.2em; /* Larger font for the intro line */
    font-weight: 600; /* Bolder intro line */
    margin-bottom: 1.5em;
}

.about-me-artist-name {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 2em; 
    color: #333; 
    margin-bottom: 0.5em;
    text-align: center;
    letter-spacing: 0.05em;
}

.about-text-container strong {
    font-weight: 600; /* Ensure strong tag is bold */
}

.about-text-container em {
    font-style: italic; /* Ensure em tag is italic */
}

.contact-section {
    text-align: center;
    margin: 2em auto;
    max-width: 100%;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 1.5em;
}

.about-contact-prompt {
    text-align: center;
    margin: 0 auto;
    font-weight: 500;
    font-size: 1.05em;
    max-width: 90%;
    color: #444;
}

.email-link {
    display: block;
    background-color: transparent;
    color: #333;
    padding: 8px 18px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 400;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    transition: all 0.3s ease;
    border: 1px solid rgba(180,180,180,0.5);
    letter-spacing: 0.05em;
    font-size: 0.9em;
}

.email-link:hover {
    background-color: #333; /* Darken on hover */
}

/* Typography Settings */
h1, h2, h3 {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.03em;
}

h1 {
    font-size: 2.4em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.6em;
}

/* Add subtle style to strong tags */
strong {
    font-weight: 200;
    letter-spacing: 0.02em;
}

/* Make em tags more refined */
em {
    font-style: italic;
    letter-spacing: 0.01em;
}

/* Responsive adjustments for the new About Me section */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center; /* Center items when stacked */
        text-align: center;
        gap: 30px; /* Adjust gap for mobile */
    }

    .about-image-container {
        margin-right: 0;
        margin-bottom: 30px; /* Increased space below image on mobile */
        width: 90%; /* Make image container responsive on mobile */
        max-width: 350px; /* Max width for the image on mobile */
        flex-basis: auto; /* Allow flex-basis to be auto for mobile */
    }

    .about-text-container {
        text-align: center; /* This will center the text paragraphs */
    }

    .email-link {
        margin: 20px auto 0 auto; /* Already centered for mobile */
    }
}

/* End of New About Me Section Styles */

/* Me-About Section Specific Styles */
#me-about .about-content {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 30px; /* Space between image and text */
}

#me-about img {
    max-width: 100%; /* Ensure image within this section is responsive */
    height: auto;
    border-radius: 5px; /* Optional: slightly rounded corners */
    object-fit: cover; /* Ensure image covers the area well */
}

#me-about .about-text {
    flex: 1; /* Allow text to take remaining space */
}

/* Hero Section */
.hero {
    text-align: center; /* Center the image */
    margin-bottom: 40px; /* Space below the hero image */
}

.hero img {
    max-width: 120%; /* Make image responsive */
    height: auto;
    max-height: 400px; /* Limit max height */
    display: block; /* Remove extra space below image */
    margin: 0 auto; /* Ensure centering */
    object-fit: cover; /* Cover the area nicely */
}

/* Lateral Bar */
.lateral-bar {
    position: fixed; /* Keep it fixed on the screen */
    left: 0;
    top: 0;
    height: 100vh; /* Full viewport height */
    width: 90px; /* Increased width for larger image */
    background-color: #f0f0f0; /* Light grey background, adjust as needed */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    z-index: 1000; /* Ensure it's above other content */
    border-right: 1px solid #ddd; /* Subtle border */
    padding-top: 0;
    padding-bottom: 0;
}

.lateral-profile-img-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 18px rgba(35,36,37,0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
}

.lateral-profile-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: none;
}

.lateral-text {
    writing-mode: vertical-rl; /* Vertical text, right-to-left */
    transform: translateX(-50%) rotate(180deg); /* Rotate to read top-to-bottom */
    font-size: 1.2em; /* Adjust size */
    font-weight: 600; /* Bold */
    color: #333; /* Dark text color */
    letter-spacing: 4px; /* Add spacing for design */
    text-transform: uppercase; /* Uppercase text */
    position: absolute;
    top: 170px; /* Push text below the image */
    left: 50%;
}

@media (max-width: 900px) {
    .lateral-bar {
        width: 60px;
    }
    .lateral-profile-img-wrapper {
        width: 48px;
        height: 48px;
    }
    .lateral-profile-img {
        width: 40px;
        height: 40px;
    }
    .lateral-text {
        font-size: 1em;
        top: 110px;
    }
}

@media (max-width: 600px) {
    .lateral-bar {
        display: none;
    }
}

/* Adjust main content and header to not overlap with the bar */
body {
    /* ... existing body styles ... */
    padding-left: 80px; /* Add padding equal to or more than bar width + some space */
}

header {
    /* ... existing header styles ... */
    /* If header needs specific adjustment, add here */
    /* Example: might need position relative if z-index issues arise */
}

main {
    max-width: 1200px; /* Increased from 960px to 1200px for wider layout */
    margin: 0 auto; /* Center main content */
    /* Main content is already centered, padding on body handles the shift */
}

/* Gallery Styles */
.gallery-container {
    width: 100%;
    padding: 20px 10px; /* Added horizontal padding */
}

/* Alternating Gallery Layout */
.alternating-gallery {
    display: flex;
    flex-direction: column;
    gap: 80px; /* Increased from 60px for better visual separation */
    width: 100%;
}

@media (max-width: 768px) {
    .alternating-gallery {
        gap: 60px; /* Reduce gap on tablets */
    }
}

@media (max-width: 600px) {
    .alternating-gallery {
        gap: 40px; /* Further reduce gap on mobile */
    }
}

.painting-row {
    display: flex;
    align-items: center;
    gap: 50px; /* Increased from 40px to 50px */
    margin-bottom: 30px; /* Increased from 20px */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    width: 100%; /* Ensure it takes full container width */
}

@media (max-width: 768px) {
    .painting-row {
        gap: 30px; /* Reduced gap on tablets */
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .painting-row {
        gap: 15px; /* Further reduced gap on mobile */
        margin-bottom: 15px;
    }
}

.painting-row.left-image {
    flex-direction: row;
}

.painting-row.right-image {
    flex-direction: row-reverse;
}

.painting-image {
    flex: 1.2; /* Increased from 1 to give images more space */
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: auto; /* Remove fixed height to allow natural image dimensions */
    max-width: 90%; /* Limit maximum width */
}

.painting-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.painting-image img {
    width: 100%;
    height: auto;
    min-height: auto; /* Remove fixed height constraint */
    display: block;
    transition: transform 0.5s ease;
    cursor: pointer;
    object-fit: contain; /* Changed from cover to contain to show full image */
    max-height: 400px; /* Limit maximum height while maintaining aspect ratio */
}

.painting-image:hover img {
    transform: scale(1.02);
}

.painting-description {
    flex: 0.8; /* Decreased from 1 to balance with larger image section */
    padding: 20px 30px; /* Increased horizontal padding */
}

.painting-description h3 {
    margin-bottom: 15px;
    font-weight: 500;
    color: #000;
    font-size: 1.4em;
}

.painting-description p {
    line-height: 1.7;
    color: #555;
}

.painting-technique {
    margin-top: 12px;
    font-size: 0.95em;
    color: #777;
}

/* Fade-in animation for gallery items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delay for gallery items */
.painting-row:nth-child(1) { animation-delay: 0.1s; }
.painting-row:nth-child(2) { animation-delay: 0.3s; }
.painting-row:nth-child(3) { animation-delay: 0.5s; }
.painting-row:nth-child(4) { animation-delay: 0.7s; }
.painting-row:nth-child(5) { animation-delay: 0.9s; }
.painting-row:nth-child(6) { animation-delay: 1.1s; }
/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #me-about .about-content {
        flex-direction: column;
        align-items: center; /* Center items when stacked */
        text-align: center;
    }

    #me-about img {
        max-width: 80%; /* Allow image to be larger on smaller screens */
        margin-bottom: 20px;
    }
}

/* Mobile hamburger menu styles */
.menu-toggle {
    display: none; /* hidden by default, shown on small screens */
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 36px;
    padding: 6px;
    z-index: 1500;
    background: transparent;
    border: none;
    cursor: pointer;
}
.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #222;
    margin: 5px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* When menu is open, animate bars into an X */
.menu-toggle.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
    display: none;
}

@media (max-width: 700px) {
    .menu-toggle { display: block; }
    /* Hide the lateral bar on phones (already handled) but ensure body padding removed */
    body { padding-left: 0; }
    header { padding-left: 0; }
    /* Convert nav to a full-screen overlay menu on mobile when active */
    /* Place the mobile nav below the header so it doesn't cover the header content
       Use a top offset and calculated height so the menu sits further down. */
    nav {
        position: fixed;
        top: 64px; /* leave space for the header (adjusted for most phones) */
        right: 0;
        bottom: 0;
        left: 0;
        height: calc(100% - 64px);
        background: rgba(255,255,255,0.98);
        display: flex;
        /* keep the container aligned to the top when opening, but hide it completely when closed */
        align-items: flex-start;
        justify-content: center;
        transform: translateY(-100%); /* keep closed state completely off-screen */
        opacity: 0; /* Make it invisible when closed */
        transition: transform 0.32s ease, opacity 0.32s ease;
        z-index: 1400;
        pointer-events: none; /* Prevent interaction when closed */
    }
    nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto; /* Enable interaction when open */
    }
    nav ul {
        flex-direction: column;
        gap: 18px;
    }
    nav a {
        font-size: 1.25em;
        padding: 12px 18px;
    }
    /* Make the menu live inside a visible white card */
    nav ul {
        background: #fff; /* white container */
        border-radius: 12px;
        box-shadow: 0 12px 36px rgba(15, 20, 30, 0.12);
        padding: 18px 14px;
        width: calc(100% - 40px);
        max-width: 520px;
        margin: 8px auto 0; /* place the white card near the top when opened */
        list-style: none;
    }
    nav ul li { width: 100%; }
    nav a { display: block; width: 100%; }
    /* Ensure hero image stays visible (reduce height) */
    .hero-image-wrapper {
        height: 60vh;
    }
    .home-image {
        height: 60vh;
        object-fit: cover;
    }
}

/* Additional smartphone-friendly adjustments */
@media (max-width: 600px) {
    /* Slightly larger base text for legibility on phones */
    html { font-size: 11px; }
    body {
        padding: 8px 8px 40px; /* remove lateral bar padding on phones */
    }

    /* Reduce header height and ensure content not hidden under it */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        display: flex;
        align-items: center;
        padding: 8px 12px;
        z-index: 1500;
        background: rgba(255,255,255,0.98);
    }

    /* Give main content room beneath header */
    main { padding-top: 72px; }

    /* Ensure mobile nav leaves space for the reduced header height on very small screens */
    nav {
        top: 56px;
        height: calc(100% - 56px);
    }
    /* Slightly adjust card width for very small screens */
    nav ul {
        width: calc(100% - 24px);
        max-width: 480px;
    }

    /* Touch-friendly nav links */
    nav a {
        font-size: 1.15rem;
        padding: 14px 20px;
        border-radius: 8px;
        width: 90vw;
        text-align: center;
    }

    /* Make streaming links stack and expand */
    .streaming-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .streaming-link {
        width: 80%;
        max-width: 300px;
        padding: 12px 8px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
    }
    .streaming-link span {
        font-size: 0.95rem;
    }

    /* Responsive spotify iframe - keep aspect ratio */
    .player-container {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .player-container iframe {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
        min-height: 160px;
    }

    /* Stack gallery rows vertically */
    .painting-row {
        flex-direction: column !important;
        gap: 18px;
        align-items: center; /* Center items */
    }
    .painting-image {
        min-height: auto; /* Remove fixed height */
        width: 90%; /* Reduced from 100% */
        margin: 0 auto; /* Center the image */
        max-width: 320px; /* Reduced max width */
    }
    .painting-description {
        padding: 12px 6px;
        width: 90%; /* Match the image width */
        margin: 0 auto; /* Center the description */
        text-align: center; /* Center the text */
    }
    
    /* Also remove image min-height for mobile */
    .painting-image img {
        min-height: auto; /* Remove fixed height */
        max-height: 280px; /* Lower maximum height for mobile */
    }

    /* Reduce hero intro padding and size for phones */
    .home-intro {
        padding: 40px 12px 60px;
        min-height: 40vh;
    }

    /* Make lightbox controls easier to tap */
    .lightbox-nav button {
        padding: 12px 14px;
        font-size: 22px;
    }

    /* Ensure profile image in about is not too large */
    #me-about .about-content {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    #me-about .about-image img, .profile-image {
        max-width: 46vw;
        height: auto;
        border-radius: 6px;
    }

    /* Slightly larger clickable connect links */
    .connect-link, .email-link {
        padding: 10px 18px;
        font-size: 1rem;
    }
    
    /* Contact logo size for mobile */
    .contact-logo {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .lightbox-img {
        max-height: 65vh; /* Smaller on tablets */
    }
}

@media (max-width: 600px) {
    .lightbox-img {
        max-height: 55vh; /* Even smaller on phones */
    }
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 15px;
    text-align: center;
    color: white;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.2s;
}

.lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-caption h3 {
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
}

.lightbox-caption p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

.lightbox-caption em {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
}

.lightbox-nav button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    transition: background-color 0.3s ease;
}

.lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sub-tabs Styles */
.sub-tabs {
    margin-bottom: 30px;
}

.sub-tab-navigation {
    display: flex;
    list-style: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.sub-tab-navigation li {
    margin: 0 15px;
}

.sub-tab-link {
    text-decoration: none;
    color: #555;
    font-weight: 400;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.sub-tab-link.active, 
.sub-tab-link:hover {
    color: #000;
    border-bottom: 2px solid #000;
}

.sub-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.sub-tab-content.active {
    display: block;
}

/* Music Links Styles */
.music-links-container {
    text-align: center;
    padding: 40px 20px;
}

.music-links-container h3 {
    margin-bottom: 30px;
    font-size: 1.6em;
}

.music-links-container h4 {
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #333;
}

.music-players {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.player-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.player-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.streaming-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.streaming-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f8f8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 200px;
}

.streaming-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.streaming-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* AI Links Styles */
.ai-links-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.ai-links-container h2 {
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #222;
    font-weight: 400;
}

.ai-intro {
    font-size: 1.0em;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ai-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.ai-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 25px;
    border-radius: 10px;
    background-color: #f8f8f8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 220px;
}

.ai-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    background-color: #f2f2f2;
}

.ai-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.ai-link:hover .ai-logo {
    transform: scale(1.08);
}

.ai-link span {
    font-weight: 500;
    font-size: 1.1em;
    margin-top: 8px;
}

/* Make AI logos smaller on mobile devices */
@media (max-width: 768px) {
    .ai-logo {
        width: 70px;
        height: 70px;
    }
    
    .ai-link {
        width: 180px;
        padding: 20px;
    }
    
    .ai-links {
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .ai-logo {
        width: 60px;
        height: 60px;
    }
    
    .ai-link {
        width: 160px;
        padding: 15px;
    }
    
    .ai-links {
        gap: 20px;
    }
}

/* Make streaming logos smaller on mobile devices */
@media (max-width: 768px) {
    .streaming-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 600px) {
    .streaming-logo {
        width: 50px;
        height: 50px;
    }
}

.streaming-link span {
    font-weight: 500;
}

/* Home Page Intro Styles */
.home-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 120px 20px 80px; /* Increased padding for better spacing */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    animation: fadeInIntro 1s ease-out forwards;
    animation-delay: 1.5s;
    position: relative; /* For z-index to work */
    z-index: 5; /* Above image but below header */
}

@keyframes fadeInIntro {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-intro h1 {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 2.4em;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
    color: #000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.home-intro.animate-in h1 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.home-intro p {
    font-size: 1.1em;
    line-height: 1.9;
    color: #555;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
    letter-spacing: 0.02em;
}

.home-intro.animate-in p {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.home-intro .divider {
    height: 1px;
    width: 80px;
    background-color: #000;
    margin: 0 auto;
    margin-bottom: 20px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.8s ease-out 0.7s, transform 0.8s ease-out 0.7s;
}

.home-intro.animate-in .divider {
    opacity: 1;
    transform: scaleX(1);
}

/* Enhanced Animation Styles */
.animate-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 16px;
    opacity: 0;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    font-weight: 300;
    transition: opacity 1.2s cubic-bezier(0.33,1,0.68,1), transform 1.2s cubic-bezier(0.33,1,0.68,1);
}

.scroll-indicator.animated {
    opacity: 1;
    /* slower, gentler motion */
    animation: bounce 3.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-14px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

.scroll-arrow {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
    margin-top: 15px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.scroll-arrow:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid white;
    border-left: 0;
    border-top: 0;
    transform: translate(-5px, -5px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    opacity: 0.7;
}

.scroll-indicator {
    opacity: 0;
    transition: opacity 1s ease-out, transform 0.5s ease-out;
}

.scroll-indicator.animated {
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.scroll-indicator.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: translateY(0) translateX(-50%);
    }
    50% {
        opacity: 1;
        transform: translateY(10px) translateX(-50%);
    }
    100% {
        opacity: 0.4;
        transform: translateY(0) translateX(-50%);
    }
}

.is-scrolling .hero-image-wrapper {
    transform: translateY(-20px);
    transition: transform 2s ease-out;
}

/* Adjust animation timing for different viewport sizes */
@media (max-height: 700px) {
    .scroll-indicator {
        bottom: 20px;
    }
}

/* Enhanced Animation Effects */
.page-loaded .home-image {
    animation: subtle-zoom 2.5s ease-out forwards;
}

@keyframes subtle-zoom {
    0% { transform: scale(1.05); filter: brightness(0.7); }
    100% { transform: scale(1); filter: brightness(1); }
}

.animate-sequential {
    opacity: 0;
    transform: translateY(30px);
    animation: sequence-appear 0.8s ease-out forwards;
}

@keyframes sequence-appear {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.scroll-indicator.enhanced-animation {
    animation: float-bounce 3.2s cubic-bezier(0.33, 1, 0.68, 1) infinite;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.scroll-indicator.enhanced-animation:hover {
    transform: translateY(7px) translateX(-50%) scale(1.07);
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(14px) translateX(-50%); }
}

/* Subtle header reveal animation */
header {
    transform: translateY(-100%);
    animation: header-reveal 1s forwards;
    animation-delay: 0.5s;
}

@keyframes header-reveal {
    to { transform: translateY(0); }
}

/* Enhance the hero section with a gradient overlay for better text visibility */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4));
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.page-loaded .hero-image-wrapper::after {
    opacity: 1;
}

/* Smooth transition when scrolling */
html {
    scroll-behavior: smooth;
}

.smooth-scroll-active {
    scroll-behavior: auto; /* Allow JS to control scrolling */
}

/* Enhanced Smooth Animation Styles */
.smooth-scroll-active * {
    transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1) !important;
    will-change: transform, opacity;
}

.home-image.scrolling-active {
    transition-duration: 2.8s !important;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
    transform: scale(1.015) translateY(-1.2%) !important;
}

/* Enhanced parallax effect during scroll - increased movement */
.is-scrolling .hero-image-wrapper {
    transform: translateY(-95vh); /* Move mostly out of view */
    transition: transform 3.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Adjust fixed header during scroll for smoother experience */
.is-scrolling header {
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Add subtle background motion for depth during scroll */
@keyframes subtle-bg-shift {
    0% { background-position: 50% 0%; }
    100% { background-position: 51% 1%; }
}

body.is-scrolling::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0), rgba(0,0,0,0.03));
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    animation: subtle-bg-shift 3s ease-in-out infinite alternate;
    z-index: -1;
}

body.is-scrolling::before {
    opacity: 1;
}

/* Extra smooth intro content reveal */
.home-intro .intro-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.home-intro .intro-content > *.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Create subtle layered motion during scroll */
.scroll-complete .hero-overlay {
    transform: translateY(-5px);
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}

/* Simplified Home Intro Styles */
.home-intro.simple-fade-in {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 120px 20px 80px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
    animation: fadeIn 1.2s ease-in;
}

.home-intro.simple-fade-in h1 {
    font-size: 2.3em;
    font-weight: 600;
    margin-bottom: 18px;
    color: #222;
    letter-spacing: 1px;
}

.home-intro.simple-fade-in .divider {
    height: 2px;
    width: 60px;
    background: #222;
    margin: 0 auto 24px auto;
    border-radius: 2px;
}

.home-intro.simple-fade-in p {
    font-size: 1.15em;
    color: #444;
    margin-bottom: 18px;
    font-weight: 400;
    line-height: 1.7;
}

.home-intro.simple-fade-in .intro-main {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.22em;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #e0eafc 0%, #cfdef3 100%);
    border-radius: 8px;
    padding: 10px 18px;
    display: inline-block;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.home-intro.simple-fade-in .intro-personal {
    color: #3a3a3a;
    font-size: 1.08em;
    font-style: italic;
    margin-bottom: 10px;
    background: #f7fafd;
    border-left: 4px solid #b2d7f3;
    padding: 10px 18px;
    border-radius: 6px;
    display: inline-block;
}

.home-intro.simple-fade-in .highlight {
    color: #fff;
    background: linear-gradient(90deg, #6a82fb 0%, #fc5c7d 100%);
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 500;
    font-size: 1.05em;
    box-shadow: 0 2px 8px rgba(252,92,125,0.08);
    margin: 0 4px;
    display: inline-block;
}

@media (max-width: 768px) {
    .home-intro.simple-fade-in {
        padding: 60px 10px 40px;
        min-height: 40vh;
    }
    .home-intro.simple-fade-in h1 {
        font-size: 1.5em;
    }
}
.connect-link {
    color: #333;
    background: #ffffff;
    border-radius: 4px;
    padding: 6px 16px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 6px rgba(35,36,37,0.03);
    margin: 0 4px;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(200,200,200,0.5);
    font-size: 0.9em;
    text-transform: lowercase;
}

.contact-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: cover;
    border-radius: 3px;
}

.connect-link:hover {
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(35,36,37,0.05);
    transform: translateY(-1px);
    border-color: rgba(180,180,180,0.6);
}

@media (max-width: 768px) {
    .about-content.cool-about {
        padding: 24px 8px 18px 8px;
        max-width: 98vw;
        gap: 18px;
    }
    .about-content.cool-about h3 {
        font-size: 1.3em;
    }
}

.about-content.cool-about strong {
    color: #D7AD81;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Removed old about-profile-wrapper, about-profile-pic styles */
