.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text, .white-section h2, .footer-hearts {
    background: linear-gradient(45deg, var(--bride-color), var(--groom-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text:hover {
    animation: hueShift 7.5s infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 45px;
    left: 50%;
    z-index: 2;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 5px solid white;
    border-left: none;
    border-top: none;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 8px #fff);
    position: absolute;
    bottom: 1rem;
    left: 50%;
}

.page-section {
    padding: 75px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-section:not(.white-section) {
    background: linear-gradient(90deg, var(--bride-color), var(--groom-color));
}

.page-section:not(.white-section) h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-section.white-section {
    background: white;
    color: #333;
}

.parallax-container .container {
    position: relative;
    z-index: 2;
}

.item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero & Landing Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    position: absolute;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

body.loaded .hero-content {
    animation: textShadow 15s ease-out;
}

.hero-title {
    font-family: var(--font-fancy);
    font-size: var(--font-size-hero-title);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: var(--font-size-hero-subtitle);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-date {
    font-family: var(--font-primary);
    font-size: var(--font-size-hero-date);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}
.hero-content .hero-counter.word {
    display: block;
    text-shadow: 2px 2px 3px rgba(0,0,0,1);
}

body.animation-complete .hero-content .word {
    animation: translateFadeIn 0.6s ease-out forwards;
}

#landing::after {
    content: '';
    position: absolute;
    bottom: -0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, white);
    z-index: 1;
    pointer-events: none;

}

/* Paint Image */
.image-container {
    width: auto;
    overflow: hidden;
    background-color: #fff;
}

.image-container img,
.image-container canvas {
    display: block;
}

/* Hide the original image, as it's just used as the source for the canvas */
#source-image {
    display: none;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Story Section */
body.animation-complete #story {
    animation: translateFadeIn 2s ease-out forwards;
}

#story {
    opacity: 0;
}

.story-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, white);
    z-index: 1;
    pointer-events: none;
}

.story-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.story-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

/* Details Section */
.details-section {
    padding: 100px 0;
    color: white;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.item h3 {
    font-size: var(--font-size-section-subtitle);
    margin-bottom: 1rem;
    color: var(--groom-color);
}

.detail-time {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.detail-location {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-address {
    font-size: 1rem;
    opacity: 0.9;
}

/* RSVP Section */
.rsvp-section {
    padding: 100px 0;
    background: white;
    text-align: center;
}

.rsvp-content h2 {
    font-size: 3rem;
    color: #8B4B8C;
    margin-bottom: 2rem;
}

.rsvp-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.button {
    background: linear-gradient(105deg, var(--bride-color), var(--groom-color));
}

.rsvp-form {
    position: relative;
    z-index: 0;
}

.rsvp-button {
    display: inline-block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 75, 140, 0.3);
    margin-top: 2rem;
    font-size: var(--font-size-section-subtitle);
    /* animation: heartbeat 2s infinite, hueShift 30s infinite; */
    position: relative;
}

.rsvp-button::before {
    content: '';
    position: absolute;
    top: 0px;
    left: -15px;
    right: -15px;
    bottom: -5px;
    border-radius: 50px;
    background: linear-gradient(180deg, rgb(223, 212, 191) 0%, #BE20FF 50%, rgb(0, 146, 255) 100%);
    z-index: -1;
    opacity: 1;
    animation: rainbowGlow 1.5s linear infinite;
}

.rsvp-button:hover {
    transform: scale(1.05);
}

/* Playlist Section */
.playlist-section {
    z-index: 1;
}

.playlist-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.playlist-form input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.playlist-form input[type="text"]::placeholder {
    font-size: var(--font-size-small);
}

#song-results {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    margin-top: 0.5rem;
    text-align: left;
    width: 100%;
    max-width: 450px;
    overflow-y:auto;
    max-height: 35vw;

    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

#song-results:empty {
    display: none;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.song-info {
    font-size: var(--font-size-small);
    text-align: left;
    flex: 1;
}

.song-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-right: 1rem;
}

.song-item .add-to-playlist-btn {
    background: linear-gradient(105deg, var(--bride-color), var(--groom-color));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.song-item .add-to-playlist-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transition: left 0.5s ease;
}

.song-item .add-to-playlist-btn:hover:not(:disabled)::before {
    left: 100%;
}

.song-item .add-to-playlist-btn:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.song-item .add-to-playlist-btn:active {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.song-item .add-to-playlist-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#ceremony, #wedding-party, #aperitif{
    width: 100px;
}

#ring {
    width: 250px;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-hearts {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart {
    font-size: 1.5rem;
    color: #FFB6C1;
    margin: 0 0.5rem;
    animation: heartbeat 2s infinite;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-size: 1rem;
    opacity: 0.8;
}