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

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

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE4B5 25%, #FFDAB9 50%, #FFE4B5 75%, #FFF8E7 100%);
    color: #2C1810;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Sunlight pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(218, 165, 32, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(218, 165, 32, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.02) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 140, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 15px 15px, 15px 15px;
    background-position: 0 0, 0 0, 7px 7px, 7px 7px;
    pointer-events: none;
    z-index: 0;
    animation: sunlightShift 25s linear infinite;
}

@keyframes sunlightShift {
    0% {
        background-position: 0 0, 0 0, 7px 7px, 7px 7px;
    }

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

/* Warm sunlight glow effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(255, 140, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(218, 165, 32, 0.1) 0%, transparent 60%);
    animation: sunGlow 18s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

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

    100% {
        opacity: 0.9;
        transform: scale(1.12) rotate(5deg);
    }
}

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

/* Bright Header Design */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 3px solid rgba(218, 165, 32, 0.4);
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 25px rgba(218, 165, 32, 0.2),
        0 0 40px rgba(255, 215, 0, 0.1) 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: 900;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #D4AF37 0%, #FF8C00 50%, #DAA520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 10px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.3));
}

.site-title a:hover {
    filter: drop-shadow(0 0 30px rgba(255, 140, 0, 0.5));
    letter-spacing: 14px;
}

.site-tagline {
    font-size: 1.05rem;
    color: #CD853F;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 500;
    font-family: 'Raleway', 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, #D4AF37, #FF8C00);
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(218, 165, 32, 0.6);
}

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

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

#menu li:hover a {
    color: #D4AF37;
    text-shadow: 0 0 15px rgba(218, 165, 32, 0.4);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 6rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 248, 231, 0.8) 100%);
}

.hero-title {
    font-size: 7.5rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #D4AF37 0%, #FF8C00 50%, #DAA520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 25px;
    position: relative;
    filter: drop-shadow(0 0 25px rgba(218, 165, 32, 0.3));
    animation: titleGlow 5s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 25px rgba(218, 165, 32, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(255, 140, 0, 0.5));
        transform: scale(1.02);
    }
}

.hero-subtitle {
    font-size: 1.9rem;
    color: #CD853F;
    letter-spacing: 12px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2rem;
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.2);
    font-family: 'Raleway', sans-serif;
}

/* Sunlit Wall SVG */
.wall-svg {
    width: 100%;
    height: 380px;
    margin-top: 3.5rem;
}

.wall-structure {
    fill: none;
    stroke: #D4AF37;
    stroke-width: 3;
    opacity: 0;
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    animation: drawWall 3.5s ease-out forwards;
}

@keyframes drawWall {
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.wall-structure:nth-child(2) {
    animation-delay: 0.4s;
    stroke: #FF8C00;
}

.wall-structure:nth-child(3) {
    animation-delay: 0.8s;
    stroke: #DAA520;
}

.brick-pattern {
    fill: rgba(218, 165, 32, 0.15);
    stroke: #CD853F;
    stroke-width: 1;
    opacity: 0;
    animation: fadeBrick 2s ease-out forwards;
}

.brick-pattern:nth-child(1) {
    animation-delay: 1s;
}

.brick-pattern:nth-child(2) {
    animation-delay: 1.2s;
}

.brick-pattern:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes fadeBrick {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.sun-ray {
    stroke: #FFD700;
    stroke-width: 2;
    opacity: 0;
    animation: shineRay 3s ease-out forwards;
    stroke-linecap: round;
}

.sun-ray:nth-child(1) {
    animation-delay: 1.6s;
}

.sun-ray:nth-child(2) {
    animation-delay: 1.8s;
}

.sun-ray:nth-child(3) {
    animation-delay: 2s;
}

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

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

.window-element {
    fill: rgba(255, 215, 0, 0.2);
    stroke: #D4AF37;
    stroke-width: 2;
    opacity: 0;
    animation: revealWindow 2s ease-out forwards;
}

.window-element:nth-child(1) {
    animation-delay: 1.3s;
}

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

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

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

.light-beam {
    fill: url(#sunGradient);
    opacity: 0;
    animation: beamGlow 3s ease-out forwards infinite alternate;
    animation-delay: 2.2s;
}

@keyframes beamGlow {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.4;
    }
}

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

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

.region-title {
    font-size: 3.2rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #D4AF37 0%, #FF8C00 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%);
    width: 8px;
    height: 90%;
    background: linear-gradient(180deg, #D4AF37, #FF8C00);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
    border-radius: 10px;
}

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

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

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

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

/* Sunlit border effect */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 231, 0.95) 100%);
    border-radius: 18px;
    border: 3px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 12px 45px rgba(218, 165, 32, 0.25),
        0 0 40px rgba(255, 215, 0, 0.15) inset;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.wall-card:hover .card-container {
    border-color: rgba(255, 140, 0, 0.6);
    box-shadow: 0 25px 65px rgba(255, 140, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.25) inset;
}

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

.wall-card:hover .sunlight-lines {
    opacity: 1;
}

.sunlight-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    width: 2px;
    height: 100%;
    animation: sunlightMove 3.5s ease-in-out infinite;
}

.sunlight-line:nth-child(1) {
    left: 25%;
    animation-delay: 0s;
}

.sunlight-line:nth-child(2) {
    left: 50%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.4), transparent);
    width: 3px;
    animation-delay: 0.5s;
}

.sunlight-line:nth-child(3) {
    left: 75%;
    animation-delay: 1s;
}

@keyframes sunlightMove {

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

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

/* Daylight sweep effect */
.daylight-sweep {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(255, 215, 0, 0.2),
            rgba(255, 140, 0, 0.2),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.wall-card:hover .daylight-sweep {
    animation: daylightScan 2.8s ease-in-out;
}

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

    100% {
        top: 100%;
    }
}

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

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

.wall-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(218, 165, 32, 0.12) 0%,
            transparent 50%,
            rgba(255, 140, 0, 0.12) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

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

.wall-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.95) contrast(1.08) brightness(1.05);
}

.wall-card:hover .wall-image {
    transform: scale(1.18);
    filter: saturate(1.15) contrast(1.12) brightness(1.1);
}

/* Info Overlay */
.wall-info {
    position: relative;
    padding: 2.5rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 248, 231, 0.92) 70%,
            transparent 100%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 0 0 18px 18px;
    border-top: 2px solid rgba(218, 165, 32, 0.3);
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.wall-location {
    font-size: 2.1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #8B4513;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 18px rgba(218, 165, 32, 0.2);
}

.wall-card:hover .wall-location {
    color: #D4AF37;
    text-shadow: 0 0 28px rgba(255, 140, 0, 0.4);
}

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

.frame-tl,
.frame-br,
.frame-tr,
.frame-bl {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(218, 165, 32, 0.4);
    border-radius: 5px;
}

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

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

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

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

.wall-card:hover .wall-frame {
    border-color: rgba(255, 140, 0, 0.7);
    box-shadow: 0 0 18px rgba(255, 140, 0, 0.4);
}

.wall-card:hover .frame-tl,
.wall-card:hover .frame-br {
    width: 55px;
    height: 55px;
}

.wall-card:hover .frame-tr,
.wall-card:hover .frame-bl {
    width: 55px;
    height: 55px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 231, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 3px solid rgba(218, 165, 32, 0.4);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -4px 25px rgba(218, 165, 32, 0.2);
}

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

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

#langlist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 0.5rem;
    border: 2px solid rgba(218, 165, 32, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.15) inset;
}

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

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

#langlist .highlight {
    background: linear-gradient(135deg, #D4AF37, #FF8C00);
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.3);
}

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

#langlist li:not(.highlight):hover {
    background: rgba(218, 165, 32, 0.2);
    box-shadow: 0 0 18px rgba(218, 165, 32, 0.25);
}

#langlist li:not(.highlight):hover a {
    color: #D4AF37;
    text-shadow: 0 0 12px rgba(218, 165, 32, 0.3);
}

.footer-credits {
    color: #8B4513;
    font-size: 1rem;
    letter-spacing: 3px;
    margin-top: 2rem;
    font-weight: 400;
    font-family: 'Raleway', sans-serif;
}

.footer-credits strong {
    background: linear-gradient(135deg, #D4AF37 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-family: 'Playfair Display', 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.8rem;
        letter-spacing: 15px;
    }

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

    .wall-card {
        }

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

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

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

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

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

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

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

    .wall-card {
        }

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

    .wall-info {
        padding: 2rem;
    }

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