/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Masculine Lilac Color Palette */
:root {
    --primary-lilac: #8B7A9B;
    --light-lilac: #B8A9C7;
    --dark-lilac: #6B5B7B;
    --accent-lilac: #9B8AAB;
    --soft-lilac: #E8E0ED;
    --deep-lilac: #5A4A6A;
    --warm-lilac: #A89BB8;
    --cool-lilac: #7A6B8A;
    --white: #FFFFFF;
    --light-gray: #F8F7FA;
    --medium-gray: #D0C7D5;
    --text-dark: #2C2C2C;
    --text-light: #5A4A6A;
    --gold-accent: #D4AF37;
    --bronze-accent: #CD7F32;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--deep-lilac);
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(200, 162, 200, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-lilac);
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-lilac);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-lilac);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--deep-lilac);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--soft-lilac) 0%, var(--light-gray) 50%, var(--medium-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--deep-lilac);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-lilac);
    margin-bottom: 0.5rem;
}

.hero-dates {
    font-size: 1.2rem;
    color: var(--cool-lilac);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-quote {
    font-size: 1.3rem;
    color: var(--deep-lilac);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(90, 74, 106, 0.2);
    border: 4px solid var(--deep-lilac);
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--deep-lilac);
    margin-bottom: 1rem;
}

.image-placeholder p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--deep-lilac);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--deep-lilac);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-lilac);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Funeral Section */
.funeral-section {
    padding: 6rem 0;
    background: var(--white);
}

.funeral-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.funeral-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(90, 74, 106, 0.1);
    border: 1px solid var(--medium-gray);
    border-left: 4px solid var(--accent-lilac);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.funeral-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(90, 74, 106, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-lilac);
}

.card-header i {
    font-size: 1.5rem;
    color: var(--accent-lilac);
    margin-right: 1rem;
}

.card-header h3 {
    font-size: 1.3rem;
    color: var(--deep-lilac);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--accent-lilac);
    margin-right: 1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.info-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(90, 74, 106, 0.2);
    overflow: hidden;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-lilac);
}

.slide-image .image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    background: var(--white);
    border: 3px solid var(--deep-lilac);
    box-shadow: 0 5px 20px rgba(90, 74, 106, 0.2);
}

.slide-image .image-placeholder i {
    font-size: 4rem;
    color: var(--deep-lilac);
    margin-bottom: 1rem;
}

.slide-caption {
    background: var(--deep-lilac);
    color: var(--white);
    padding: 1.5rem 2rem;
    text-align: center;
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(90, 74, 106, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-btn:hover {
    background: var(--deep-lilac);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Gallery Actions */
.gallery-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.gallery-actions .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-actions .folder-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-folder-link {
    text-align: center;
    margin-bottom: 3rem;
}

.folder-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--deep-lilac);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(90, 74, 106, 0.3);
}

.folder-link:hover {
    background: var(--dark-lilac);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 74, 106, 0.4);
}

.folder-link i {
    font-size: 1.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(90, 74, 106, 0.15);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item .image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--deep-lilac);
}

.gallery-item .image-placeholder i {
    font-size: 3rem;
    color: var(--deep-lilac);
    margin-bottom: 0.5rem;
}

.gallery-item .image-placeholder p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Stories Section */
.stories-section {
    padding: 6rem 0;
    background: var(--white);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.story-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(90, 74, 106, 0.1);
    border-left: 4px solid var(--accent-lilac);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(90, 74, 106, 0.15);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.story-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.story-author i {
    color: var(--accent-lilac);
    font-size: 1.2rem;
}

.story-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.story-content h3 {
    color: var(--deep-lilac);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.story-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.add-story {
    text-align: center;
    background: var(--soft-lilac);
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.add-story h3 {
    color: var(--deep-lilac);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.add-story p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--deep-lilac);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(90, 74, 106, 0.3);
}

.btn-primary:hover {
    background: var(--dark-lilac);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 74, 106, 0.4);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--soft-lilac);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(90, 74, 106, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--accent-lilac);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--deep-lilac);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--deep-lilac);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    color: var(--light-lilac);
}

.footer-icons {
    display: flex;
    gap: 1rem;
}

.footer-icons i {
    font-size: 1.2rem;
    color: var(--light-lilac);
    transition: color 0.3s ease;
}

.footer-icons i:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(200, 162, 200, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    .funeral-content,
    .stories-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
    }

    .funeral-card,
    .story-card,
    .contact-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Smooth scrolling and animations */
@media (prefers-reduced-motion: no-preference) {
    .funeral-card,
    .story-card,
    .contact-card,
    .gallery-item {
        animation: fadeInUp 0.6s ease-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Photos Page Styles */
.photos-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--soft-lilac) 0%, var(--light-gray) 50%, var(--medium-gray) 100%);
    text-align: center;
}

.photos-title {
    font-size: 3rem;
    color: var(--deep-lilac);
    margin-bottom: 1rem;
}

.photos-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.photos-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--deep-lilac);
    font-weight: 600;
}

.stat-item i {
    font-size: 1.2rem;
    color: var(--accent-lilac);
}

/* Photo Filters */
.photo-filters {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--medium-gray);
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--medium-gray);
    background: var(--white);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--deep-lilac);
    color: var(--white);
    border-color: var(--deep-lilac);
}

/* All Photos Section */
.all-photos-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.photo-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(90, 74, 106, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(90, 74, 106, 0.2);
}

.photo-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.photo-container .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--soft-lilac);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--deep-lilac);
}

.photo-container .image-placeholder i {
    font-size: 3rem;
    color: var(--deep-lilac);
    margin-bottom: 1rem;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(90, 74, 106, 0.8);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.photo-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.photo-view-btn {
    align-self: flex-end;
    background: var(--white);
    color: var(--deep-lilac);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.photo-view-btn:hover {
    background: var(--accent-lilac);
    color: var(--white);
    transform: scale(1.1);
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 800px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    aspect-ratio: 4/3;
    background: var(--soft-lilac);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image .image-placeholder {
    width: 300px;
    height: 200px;
    background: var(--white);
    border: 3px solid var(--deep-lilac);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-image .image-placeholder i {
    font-size: 3rem;
    color: var(--deep-lilac);
    margin-bottom: 1rem;
}

.modal-info {
    padding: 2rem;
    text-align: center;
}

.modal-info h3 {
    color: var(--deep-lilac);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.modal-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.modal-btn {
    background: rgba(90, 74, 106, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: all;
}

.modal-btn:hover {
    background: var(--deep-lilac);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-indicator,
    .folder-link,
    .btn-primary {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section-title::after {
        display: none;
    }

    * {
        color: #000 !important;
        background: #fff !important;
    }
}
