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

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

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 25%, #FFD9B3 50%, #FFE8CC 75%, #FFF5E6 100%);
    color: #5D4E37;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Wave repetition pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255, 160, 122, 0.04) 60px, rgba(255, 160, 122, 0.04) 120px),
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255, 140, 105, 0.04) 60px, rgba(255, 140, 105, 0.04) 120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: waveShift 20s linear infinite;
}

@keyframes waveShift {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(120px) translateY(120px);
    }
}

/* Soft ambient glow */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 20% 25%, rgba(255, 160, 122, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 75%, rgba(255, 140, 105, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 178, 102, 0.06) 0%, transparent 60%);
    animation: ambientPulse 18s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes ambientPulse {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.08);
    }
}

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

/* Light Minimalist Header Design */
header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-bottom: 2px solid rgba(255, 160, 122, 0.25);
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 25px rgba(255, 160, 122, 0.12),
        0 0 60px rgba(255, 255, 255, 0.5) 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: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FF8C69 0%, #FFA07A 40%, #FF7F50 70%, #FF6347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 14px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    position: relative;
    filter: drop-shadow(0 0 18px rgba(255, 160, 122, 0.2));
}

.site-title a:hover {
    filter: drop-shadow(0 0 30px rgba(255, 160, 122, 0.4));
    letter-spacing: 18px;
}

.site-tagline {
    font-size: 1rem;
    color: #FF8C69;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 500;
    font-family: 'Quicksand', 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: 1rem;
    line-height: 2.5rem;
    position: relative;
}

#menu li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF8C69, #FFA07A);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 160, 122, 0.4);
}

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

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

#menu li:hover a {
    color: #FF8C69;
    text-shadow: 0 0 12px rgba(255, 160, 122, 0.3);
}

/* 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, 245, 230, 0.8) 100%);
}

.hero-title {
    font-size: 7.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FF8C69 0%, #FFA07A 30%, #FF7F50 60%, #FF6347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 26px;
    position: relative;
    filter: drop-shadow(0 0 25px rgba(255, 160, 122, 0.25));
    animation: titleEcho 6s ease-in-out infinite;
}

@keyframes titleEcho {

    0%,
    100% {
        filter: drop-shadow(0 0 25px rgba(255, 160, 122, 0.25));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(255, 160, 122, 0.4));
        transform: scale(1.015);
    }
}

.hero-subtitle {
    font-size: 1.85rem;
    color: #FF8C69;
    letter-spacing: 11px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2rem;
    text-shadow: 0 0 18px rgba(255, 160, 122, 0.15);
    font-family: 'Quicksand', sans-serif;
}

/* Repetition Wave SVG */
.repetition-svg {
    width: 100%;
    height: 450px;
    margin-top: 4rem;
}

.wave-line {
    fill: none;
    stroke: #FF8C69;
    stroke-width: 2.5;
    opacity: 0;
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    animation: drawWave 3.5s ease-out forwards;
}

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

.wave-line:nth-child(2) {
    animation-delay: 0.3s;
    stroke: #FFA07A;
}

.wave-line:nth-child(3) {
    animation-delay: 0.6s;
    stroke: #FF7F50;
}

.wave-line:nth-child(4) {
    animation-delay: 0.9s;
    stroke: #FF6347;
}

.echo-circle {
    fill: rgba(255, 160, 122, 0.15);
    stroke: #FF8C69;
    stroke-width: 1.5;
    opacity: 0;
    animation: fadeEcho 2s ease-out forwards;
}

.echo-circle:nth-child(1) {
    animation-delay: 1.2s;
}

.echo-circle:nth-child(2) {
    animation-delay: 1.4s;
}

.echo-circle:nth-child(3) {
    animation-delay: 1.6s;
}

.echo-circle:nth-child(4) {
    animation-delay: 1.8s;
}

@keyframes fadeEcho {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

.rhythm-bar {
    fill: rgba(255, 140, 105, 0.2);
    stroke: #FFA07A;
    stroke-width: 1;
    opacity: 0;
    animation: revealBar 2s ease-out forwards;
}

.rhythm-bar:nth-child(1) {
    animation-delay: 2s;
}

.rhythm-bar:nth-child(2) {
    animation-delay: 2.1s;
}

.rhythm-bar:nth-child(3) {
    animation-delay: 2.2s;
}

.rhythm-bar:nth-child(4) {
    animation-delay: 2.3s;
}

.rhythm-bar:nth-child(5) {
    animation-delay: 2.4s;
}

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

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

.pulse-element {
    fill: #FF7F50;
    opacity: 0;
    animation: pulseGrow 2.5s ease-out forwards infinite alternate;
    animation-delay: 2.5s;
}

@keyframes pulseGrow {
    from {
        opacity: 0.3;
        transform: scale(1);
    }

    to {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

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

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

.region-title {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FF8C69 0%, #FFA07A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 28px;
}

.region-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 88%;
    background: linear-gradient(180deg, #FF8C69, #FF7F50);
    box-shadow: 0 0 15px rgba(255, 160, 122, 0.4);
    border-radius: 8px;
}

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

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

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

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

/* Light card container */
.card-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 245, 230, 0.88) 100%);
    border-radius: 18px;
    border: 2px solid rgba(255, 160, 122, 0.3);
    box-shadow: 0 10px 40px rgba(255, 160, 122, 0.18),
        0 0 50px rgba(255, 255, 255, 0.6) inset;
    transition: all 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.repetition-card:hover .card-container {
    border-color: rgba(255, 160, 122, 0.5);
    box-shadow: 0 22px 60px rgba(255, 160, 122, 0.3),
        0 0 70px rgba(255, 255, 255, 0.8) inset;
}

/* Echo wave overlay */
.echo-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(255, 160, 122, 0.06) 15px, rgba(255, 160, 122, 0.06) 30px);
}

.repetition-card:hover .echo-waves {
    opacity: 1;
}

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

.repetition-card:hover .rhythm-lines {
    opacity: 1;
}

.rhythm-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 160, 122, 0.2), transparent);
    width: 2px;
    height: 100%;
    animation: rhythmPulse 3.2s ease-in-out infinite;
}

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

.rhythm-line:nth-child(2) {
    left: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 105, 0.25), transparent);
    width: 2.5px;
    animation-delay: 0.4s;
}

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

.rhythm-line:nth-child(4) {
    left: 80%;
    background: linear-gradient(90deg, transparent, rgba(255, 127, 80, 0.2), transparent);
    animation-delay: 1.2s;
}

@keyframes rhythmPulse {

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

    50% {
        opacity: 0.9;
        transform: scaleY(1.06);
    }
}

/* Sequential sweep effect */
.sequence-sweep {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
            transparent,
            rgba(255, 160, 122, 0.14),
            rgba(255, 140, 105, 0.12),
            transparent);
    z-index: 3;
    pointer-events: none;
}

.repetition-card:hover .sequence-sweep {
    animation: sequenceScan 2.6s ease-in-out;
}

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

    100% {
        top: 100%;
    }
}

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

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

.repetition-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 160, 122, 0.1) 0%,
            transparent 50%,
            rgba(255, 140, 105, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

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

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

.repetition-card:hover .repetition-image {
    transform: scale(1.14);
    filter: saturate(1.12) contrast(1.12) brightness(1.1);
}

/* Info Overlay */
.repetition-info {
    position: relative;
    padding: 2.5rem;
    z-index: 5;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.94) 0%,
            rgba(255, 245, 230, 0.88) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 0 0 18px 18px;
    border-top: 2px solid rgba(255, 160, 122, 0.25);
    transform: translateY(0);
    transition: all 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.repetition-location {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #8B6F47;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.4s ease;
    text-shadow: 0 0 15px rgba(255, 160, 122, 0.2);
}

.repetition-card:hover .repetition-location {
    color: #FF8C69;
    text-shadow: 0 0 25px rgba(255, 160, 122, 0.35);
}

/* Decorative echo markers */
.echo-marker {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    transition: all 0.6s ease;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 160, 122, 0.35);
    border-radius: 50%;
}

.marker-tl {
    top: 18px;
    left: 18px;
}

.marker-tr {
    top: 18px;
    right: 18px;
}

.marker-bl {
    bottom: 18px;
    left: 18px;
}

.marker-br {
    bottom: 18px;
    right: 18px;
}

.repetition-card:hover .echo-marker {
    border-color: rgba(255, 160, 122, 0.65);
    box-shadow: 0 0 18px rgba(255, 160, 122, 0.35);
}

.repetition-card:hover .marker-tl,
.repetition-card:hover .marker-br {
    width: 55px;
    height: 55px;
}

.repetition-card:hover .marker-tr,
.repetition-card:hover .marker-bl {
    width: 55px;
    height: 55px;
}

/* Portrait-specific styling */
.portrait {
    height: 530px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 245, 230, 0.92) 100%);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-top: 2px solid rgba(255, 160, 122, 0.25);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 -8px 32px rgba(255, 160, 122, 0.12);
}

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

.footer-title {
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FF8C69 0%, #FFA07A 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(255, 255, 255, 0.75);
    border-radius: 42px;
    padding: 0.5rem;
    border: 2px solid rgba(255, 160, 122, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    margin-bottom: 2rem;
    box-shadow: 0 0 35px rgba(255, 160, 122, 0.12) inset;
}

#langlist li {
    display: inline-block;
    list-style: none;
    margin: 0.3rem;
    padding: 0.85rem 1.4rem;
    border-radius: 28px;
    transition: all 0.4s ease;
}

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

#langlist .highlight {
    background: linear-gradient(135deg, #FF8C69, #FFA07A);
    box-shadow: 0 0 22px rgba(255, 160, 122, 0.3);
}

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

#langlist li:not(.highlight):hover {
    background: rgba(255, 160, 122, 0.2);
    box-shadow: 0 0 18px rgba(255, 160, 122, 0.2);
}

#langlist li:not(.highlight):hover a {
    color: #FF8C69;
    text-shadow: 0 0 12px rgba(255, 160, 122, 0.25);
}

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

.footer-credits strong {
    background: linear-gradient(135deg, #FF8C69 0%, #FFA07A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-family: 'Poppins', 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(290px, 1fr));
        gap: 2.2rem;
    }

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

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

    .repetition-card {
        height: 400px;
    }

    .repetition-location {
        font-size: 1.75rem;
    }
}

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

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

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

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

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

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

    .repetition-card {
        height: 365px;
    }

    .portrait {
        height: 450px;
    }

    .repetition-location {
        font-size: 1.55rem;
    }

    .repetition-info {
        padding: 2rem;
    }

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