@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=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    background: linear-gradient(135deg, #f5f0e8 0%, #ede6d8 25%, #e8dfc8 50%, #dfd4b8 75%, #d4c7a8 100%);
    color: #3e2723;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ancient stone texture pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, rgba(139, 69, 19, 0.02) 0px, transparent 2px, transparent 4px, rgba(139, 69, 19, 0.02) 6px),
        repeating-linear-gradient(-45deg, rgba(160, 82, 45, 0.02) 0px, transparent 2px, transparent 4px, rgba(160, 82, 45, 0.02) 6px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: stoneShift 60s linear infinite;
}

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

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

/* Golden hour sunlight effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 25% 15%, rgba(205, 133, 63, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 70%, rgba(184, 134, 11, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(218, 165, 32, 0.08) 0%, transparent 60%);
    animation: sunlightGlow 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

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

    100% {
        opacity: 0.85;
        transform: scale(1.1) rotate(8deg);
    }
}

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

/* Futuristic Header with Heritage Elements */
header {
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    border-bottom: 5px solid rgba(184, 134, 11, 0.75);
    padding: 2rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 50px rgba(139, 69, 19, 0.28),
        0 0 70px rgba(205, 133, 63, 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.8rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 30%, #cd853f 60%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 16px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    filter: drop-shadow(0 0 40px rgba(184, 134, 11, 0.65));
}

.site-title a:hover {
    filter: drop-shadow(0 0 55px rgba(205, 133, 63, 0.95));
    letter-spacing: 20px;
}

.site-tagline {
    font-size: 1.05rem;
    color: #8b4513;
    letter-spacing: 9px;
    text-transform: uppercase;
    margin-top: 0.6rem;
    font-weight: 500;
    font-family: 'Playfair Display', 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.1rem;
    line-height: 2.5rem;
    position: relative;
}

#menu li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, #cd853f);
    transition: width 0.5s ease;
    box-shadow: 0 0 28px rgba(184, 134, 11, 1);
}

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

#menu a {
    text-decoration: none;
    color: #3e2723;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

#menu li:hover a {
    color: #8b4513;
    text-shadow: 0 0 32px rgba(184, 134, 11, 0.85);
}

/* Hero Section with Heritage Theme */
.hero-section {
    text-align: center;
    padding: 6rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(245, 240, 232, 0.65) 100%);
}

.hero-title {
    font-size: 7rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 30%, #cd853f 60%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 32px;
    position: relative;
    filter: drop-shadow(0 0 60px rgba(184, 134, 11, 0.7));
    animation: titleRadiance 5s ease-in-out infinite;
}

@keyframes titleRadiance {

    0%,
    100% {
        filter: drop-shadow(0 0 60px rgba(184, 134, 11, 0.7));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 80px rgba(205, 133, 63, 0.95));
        transform: scale(1.015);
    }
}

.hero-subtitle {
    font-size: 1.7rem;
    color: #8b4513;
    letter-spacing: 11px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2.5rem;
    text-shadow: 0 0 38px rgba(184, 134, 11, 0.6);
    font-family: 'Playfair Display', serif;
}

/* Heritage Monument SVG Animation */
.heritage-svg {
    width: 100%;
    height: 400px;
    margin-top: 4rem;
}

/* Monument columns */
.column {
    fill: #d2b48c;
    opacity: 0;
    animation: columnRise 2.5s ease-out forwards;
    filter: drop-shadow(2px 4px 8px rgba(139, 69, 19, 0.3));
}

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

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

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

.column:nth-child(4) {
    animation-delay: 1.2s;
}

.column:nth-child(5) {
    animation-delay: 1.5s;
}

@keyframes columnRise {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

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

/* Pediment (triangular roof structure) */
.pediment {
    fill: #c19a6b;
    opacity: 0;
    animation: pedimentDescend 2.5s ease-out 1.8s forwards;
    filter: drop-shadow(0 4px 12px rgba(139, 69, 19, 0.4));
}

@keyframes pedimentDescend {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }

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

/* Monument foundation/base */
.foundation {
    fill: #a0826d;
    opacity: 0;
    animation: foundationEmerge 2s ease-out 0.2s forwards;
}

@keyframes foundationEmerge {
    from {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }

    to {
        opacity: 0.85;
        transform: scaleY(1);
    }
}

/* Monument steps */
.steps {
    fill: #b8956d;
    opacity: 0;
    animation: stepsAppear 1.8s ease-out 0.5s forwards;
}

@keyframes stepsAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.8;
    }
}

/* Golden ornamental details */
.ornament {
    fill: #daa520;
    opacity: 0;
    animation: ornamentGleam 2s ease-out 2.5s forwards, gleamPulse 4s ease-in-out 4.5s infinite;
}

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

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

@keyframes gleamPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.8));
    }

    50% {
        filter: drop-shadow(0 0 16px rgba(218, 165, 32, 1));
    }
}

/* Carved reliefs on pediment */
.relief {
    fill: #8b7355;
    opacity: 0;
    animation: reliefCarve 2s ease-out 3s forwards;
}

@keyframes reliefCarve {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.7;
    }
}

/* Heritage inscription */
.inscription {
    fill: #654321;
    opacity: 0;
    animation: inscriptionReveal 2s ease-out 3.5s forwards;
}

@keyframes inscriptionReveal {
    from {
        opacity: 0;
        letter-spacing: 20px;
    }

    to {
        opacity: 0.85;
        letter-spacing: 8px;
    }
}

/* Weathering marks */
.weathering {
    fill: #9b8b7e;
    opacity: 0;
    animation: weatherAppear 3s ease-out 4s forwards;
}

@keyframes weatherAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.3;
    }
}

/* Sunbeam rays on monument */
.sunbeam {
    fill: url(#sunGradient);
    opacity: 0;
    animation: sunbeamCast 3s ease-in-out 2.5s infinite;
}

@keyframes sunbeamCast {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.25;
    }
}

/* Ancient arch structure */
.arch {
    fill: none;
    stroke: #c19a6b;
    stroke-width: 5;
    opacity: 0;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: archBuild 3s ease-out 1s forwards;
}

@keyframes archBuild {
    to {
        stroke-dashoffset: 0;
        opacity: 0.85;
    }
}

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

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

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

.region-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 95%;
    background: linear-gradient(180deg, #8b4513, #cd853f);
    box-shadow: 0 0 35px rgba(184, 134, 11, 1);
    border-radius: 15px;
}

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

.gallery-grid .heritage-card {
    max-width: 520px;
    width: 100%;
}

/* Heritage Card - Ancient Meets Innovation */
.heritage-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    z-index: 1;
}

.heritage-card:hover {
    transform: translateY(-28px) scale(1.05);
    z-index: 10;
}

/* Ancient stone border effect */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 240, 232, 0.94) 100%);
    border-radius: 22px;
    border: 4px solid rgba(184, 134, 11, 0.65);
    box-shadow: 0 14px 60px rgba(139, 69, 19, 0.32),
        0 0 50px rgba(205, 133, 63, 0.2) inset;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.heritage-card:hover .card-container {
    border-color: rgba(184, 134, 11, 1);
    box-shadow: 0 35px 90px rgba(139, 69, 19, 0.52),
        0 0 70px rgba(205, 133, 63, 0.38) inset;
}

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

.heritage-card:hover .scan-lines {
    opacity: 1;
}

.scan-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.55), transparent);
    height: 2px;
    width: 100%;
    animation: historyScan 3s ease-in-out infinite;
}

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

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

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

@keyframes historyScan {

    0%,
    100% {
        opacity: 0.25;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Golden preservation scan */
.preservation-scan {
    position: absolute;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(218, 165, 32, 0.38),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.heritage-card:hover .preservation-scan {
    animation: preservationSweep 3s ease-in-out;
}

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

    100% {
        left: 100%;
    }
}

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

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

.heritage-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(184, 134, 11, 0.14) 0%,
            transparent 50%,
            rgba(205, 133, 63, 0.14) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.65;
    transition: opacity 0.7s ease;
}

.heritage-card:hover .heritage-image-wrapper::before {
    opacity: 0.9;
}

.heritage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.88) contrast(1.12) brightness(1.06) sepia(0.08);
}

.heritage-card:hover .heritage-image {
    transform: scale(1.22);
    filter: saturate(1.2) contrast(1.16) brightness(1.1) sepia(0.15);
}

/* Heritage Info Overlay */
.heritage-info {
    position: relative;
    padding: 2.4rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(245, 240, 232, 0.88) 60%,
            transparent 100%);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    border-radius: 0 0 22px 22px;
    border-top: 2px solid rgba(184, 134, 11, 0.7);
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.heritage-location {
    font-size: 2.1rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    color: #8b4513;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 38px rgba(184, 134, 11, 0.7);
}

.heritage-card:hover .heritage-location {
    color: #cd853f;
    text-shadow: 0 0 55px rgba(205, 133, 63, 1);
}

/* Archaeological frame corners */
.arch-marker {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    transition: all 0.7s ease;
}

.marker-tl {
    top: 18px;
    left: 18px;
    width: 50px;
    height: 50px;
    border-top: 5px solid rgba(184, 134, 11, 0.75);
    border-left: 5px solid rgba(184, 134, 11, 0.75);
    border-radius: 14px 0 0 0;
}

.marker-tr {
    top: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
    border-top: 5px solid rgba(184, 134, 11, 0.75);
    border-right: 5px solid rgba(184, 134, 11, 0.75);
    border-radius: 0 14px 0 0;
}

.marker-bl {
    bottom: 18px;
    left: 18px;
    width: 50px;
    height: 50px;
    border-bottom: 5px solid rgba(184, 134, 11, 0.75);
    border-left: 5px solid rgba(184, 134, 11, 0.75);
    border-radius: 0 0 0 14px;
}

.marker-br {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
    border-bottom: 5px solid rgba(184, 134, 11, 0.75);
    border-right: 5px solid rgba(184, 134, 11, 0.75);
    border-radius: 0 0 14px 0;
}

.heritage-card:hover .arch-marker {
    border-color: rgba(184, 134, 11, 1);
    box-shadow: 0 0 35px rgba(184, 134, 11, 1);
}

.heritage-card:hover .marker-tl,
.heritage-card:hover .marker-br {
    width: 60px;
    height: 60px;
}

.heritage-card:hover .marker-tr,
.heritage-card:hover .marker-bl {
    width: 60px;
    height: 60px;
}

/* Footer with Heritage Style */
footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 240, 232, 0.95) 100%);
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    border-top: 5px solid rgba(184, 134, 11, 0.75);
    padding: 4rem 2rem;
    margin-top: 5rem;
    text-align: center;
    box-shadow: 0 -8px 50px rgba(139, 69, 19, 0.32);
}

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

.footer-title {
    font-size: 1.6rem;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #8b4513 0%, #cd853f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 9px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 800;
}

#langlist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 70px;
    padding: 0.7rem;
    border: 4px solid rgba(184, 134, 11, 0.65);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    margin-bottom: 2.8rem;
    box-shadow: 0 0 50px rgba(139, 69, 19, 0.22) inset;
}

#langlist li {
    display: inline-block;
    list-style: none;
    margin: 0.45rem;
    padding: 1rem 1.8rem;
    border-radius: 40px;
    transition: all 0.3s ease;
}

#langlist a {
    text-decoration: none;
    color: #3e2723;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

#langlist .highlight {
    background: linear-gradient(135deg, #8b4513, #cd853f);
    box-shadow: 0 0 38px rgba(184, 134, 11, 0.85);
}

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

#langlist li:not(.highlight):hover {
    background: rgba(184, 134, 11, 0.28);
    box-shadow: 0 0 32px rgba(184, 134, 11, 0.75);
}

#langlist li:not(.highlight):hover a {
    color: #8b4513;
    text-shadow: 0 0 28px rgba(184, 134, 11, 0.85);
}

.footer-credits {
    color: #8b4513;
    font-size: 1.05rem;
    letter-spacing: 3px;
    margin-top: 2.8rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.footer-credits strong {
    background: linear-gradient(135deg, #8b4513 0%, #cd853f 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: 2rem 1rem;
    }

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

    #menu {
        justify-content: center;
    }

    #menu ul {
        justify-content: center;
    }

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

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

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

    .heritage-card {
        }

    .heritage-location {
        font-size: 1.8rem;
    }
}

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

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

    #menu li {
        margin: 0 0.7rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 14px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        letter-spacing: 7px;
    }

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

    .heritage-card {
        }

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

    .heritage-info {
        padding: 2rem;
    }

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