@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Exo+2:wght@300;400;500;600;700;800&display=swap');

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

:root {
    /* Futuristic tree-inspired palette */
    --bark-dark: #2d1810;
    --forest-deep: #1a4d2e;
    --emerald-tech: #0ea36e;
    --leaf-cyber: #2ecc71;
    --moss-neon: #3dff8f;
    --sage-light: #a8e6cf;
    --mint-glow: #c3ffe8;
    --sky-reflect: #e8f8f5;
    --chrome: #f0fff4;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(180deg, var(--bark-dark) 0%, var(--forest-deep) 50%, var(--bark-dark) 100%);
    color: var(--chrome);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Futuristic grid overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(46, 204, 113, 0.05) 25%, rgba(46, 204, 113, 0.05) 26%, transparent 27%, transparent 74%, rgba(46, 204, 113, 0.05) 75%, rgba(46, 204, 113, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(46, 204, 113, 0.05) 25%, rgba(46, 204, 113, 0.05) 26%, transparent 27%, transparent 74%, rgba(46, 204, 113, 0.05) 75%, rgba(46, 204, 113, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridScroll 20s linear infinite;
}

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

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

/* Digital tree particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(61, 255, 143, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(46, 204, 113, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(14, 163, 110, 0.08) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

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

    100% {
        opacity: 0.7;
        transform: scale(1.2) rotate(10deg);
    }
}

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

/* Futuristic Header */
header {
    background: rgba(26, 77, 46, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 3px solid var(--leaf-cyber);
    box-shadow: 0 0 40px rgba(46, 204, 113, 0.3),
        0 4px 30px rgba(14, 163, 110, 0.2) inset;
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.site-branding h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--moss-neon) 0%, var(--leaf-cyber) 50%, var(--emerald-tech) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 30px rgba(61, 255, 143, 0.5));
    position: relative;
}

.site-branding h1::after {
    content: 'TREES';
    position: absolute;
    left: 0;
    top: 100%;
    font-size: 3rem;
    opacity: 0.15;
    transform: scaleY(-1) translateY(10px);
    filter: blur(3px);
}

.site-branding h1 a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--moss-neon) 0%, var(--leaf-cyber) 50%, var(--emerald-tech) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.site-branding h1 a:hover {
    filter: drop-shadow(0 0 50px rgba(61, 255, 143, 0.8));
    letter-spacing: 12px;
}

.author-info {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    color: var(--sage-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.author-info a {
    color: var(--sage-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-info a:hover {
    color: var(--moss-neon);
    text-shadow: 0 0 20px rgba(61, 255, 143, 0.6);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav li {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--mint-glow);
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

nav li::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--leaf-cyber), var(--moss-neon));
    box-shadow: 0 0 15px var(--moss-neon);
    transition: width 0.4s ease;
}

nav li:hover::before {
    width: 100%;
}

nav li:hover a {
    color: var(--moss-neon);
    text-shadow: 0 0 25px rgba(61, 255, 143, 0.8);
}

/* Hero Section with Reflection Effect */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(26, 77, 46, 0.6) 0%, transparent 100%);
    margin-bottom: 4rem;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 7rem;
    font-weight: 900;
    background: linear-gradient(180deg, var(--moss-neon) 0%, var(--leaf-cyber) 50%, var(--emerald-tech) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 20px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 50px rgba(61, 255, 143, 0.6));
    animation: titlePulse 6s ease-in-out infinite;
    position: relative;
}

/* Reflection of title */
.hero-title::after {
    content: 'TREES';
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(-1);
    top: 100%;
    font-size: 7rem;
    letter-spacing: 20px;
    opacity: 0.2;
    background: linear-gradient(180deg, var(--emerald-tech) 0%, var(--leaf-cyber) 50%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(4px);
    margin-top: 1rem;
}

@keyframes titlePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 50px rgba(61, 255, 143, 0.6));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 80px rgba(61, 255, 143, 0.9));
        transform: scale(1.02);
    }
}

.hero-subtitle {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    color: var(--sage-light);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 8rem;
    text-shadow: 0 0 30px rgba(46, 204, 113, 0.5);
}

/* Tree Icon SVG */
.tree-icon-container {
    margin: 3rem auto;
    width: 200px;
    height: 200px;
    position: relative;
}

.tree-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(61, 255, 143, 0.6));
    animation: treeFloat 8s ease-in-out infinite;
}

/* Reflected tree icon */
.tree-icon-reflection {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    transform: scaleY(-1);
    opacity: 0.3;
    filter: blur(3px) drop-shadow(0 0 20px rgba(61, 255, 143, 0.4));
}

@keyframes treeFloat {

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

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Region Sections */
.region-section {
    margin: 6rem auto;
    max-width: 1600px;
    padding: 0 2rem;
}

.region-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--moss-neon) 0%, var(--leaf-cyber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 10px;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.region-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--moss-neon), transparent);
    box-shadow: 0 0 20px var(--moss-neon);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* Tree Card with Reflection */
.tree-card {
    position: relative;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    perspective: 1000px;
}

.card-reflection-wrapper {
    position: relative;
}

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

/* Main card container */
.card-container {
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.9) 0%, rgba(14, 163, 110, 0.8) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(61, 255, 143, 0.3);
    box-shadow: 0 10px 50px rgba(46, 204, 113, 0.3),
        0 0 40px rgba(61, 255, 143, 0.2) inset;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tree-card:hover .card-container {
    transform: translateY(-20px);
    border-color: rgba(61, 255, 143, 0.8);
    box-shadow: 0 30px 80px rgba(46, 204, 113, 0.5),
        0 0 60px rgba(61, 255, 143, 0.4) inset;
}

/* Reflected card */
.card-reflection {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(14, 163, 110, 0.3) 0%, rgba(26, 77, 46, 0.3) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(61, 255, 143, 0.15);
    transform: scaleY(-1);
    opacity: 0.4;
    filter: blur(2px);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tree-card:hover .card-reflection {
    opacity: 0.6;
    filter: blur(3px);
    transform: scaleY(-1) translateY(-10px);
}

/* Holographic scan effect */
.holo-scan {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(61, 255, 143, 0.4),
            transparent);
    z-index: 10;
    pointer-events: none;
}

.tree-card:hover .holo-scan {
    animation: holoScan 2s ease-in-out;
}

@keyframes holoScan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* Digital grid lines */
.digital-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, transparent 90%, rgba(61, 255, 143, 0.1) 100%),
        linear-gradient(90deg, transparent 90%, rgba(61, 255, 143, 0.1) 100%);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 5;
}

.tree-card:hover .digital-grid {
    opacity: 1;
}

/* Corner brackets */
.corner-bracket {
    position: absolute;
    z-index: 15;
    pointer-events: none;
    transition: all 0.5s ease;
}

.bracket-tl {
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    border-top: 3px solid rgba(61, 255, 143, 0.6);
    border-left: 3px solid rgba(61, 255, 143, 0.6);
}

.bracket-tr {
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-top: 3px solid rgba(61, 255, 143, 0.6);
    border-right: 3px solid rgba(61, 255, 143, 0.6);
}

.bracket-bl {
    bottom: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    border-bottom: 3px solid rgba(61, 255, 143, 0.6);
    border-left: 3px solid rgba(61, 255, 143, 0.6);
}

.bracket-br {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-bottom: 3px solid rgba(61, 255, 143, 0.6);
    border-right: 3px solid rgba(61, 255, 143, 0.6);
}

.tree-card:hover .corner-bracket {
    border-color: var(--moss-neon);
    box-shadow: 0 0 20px rgba(61, 255, 143, 0.8);
}

.tree-card:hover .bracket-tl,
.tree-card:hover .bracket-br {
    width: 60px;
    height: 60px;
}

.tree-card:hover .bracket-tr,
.tree-card:hover .bracket-bl {
    width: 60px;
    height: 60px;
}

/* Image Container */
.image-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.tree-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1) saturate(0.95);
}

.tree-card:hover img {
    transform: scale(1.15);
    filter: brightness(1.05) contrast(1.15) saturate(1.1);
}

/* Reflected image */
.card-reflection img {
    filter: brightness(0.6) contrast(0.9) saturate(0.7);
}

/* Image overlay effect */
.image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(61, 255, 143, 0.1) 0%,
            transparent 50%,
            rgba(46, 204, 113, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

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

/* Card Content */
.card-content {
    padding: 2rem;
    position: relative;
    z-index: 10;
    background: linear-gradient(to top,
            rgba(26, 77, 46, 0.95) 0%,
            rgba(14, 163, 110, 0.85) 100%);
}

.location-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--moss-neon);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 25px rgba(61, 255, 143, 0.6);
    transition: all 0.3s ease;
}

.tree-card:hover .location-name {
    color: var(--mint-glow);
    text-shadow: 0 0 40px rgba(61, 255, 143, 0.9);
}

.location-country {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: var(--sage-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Language Section */
.language-section {
    margin: 8rem auto 6rem;
    text-align: center;
    max-width: 1400px;
    padding: 0 2rem;
}

.language-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--moss-neon) 0%, var(--leaf-cyber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    font-weight: 700;
}

#langlist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 3rem;
    background: rgba(26, 77, 46, 0.9);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-radius: 50px;
    border: 3px solid rgba(61, 255, 143, 0.4);
    list-style: none;
    box-shadow: 0 10px 50px rgba(46, 204, 113, 0.3),
        0 0 50px rgba(61, 255, 143, 0.2) inset;
}

#langlist li {
    padding: 1rem 2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid transparent;
}

#langlist a {
    text-decoration: none;
    color: var(--sage-light);
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

#langlist .highlight {
    background: linear-gradient(135deg, var(--leaf-cyber), var(--moss-neon));
    box-shadow: 0 0 30px rgba(61, 255, 143, 0.5);
    border-color: var(--moss-neon);
}

#langlist .highlight a {
    color: var(--bark-dark);
    font-weight: 800;
}

#langlist li:not(.highlight):hover {
    background: rgba(46, 204, 113, 0.3);
    border-color: rgba(61, 255, 143, 0.6);
    box-shadow: 0 0 25px rgba(61, 255, 143, 0.4);
    transform: translateY(-5px);
}

#langlist li:not(.highlight):hover a {
    color: var(--moss-neon);
    text-shadow: 0 0 20px rgba(61, 255, 143, 0.6);
}

/* License */
.licence {
    text-align: center;
    margin: 4rem 0 3rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.licence:hover {
    opacity: 1;
}

.licence img {
    max-width: 120px;
    filter: drop-shadow(0 0 15px rgba(61, 255, 143, 0.3));
}

/* Footer */
footer {
    background: linear-gradient(to top, rgba(26, 77, 46, 0.95) 0%, transparent 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    margin-top: 6rem;
    text-align: center;
    border-top: 2px solid rgba(61, 255, 143, 0.3);
    box-shadow: 0 -10px 40px rgba(46, 204, 113, 0.2);
}

.footer-text {
    font-family: 'Exo 2', sans-serif;
    color: var(--sage-light);
    font-size: 1rem;
    letter-spacing: 2px;
}

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

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 4rem;
        letter-spacing: 10px;
    }

    .hero-title::after {
        font-size: 4rem;
        letter-spacing: 10px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-top: 6rem;
    }

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

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

@media screen and (max-width: 600px) {
    header {
        padding: 1rem 1.5rem;
    }

    .site-branding h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .site-branding h1::after {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .hero-title::after {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 5rem;
    }

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

    .region-title {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .image-container {
        height: 280px;
    }

    #langlist {
        padding: 1.5rem 1rem;
        gap: 0.5rem;
    }

    #langlist li {
        padding: 0.8rem 1.2rem;
    }

    #langlist a {
        font-size: 0.95rem;
    }
}
