@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Cormorant+Garamond:wght@300;400;500;600;700&family=Philosopher:wght@400;700&display=swap');

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

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #1a1410 0%, #2d241a 25%, #3d3226 50%, #544538 75%, #6b5847 100%);
    color: #e8dfd5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Wooden texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 90, 43, 0.03) 2px, rgba(139, 90, 43, 0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(101, 67, 33, 0.03) 2px, rgba(101, 67, 33, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
    animation: woodGrain 60s linear infinite;
}

@keyframes woodGrain {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 100px 0, 0 100px;
    }
}

/* Ambient light effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 15% 25%, rgba(139, 90, 43, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(160, 82, 45, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(101, 67, 33, 0.08) 0%, transparent 60%);
    animation: ambientGlow 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes ambientGlow {
    0% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.15) rotate(3deg);
    }
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Branch pattern background */
.branch-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100,100 Q90,70 80,50 M100,100 Q110,70 120,50 M100,100 Q70,90 50,80 M100,100 Q130,90 150,80' stroke='%238B5A2B' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    animation: branchSway 30s ease-in-out infinite;
}

@keyframes branchSway {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(10px) rotate(1deg);
    }
}

/* Elegant Header */
header {
    background: rgba(26, 20, 16, 0.95);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-bottom: 3px solid rgba(139, 90, 43, 0.5);
    padding: 2rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 40px rgba(139, 90, 43, 0.25),
        0 0 60px rgba(160, 82, 45, 0.12) inset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    flex: 1;
    min-width: 200px;
}

.site-title a {
    text-decoration: none;
    font-size: 2.6rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #8B5A2B 0%, #A0522D 50%, #CD853F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    position: relative;
    filter: drop-shadow(0 0 25px rgba(139, 90, 43, 0.4));
}

.site-title a:hover {
    filter: drop-shadow(0 0 40px rgba(160, 82, 45, 0.7));
    letter-spacing: 12px;
}

.site-tagline {
    font-size: 1rem;
    color: #A0522D;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 400;
    font-family: 'Philosopher', sans-serif;
}

/* Navigation Menu */
#menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

#menu li {
    margin: 0 1.5rem;
    font-size: 1.05rem;
    line-height: 2.5rem;
    position: relative;
}

#menu li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5A2B, #A0522D);
    transition: width 0.4s ease;
    box-shadow: 0 0 15px rgba(139, 90, 43, 0.8);
}

#menu li:hover::before {
    width: 100%;
}

#menu a {
    text-decoration: none;
    color: #e8dfd5;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Philosopher', sans-serif;
}

#menu li:hover a {
    color: #CD853F;
    text-shadow: 0 0 20px rgba(205, 133, 63, 0.6);
}

/* Hero Section - Solitary Tree */
.hero-section {
    text-align: center;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.88) 0%, rgba(45, 36, 26, 0.70) 100%);
}

.hero-title {
    font-size: 7rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #8B5A2B 0%, #A0522D 50%, #CD853F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 20px;
    position: relative;
    filter: drop-shadow(0 0 40px rgba(139, 90, 43, 0.4));
    animation: titleBreath 5s ease-in-out infinite;
}

@keyframes titleBreath {

    0%,
    100% {
        filter: drop-shadow(0 0 40px rgba(139, 90, 43, 0.4));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 60px rgba(160, 82, 45, 0.6));
        transform: scale(1.02);
    }
}

.hero-subtitle {
    font-size: 1.6rem;
    color: #A0522D;
    letter-spacing: 7px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 2rem;
    text-shadow: 0 0 25px rgba(139, 90, 43, 0.3);
    font-family: 'Philosopher', sans-serif;
}

/* Solitary Tree SVG Animation */
.tree-svg {
    width: 100%;
    height: 320px;
    margin-top: 3.5rem;
}

.main-trunk {
    fill: #654321;
    opacity: 0;
    animation: growFromGround 2.5s ease-out forwards;
    filter: drop-shadow(0 0 10px rgba(101, 67, 33, 0.5));
    transform-origin: bottom center;
}

@keyframes growFromGround {
    from {
        transform: translateY(150px) scaleY(0);
        opacity: 0;
    }

    to {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
}

.tree-branches {
    stroke: #8B5A2B;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: branchGrowth 2s ease-in-out forwards;
    stroke-linecap: round;
}

.tree-branches:nth-child(1) {
    animation-delay: 0.8s;
}

.tree-branches:nth-child(2) {
    animation-delay: 1.2s;
}

.tree-branches:nth-child(3) {
    animation-delay: 1.6s;
}

.tree-branches:nth-child(4) {
    animation-delay: 2s;
}

@keyframes branchGrowth {
    to {
        stroke-dashoffset: 0;
    }
}

.sparse-leaves {
    fill: #8B7355;
    opacity: 0;
    animation: leafAppear 1.2s ease-out forwards;
    transform-origin: center;
}

.sparse-leaves:nth-child(1) {
    animation-delay: 2.5s;
}

.sparse-leaves:nth-child(2) {
    animation-delay: 2.8s;
}

.sparse-leaves:nth-child(3) {
    animation-delay: 3.1s;
}

@keyframes leafAppear {
    from {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 0.85;
    }
}

.ground-line {
    stroke: #654321;
    stroke-width: 4;
    opacity: 0.6;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: groundForm 2s ease-in-out 0.3s forwards;
}

@keyframes groundForm {
    to {
        stroke-dashoffset: 0;
    }
}

.shadow-element {
    fill: rgba(26, 20, 16, 0.3);
    opacity: 0;
    animation: shadowCast 1.5s ease-out 3s forwards;
}

@keyframes shadowCast {
    to {
        opacity: 0.4;
    }
}

.wind-particle {
    fill: #A0522D;
    opacity: 0;
    animation: windDrift 6s ease-in-out infinite;
}

.wind-particle:nth-child(1) {
    animation-delay: 0s;
}

.wind-particle:nth-child(2) {
    animation-delay: 2s;
}

.wind-particle:nth-child(3) {
    animation-delay: 4s;
}

@keyframes windDrift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: translate(60px, -50px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Gallery Section */
.tree-gallery {
    max-width: 1600px;
    margin: 3rem auto;
    padding: 0 2rem 4rem;
}

.region-section {
    margin-bottom: 5rem;
}

.region-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #8B5A2B 0%, #A0522D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 30px;
}

.region-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 90%;
    background: linear-gradient(180deg, #8B5A2B, #A0522D);
    box-shadow: 0 0 20px rgba(139, 90, 43, 0.8);
    border-radius: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    justify-items: center;
}

.gallery-grid .tree-card {
    max-width: 500px;
    width: 100%;
}

/* Tree Card - Solitude Design */
.tree-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    z-index: 1;
}

.tree-card:hover {
    transform: translateY(-25px) scale(1.04);
    z-index: 10;
}

/* Wooden frame effect */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.96) 0%, rgba(45, 36, 26, 0.92) 100%);
    border-radius: 18px;
    border: 3px solid rgba(139, 90, 43, 0.6);
    box-shadow: 0 12px 55px rgba(101, 67, 33, 0.35),
        0 0 35px rgba(139, 90, 43, 0.2) inset;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tree-card:hover .card-container {
    border-color: rgba(160, 82, 45, 1);
    box-shadow: 0 30px 80px rgba(139, 90, 43, 0.5),
        0 0 50px rgba(160, 82, 45, 0.3) inset;
}

/* Branch growth lines */
.branch-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.tree-card:hover .branch-lines {
    opacity: 1;
}

.branch-line {
    position: absolute;
    width: 2px;
    height: 100%;
    animation: branchExtend 4s ease-in-out infinite;
}

.branch-line:nth-child(1) {
    left: 20%;
    background: linear-gradient(180deg, transparent, rgba(139, 90, 43, 0.5), transparent);
    animation-delay: 0s;
}

.branch-line:nth-child(2) {
    left: 40%;
    background: linear-gradient(180deg, transparent, rgba(160, 82, 45, 0.4), transparent);
    animation-delay: 1.3s;
}

.branch-line:nth-child(3) {
    left: 60%;
    background: linear-gradient(180deg, transparent, rgba(205, 133, 63, 0.4), transparent);
    animation-delay: 2.6s;
}

.branch-line:nth-child(4) {
    left: 80%;
    background: linear-gradient(180deg, transparent, rgba(139, 90, 43, 0.5), transparent);
    animation-delay: 0.8s;
}

@keyframes branchExtend {

    0%,
    100% {
        opacity: 0.3;
        height: 100%;
    }

    50% {
        opacity: 0.9;
        height: 115%;
    }
}

/* Ambient wind effect */
.wind-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(160, 82, 45, 0.2),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.tree-card:hover .wind-sweep {
    animation: windPass 3s ease-in-out;
}

@keyframes windPass {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Image Container */
.tree-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 18px;
}

/* Portrait orientation - manually add this class to portrait images */
.tree-image-wrapper.portrait {
    aspect-ratio: 3/4;
}

.tree-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(139, 90, 43, 0.15) 0%,
            transparent 50%,
            rgba(101, 67, 33, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.tree-card:hover .tree-image-wrapper::before {
    opacity: 0.8;
}

.tree-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.85) contrast(1.15) brightness(0.88) sepia(0.15);
}

.tree-card:hover .tree-image {
    transform: scale(1.25);
    filter: saturate(1.1) contrast(1.25) brightness(0.95) sepia(0.25);
}

/* Tree Info Overlay */
.tree-info {
    position: relative;
    padding: 2.2rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(26, 20, 16, 0.98) 0%,
            rgba(45, 36, 26, 0.88) 60%,
            transparent 100%);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: 0 0 18px 18px;
    border-top: 2px solid rgba(139, 90, 43, 0.5);
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.tree-location {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    color: #A0522D;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.4s ease;
    text-shadow: 0 0 25px rgba(139, 90, 43, 0.4);
}

.tree-card:hover .tree-location {
    color: #CD853F;
    text-shadow: 0 0 40px rgba(160, 82, 45, 0.7);
}

/* Wooden corner brackets */
.wood-frame {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    transition: all 0.6s ease;
}

.wf-tl {
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    border-top: 4px solid rgba(139, 90, 43, 0.7);
    border-left: 4px solid rgba(139, 90, 43, 0.7);
    border-radius: 10px 0 0 0;
}

.wf-tr {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-top: 4px solid rgba(139, 90, 43, 0.7);
    border-right: 4px solid rgba(139, 90, 43, 0.7);
    border-radius: 0 10px 0 0;
}

.wf-bl {
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    border-bottom: 4px solid rgba(139, 90, 43, 0.7);
    border-left: 4px solid rgba(139, 90, 43, 0.7);
    border-radius: 0 0 0 10px;
}

.wf-br {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-bottom: 4px solid rgba(139, 90, 43, 0.7);
    border-right: 4px solid rgba(139, 90, 43, 0.7);
    border-radius: 0 0 10px 0;
}

.tree-card:hover .wood-frame {
    border-color: rgba(160, 82, 45, 1);
    box-shadow: 0 0 20px rgba(139, 90, 43, 0.9);
}

.tree-card:hover .wf-tl,
.tree-card:hover .wf-br {
    width: 55px;
    height: 55px;
}

.tree-card:hover .wf-tr,
.tree-card:hover .wf-bl {
    width: 55px;
    height: 55px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.96) 0%, rgba(45, 36, 26, 0.96) 100%);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-top: 3px solid rgba(139, 90, 43, 0.5);
    padding: 3.5rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -4px 40px rgba(101, 67, 33, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #8B5A2B 0%, #A0522D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    font-weight: 700;
}

#langlist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(26, 20, 16, 0.85);
    border-radius: 50px;
    padding: 0.6rem;
    border: 2px solid rgba(139, 90, 43, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    margin-bottom: 2.5rem;
    box-shadow: 0 0 35px rgba(101, 67, 33, 0.2) inset;
}

#langlist li {
    display: inline-block;
    list-style: none;
    margin: 0.4rem;
    padding: 0.9rem 1.5rem;
    border-radius: 30px;
    transition: all 0.4s ease;
}

#langlist a {
    text-decoration: none;
    color: #e8dfd5;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Philosopher', sans-serif;
}

#langlist .highlight {
    background: linear-gradient(135deg, #8B5A2B, #A0522D);
    box-shadow: 0 0 25px rgba(139, 90, 43, 0.5);
}

#langlist .highlight a {
    color: #1a1410;
    font-weight: bold;
}

#langlist li:not(.highlight):hover {
    background: rgba(139, 90, 43, 0.5);
    box-shadow: 0 0 20px rgba(160, 82, 45, 0.4);
}

#langlist li:not(.highlight):hover a {
    color: #CD853F;
    text-shadow: 0 0 15px rgba(205, 133, 63, 0.5);
}

.footer-credits {
    color: #A0522D;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-top: 2.5rem;
    font-weight: 400;
    font-family: 'Philosopher', sans-serif;
}

.footer-credits strong {
    background: linear-gradient(135deg, #8B5A2B 0%, #A0522D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-family: 'Cinzel', serif;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .site-branding {
        margin-bottom: 1rem;
    }

    #menu {
        justify-content: center;
    }

    #menu ul {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 4.5rem;
        letter-spacing: 12px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        letter-spacing: 5px;
    }

    .tree-card {
        }

    .tree-location {
        font-size: 1.7rem;
    }
}

@media screen and (max-width: 600px) {
    .site-title a {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .site-tagline {
        font-size: 0.85rem;
    }

    #menu li {
        margin: 0 0.6rem;
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 8px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tree-card {
        }

    .tree-location {
        font-size: 1.5rem;
    }

    .tree-info {
        padding: 1.6rem;
    }

    .region-title {
        font-size: 2.2rem;
    }
}
