/* Divider 5 Styles */
.divider5-container {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(
        135deg,
        rgba(255, 248, 240, 0.9) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 248, 240, 0.9) 100%
    );
    overflow: hidden;
}

.divider5-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(179,139,109,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(179,139,109,0.1)"/><circle cx="60" cy="30" r="1.5" fill="rgba(179,139,109,0.08)"/><circle cx="30" cy="70" r="1.5" fill="rgba(179,139,109,0.08)"/></svg>');
    background-size: 200px 200px;
    animation: float 20s infinite linear;
}

.divider5-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.divider5-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.divider5-line-left,
.divider5-line-right {
    width: 100px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%
    );
    animation: pulse 2s infinite;
}

.divider5-heart {
    font-size: 2rem;
    animation: heartbeat 1.5s infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.divider5-quote {
    margin-bottom: 2rem;
}

.divider5-quote p {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease;
}

.divider5-decoration {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.divider5-flower {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.divider5-flower:nth-child(1) {
    animation-delay: 0s;
}

.divider5-flower:nth-child(2) {
    animation-delay: 1s;
}

.divider5-flower:nth-child(3) {
    animation-delay: 2s;
}

/* Thank You Section Styles */
.thankyou-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../pictures/05.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

.thankyou-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 248, 240, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 30%,
        rgba(255, 248, 240, 0.95) 70%,
        rgba(255, 255, 255, 0.9) 100%
    );
    backdrop-filter: blur(1px);
}

.thankyou-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.thankyou-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.thankyou-content {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 248, 240, 0.95) 100%
    );
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.1),
        0 15px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(179, 139, 109, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.thankyou-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(179, 139, 109, 0.05) 0%,
        transparent 70%
    );
    animation: rotate 30s linear infinite;
}

.thankyou-header {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.thankyou-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.thankyou-line-left,
.thankyou-line-right {
    width: 120px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%
    );
    animation: pulse 2s infinite;
}

.thankyou-heart {
    font-size: 2.5rem;
    animation: heartbeat 1.5s infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.thankyou-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease;
}

.thankyou-subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.thankyou-message {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.thankyou-main-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.thankyou-quote {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 248, 240, 0.9) 100%
    );
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin: 3rem 0;
    border: 1px solid rgba(179, 139, 109, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease 0.6s both;
}

.quote-mark {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    position: absolute;
    top: -10px;
    left: 20px;
}

.quote-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    margin: 0 0 1rem 0;
    padding-left: 1rem;
}

.quote-source {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

.thankyou-couples {
    margin: 3rem 0;
    animation: fadeInUp 1s ease 0.8s both;
}

.couple-names {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    text-align: center;
}

.bride-name,
.groom-name {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    flex: 1;
    text-align: center;
}

.bride-name {
    order: 1;
}

.groom-name {
    order: 3;
}

.couple-separator {
    font-size: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    flex: 0 0 auto;
    margin: 0 1rem;
    min-width: 40px;
}

.couple-families {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.family-line {
    text-align: center;
}

.family-line span:first-child {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.family-name {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.thankyou-footer {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease 1s both;
}

.thankyou-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.decoration-flower,
.decoration-leaf {
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.decoration-flower:nth-child(1) {
    animation-delay: 0s;
}

.decoration-leaf {
    animation-delay: 1s;
}

.decoration-flower:nth-child(3) {
    animation-delay: 2s;
}

.thankyou-closing {
    font-size: 1.1rem;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.9;
}

/* Animations */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0.8;
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-50vh) translateX(20px) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(-10px) rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .divider5-content {
        padding: 0 1rem;
    }
    
    .divider5-line-left,
    .divider5-line-right {
        width: 60px;
    }
    
    .divider5-quote p {
        font-size: 1.4rem;
    }
    
    .thankyou-section {
        background-attachment: scroll;
    }
    
    .thankyou-container {
        padding: 2rem 1rem;
    }
    
    .thankyou-content {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .thankyou-title {
        font-size: 3rem;
    }
    
    .thankyou-subtitle {
        font-size: 1.2rem;
    }
    
    .thankyou-main-text {
        font-size: 1.1rem;
    }
    
    .thankyou-quote {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .quote-text {
        font-size: 1rem;
        padding-left: 1rem;
    }
    
    .couple-names {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .couple-separator {
        order: 2;
        margin: 0.5rem 0;
        flex: 0 0 auto;
        min-width: auto;
    }
    
    .bride-name,
    .groom-name {
        font-size: 2rem;
        flex: 0 0 auto;
    }
    
    .bride-name {
        order: 1;
    }
    
    .groom-name {
        order: 3;
    }
    
    .couple-families {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .thankyou-line-left,
    .thankyou-line-right {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .divider5-line-left,
    .divider5-line-right {
        width: 40px;
    }
    
    .divider5-quote p {
        font-size: 1.2rem;
    }
    
    .thankyou-content {
        padding: 2rem 1rem;
    }
    
    .thankyou-title {
        font-size: 2.5rem;
    }
    
    .bride-name,
    .groom-name {
        font-size: 1.8rem;
    }
    
    .thankyou-line-left,
    .thankyou-line-right {
        width: 60px;
    }
}
