/* 
 * Family Event: Garden Day
 * Theme: Soft Green, Cream, Light Yellow, Floral Accents
 */

 :root {
    --primary-color: #8BA888; /* Soft green */
    --primary-dark: #6C8A69;
    --secondary-color: #FDECA6; /* Light yellow */
    --accent-color: #E2A76F; /* Soft earthy brown/orange */
    --bg-cream: #F9F6F0; /* Cream background */
    --text-dark: #2C3E2D; /* Dark green/brown for text */
    --text-light: #5A6D5B; /* Lighter text */
    --white: #FFFFFF;
    
    --font-heading: 'Lora', serif; /* Warm, premium serif for headings */
    --font-body: 'Outfit', sans-serif; /* Clean, modern sans-serif */
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 30px rgba(139, 168, 136, 0.15);
    --shadow-hover: 0 15px 40px rgba(139, 168, 136, 0.25);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

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

img {
    max-width: 100%;
    height: auto;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-cream {
    background-color: var(--bg-cream);
}

/* Utils */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white p { color: rgba(255, 255, 255, 0.8); }
.mt-4 { margin-top: 2rem; }
.text-red { color: #ff6b6b; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(139, 168, 136, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(139, 168, 136, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white-solid {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-white-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    color: var(--primary-dark);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-cream);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: var(--primary-color);
}

.loader-content i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.loader-content span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

nav.scrolled .logo {
    color: var(--primary-dark);
}

.logo i {
    color: var(--secondary-color);
}

nav.scrolled .logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav.scrolled .nav-links a:not(.nav-btn)::after {
    background-color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--secondary-color);
    color: var(--text-dark) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-btn:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

nav.scrolled .nav-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

nav.scrolled .nav-btn:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
}

nav.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--bg-cream);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax */
    background-image: url('https://images.unsplash.com/photo-1511895426328-dc8714191300?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 62, 45, 0.4), rgba(139, 168, 136, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    color: var(--white);
    margin-top: 50px;
}

.hero-content h3 {
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    padding: 0 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Floral Accents (Images or SVG data uri) */
.floral-accent {
    position: absolute;
    width: 120px;
    opacity: 0.8;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

.floral-accent.top-left {
    top: -50px;
    left: -50px;
    transform: rotate(45deg);
}

.floral-accent.bottom-right {
    bottom: -60px;
    right: -40px;
    transform: rotate(-135deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator i {
    font-size: 2.5rem;
    color: var(--white);
    opacity: 0.8;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.section-header > p {
    font-size: 1.1rem;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    color: var(--primary-color);
}

.divider::before, .divider::after {
    content: '';
    height: 1px;
    width: 50px;
    background-color: var(--primary-color);
    margin: 0 15px;
    opacity: 0.5;
}

/* Details Cards */
.details-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.detail-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 168, 136, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.detail-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2.5rem;
    transition: var(--transition);
}

.detail-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(10deg);
}

.detail-card h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.highlight-info {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.sub-info {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Message Section */
.message-section {
    padding: 120px 0;
    background-image: url('https://images.unsplash.com/photo-1476887556111-e666aaba2923?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.message-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(249, 246, 240, 0.95);
}

.message-box {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    text-align: center;
    z-index: 2;
}

.quote-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.5;
    margin-bottom: 20px;
}

.message-box h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.message-box p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 30px;
}

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

.leaf {
    position: absolute;
    width: 80px;
    opacity: 0.15;
    filter: invert(53%) sepia(8%) saturate(1450%) hue-rotate(74deg) brightness(97%) contrast(85%); /* approximate primary color */
}

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

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

/* Timeline / Tentative */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(139, 168, 136, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--primary-color);
    border: 4px solid var(--bg-cream);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-time {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-content {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.timeline-content h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Countdown */
.countdown-section {
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
    text-align: center;
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(58, 90, 64, 0.85); /* Dark green overlay for high contrast */
}

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

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.time-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    padding: 30px 20px;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.time-box span {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.time-box p {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
}

/* Gallery GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(44, 62, 45, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Location */
.location-wrapper {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-container {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 50px 40px;
}

.contact-info h2 {
    color: var(--primary-dark);
}

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-details strong {
    display: block;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Action Section */
.action-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    text-align: center;
    color: var(--white);
}

.action-content h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.action-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-logo {
    justify-content: center;
    margin-bottom: 15px;
    font-size: 2rem;
}

.footer-links {
    margin: 25px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    font-size: 0.9rem;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px !important;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .message-box {
        padding: 40px 20px;
    }
    
    .countdown-wrapper {
        gap: 15px;
    }
    
    .time-box {
        min-width: 100px;
        padding: 20px 10px;
    }
    
    .time-box span {
        font-size: 2.2rem;
    }
    
    .location-wrapper {
        flex-direction: column;
    }
    
    .contact-info {
        padding: 40px 20px;
    }
}
