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

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

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #dee2e6 50%, #ced4da 75%, #adb5bd 100%);
    color: #212529;
    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(90deg, rgba(108, 117, 125, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(108, 117, 125, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(73, 80, 87, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(73, 80, 87, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: 0 0, 0 0, 10px 10px, 10px 10px;
    pointer-events: none;
    z-index: 0;
    animation: architecturalShift 40s linear infinite;
}

@keyframes architecturalShift {
    0% {
        background-position: 0 0, 0 0, 10px 10px, 10px 10px;
    }

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

/* Subtle luminous glow effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(173, 181, 189, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(206, 212, 218, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(222, 226, 230, 0.08) 0%, transparent 60%);
    animation: subtleGlow 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

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

    100% {
        opacity: 0.9;
        transform: scale(1.1) rotate(3deg);
    }
}

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

/* Elegant Header with Architectural Design */
header {
    background: rgba(248, 249, 250, 0.95);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-bottom: 3px solid rgba(73, 80, 87, 0.4);
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(73, 80, 87, 0.15),
        0 0 40px rgba(108, 117, 125, 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.4rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #495057 0%, #6c757d 50%, #868e96 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 15px rgba(73, 80, 87, 0.3));
}

.site-title a:hover {
    filter: drop-shadow(0 0 25px rgba(108, 117, 125, 0.5));
    letter-spacing: 16px;
}

.site-tagline {
    font-size: 0.95rem;
    color: #6c757d;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 400;
    font-family: 'Montserrat', 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.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, #495057, #6c757d);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(73, 80, 87, 0.6);
}

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

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

#menu li:hover a {
    color: #212529;
    text-shadow: 0 0 15px rgba(73, 80, 87, 0.4);
}

/* Hero Section with Architectural Theme */
.hero-section {
    text-align: center;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.7) 100%);
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #495057 0%, #6c757d 50%, #868e96 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 20px rgba(73, 80, 87, 0.3));
    animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(73, 80, 87, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(108, 117, 125, 0.5));
        transform: scale(1.02);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #6c757d;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 2rem;
    text-shadow: 0 0 20px rgba(73, 80, 87, 0.2);
    font-family: 'Montserrat', sans-serif;
}

/* Architectural Symmetry SVG Animation */
.symmetry-svg {
    width: 100%;
    height: 300px;
    margin-top: 3rem;
}

/* Cathedral/Church facade structure */
.cathedral-base {
    fill: none;
    stroke: #495057;
    stroke-width: 3;
    opacity: 0;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawStructure 3s ease-out forwards;
}

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

.cathedral-base:nth-child(2) {
    animation-delay: 0.3s;
}

.cathedral-base:nth-child(3) {
    animation-delay: 0.6s;
}

/* Gothic arches */
.gothic-arch {
    fill: none;
    stroke: #6c757d;
    stroke-width: 2;
    opacity: 0;
    animation: fadeInArch 2s ease-out forwards;
}

.gothic-arch:nth-child(1) {
    animation-delay: 1s;
}

.gothic-arch:nth-child(2) {
    animation-delay: 1.2s;
}

.gothic-arch:nth-child(3) {
    animation-delay: 1.4s;
}

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

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

/* Symmetrical columns */
.column {
    fill: #868e96;
    opacity: 0;
    animation: riseColumn 1.5s ease-out forwards;
    transform-origin: bottom;
}

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

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

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

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

@keyframes riseColumn {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

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

/* Decorative rosette */
.rosette-element {
    fill: none;
    stroke: #495057;
    stroke-width: 1.5;
    opacity: 0;
    animation: spinRosette 3s ease-out forwards;
    transform-origin: center;
}

.rosette-element:nth-child(1) {
    animation-delay: 1.5s;
}

.rosette-element:nth-child(2) {
    animation-delay: 1.7s;
}

.rosette-element:nth-child(3) {
    animation-delay: 1.9s;
}

@keyframes spinRosette {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }

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

/* Central axis line */
.axis-line {
    stroke: #adb5bd;
    stroke-width: 1;
    stroke-dasharray: 10, 5;
    opacity: 0.5;
    animation: dashFlowSlow 3s linear infinite;
}

@keyframes dashFlowSlow {
    to {
        stroke-dashoffset: -30;
    }
}

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

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

.region-title {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #495057 0%, #6c757d 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, #495057, #6c757d);
    box-shadow: 0 0 15px rgba(73, 80, 87, 0.5);
    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 .symmetry-card {
    max-width: 480px;
    width: 100%;
}

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

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

/* Classical border effect */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.98) 0%, rgba(233, 236, 239, 0.95) 100%);
    border-radius: 16px;
    border: 2px solid rgba(73, 80, 87, 0.3);
    box-shadow: 0 10px 40px rgba(73, 80, 87, 0.2),
        0 0 30px rgba(108, 117, 125, 0.15) inset;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.symmetry-card:hover .card-container {
    border-color: rgba(73, 80, 87, 0.6);
    box-shadow: 0 25px 60px rgba(73, 80, 87, 0.35),
        0 0 50px rgba(108, 117, 125, 0.25) inset;
}

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

.symmetry-card:hover .mirror-lines {
    opacity: 1;
}

.mirror-line-element {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(73, 80, 87, 0.3), transparent);
    width: 1px;
    height: 100%;
    animation: mirrorReflect 3s ease-in-out infinite;
}

.mirror-line-element:nth-child(1) {
    left: 50%;
    background: linear-gradient(90deg, transparent, rgba(73, 80, 87, 0.4), transparent);
    width: 2px;
    animation-delay: 0s;
}

.mirror-line-element:nth-child(2) {
    left: 25%;
    animation-delay: 0.5s;
}

.mirror-line-element:nth-child(3) {
    left: 75%;
    animation-delay: 0.5s;
}

@keyframes mirrorReflect {

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

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

/* Scanning light effect */
.kaleidoscope-scan {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(173, 181, 189, 0.2),
            rgba(206, 212, 218, 0.2),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.symmetry-card:hover .kaleidoscope-scan {
    animation: kaleidoScan 2.5s ease-in-out;
}

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

    100% {
        top: 100%;
    }
}

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

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

.symmetry-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(73, 80, 87, 0.1) 0%,
            transparent 50%,
            rgba(108, 117, 125, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.symmetry-card:hover .symmetry-image-wrapper::before {
    opacity: 0.5;
}

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

.symmetry-card:hover .symmetry-image {
    transform: scale(1.15);
    filter: saturate(1.1) contrast(1.1) brightness(1.02);
}

/* Symmetry Info Overlay */
.symmetry-info {
    position: relative;
    padding: 2rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(248, 249, 250, 0.98) 0%,
            rgba(233, 236, 239, 0.9) 60%,
            transparent 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(73, 80, 87, 0.3);
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.symmetry-location {
    font-size: 1.9rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    color: #495057;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px rgba(73, 80, 87, 0.2);
}

.symmetry-card:hover .symmetry-location {
    color: #212529;
    text-shadow: 0 0 25px rgba(73, 80, 87, 0.4);
}

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

.sym-tl,
.sym-br,
.sym-tr,
.sym-bl {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(73, 80, 87, 0.4);
    border-radius: 4px;
}

.sym-tl {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.sym-tr {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}

.sym-bl {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
}

.sym-br {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

.symmetry-card:hover .symmetry-frame {
    border-color: rgba(73, 80, 87, 0.7);
    box-shadow: 0 0 15px rgba(73, 80, 87, 0.4);
}

.symmetry-card:hover .sym-tl,
.symmetry-card:hover .sym-br {
    width: 50px;
    height: 50px;
}

.symmetry-card:hover .sym-tr,
.symmetry-card:hover .sym-bl {
    width: 50px;
    height: 50px;
}

/* Footer with Classical Style */
footer {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.98) 0%, rgba(233, 236, 239, 0.98) 100%);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-top: 3px solid rgba(73, 80, 87, 0.4);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(73, 80, 87, 0.15);
}

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

.footer-title {
    font-size: 1.4rem;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #495057 0%, #6c757d 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(248, 249, 250, 0.9);
    border-radius: 50px;
    padding: 0.5rem;
    border: 2px solid rgba(73, 80, 87, 0.3);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(15px);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(73, 80, 87, 0.1) 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: #495057;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

#langlist .highlight {
    background: linear-gradient(135deg, #495057, #6c757d);
    box-shadow: 0 0 20px rgba(73, 80, 87, 0.3);
}

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

#langlist li:not(.highlight):hover {
    background: rgba(73, 80, 87, 0.15);
    box-shadow: 0 0 15px rgba(73, 80, 87, 0.2);
}

#langlist li:not(.highlight):hover a {
    color: #212529;
    text-shadow: 0 0 10px rgba(73, 80, 87, 0.3);
}

.footer-credits {
    color: #6c757d;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-top: 2rem;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
}

.footer-credits strong {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    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(300px, 1fr));
        gap: 2rem;
    }

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

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

    .symmetry-card {
        }

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

    .symmetry-card {
        }

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

    .symmetry-info {
        padding: 1.5rem;
    }

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