@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;900&family=Montserrat:wght@300;400;500;600;700;800&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1410 0%, #2d2419 25%, #4a3b2a 50%, #6b5744 75%, #8b7355 100%);
    color: #f5f1e8;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Architectural grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(197, 161, 108, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 161, 108, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Classical column shadow effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(197, 161, 108, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(218, 186, 136, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 115, 85, 0.05) 0%, transparent 60%);
    animation: architecturalGlow 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes architecturalGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.8;
    }
}

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

/* Elegant Header */
header {
    background: rgba(26, 20, 16, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid rgba(197, 161, 108, 0.5);
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(197, 161, 108, 0.2),
        0 0 60px rgba(139, 115, 85, 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.2rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #c5a16c 0%, #daba88 50%, #f0d9a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    filter: drop-shadow(0 0 25px rgba(197, 161, 108, 0.4));
}

.site-title a:hover {
    filter: drop-shadow(0 0 35px rgba(218, 186, 136, 0.6));
    letter-spacing: 10px;
}

.site-tagline {
    font-size: 0.9rem;
    color: #c5a16c;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 300;
    font-family: 'Cormorant Garamond', 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.2rem;
    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, #c5a16c, #daba88);
    transition: width 0.4s ease;
    box-shadow: 0 0 15px rgba(197, 161, 108, 0.8);
}

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

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

#menu li:hover a {
    color: #daba88;
    text-shadow: 0 0 20px rgba(218, 186, 136, 0.6);
}

/* Hero Section with Architectural Theme */
.hero-section {
    text-align: center;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.8) 0%, rgba(45, 36, 25, 0.6) 100%);
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #c5a16c 0%, #daba88 50%, #f0d9a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 20px;
    position: relative;
    filter: drop-shadow(0 0 45px rgba(197, 161, 108, 0.4));
    animation: titleShimmer 5s ease-in-out infinite;
}

@keyframes titleShimmer {

    0%,
    100% {
        filter: drop-shadow(0 0 45px rgba(197, 161, 108, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 65px rgba(218, 186, 136, 0.6));
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #c5a16c;
    letter-spacing: 7px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 2rem;
    text-shadow: 0 0 25px rgba(197, 161, 108, 0.3);
    font-family: 'Cormorant Garamond', serif;
}

/* Architectural Monument SVG */
.monument-svg {
    width: 100%;
    height: 250px;
    margin-top: 3rem;
}

.column {
    fill: #c5a16c;
    opacity: 0;
    animation: riseColumn 2s ease-out forwards;
    filter: drop-shadow(0 0 10px rgba(197, 161, 108, 0.5));
}

.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;
}

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

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

.pediment {
    fill: #daba88;
    opacity: 0;
    animation: fadeInPediment 1.5s ease-out 1.5s forwards;
    filter: drop-shadow(0 0 12px rgba(218, 186, 136, 0.6));
}

@keyframes fadeInPediment {
    to {
        opacity: 0.95;
    }
}

.foundation {
    fill: #8b7355;
    opacity: 0;
    animation: solidifyFoundation 1.2s ease-out forwards;
}

@keyframes solidifyFoundation {
    to {
        opacity: 1;
    }
}

.architectural-detail {
    stroke: #f0d9a8;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawDetail 3s ease-in-out 1.8s forwards;
}

@keyframes drawDetail {
    to {
        stroke-dashoffset: 0;
    }
}

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

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

.country-title {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #c5a16c 0%, #daba88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 25px;
}

.country-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: linear-gradient(180deg, #c5a16c, #daba88);
    box-shadow: 0 0 20px rgba(197, 161, 108, 0.8);
}

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

.gallery-grid .building-card {
    max-width: 450px;
    width: 100%;
}

/* Building Card - Classical meets Futuristic */
.building-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    z-index: 1;
}

.building-card:hover {
    transform: translateY(-15px) scale(1.02);
    z-index: 10;
}

/* Stone and marble border effect */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.95) 0%, rgba(45, 36, 25, 0.9) 100%);
    border-radius: 12px;
    border: 2px solid rgba(197, 161, 108, 0.4);
    box-shadow: 0 10px 40px rgba(139, 115, 85, 0.3),
        0 0 20px rgba(197, 161, 108, 0.15) inset;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.building-card:hover .card-container {
    border-color: rgba(197, 161, 108, 0.8);
    box-shadow: 0 20px 60px rgba(197, 161, 108, 0.4),
        0 0 40px rgba(218, 186, 136, 0.25) inset;
}

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

.building-card:hover .column-lines {
    opacity: 1;
}

.column-line {
    position: absolute;
    background: linear-gradient(180deg, transparent, rgba(197, 161, 108, 0.3), transparent);
    width: 2px;
    height: 100%;
    animation: columnGlow 3s ease-in-out infinite;
}

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

.column-line:nth-child(2) {
    left: 40%;
    animation-delay: 0.8s;
}

.column-line:nth-child(3) {
    left: 60%;
    animation-delay: 1.6s;
}

.column-line:nth-child(4) {
    left: 80%;
    animation-delay: 2.4s;
}

@keyframes columnGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Blueprint scan effect */
.blueprint-scan {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(197, 161, 108, 0.2),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.building-card:hover .blueprint-scan {
    animation: blueprintScan 2.5s ease-in-out;
}

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

    100% {
        top: 100%;
    }
}

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

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

.building-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(197, 161, 108, 0.15) 0%,
            transparent 50%,
            rgba(218, 186, 136, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.building-card:hover .building-image-wrapper::before {
    opacity: 0.7;
}

.building-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.8) contrast(1.1) brightness(0.85) sepia(0.15);
}

.building-card:hover .building-image {
    transform: scale(1.15);
    filter: saturate(1.2) contrast(1.2) brightness(1) sepia(0.2);
}

/* Building Info Overlay */
.building-info {
    position: relative;
    padding: 2rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(26, 20, 16, 0.98) 0%,
            rgba(45, 36, 25, 0.85) 60%,
            transparent 100%);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 0 0 12px 12px;
    border-top: 1px solid rgba(197, 161, 108, 0.4);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.building-location {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    color: #c5a16c;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 25px rgba(197, 161, 108, 0.4);
}

.building-card:hover .building-location {
    color: #daba88;
    text-shadow: 0 0 35px rgba(218, 186, 136, 0.6);
}

/* Architectural frame corners */
.arch-frame {
    position: absolute;
    z-index: 4;
    pointer-events: none;
}

.arch-tl {
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    border-top: 3px solid rgba(197, 161, 108, 0.5);
    border-left: 3px solid rgba(197, 161, 108, 0.5);
    transition: all 0.4s ease;
}

.arch-tr {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-top: 3px solid rgba(197, 161, 108, 0.5);
    border-right: 3px solid rgba(197, 161, 108, 0.5);
    transition: all 0.4s ease;
}

.arch-bl {
    bottom: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    border-bottom: 3px solid rgba(197, 161, 108, 0.5);
    border-left: 3px solid rgba(197, 161, 108, 0.5);
    transition: all 0.4s ease;
}

.arch-br {
    bottom: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-bottom: 3px solid rgba(197, 161, 108, 0.5);
    border-right: 3px solid rgba(197, 161, 108, 0.5);
    transition: all 0.4s ease;
}

.building-card:hover .arch-frame {
    border-color: rgba(197, 161, 108, 1);
    box-shadow: 0 0 20px rgba(197, 161, 108, 0.8);
}

.building-card:hover .arch-tl,
.building-card:hover .arch-br {
    width: 45px;
    height: 45px;
}

.building-card:hover .arch-tr,
.building-card:hover .arch-bl {
    width: 45px;
    height: 45px;
}

/* Footer with Classical Style */
footer {
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.95) 0%, rgba(45, 36, 25, 0.95) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 3px solid rgba(197, 161, 108, 0.5);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -4px 30px rgba(197, 161, 108, 0.2);
}

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

.footer-title {
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #c5a16c 0%, #daba88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#langlist {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(26, 20, 16, 0.8);
    border-radius: 50px;
    padding: 0.5rem;
    border: 2px solid rgba(197, 161, 108, 0.4);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(197, 161, 108, 0.15) inset;
}

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

#langlist a {
    text-decoration: none;
    color: #f5f1e8;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

#langlist .highlight {
    background: linear-gradient(135deg, #c5a16c, #daba88);
    box-shadow: 0 0 25px rgba(197, 161, 108, 0.5);
}

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

#langlist li:not(.highlight):hover {
    background: rgba(197, 161, 108, 0.3);
    box-shadow: 0 0 20px rgba(197, 161, 108, 0.4);
}

#langlist li:not(.highlight):hover a {
    color: #daba88;
    text-shadow: 0 0 15px rgba(218, 186, 136, 0.5);
}

.footer-credits {
    color: #c5a16c;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 2rem;
    font-weight: 400;
    font-family: 'Cormorant Garamond', serif;
}

.footer-credits strong {
    background: linear-gradient(135deg, #c5a16c 0%, #daba88 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: 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(280px, 1fr));
        gap: 2rem;
    }

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

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

    .building-card {
        height: 350px;
    }

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

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

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

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

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

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 4px;
    }

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

    .building-card {
        height: 320px;
    }

    .building-location {
        font-size: 1.3rem;
    }

    .building-info {
        padding: 1.5rem;
    }

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