/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Dancing+Script:wght@400;700&display=swap');

:root {
    --primary-color: #dc143c;
    --primary-light: #ff6b81;
    --primary-dark: #b30000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #1a1a1a;
    --background-light: #f5f5f5;
    --accent-gold: #d4af37;
    --accent-silver: #c0c0c0;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Dancing Script', cursive;
    --transition-slow: all 0.5s ease;
    --transition-medium: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: var(--transition-medium);
}

.logo {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-medium);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.audio-control button {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.audio-control button:hover {
    color: var(--primary-color);
}

/* Page Layout */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.page-title {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Homepage Styles */
#home {
    padding: 0;
    justify-content: flex-end;
    text-align: center;
    color: var(--text-light);
}

.bg-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#bg-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.7)
    );
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
    /* Add extra padding to fix header overlap issue */
    padding-top: 4rem;
}

.family-name {
    font-family: var(--font-script);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.family-tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.photo-frame {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: var(--border-radius);
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--box-shadow);
}

.photo-frame img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 4px);
    display: block;
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    pointer-events: none;
}

.welcome-message {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Family Members Styles */
#members {
    background-color: var(--background-light);
    position: relative;
    overflow: hidden;
}

/* Add floating bubbles background for Members page */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    top: 0;
    left: 0;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.5;
    animation: rise 15s infinite ease-in;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 80px;
    height: 80px;
    left: 50%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 55%;
    animation-duration: 6s;
    animation-delay: 1s;
}

.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 65%;
    animation-duration: 8s;
    animation-delay: 3s;
}

.bubble:nth-child(7) {
    width: 90px;
    height: 90px;
    left: 70%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    width: 25px;
    height: 25px;
    left: 80%;
    animation-duration: 6s;
    animation-delay: 2s;
}

.bubble:nth-child(9) {
    width: 15px;
    height: 15px;
    left: 90%;
    animation-duration: 9s;
    animation-delay: 4s;
}

.bubble:nth-child(10) {
    width: 60px;
    height: 60px;
    left: 80%;
    animation-duration: 10s;
    animation-delay: 4s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        bottom: 1080px;
        transform: translateX(-200px);
    }
}

.members-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.member-card {
    background-color: rgb(235, 235, 156);
    border: 4px solid;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition-medium);
    /* Reduce height for better mobile display */
    max-height: 500px;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.member-photo {
    height: 382px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.member-card:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.member-info h4 {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.member-quote {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Journey Timeline Styles */
#journey {
    background-color: var(--background-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Add starfield background for Journey page */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

#journey .page-title {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    z-index: 1;
}

.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
    margin-bottom: 2rem;
}

.timeline-item.left {
    left: 0;
    padding-right: 3rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 3rem;
}

.timeline-date {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 0;
}

.timeline-item.left .timeline-date {
    right: -30px;
}

.timeline-item.right .timeline-date {
    left: -30px;
}

.timeline-content {
    position: relative;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-content img {
    width: 100%;
    height: 200px;
    border: 5px solid black;
    object-fit: contain; /* Change to contain to prevent cropping */
    border-radius: calc(var(--border-radius) - 4px);
    margin-bottom: 1rem;
    background-color: #f0f0f0; /* Add background color */
}

.timeline-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.timeline-item.left .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: rotate(45deg);
}

.timeline-item.right .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: rotate(45deg);
}

/* Special Place Styles */
#special-place {
    background-color: var(--background-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Add falling leaves for Special Place */
.leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.leaf {
    position: absolute;
    top: -50px;
    background-color: rgba(201, 137, 16, 0.3);
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    animation: fall 8s linear infinite;
}

@keyframes fall {
    0% {
        top: -50px;
        transform: rotate(45deg) translateX(0);
    }
    25% {
        transform: rotate(90deg) translateX(25px);
    }
    50% {
        transform: rotate(135deg) translateX(0);
    }
    75% {
        transform: rotate(180deg) translateX(-25px);
    }
    100% {
        top: 110%;
        transform: rotate(225deg) translateX(0);
    }
}

.special-place-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.special-place-image {
    width: 100%;
    max-width: 600px;
    border: 5px solid black;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.special-place-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.special-place-image:hover img {
    transform: scale(1.03);
}

.special-place-description {
    max-width: 800px;
}

.special-place-description h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.special-place-description p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.special-moments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.moment {
    background-color: white;
    border: 5px solid black;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition-medium);
}

.moment:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.moment i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.moment p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Elders Audio Styles */
#elders {
    background-color: var(--background-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Add music notes floating effect for Elders page */
.notes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.note {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    animation: float 5s linear infinite;
    z-index: 0;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-500px) rotate(360deg);
        opacity: 0;
    }
}

#elders .page-title {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.elders-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.elder-photo {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    margin-bottom: 2rem;
}

.elder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elder-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    font-family: var(--font-script);
    font-size: 1.3rem;
    text-align: center;
}

.audio-player {
    width: 100%;
    max-width: 700px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.player-message {
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.audio-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.audio-track {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: calc(var(--border-radius) - 2px);
    padding: 1rem;
}

.track-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.audio-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.play-btn:hover {
    background-color: var(--primary-dark);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.1s linear;
}

.timestamp {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    min-width: 70px;
    text-align: right;
}

.audio-message {
    text-align: center;
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Memories Styles */
#memories {
    background-color: var(--background-light);
    position: relative;
    overflow: hidden;
}

/* Add flying polaroid photos animation for Memories page */
.polaroids {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.polaroid {
    position: absolute;
    width: 100px;
    height: 120px;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: rotate(10deg);
    animation: float-polaroid 30s linear infinite;
    opacity: 0.6;
}

.polaroid::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    top: 70%;
    background-color: #f5f5f5;
}

@keyframes float-polaroid {
    0% {
        left: -100px;
        top: 20%;
        transform: rotate(10deg);
    }
    100% {
        left: 110%;
        top: 60%;
        transform: rotate(-10deg);
    }
}

.memories-container {
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.memory-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.memory-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.memory-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-medium);
}

.memory-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.memory-image {
    height: 200px;
    overflow: hidden;
}

.memory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.memory-item:hover .memory-image img {
    transform: scale(1.05);
}

.memory-description {
    padding: 1.5rem;
}

.memory-description h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.memory-description p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.personal-message {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    position: relative;
}

.personal-message::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 10px;
}

.message-title {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.message-content {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.message-signature {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Thank You Styles */
#thank-you {
    background-color: var(--background-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Keep the original heart animation for Thank You page */
.hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 0;
}

.thank-you-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.thank-you-header {
    margin-bottom: 2rem;
}

.thank-you-icon {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.thank-you-title {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--text-light);
}

.thank-you-message {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.thank-you-message p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.family-signature {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 1rem;
}

.social-sharing {
    margin-top: 2rem;
}

.social-sharing p {
    margin-bottom: 1rem;
}

.contact-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.contact-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

.creator-info {
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .family-name {
        font-size: 3.5rem;
    }
    
    .family-tagline {
        font-size: 1.3rem;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .family-name {
        font-size: 3rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-date {
        left: 0;
    }
    
    .timeline-item.left .timeline-content::after,
    .timeline-item.right .timeline-content::after {
        left: -10px;
        top: 20px;
    }
    
    .special-place-container {
        flex-direction: column;
    }
    
    .special-moments {
        grid-template-columns: 1fr;
    }
    
    .audio-wrapper {
        flex-wrap: wrap;
    }
    
    .timestamp {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .family-name {
        font-size: 2.5rem;
    }
    
    .family-tagline {
        font-size: 1.1rem;
    }
    
    .welcome-message {
        font-size: 1.3rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .photo-frame {
        width: 95%;
    }
    
    .members-container {
        grid-template-columns: 1fr;
    }
    
    .thank-you-title {
        font-size: 2.5rem;
    }
    
    .thank-you-message p {
        font-size: 1rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Visual Effects */
.photo-frame {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-frame:hover {
    transform: scale(1.02);
}

.timeline-date {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-date:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
}

.elder-photo {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.elder-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.8);
}