/* CSS Variables */
:root {
    --primary-color: #5d7c41;
    --secondary-color: #96b370;
    --tertiary-color: #6b7c5a;
    --light-green: #a8c686;
    --lighter-green: #8a9777;
    --dark-green: #7a9c5a;
    --bg-gradient-start: #faf9f7;
    --bg-gradient-mid: #f5f2ed;
    --bg-gradient-end: #f0ede6;
    --white-transparent: rgba(255, 255, 255, 0.75);
    --white-blur: rgba(255, 255, 255, 0.65);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --font-main: 'Cormorant Garamond', serif;
    --transition-standard: 0.3s ease;
    --transition-slow: 0.8s ease;
    --leaf-width: 40px;
    --leaf-height: 20px;
    --branch-height: 2px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Page Sections */
.page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-invitation {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    overflow: hidden;
}

/* Full Page Arc */
.page-invitation::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(85vw, 850px);
    height: 80vh;
    border: 3px solid var(--secondary-color);
    border-bottom: none;
    border-radius: min(42.5vw, 425px) min(42.5vw, 425px) 0 0;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.page-invitation::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: min(75vw, 750px);
    height: 76vh;
    border: 2px solid var(--secondary-color);
    border-bottom: none;
    border-radius: min(37.5vw, 375px) min(37.5vw, 375px) 0 0;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.page-venue {
    background: url('couple.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.page-venue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Botanical Background Elements */
.botanical-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.leaf {
    position: absolute;
    width: var(--leaf-width);
    height: var(--leaf-height);
    background: linear-gradient(45deg, var(--light-green), var(--secondary-color));
    border-radius: 0 100% 0 100%;
    opacity: 0.6;
}

.leaf::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--dark-green);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.leaf-1 {
    top: 10%;
    left: 5%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.leaf-2 {
    top: 15%;
    right: 8%;
    transform: rotate(-30deg);
    animation-delay: 1s;
}

.leaf-3 {
    top: 60%;
    left: 3%;
    transform: rotate(120deg);
    animation-delay: 2s;
}

.leaf-4 {
    bottom: 20%;
    right: 5%;
    transform: rotate(-60deg);
    animation-delay: 0.5s;
}

.leaf-5 {
    top: 40%;
    right: 2%;
    transform: rotate(90deg);
    animation-delay: 1.5s;
}

.leaf-6 {
    bottom: 40%;
    left: 8%;
    transform: rotate(-120deg);
    animation-delay: 2.5s;
}

.branch {
    position: absolute;
    height: var(--branch-height);
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    opacity: 0.4;
}

.branch-1 {
    top: 25%;
    left: 10%;
    width: 80px;
    transform: rotate(25deg);
}

.branch-2 {
    bottom: 30%;
    right: 10%;
    width: 60px;
    transform: rotate(-35deg);
}

.branch-3 {
    top: 70%;
    left: 15%;
    width: 70px;
    transform: rotate(45deg);
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header with Monogram */
.header-section {
    text-align: center;
    margin-bottom: 60px;
}

.monogram-container {
    display: inline-block;
}

.botanical-circle {
    position: relative;
    width: 140px;
    height: 140px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white-blur);
    backdrop-filter: blur(15px);
}

.inner-botanical {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.leaf-decoration {
    position: absolute;
    width: 20px;
    height: 10px;
    background: linear-gradient(45deg, var(--light-green), var(--secondary-color));
    border-radius: 0 100% 0 100%;
}

.leaf-dec-1 {
    top: 15%;
    left: 15%;
    transform: rotate(45deg);
}

.leaf-dec-2 {
    top: 15%;
    right: 15%;
    transform: rotate(-45deg);
}

.leaf-dec-3 {
    bottom: 15%;
    left: 15%;
    transform: rotate(135deg);
}

.leaf-dec-4 {
    bottom: 15%;
    right: 15%;
    transform: rotate(-135deg);
}

.monogram {
    font-size: 32px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 3px;
    z-index: 1;
}

/* Invitation Card */
.invitation-card {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 40px 30px;
    text-align: center;
    box-shadow: none;
    position: relative;
    border: none;
    top: -60px;
}

.arch-container {
    position: relative;
}

.arch-container::before {
    display: none;
}

/* Couple Names */
.couple-names {
    margin-bottom: 40px;
}

.name-vache,
.name-arpine {
    font-size: 64px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 10px;
    margin: 15px 0;
}

.ampersand {
    font-family: serif;
    font-size: 32px;
    font-style: italic;
    color: var(--secondary-color);
    margin: 20px 0;
    font-weight: 300;
}

/* Wedding Announcement */
.wedding-announcement {
    margin-bottom: 40px;
}

.invitation-text,
.with-joy {
    font-size: 22px;
    color: var(--tertiary-color);
    font-style: italic;
    line-height: 1.6;
    margin: 10px 0;
}

/* Wedding Date */
.wedding-date {
    margin-bottom: 50px;
}

.wedding-date h2 {
    font-size: 48px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 6px;
}

/* Venue Information */
.venue-info {
    margin-bottom: 40px;
}

.venue-note {
    font-size: 16px;
    color: var(--lighter-green);
    font-style: italic;
    margin-bottom: 30px;
    margin-top: -20px;
}

.ceremony-details,
.reception-details {
    margin: 40px 0;
}

.time-venue {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
}

.church-icon,
.glass-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.church-icon img,
.glass-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.details {
    text-align: left;
}

.time {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.venue {
    font-size: 18px;
    color: var(--tertiary-color);
    font-style: italic;
}

.venue a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-standard);
}

.venue a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.arrow-down {
    position: relative;
    width: 30px;
    height: 30px;
    animation: bounce 2s infinite;
}

.arrow-down::before,
.arrow-down::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    top: 50%;
    transform-origin: center;
}

.arrow-down::before {
    left: 2px;
    transform: rotate(45deg);
}

.arrow-down::after {
    right: 2px;
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    40% {
        transform: translateY(-10px);
        opacity: 0.7;
    }
    60% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
}

/* Venue Information Card */
.venue-info-card {
    background: transparent;
    text-align: left;
    margin: 0;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.venue-title {
    display: none;
}

.page-venue .main-container {
    align-items: flex-start;
    padding-top: 80px;
    justify-content: flex-start;
}


.page-venue .time-venue {
    justify-content: flex-start;
    gap: 30px;
}

.page-venue .church-icon,
.page-venue .glass-icon {
    width: 64px;
    height: 64px;
}

.page-venue .time {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.page-venue .venue {
    font-size: 48px;
    color: var(--primary-color);
    font-style: italic;
    font-weight: 400;
}

.page-venue .venue a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-venue .venue a:hover {
    color: var(--secondary-color);
}

/* Botanical elements for Page 2 */
.botanical-bg-page2 {
    z-index: 1;
}

#page2 {
    align-items: flex-start;
}

.leaf-p2-1 {
    top: 15%;
    left: 10%;
    transform: rotate(45deg);
    opacity: 0.4;
}

.leaf-p2-2 {
    top: 20%;
    right: 15%;
    transform: rotate(-30deg);
    opacity: 0.5;
}

.leaf-p2-3 {
    top: 8%;
    right: 8%;
    transform: rotate(120deg);
    opacity: 0.3;
}

.leaf-p2-4 {
    top: 12%;
    left: 20%;
    transform: rotate(-60deg);
    opacity: 0.4;
}

.branch-p2-1 {
    top: 25%;
    right: 25%;
    width: 60px;
    transform: rotate(-25deg);
    opacity: 0.3;
}

.branch-p2-2 {
    top: 35%;
    left: 15%;
    width: 80px;
    transform: rotate(35deg);
    opacity: 0.4;
}



/* Bottom Botanical Decorations */
.bottom-botanicals {
    position: relative;
    margin-top: 40px;
}

.botanical-branch {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    opacity: 0.6;
}

.left-branch {
    left: 0;
    width: 150px;
    top: 50%;
    transform: rotate(-15deg);
}

.right-branch {
    right: 0;
    width: 120px;
    top: 50%;
    transform: rotate(15deg);
}

/* Animations */
@keyframes leafFloat {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-10px) rotate(calc(var(--rotation, 0deg) + 5deg));
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 15px;
    }
    
    .invitation-card {
        padding: 30px 20px;
    }
    
    .venue-info-card {
        /* padding: 30px 20px; */
        border-radius: 20px;
    }
    
    .name-vache,
    .name-arpine {
        font-size: 48px;
        letter-spacing: 8px;
    }
    
    .wedding-date h2 {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .venue-title {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }
    
    
    .time-venue {
        flex-direction: row;
        gap: 10px;
    }
    
    .details {
        text-align: left;
    }
    
    .page-venue {
        background-attachment: scroll;
    }
    
    .page-venue .main-container {
        padding-top: 60px;
    }
    
    .page-venue .ceremony-details,
    .page-venue .reception-details {
        margin: 30px 0;
    }
    
    .page-venue .time {
        font-size: 36px;
        font-weight: bold;
    }
    
    .page-venue .venue {
        font-size: 28px;
    }
    
    .page-venue .church-icon,
    .page-venue .glass-icon {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 768px) {
    .page-invitation::before {
        width: 90vw;
        height: 85vh;
        top: 8%;
        border-radius: 45vw 45vw 0 0;
    }
    
    .page-invitation::after {
        width: 80vw;
        height: 81vh;
        top: 10%;
        border-radius: 40vw 40vw 0 0;
    }
}

@media (max-width: 480px) {
    .name-vache,
    .name-arpine {
        font-size: 36px;
        letter-spacing: 5px;
    }
    
    .wedding-date h2 {
        font-size: 28px;
        letter-spacing: 3px;
    }
    
    .venue-title {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 25px;
    }
    
    .invitation-card {
        padding: 25px 15px;
    }
    
    .main-container {
        padding-top: 0px;
    }
    
    .page-venue .time-venue {
        gap: 20px;
    }
    
    .page-venue .time {
        font-size: 36px;
        font-weight: bold;
    }
    
    .page-venue .venue {
        font-size: 28px;
    }
    
    .page-venue .church-icon,
    .page-venue .glass-icon {
        width: 64px;
        height: 64px;
    }
}

/* Hover Effects */

.monogram-container:hover .botanical-circle {
    transform: scale(1.05);
    transition: transform var(--transition-standard);
}

.monogram-container:hover .leaf-decoration {
    animation: leafFloat 2s ease-in-out infinite;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .botanical-bg {
        display: none;
    }
    
    .invitation-card {
        box-shadow: none;
        border: none;
    }
}

#page2 .main-container {
    padding-top: 0;
    margin-top: 0;
}
