@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&family=Quantico:wght@400;700&family=Share+Tech+Mono&display=swap');

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

body {
    font-family: 'Chakra Petch', 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dfd0 25%, #d4c5b0 50%, #c0aa90 75%, #a89070 100%);
    color: #3d2f1f;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Crystalline structure pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, rgba(120, 100, 80, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(120, 100, 80, 0.04) 87.5%, rgba(120, 100, 80, 0.04)),
        linear-gradient(150deg, rgba(120, 100, 80, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(120, 100, 80, 0.04) 87.5%, rgba(120, 100, 80, 0.04)),
        linear-gradient(30deg, rgba(120, 100, 80, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(120, 100, 80, 0.04) 87.5%, rgba(120, 100, 80, 0.04)),
        linear-gradient(150deg, rgba(120, 100, 80, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(120, 100, 80, 0.04) 87.5%, rgba(120, 100, 80, 0.04));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    pointer-events: none;
    z-index: 0;
}

/* Mineral glow effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 18% 28%, rgba(168, 144, 112, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 82% 72%, rgba(192, 170, 144, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 197, 176, 0.08) 0%, transparent 60%);
    animation: mineralGlow 22s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes mineralGlow {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

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

/* Futuristic Header with Geological Elements */
header {
    background: rgba(255, 252, 248, 0.90);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-bottom: 3px solid rgba(120, 100, 80, 0.7);
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 40px rgba(120, 100, 80, 0.3),
        0 0 80px rgba(168, 144, 112, 0.15) 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.4rem;
    font-weight: 700;
    font-family: 'Quantico', monospace;
    background: linear-gradient(135deg, #6b5540 0%, #8b7355 50%, #a89070 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 12px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(120, 100, 80, 0.5));
}

.site-title a:hover {
    filter: drop-shadow(0 0 45px rgba(168, 144, 112, 0.8));
    letter-spacing: 16px;
}

.site-tagline {
    font-size: 0.95rem;
    color: #6b5540;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 400;
    font-family: 'Share Tech Mono', monospace;
}

/* 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.3rem;
    font-size: 1rem;
    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, #6b5540, #8b7355);
    transition: width 0.4s ease;
    box-shadow: 0 0 20px rgba(120, 100, 80, 0.8);
}

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

#menu a {
    text-decoration: none;
    color: #3d2f1f;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
}

#menu li:hover a {
    color: #6b5540;
    text-shadow: 0 0 25px rgba(120, 100, 80, 0.7);
}

/* Hero Section with Rock/Geological Theme */
.hero-section {
    text-align: center;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.7) 0%, rgba(232, 223, 208, 0.6) 100%);
}

.hero-title {
    font-size: 6rem;
    font-weight: 700;
    font-family: 'Quantico', monospace;
    background: linear-gradient(135deg, #6b5540 0%, #8b7355 50%, #a89070 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 25px;
    position: relative;
    filter: drop-shadow(0 0 50px rgba(120, 100, 80, 0.5));
    animation: titleSolid 5s ease-in-out infinite;
}

@keyframes titleSolid {

    0%,
    100% {
        filter: drop-shadow(0 0 50px rgba(120, 100, 80, 0.5));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 70px rgba(168, 144, 112, 0.8));
        transform: scale(1.015);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #6b5540;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 2rem;
    text-shadow: 0 0 30px rgba(120, 100, 80, 0.4);
    font-family: 'Share Tech Mono', monospace;
}

/* Rock Formation SVG Animation */
.rock-svg {
    width: 100%;
    height: 350px;
    margin-top: 3rem;
}

.rock-base {
    fill: #a89070;
    opacity: 0;
    animation: formRock 2.5s ease-out forwards;
    filter: drop-shadow(0 4px 10px rgba(61, 47, 31, 0.3));
}

@keyframes formRock {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }

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

.rock-layer {
    fill: #8b7355;
    opacity: 0;
    animation: layerForm 2s ease-out forwards;
}

.rock-layer:nth-child(1) {
    animation-delay: 0.3s;
}

.rock-layer:nth-child(2) {
    animation-delay: 0.6s;
}

.rock-layer:nth-child(3) {
    animation-delay: 0.9s;
}

@keyframes layerForm {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 0.8;
        transform: scale(1);
    }
}

.crystal {
    fill: #c0aa90;
    opacity: 0;
    animation: crystallize 2.5s ease-out forwards;
    filter: drop-shadow(0 0 8px rgba(192, 170, 144, 0.6));
}

.crystal:nth-child(1) {
    animation-delay: 1.2s;
}

.crystal:nth-child(2) {
    animation-delay: 1.5s;
}

.crystal:nth-child(3) {
    animation-delay: 1.8s;
}

.crystal:nth-child(4) {
    animation-delay: 2.1s;
}

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

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

.sediment-line {
    stroke: #6b5540;
    stroke-width: 2;
    fill: none;
    opacity: 0;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: stratify 3s ease-out 0.5s forwards;
}

.sediment-line:nth-child(1) {
    animation-delay: 0.5s;
}

.sediment-line:nth-child(2) {
    animation-delay: 0.8s;
}

.sediment-line:nth-child(3) {
    animation-delay: 1.1s;
}

@keyframes stratify {
    to {
        opacity: 0.5;
        stroke-dashoffset: 0;
    }
}

.mineral-particle {
    fill: #d4c5b0;
    opacity: 0;
    animation: mineralFloat 6s ease-in-out infinite;
}

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

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

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

@keyframes mineralFloat {

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

    25% {
        opacity: 0.6;
    }

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

    75% {
        opacity: 0.4;
    }
}

.crack-line {
    stroke: #5a4530;
    stroke-width: 1.5;
    fill: none;
    opacity: 0;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: crackForm 2.5s ease-out 2.5s forwards;
}

@keyframes crackForm {
    to {
        opacity: 0.6;
        stroke-dashoffset: 0;
    }
}

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

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

.region-title {
    font-size: 2.8rem;
    font-weight: 700;
    font-family: 'Quantico', monospace;
    background: linear-gradient(135deg, #6b5540 0%, #8b7355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 25px;
}

.region-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 85%;
    background: linear-gradient(180deg, #6b5540, #8b7355);
    box-shadow: 0 0 25px rgba(120, 100, 80, 0.8);
    border-radius: 10px;
}

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

.gallery-grid .rock-card {
    max-width: 480px;
    width: 100%;
}

/* Rock Card - Solid meets Technology */
.rock-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    z-index: 1;
}

.rock-card:hover {
    transform: translateY(-20px) scale(1.03);
    z-index: 10;
}

/* Geological stratification border */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.93) 0%, rgba(232, 223, 208, 0.90) 100%);
    border-radius: 14px;
    border: 2px solid rgba(120, 100, 80, 0.6);
    box-shadow: 0 10px 50px rgba(120, 100, 80, 0.3),
        0 0 30px rgba(168, 144, 112, 0.2) inset;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.rock-card:hover .card-container {
    border-color: rgba(120, 100, 80, 1);
    box-shadow: 0 25px 70px rgba(120, 100, 80, 0.5),
        0 0 50px rgba(168, 144, 112, 0.35) inset;
}

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

.rock-card:hover .strata-lines {
    opacity: 1;
}

.strata-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 85, 64, 0.4), transparent);
    animation: strataShift 4s ease-in-out infinite;
}

.strata-line:nth-child(1) {
    top: 18%;
    animation-delay: 0s;
}

.strata-line:nth-child(2) {
    top: 36%;
    animation-delay: 1s;
}

.strata-line:nth-child(3) {
    top: 54%;
    animation-delay: 2s;
}

.strata-line:nth-child(4) {
    top: 72%;
    animation-delay: 0.5s;
}

.strata-line:nth-child(5) {
    top: 88%;
    animation-delay: 1.5s;
}

@keyframes strataShift {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleX(1);
    }

    50% {
        opacity: 0.8;
        transform: scaleX(1.05);
    }
}

/* Erosion effect */
.erosion-effect {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(168, 144, 112, 0.3),
            rgba(192, 170, 144, 0.2),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.rock-card:hover .erosion-effect {
    animation: erosion 3s ease-out;
}

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

    100% {
        left: 100%;
    }
}

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

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

.rock-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(120, 100, 80, 0.12) 0%,
            transparent 50%,
            rgba(168, 144, 112, 0.12) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.rock-card:hover .rock-image-wrapper::before {
    opacity: 0.75;
}

.rock-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.9) contrast(1.15) brightness(1.02);
}

.rock-card:hover .rock-image {
    transform: scale(1.15);
    filter: saturate(1.1) contrast(1.2) brightness(1.05);
}

/* Rock Info Overlay */
.rock-info {
    position: relative;
    padding: 2rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(255, 252, 248, 0.95) 0%,
            rgba(232, 223, 208, 0.85) 60%,
            transparent 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 0 0 14px 14px;
    border-top: 1px solid rgba(120, 100, 80, 0.6);
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.rock-location {
    font-size: 1.9rem;
    font-weight: 700;
    font-family: 'Quantico', monospace;
    color: #6b5540;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 30px rgba(120, 100, 80, 0.5);
}

.rock-card:hover .rock-location {
    color: #8b7355;
    text-shadow: 0 0 45px rgba(168, 144, 112, 0.8);
}

/* Geological frame corners */
.geo-frame {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    transition: all 0.5s ease;
}

.geo-tl {
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-top: 3px solid rgba(120, 100, 80, 0.7);
    border-left: 3px solid rgba(120, 100, 80, 0.7);
    border-radius: 6px 0 0 0;
}

.geo-tr {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-top: 3px solid rgba(120, 100, 80, 0.7);
    border-right: 3px solid rgba(120, 100, 80, 0.7);
    border-radius: 0 6px 0 0;
}

.geo-bl {
    bottom: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid rgba(120, 100, 80, 0.7);
    border-left: 3px solid rgba(120, 100, 80, 0.7);
    border-radius: 0 0 0 6px;
}

.geo-br {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid rgba(120, 100, 80, 0.7);
    border-right: 3px solid rgba(120, 100, 80, 0.7);
    border-radius: 0 0 6px 0;
}

.rock-card:hover .geo-frame {
    border-color: rgba(120, 100, 80, 1);
    box-shadow: 0 0 25px rgba(120, 100, 80, 0.8);
}

.rock-card:hover .geo-tl,
.rock-card:hover .geo-br {
    width: 50px;
    height: 50px;
}

.rock-card:hover .geo-tr,
.rock-card:hover .geo-bl {
    width: 50px;
    height: 50px;
}

/* Footer with Geological Style */
footer {
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.92) 0%, rgba(232, 223, 208, 0.92) 100%);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-top: 3px solid rgba(120, 100, 80, 0.7);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -4px 40px rgba(120, 100, 80, 0.3);
}

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

.footer-title {
    font-size: 1.4rem;
    font-family: 'Quantico', monospace;
    background: linear-gradient(135deg, #6b5540 0%, #8b7355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#langlist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 252, 248, 0.75);
    border-radius: 50px;
    padding: 0.5rem;
    border: 2px solid rgba(120, 100, 80, 0.6);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(15px);
    margin-bottom: 2rem;
    box-shadow: 0 0 40px rgba(120, 100, 80, 0.2) inset;
}

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

#langlist a {
    text-decoration: none;
    color: #3d2f1f;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Share Tech Mono', monospace;
}

#langlist .highlight {
    background: linear-gradient(135deg, #6b5540, #8b7355);
    box-shadow: 0 0 30px rgba(120, 100, 80, 0.6);
}

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

#langlist li:not(.highlight):hover {
    background: rgba(120, 100, 80, 0.25);
    box-shadow: 0 0 25px rgba(120, 100, 80, 0.5);
}

#langlist li:not(.highlight):hover a {
    color: #6b5540;
    text-shadow: 0 0 20px rgba(120, 100, 80, 0.6);
}

.footer-credits {
    color: #6b5540;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-top: 2rem;
    font-weight: 400;
    font-family: 'Share Tech Mono', monospace;
}

.footer-credits strong {
    background: linear-gradient(135deg, #6b5540 0%, #8b7355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-family: 'Quantico', monospace;
}

/* 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: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 6px;
    }

    .rock-card {
        }

    .rock-location {
        font-size: 1.6rem;
    }
}

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

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

    #menu li {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }

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

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

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

    .rock-card {
        }

    .rock-location {
        font-size: 1.4rem;
    }

    .rock-info {
        padding: 1.5rem;
    }

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