/* 
Wedding Portal Stylesheet
Color Palette:
- White: #FFFFFF
- Light Sage: #CAD3C8
- Medium Green: #506B5C
- Dark Green: #40584A (primary)
- Gold Accent: #D4BE97
*/

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

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #40584A;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

h1 {
    font-family: 'Noto Serif Displays', serif;
    font-weight: 300;
    font-size: 4.5rem;
    font-style: roman;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #40584A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #506B5C;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: #40584A;
}

.section-title:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 2px;
    background-color: #506B5C;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Parallax Wrapper */
.parallax-wrapper {
    overflow: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    z-index: 1000;
    transition: background-color 0.4s ease;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(64, 88, 74, 0.1);
}

.navbar.transparent {
    background-color: transparent;
    box-shadow: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-family: 'Noto Serif Displays', serif;
    font-size: 2rem;
    color: #40584A;
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-menu li {
    margin: 0 1rem;
}

.navbar-menu a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-menu a:hover {
    color: #506B5C;
}

.navbar-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('../images/hero-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(64, 88, 74, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 80px); /* Adjust based on navbar height */
}

.hero-text-container {
    text-align: center;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    color: #fff;
    margin-bottom: 20px;
}

.hero-content .date {
    font-size: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    color: #fff;
    margin-bottom: 15px;
}

.hero-content .tagline {
    font-size: 1.6rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 1.5s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Countdown Section */
.countdown-section {
    padding: 4rem 0;
    background-color: #CAD3C8;
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.countdown-item {
    margin: 0 1.5rem;
    min-width: 120px;
}

.countdown-item span {
    font-size: 3rem;
    font-weight: 600;
    color: #40584A;
    display: block;
    line-height: 1;
}

.countdown-item p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    color: #40584A;
}

/* Couple Section */
.couple-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.couple {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.person {
    flex: 0 0 calc(40% - 2rem);
    text-align: center;
    margin: 1rem;
}

.person-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 5px solid #CAD3C8;
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heart {
    font-size: 2.5rem;
    color: #506B5C;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Love Story / Timeline */
.love-story {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.love-story h3 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: #CAD3C8;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #506B5C;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: calc(50% + 30px);
    background-color: #506B5C;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 1.5rem;
    background-color: #CAD3C8;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 40px;
}

.timeline-item:nth-child(odd) .timeline-date {
    left: auto;
    right: calc(50% + 30px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 40px;
}

/* Event Section */
.event-section {
    padding: 5rem 0;
    background-color: #40584A;
    position: relative;
    color: #FFFFFF;
}

.event-section .section-title {
    color: #FFFFFF;
}

.event-section .section-title:after {
    background-color: #D4BE97;
}

.events {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.event-card {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #40584A;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-icon {
    font-size: 2.5rem;
    color: #506B5C;
    margin-bottom: 1rem;
}

.event-card h3 {
    margin-bottom: 1rem;
    color: #40584A;
}

.event-time {
    font-weight: 500;
    color: #506B5C;
    margin-bottom: 0.5rem;
}

.event-location {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.event-address {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.gallery-close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.gallery-full-image {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gallery-prev,
.gallery-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    user-select: none;
    transition: 0.3s ease;
    border-radius: 3px;
}

.gallery-next {
    right: 0;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Location Section */
.location-section {
    padding: 5rem 0;
    background-color: #CAD3C8;
}

.location-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.location-info {
    flex: 1 1 400px;
    padding: 2rem;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-info h3 {
    margin-bottom: 1.5rem;
}

.location-info p {
    margin-bottom: 1rem;
}

.location-info i {
    color: #506B5C;
    width: 25px;
    margin-right: 10px;
}

.location-details {
    margin-top: 2rem;
}

.location-details h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #40584A;
}

.location-map {
    flex: 1 1 400px;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Location Section */
.location-details h4 i {
    margin-right: 8px;
    color: #506B5C;
}

/* Save the Date Button */
.save-date-container {
    margin: 2rem auto 0;
    text-align: center;
}

.save-date-button {
    background-color: #506B5C;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
}

.save-date-button i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.save-date-button:hover {
    background-color: #40584A;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Calendar Button Styles */
.calendar-button-container {
    position: relative;
    margin-top: 1rem;
}

.calendar-button {
    background-color: #506B5C;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
}

.calendar-button i {
    margin-right: 5px;
}

.calendar-button:hover {
    background-color: #40584A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.calendar-dropdown {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 8px;
    margin-top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.calendar-dropdown a {
    color: #40584A;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.calendar-dropdown a:last-child {
    border-bottom: none;
}

.calendar-dropdown a:hover {
    background-color: #CAD3C8;
    color: #506B5C;
}

.calendar-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px) translateX(-50%); }
    to { opacity: 1; transform: translateY(0) translateX(-50%); }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 4rem 0 2rem;
    background-color: #40584A;
    color: #FFFFFF;
}

.footer-title {
    font-family: 'Noto Serif Displays', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.footer-date {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-message {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.footer-credits {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Additional Footer Elements */
.rsvp-reminder {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: inline-block;
}

.rsvp-reminder p {
    margin-bottom: 0.5rem;
}

.footer-contact {
    color: #D4BE97;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.footer-contact:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-contact i {
    margin-right: 5px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active,
.fade-in-left.active,
.fade-in-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background-color: #FFFFFF;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-menu li {
        margin: 1.5rem 0;
    }
    
    .navbar-toggle {
        display: block;
        z-index: 1001;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-date {
        left: 70px;
        top: -30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-date {
        right: auto;
        left: 70px;
    }
}

@media (max-width: 768px) {
    .couple {
        flex-direction: column;
    }
    
    .heart {
        margin: 1rem 0;
    }
    
    .person {
        flex: 0 0 100%;
    }
    
    .event-card {
        flex: 1 1 100%;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content .date {
        font-size: 1.2rem;
    }
    
    .hero-content .tagline {
        font-size: 1.5rem;
    }
    
    .countdown-item {
        margin: 0 1rem;
        min-width: 80px;
    }
    
    .countdown-item span {
        font-size: 2rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-item {
        height: 150px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .countdown-item {
        min-width: 60px;
        margin: 0 0.5rem;
    }
    
    .countdown-item span {
        font-size: 1.5rem;
    }
    
    .countdown-item p {
        font-size: 0.8rem;
    }
}