:root {
    --text-color: #5c4a5c;
    --bg-color: #fcf4f5;
    --card-height: 80vh;
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('assets/mobile-bg.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body {
        background-image: url('assets/desktop-bg.jpeg');
    }
}

h1,
h2,
h3 {
    font-family: 'Fredoka', sans-serif;
    color: #c2a1ed;
    font-size: medium;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px white;
}

.hero p {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #7a607a;
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
}

.scroll-indicator {
    font-weight: bold;
    color: #000000;
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}


.gallery-container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.card {
    position: sticky;
    top: 10vh;

    height: var(--card-height);
    width: 100%;
    max-width: 500px;
    background: #fff;
    background-image: url('assets/cardbg.jpeg');
    background-size: cover;
    padding: 1.2rem;
    border-radius: 12px;
    border: 4px solid white;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);

    margin-bottom: 80vh;

    display: flex;
    flex-direction: column;


    transition: transform 0.3s ease;
}


.card:nth-child(even) {
    transform: rotate(1deg);
}

.card:nth-child(odd) {
    transform: rotate(-1.5deg);
}

.card:nth-child(3n) {
    transform: rotate(2deg);
}

.card:nth-child(4n) {
    transform: rotate(-0.5deg);
}


.note-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    background: #fff;
    color: #ff6f91;
    font-family: 'Fredoka', sans-serif;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 3px solid #ffb7b2;
    z-index: 10;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-container {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #fff;
    height: 100%;
    width: 100%;
}

.artwork {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #fdfdfd;
}

.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.cover-image.revealed {
    opacity: 0;
    pointer-events: none;
}

.end-spacer {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.end-spacer h2 {
    font-size: 3rem;
    text-shadow: 2px 2px 0px white;
}