:root {
    --color-cyan: #00D1FF;
    --color-mint: #ADFFED;
    --color-lime: #E4FF36;
    --color-purple: #E077FF;
    --color-dark: #1a1a1a;
    --color-gray: #666;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

/* Hero Section */
.memory-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(173, 255, 237, 0.1), transparent 70%);
}

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
}

.memorial-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.memorial-icon svg {
    width: 100%;
    height: 100%;
}

.memory-hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.memorial-divider {
    margin-top: 40px;
    font-size: 2rem;
    color: var(--color-mint);
    opacity: 0.7;
}

/* Memorial Section */
.memorial-section {
    padding: 100px 20px;
    background: white;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Person Info */
.person-info {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(173, 255, 237, 0.05), rgba(228, 255, 54, 0.05));
    border-radius: 20px;
    border-left: 5px solid var(--color-mint);
}

.person-photo-main {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(173, 255, 237, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.person-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.person-details {
    flex: 1;
}

.person-name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.person-years {
    font-size: 1.5rem;
    color: var(--color-gray);
    margin-bottom: 10px;
    font-style: italic;
}

.person-role {
    font-size: 1.2rem;
    color: var(--color-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tribute Text */
.tribute-text {
    position: relative;
    padding: 60px 80px;
    margin-bottom: 80px;
    background: #f8f9fa;
    border-radius: 20px;
}

.quote-mark {
    position: absolute;
    font-size: 8rem;
    color: var(--color-mint);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-mark {
    top: 20px;
    left: 20px;
}

.quote-mark.closing {
    bottom: -20px;
    right: 20px;
    top: auto;
    left: auto;
    transform: rotate(180deg);
}

.tribute-content {
    position: relative;
    z-index: 1;
}

.tribute-content p {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--color-dark);
    margin-bottom: 25px;
    text-align: justify;
}

.tribute-content p:last-child {
    margin-bottom: 0;
}

/* Carousel */
.memories-carousel {
    margin-bottom: 80px;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-container {
    position: relative;
    margin-bottom: 30px;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 40px 30px 20px;
    font-size: 1.1rem;
    font-style: italic;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--color-cyan);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-gray);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active {
    background: var(--color-cyan);
    border-color: var(--color-cyan);
    transform: scale(1.3);
}

.indicator:hover {
    border-color: var(--color-cyan);
}

/* Legacy Section */
.legacy-section {
    margin-bottom: 60px;
}

.legacy-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legacy-content {
    display: grid;
    gap: 30px;
}

.legacy-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.05), rgba(173, 255, 237, 0.05));
    border-radius: 15px;
    border-left: 4px solid var(--color-cyan);
    transition: all 0.3s ease;
}

.legacy-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 209, 255, 0.15);
}

.legacy-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-cyan);
}

.legacy-item p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-dark);
    margin: 0;
}

/* Back Button */
.back-button-container {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--color-dark);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--color-cyan);
    color: var(--color-dark);
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .memory-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .person-info {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .person-photo-main {
        width: 200px;
        height: 200px;
    }
    
    .person-name {
        font-size: 2rem;
    }
    
    .person-years {
        font-size: 1.2rem;
    }
    
    .tribute-text {
        padding: 40px 30px;
    }
    
    .tribute-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .carousel-slide img {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .legacy-section h3,
    .carousel-title {
        font-size: 2rem;
    }
}