/* Pozadí pro sekci home-bottom s průhledným obrázkem přes celou šířku */
#home-bottom {
    position: relative;
    overflow: hidden;
}
#home-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/solution.jpg');
    background-size: cover;
    background-position: left center; /* Change to display from the left */
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}
#home-bottom > * {
    position: relative;
    z-index: 2;
}

#home {
    position: relative; /* Set position relative */
    background-image: url('images/masaz.jpg');
    background-size: cover;
    background-position: center;
    aspect-ratio: auto; /* Automatically adjusts height based on the image's aspect ratio */
    height: 50vh; /* Full viewport height */
    overflow: hidden; /* Prevent tree from overflowing */
    display: block;
    min-height: 25vh;
    width: 100%;
    box-sizing: border-box;
    z-index: 1; /* Ensure it's below the tree */
}

#home-text {
    width: 60%; /* Adjust width to make space for the tree */
    max-width: 60%;
    min-width: 0;
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    padding: 1.5em 1em;
    background: rgba(0,0,0,0.0);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
    z-index: 3;
    position: relative;
    box-sizing: border-box;
    text-align: left; /* Align text to the left since tree is on the right */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left */
}

#tree-box {
    position: absolute; /* Confined to home section */
    top: 0;
    right: 0;
    width: 40%;
    height: 100%; /* Full height of parent container */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    box-sizing: border-box;
    z-index: 2; /* Make sure it's above the background but below text */
    pointer-events: none; /* Allow clicking through the tree */
    transition: opacity 0.5s ease; /* Smooth transition for opacity changes */
}

#tree-img {
    max-height: 90%;
    height: auto;
    width: auto;
    max-width: 100%;
    margin-right: 2%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    display: block;
    opacity: 0.85; /* Slightly more visible */
    transition: all 0.5s ease; /* Smooth transition for any effects */
}


/* Add global font style */
body {
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: #f0f4f8; /* Light blue sky background #f0f4f8*/
    color: #000; /* Neutral text color for readability */
    margin: 0;
    padding: 0;

    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #8fa998;
    color: #000;
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    z-index: 1002;
    padding: 0;
}

#header-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 50px;
    position: relative;
}

#siteName {
    margin: 0 auto;
    font-size: 1.5em;
    color: #000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
    text-align: center;
}

#menu-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

@media (max-width: 768px) {
    #menu-button {
        display: block;
    }
    #desktop-menu {
    #home-questions {
        gap: 1em;
    }
        display: none;
    }
}

#desktop-menu {
    width: 100vw;
    position: fixed;
    top: 50px;
    left: 0;
    background: #e6ede7;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    box-shadow: 0 2px 1px rgba(0,0,0,0.05);
}

#desktop-menu .desktop-menu-row {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
}

#desktop-menu ul {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
    width: 100%;
    /* ostatní styly zůstanou */
}


.desktop-menu-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    justify-content: space-evenly;
    align-items: center;
    gap: 0;
    padding: 0 2vw;
    box-sizing: border-box;
}

.desktop-menu-box {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.desktop-menu-box a {
    color: #000;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    padding: 0.4em 1.2em;
    border-radius: 8px;
    display: block;
}

.desktop-menu-box:hover {
    background: #cfd8d0;
    border-radius: 8px;
    transition: background 0.2s;
}
.desktop-menu-box a:hover, .desktop-menu-box a:focus {
    color: #4b3f2f;
    text-decoration: none;
}

#siteName {
    margin: 0;
    font-size: 1.5em; /* Adjust font size for readability */
    color: #000; /* Ensure text color is black */
    align-items: center;
    padding-left: 20px;
    padding-right: 40px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#desktop-menu {
    margin: 0;
    align-items: flex-end;
    padding-right: 40px; /* Add padding to the right for spacing */
    font-size: 1.5em; /* Adjust font size for readability */
}

#desktop-menu ul {
    list-style: none;
    padding: 0;
    display: flex; /* Align menu items horizontally */
    gap: 15px; /* Add spacing between menu items */
}

#desktop-menu ul li a {
    color: #000;
    text-decoration: none;
}

main {
    margin-top: 40px; /* Match the new header height */
    padding: 0;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: 3.5rem 5%;
    width: 100%;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    scroll-margin-top: 60px;
}

section:nth-child(odd) {
    background-color: rgba(255, 248, 220, 0.7); /* Light cream with transparency */
}

section:nth-child(even) {
    background-color: rgba(245, 245, 220, 0.7); /* Light beige with transparency */
}

.section-separator {
    display: block;
    width: 100%;
    max-width: 1024px;
    height: auto;
    margin: 0 auto;
    padding: 5px 5%;
    box-sizing: border-box;
    opacity: 0.5;
    max-height: 30px;
    background-color: transparent;
}

h2 {
    color: #8b5a2b; /* Warm brown for section titles */
    margin-bottom: 1rem;
    font-size: 2rem;
}

p {
    color: #4b3f2f;
    font-size: 1.1rem;
}

footer {
    background-color: #d9e2e6; /* Light gray stone background */
    color: #000; /* Neutral text color */
    text-align: center;
    padding: 10px 0;
}

/* Links styling */
a {
    color: #000; /* Light blue for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mobile menu styles */
#mobile-menu {
    position: absolute;
    top: 100%; /* Expand downward from the header */
    left: 0; /* Align to the left */
    width: 250px; /* Set a fixed width */
    background-color: #d9e2e6; /* Light gray stone background */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); /* Add shadow for visibility */
    overflow-y: auto; /* Enable scrolling if content exceeds height */
    display: none; /* Initially hidden */
    z-index: 1000;
}

#mobile-menu.visible {
    display: block; /* Show menu when toggled */
}


/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Carousel styles */
#carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#references {
    position: relative;
    background: none;
    z-index: 1; /* Lower than tree */
}

#references::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/rekliome.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 1;
}

#references > * {
    position: relative;
    z-index: 2; /* High enough to be above background but below tree */
}

#therapy {
    position: relative;
    background: none;
    font-size: 1.5em;
}

#therapy::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/technika_ruce.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 1;
}

#therapy::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.6);
    z-index: 2;
}

#therapy > * {
    position: relative;
    z-index: 3;
}

#carousel-items {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    text-align: center;
}

.carousel-item {
    display: none;
    margin: 0 auto;
    background: rgba(255, 248, 220, 0.75); /* Light cream, 25% opacity */
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    font-size: 1.5rem; /* 150% of base */
}

.carousel-item p,
.carousel-item span,
.carousel-item h3,
.carousel-item h4,
.carousel-item h5 {
    font-size: 1.5rem;
}

#carousel-controls {
    display: flex;
    gap: 15px;
}

#carousel-left,
#carousel-right {
    background: rgba(139, 90, 43, 0.8); /* Warm brown with transparency */
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
}

#carousel-left:hover,
#carousel-right:hover {
    background: rgba(166, 124, 82, 0.8); /* Slightly lighter brown with transparency for hover effect */
}
/* Sekce about rozdělena na 3x3 grid, top v levém horním rohu, bottom ve spodní třetině */

#about {
    background-image: url('images/levi-nirvan.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    font-size: 1.5em;
    position: relative;
    z-index: 10; /* Higher z-index to ensure it's above the tree */
}

#yoga {
    position: relative;
    background: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#yoga-container {
    width: 50%;
    max-width: 600px;
    margin-left: 0;
    background: transparent;
    border-radius: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2em;
    font-size: 1.5em;
}

#yoga::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/joga.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 1;
}

#yoga::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    z-index: 2;
}

#yoga > * {
    position: relative;
    z-index: 3;
}

#about-content {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    position: relative;
    color: #fff;
    padding: 1em;
    z-index: 10; /* Match the parent section's z-index */
}

#aboutme-text {
    text-align: left;
    color: #000; /* Black text color */
    text-shadow: 0 1px 2px #fff; /* White shadow for contrast */
}

#top {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    align-self: start;
    justify-self: start;
    background: rgba(0,0,0,0.5);
    padding: 1em;
    border-radius: 0.5em;
    max-width: 90%;
}

#bottom {
    grid-row: 3 / 4;
    grid-column: 1 / 4;
    align-self: end;
    justify-self: stretch;
    background: rgba(0,0,0,0.5);
    padding: 1em;
    border-radius: 0.5em;
    max-width: 100%;
    visibility: hidden;
}



#home-questions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    padding: 2em;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

#home-questions > div {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 1.2em;
    font-size: 1.3em;
    color: #4b3f2f; /* Dark brown text for aged appearance */
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(30% - 1em);
    height: auto;
    transform: rotate(calc(-2deg + 4deg * var(--rotation)));
    position: relative;
    transition: transform 0.2s ease;
    background-color: #f2e8c9; /* Base aged paper color */
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.1) 0%, rgba(255,210,0,0.03) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d5ba82' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    border: 1px solid rgba(160, 140, 100, 0.3); /* Subtle border */
}

/* Make some notes slightly darker/lighter for variation */
#home-questions > div:nth-child(1) {
    --rotation: 1;
    filter: brightness(0.98);
}

#home-questions > div:nth-child(2) {
    --rotation: -1;
    filter: brightness(1.02);
}

#home-questions > div:nth-child(3) {
    --rotation: 0.5;
    filter: brightness(0.97);
}

#home-questions > div:nth-child(4) {
    --rotation: -0.8;
    filter: brightness(1.01);
}

/* Add hover effect with subtle shadow enhancement */
#home-questions > div:hover {
    transform: scale(1.05) rotate(calc(-2deg + 4deg * var(--rotation)));
    z-index: 10;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
}

/* Style for answer to the questions */
#home-answer {
    background-color: rgba(253, 251, 239, 0.5); /* Light pastel red with 50% transparency */
    color: rgba(75, 63, 47, 1); /* Fully visible text color */
    padding: 1.8em 2em;
    margin: 2em auto 1em;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.3em;
    max-width: 85%;
    position: relative;
    text-align: center;
    font-weight: 500;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    opacity: 1;
}

#home-answer::after {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 15px 15px;
    border-style: solid;
    border-color: transparent transparent #f5c4c4;
}

/* Style for how section - aligned under home-answer */
#home-how {
    background-color: transparent; /* Fully transparent background */
    color: #4b3f2f;
    padding: 1.8em 2em;
    margin: 1em auto 2em;
    border-radius: 8px;
    box-shadow: none; /* No shadow for transparent box */
    font-size: 1.3em;
    max-width: 85%;
    position: relative;
    text-align: center; /* Centered text */
    font-weight: 500;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

/* Ensure mobile menu is visible only in mobile responsive views */
@media (max-width: 600px) {
    #about-content {
        display: grid;
        grid-template-rows: 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        min-height: 150px;
        padding: 1em;
    }

    #top {
        grid-row: 3 / 4;
        grid-column: 1 / 5;
        max-width: 100%;
        padding: 0.5em;
        font-size: 0.7em;
    }
    #bottom {
        grid-row: 4 / 5;
        grid-column: 1 / 5;
        max-width: 100%;
        padding: 0.5em;
        font-size: 0.7em;
    }

    #home {
        min-height: 20vh;
        height: 25vh;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }
    #home-text {
        width: 50%;
        font-size: clamp(1.1rem, 5vw, 1.7rem);
        padding: 1em 0.5em;
        text-align: left;
        align-items: center;
        justify-content: flex-start;
    }
    #tree-box {
        width: 50%;
        height: 100%; /* Full height of parent container on mobile too */
        top: 0; /* Align with the top of home section */
        z-index: 1; /* Ensure it's above the background but below text */
    }
    #tree-img {
        width: auto;
        height: 80%;
        padding: 0;
        opacity: 0.75; /* More transparent on mobile for better text readability */
    }
    #home-questions {
        gap: 0.8em;
        padding: 1em;
    }
    #home-questions > div {
        width: calc(50% - 0.8em); /* Two per row on smaller screens */
        font-size: 1em;
        padding: 0.8em;
    }
    #yoga-container {
        font-size: 1em;
    }
    #therapy {
        font-size: 1em;
    }
    #mobile-menu.visible {
        display: block; /* Show menu when toggled */
    }

    #desktop-menu {
        display: none;
    }

    #menu-button {
        display: block;
    }

    #carousel-controls {
        flex-direction: row;
        justify-content: center;
        margin-top: 10px;
    }

    section {
        padding: 2rem 5%; /* Adjust padding for smaller screens */
    }

    h2 {
        font-size: 1.8rem; /* Slightly smaller titles for mobile */
    }

    p {
        font-size: 1rem; /* Adjust text size for readability on mobile */
    }

    nav.menu {
        display: flex;
        flex-direction: column;
    }

    nav.menu li {
        display: block;
        width: 100%;
    }
}

#social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px; /* Add spacing between icons */
    margin-top: 16px; /* Add spacing above the social media section */
}

#social-media img {
    width: 32px; /* Standard icon size */
    height: 32px; /* Maintain aspect ratio */
    margin-right: 8px; /* Add spacing between icon and text */
}

/* Kontakt section styling */
#contact {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 800px;
}

#contact h2 {
    margin-bottom: 1.5rem;
}

#contact p {
    margin: 0.5rem 0;
}

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