@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Exo+2:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 25%, #2d3561 50%, #1a1f3a 75%, #0a0e27 100%);
    color: #e8e9f3;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Futuristic grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(100, 181, 246, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(100, 181, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(186, 104, 200, 0.02) 1px, transparent 1px),
        linear-gradient(0deg, rgba(186, 104, 200, 0.02) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
    background-position: 0 0, 0 0, 10px 10px, 10px 10px;
    pointer-events: none;
    z-index: 0;
    animation: gridFlow 30s linear infinite;
}

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

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

/* Luminous dome glow effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(100, 181, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(186, 104, 200, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
    animation: domeGlow 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

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

    100% {
        opacity: 0.8;
        transform: scale(1.15) rotate(5deg);
    }
}

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

/* Futuristic Header */
header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 2px solid rgba(100, 181, 246, 0.4);
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(100, 181, 246, 0.2),
        0 0 50px rgba(186, 104, 200, 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.6rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #64b5f6 0%, #ba68c8 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(100, 181, 246, 0.4));
}

.site-title a:hover {
    filter: drop-shadow(0 0 30px rgba(186, 104, 200, 0.6));
    letter-spacing: 12px;
}

.site-tagline {
    font-size: 1rem;
    color: #64b5f6;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 400;
    font-family: 'Exo 2', 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, #64b5f6, #ba68c8);
    transition: width 0.4s ease;
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.8);
}

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

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

#menu li:hover a {
    color: #ba68c8;
    text-shadow: 0 0 20px rgba(186, 104, 200, 0.6);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 6rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.9) 0%, rgba(45, 53, 97, 0.7) 100%);
}

.hero-title {
    font-size: 7rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #64b5f6 0%, #ba68c8 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 20px;
    position: relative;
    filter: drop-shadow(0 0 25px rgba(100, 181, 246, 0.4));
    animation: titlePulse 5s ease-in-out infinite;
}

@keyframes titlePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 25px rgba(100, 181, 246, 0.4));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(186, 104, 200, 0.6));
        transform: scale(1.03);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #ba68c8;
    letter-spacing: 10px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 2rem;
    text-shadow: 0 0 25px rgba(186, 104, 200, 0.3);
    font-family: 'Exo 2', sans-serif;
}

/* Futuristic Dome/Ceiling SVG */
.ceiling-svg {
    width: 100%;
    height: 350px;
    margin-top: 3rem;
}

.dome-structure {
    fill: none;
    stroke: #64b5f6;
    stroke-width: 2.5;
    opacity: 0;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: drawDome 4s ease-out forwards;
}

@keyframes drawDome {
    to {
        stroke-dashoffset: 0;
        opacity: 0.9;
    }
}

.dome-structure:nth-child(2) {
    animation-delay: 0.3s;
    stroke: #ba68c8;
}

.dome-structure:nth-child(3) {
    animation-delay: 0.6s;
    stroke: #ffd700;
}

.ceiling-ornament {
    fill: none;
    stroke: #ba68c8;
    stroke-width: 1.5;
    opacity: 0;
    animation: fadeInOrnament 2.5s ease-out forwards;
}

.ceiling-ornament:nth-child(1) {
    animation-delay: 1.2s;
}

.ceiling-ornament:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes fadeInOrnament {
    from {
        opacity: 0;
        stroke-dasharray: 800;
        stroke-dashoffset: 800;
    }

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

.vault-rib {
    fill: rgba(100, 181, 246, 0.2);
    opacity: 0;
    animation: riseVault 2s ease-out forwards;
    transform-origin: center;
}

.vault-rib:nth-child(1) {
    animation-delay: 0.7s;
}

.vault-rib:nth-child(2) {
    animation-delay: 0.9s;
}

.vault-rib:nth-child(3) {
    animation-delay: 1.1s;
}

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

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

.central-oculus {
    fill: none;
    stroke: #ffd700;
    stroke-width: 2;
    opacity: 0;
    animation: glowOculus 3s ease-out forwards;
    transform-origin: center;
}

.central-oculus:nth-child(1) {
    animation-delay: 1.8s;
}

.central-oculus:nth-child(2) {
    animation-delay: 2s;
}

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

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

.energy-line {
    stroke: #64b5f6;
    stroke-width: 0.5;
    stroke-dasharray: 5, 5;
    opacity: 0.4;
    animation: energyFlow 4s linear infinite;
}

@keyframes energyFlow {
    to {
        stroke-dashoffset: -20;
    }
}

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

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

.region-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #64b5f6 0%, #ba68c8 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, #64b5f6, #ba68c8);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.6);
    border-radius: 10px;
}

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

.gallery-grid .ceiling-card {
    max-width: 500px;
    width: 100%;
}

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

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

/* Futuristic border effect */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(45, 53, 97, 0.95) 100%);
    border-radius: 20px;
    border: 2px solid rgba(100, 181, 246, 0.4);
    box-shadow: 0 15px 50px rgba(100, 181, 246, 0.25),
        0 0 40px rgba(186, 104, 200, 0.2) inset;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.ceiling-card:hover .card-container {
    border-color: rgba(186, 104, 200, 0.7);
    box-shadow: 0 30px 70px rgba(186, 104, 200, 0.4),
        0 0 60px rgba(100, 181, 246, 0.3) inset;
}

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

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

.scan-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.4), transparent);
    width: 1px;
    height: 100%;
    animation: scanMove 4s ease-in-out infinite;
}

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

.scan-line:nth-child(2) {
    left: 50%;
    background: linear-gradient(90deg, transparent, rgba(186, 104, 200, 0.5), transparent);
    width: 2px;
    animation-delay: 0.3s;
}

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

@keyframes scanMove {

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

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

/* Light beam effect */
.light-beam {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(100, 181, 246, 0.15),
            rgba(186, 104, 200, 0.15),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.ceiling-card:hover .light-beam {
    animation: beamScan 3s ease-in-out;
}

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

    100% {
        top: 100%;
    }
}

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

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

.ceiling-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(100, 181, 246, 0.15) 0%,
            transparent 50%,
            rgba(186, 104, 200, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

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

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

.ceiling-card:hover .ceiling-image {
    transform: scale(1.2);
    filter: saturate(1.2) contrast(1.15) brightness(1.05);
}

/* Info Overlay */
.ceiling-info {
    position: relative;
    padding: 2.5rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(10, 14, 39, 0.98) 0%,
            rgba(45, 53, 97, 0.9) 70%,
            transparent 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(100, 181, 246, 0.4);
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.ceiling-location {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: #64b5f6;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.ceiling-card:hover .ceiling-location {
    color: #ba68c8;
    text-shadow: 0 0 30px rgba(186, 104, 200, 0.5);
}

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

.frame-tl,
.frame-br,
.frame-tr,
.frame-bl {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(100, 181, 246, 0.5);
    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;
}

.ceiling-card:hover .ceiling-frame {
    border-color: rgba(186, 104, 200, 0.8);
    box-shadow: 0 0 20px rgba(186, 104, 200, 0.5);
}

.ceiling-card:hover .frame-tl,
.ceiling-card:hover .frame-br {
    width: 60px;
    height: 60px;
}

.ceiling-card:hover .frame-tr,
.ceiling-card:hover .frame-bl {
    width: 60px;
    height: 60px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(45, 53, 97, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 2px solid rgba(100, 181, 246, 0.4);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -4px 30px rgba(100, 181, 246, 0.2);
}

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

.footer-title {
    font-size: 1.6rem;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #64b5f6 0%, #ba68c8 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(10, 14, 39, 0.9);
    border-radius: 50px;
    padding: 0.5rem;
    border: 2px solid rgba(100, 181, 246, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(100, 181, 246, 0.2) 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: #64b5f6;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
}

#langlist .highlight {
    background: linear-gradient(135deg, #64b5f6, #ba68c8);
    box-shadow: 0 0 25px rgba(100, 181, 246, 0.4);
}

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

#langlist li:not(.highlight):hover {
    background: rgba(100, 181, 246, 0.2);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

#langlist li:not(.highlight):hover a {
    color: #ba68c8;
    text-shadow: 0 0 15px rgba(186, 104, 200, 0.4);
}

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

.footer-credits strong {
    background: linear-gradient(135deg, #64b5f6 0%, #ba68c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-family: 'Orbitron', sans-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.5rem;
        letter-spacing: 12px;
    }

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

    .ceiling-card {
        }

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

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

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

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

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

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

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

    .ceiling-card {
        }

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

    .ceiling-info {
        padding: 2rem;
    }

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