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

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

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #fdfbf7 0%, #f5f1ea 25%, #ede8df 50%, #e8dfd1 75%, #dfd4c3 100%);
    color: #3d3226;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Sacred geometry pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(139, 115, 85, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 25% 25%, rgba(160, 130, 95, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(139, 115, 85, 0.02) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 120px 120px;
    pointer-events: none;
    z-index: 0;
    animation: geometryFloat 60s linear infinite;
}

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

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

/* Ethereal light effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(218, 185, 140, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(190, 160, 120, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(210, 180, 140, 0.08) 0%, transparent 60%);
    animation: divineGlow 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

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

    100% {
        opacity: 0.8;
        transform: scale(1.08) rotate(2deg);
    }
}

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

/* Elegant Header */
header {
    background: rgba(253, 251, 247, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 2px solid rgba(139, 115, 85, 0.25);
    padding: 2rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(139, 115, 85, 0.08),
        0 0 40px rgba(190, 160, 120, 0.05) 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: 800;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #8b7355 0%, #a0825f 50%, #b89968 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 16px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(139, 115, 85, 0.2));
}

.site-title a:hover {
    filter: drop-shadow(0 0 30px rgba(160, 130, 95, 0.4));
    letter-spacing: 20px;
}

.site-tagline {
    font-size: 1rem;
    color: #a0825f;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 0.8rem;
    font-weight: 300;
    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, #8b7355, #b89968);
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(139, 115, 85, 0.4);
}

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

#menu a {
    text-decoration: none;
    color: #6d5d4b;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

#menu li:hover a {
    color: #4a3f33;
    text-shadow: 0 0 15px rgba(139, 115, 85, 0.3);
}

/* Hero Section - Sacred Journey */
.hero-section {
    text-align: center;
    padding: 6rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.92) 0%, rgba(245, 241, 234, 0.8) 100%);
}

.hero-title {
    font-size: 7rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #8b7355 0%, #a0825f 50%, #b89968 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 32px;
    position: relative;
    filter: drop-shadow(0 0 25px rgba(139, 115, 85, 0.25));
    animation: sacredPulse 5s ease-in-out infinite;
}

@keyframes sacredPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 25px rgba(139, 115, 85, 0.25));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(160, 130, 95, 0.4));
        transform: scale(1.015);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #8b7355;
    letter-spacing: 12px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 2.5rem;
    text-shadow: 0 0 20px rgba(139, 115, 85, 0.15);
    font-family: 'Philosopher', sans-serif;
}

/* Futuristic Sacred Path SVG */
.sacred-path-svg {
    width: 100%;
    height: 350px;
    margin-top: 4rem;
}

/* Path line animations */
.path-element {
    fill: none;
    stroke: #a0825f;
    stroke-width: 2;
    opacity: 0;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawPath 4s ease-out forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
        opacity: 0.8;
    }
}

.path-element:nth-child(2) {
    animation-delay: 0.3s;
}

.path-element:nth-child(3) {
    animation-delay: 0.6s;
}

/* Sacred circles */
.sacred-circle {
    fill: none;
    stroke: #b89968;
    stroke-width: 2;
    opacity: 0;
    animation: expandCircle 3s ease-out forwards;
    transform-origin: center;
}

.sacred-circle:nth-child(1) {
    animation-delay: 1s;
}

.sacred-circle:nth-child(2) {
    animation-delay: 1.3s;
}

.sacred-circle:nth-child(3) {
    animation-delay: 1.6s;
}

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

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

/* Destination markers */
.destination-marker {
    fill: #dab98c;
    opacity: 0;
    animation: fadeInMarker 1.5s ease-out forwards;
}

.destination-marker:nth-child(1) {
    animation-delay: 2s;
}

.destination-marker:nth-child(2) {
    animation-delay: 2.2s;
}

.destination-marker:nth-child(3) {
    animation-delay: 2.4s;
}

@keyframes fadeInMarker {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Light rays */
.light-ray {
    fill: none;
    stroke: #dab98c;
    stroke-width: 1;
    opacity: 0;
    animation: shineLight 3s ease-out forwards;
}

.light-ray:nth-child(1) {
    animation-delay: 2.5s;
}

.light-ray:nth-child(2) {
    animation-delay: 2.7s;
}

.light-ray:nth-child(3) {
    animation-delay: 2.9s;
}

@keyframes shineLight {
    from {
        opacity: 0;
        stroke-dasharray: 500;
        stroke-dashoffset: 500;
    }

    to {
        opacity: 0.5;
        stroke-dasharray: 500;
        stroke-dashoffset: 0;
    }
}

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

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

.region-title {
    font-size: 3.2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #8b7355 0%, #a0825f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 30px;
}

.region-title::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #b89968;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

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

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

.gallery-grid .pilgrimage-card.portrait {
    max-width: 360px;
}

/* Pilgrimage Card - Sacred Design */
.pilgrimage-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 420px;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    z-index: 1;
}

.pilgrimage-card.portrait {
    height: 520px;
}

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

/* Sacred frame effect */
.card-container {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.98) 0%, rgba(245, 241, 234, 0.96) 100%);
    border-radius: 20px;
    border: 2px solid rgba(139, 115, 85, 0.25);
    box-shadow: 0 12px 45px rgba(139, 115, 85, 0.15),
        0 0 35px rgba(190, 160, 120, 0.1) inset;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.pilgrimage-card:hover .card-container {
    border-color: rgba(139, 115, 85, 0.5);
    box-shadow: 0 30px 70px rgba(139, 115, 85, 0.25),
        0 0 50px rgba(218, 185, 140, 0.2) inset;
}

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

.pilgrimage-card:hover .sacred-lines {
    opacity: 1;
}

.sacred-line-element {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.2), transparent);
    width: 1px;
    height: 100%;
    animation: sacredFlow 4s ease-in-out infinite;
}

.sacred-line-element:nth-child(1) {
    left: 50%;
    background: linear-gradient(90deg, transparent, rgba(160, 130, 95, 0.3), transparent);
    width: 2px;
    animation-delay: 0s;
}

.sacred-line-element:nth-child(2) {
    left: 33.33%;
    animation-delay: 0.8s;
}

.sacred-line-element:nth-child(3) {
    left: 66.66%;
    animation-delay: 0.8s;
}

@keyframes sacredFlow {

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

    50% {
        opacity: 1;
        transform: scaleY(1.08);
    }
}

/* Divine light scanning effect */
.divine-scan {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(218, 185, 140, 0.15),
            rgba(210, 180, 140, 0.15),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.pilgrimage-card:hover .divine-scan {
    animation: divineScan 3s ease-in-out;
}

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

    100% {
        top: 100%;
    }
}

/* Image Container */
.pilgrimage-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 20px;
}

.pilgrimage-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(139, 115, 85, 0.08) 0%,
            transparent 50%,
            rgba(160, 130, 95, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.6s ease;
}

.pilgrimage-card:hover .pilgrimage-image-wrapper::before {
    opacity: 0.6;
}

.pilgrimage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.92) contrast(1.08) brightness(0.98) sepia(0.08);
}

.pilgrimage-card:hover .pilgrimage-image {
    transform: scale(1.18);
    filter: saturate(1.05) contrast(1.12) brightness(1.03) sepia(0.12);
}

/* Pilgrimage Info Overlay */
.pilgrimage-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(253, 251, 247, 0.98) 0%,
            rgba(245, 241, 234, 0.92) 60%,
            transparent 100%);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.pilgrimage-location {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    color: #6d5d4b;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.4s ease;
    text-shadow: 0 0 18px rgba(139, 115, 85, 0.15);
}

.pilgrimage-card:hover .pilgrimage-location {
    color: #4a3f33;
    text-shadow: 0 0 25px rgba(139, 115, 85, 0.3);
}

/* Sacred frame corners */
.pilgrimage-frame {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    transition: all 0.6s ease;
}

.pil-tl,
.pil-br,
.pil-tr,
.pil-bl {
    width: 45px;
    height: 45px;
    border: 2.5px solid rgba(139, 115, 85, 0.35);
    border-radius: 6px;
}

.pil-tl {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.pil-tr {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
}

.pil-bl {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
}

.pil-br {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

.pilgrimage-card:hover .pilgrimage-frame {
    border-color: rgba(139, 115, 85, 0.65);
    box-shadow: 0 0 18px rgba(160, 130, 95, 0.3);
}

.pilgrimage-card:hover .pil-tl,
.pilgrimage-card:hover .pil-br {
    width: 55px;
    height: 55px;
}

.pilgrimage-card:hover .pil-tr,
.pilgrimage-card:hover .pil-bl {
    width: 55px;
    height: 55px;
}

/* Footer with Sacred Style */
footer {
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.98) 0%, rgba(245, 241, 234, 0.98) 100%);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border-top: 2px solid rgba(139, 115, 85, 0.25);
    padding: 3.5rem 2rem;
    margin-top: 5rem;
    text-align: center;
    box-shadow: 0 -4px 24px rgba(139, 115, 85, 0.1);
}

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

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

.footer-credits {
    color: #8b7355;
    font-size: 1rem;
    letter-spacing: 3px;
    margin-top: 2.5rem;
    font-weight: 300;
    font-family: 'Philosopher', sans-serif;
}

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


#langlist {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg, 1rem);
    padding: 0;
    margin: 0;
}

#langlist li {
    position: relative;
}

#langlist a {
    text-decoration: none;
    color: var(--text-muted, inherit);
    font-size: var(--text-sm, 0.95rem);
    letter-spacing: 0.08em;
    padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    background: rgba(212, 165, 116, 0.06);
    border: 1px solid rgba(212, 165, 116, 0.15);
    white-space: nowrap;
}

#langlist a:hover {
    background: rgba(212, 165, 116, 0.12);
    border-color: rgba(212, 165, 116, 0.3);
    color: var(--baltic-deep-amber, currentColor);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.12));
}

#langlist .highlight a {
    background: linear-gradient(135deg, var(--baltic-deep-teal, #0f766e), var(--baltic-amber, #d4a574));
    color: var(--baltic-cream, #fffaf0);
    border-color: var(--baltic-deep-amber, #b7791f);
}

.licence {
    margin-top: 2rem;
}

.licence img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.licence img:hover {
    opacity: 1;
}

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

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

    #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: 18px;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        letter-spacing: 8px;
    }

    .pilgrimage-card {
        height: 390px;
    }

    .pilgrimage-card.portrait {
        height: 490px;
    }

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

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

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

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

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

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

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

    .pilgrimage-card {
        height: 360px;
    }

    .pilgrimage-card.portrait {
        height: 460px;
    }

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

    .pilgrimage-info {
        padding: 2rem;
    }

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