/* Global Styles */
:root {
    --bg-color: #2e050f; /* Deep Burgundy */
    --text-color: #ffe6ea; /* Soft Pinkish White */
    --gold: #ffd700;
    --accent: #ff0040; /* Crimson Red */
    --card-bg: rgba(50, 10, 20, 0.6); /* Semi-transparent reddish dark */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Background Canvas */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
/* Navigation Removed */

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    animation: fadeIn 2s ease-in-out;
}

.pre-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: var(--accent);
}

.main-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.main-title .highlight {
    color: var(--gold);
    display: inline-block; /* Allows transform */
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Typography Utilities */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.underline {
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    margin: 0 auto;
}

section {
    padding: 100px 20px;
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--gold);
}

.about-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Bond Section */
.bond-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.bond-text {
    flex: 1;
    min-width: 300px;
}

.highlight-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-style: italic;
}

.bond-list {
    list-style: none;
    margin-top: 20px;
}

.bond-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.bond-list i {
    color: var(--accent);
    margin-right: 15px;
}

.bond-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.bond-visual i {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.05); /* Subtle background icon */
    animation: pulse 3s infinite;
}

/* Spotlight Section */
#spotlight {
    padding: 60px 20px;
    text-align: center;
}

.spotlight-frame {
    position: relative;
    display: inline-block;
    padding: 10px;
    border-radius: 50%; /* Circular frame */
    background: linear-gradient(45deg, var(--gold), var(--accent));
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
    animation: float 6s ease-in-out infinite;
}

.spotlight-img {
    width: 380px;
    height: 380px;
    max-width: 80vw;
    max-height: 80vw;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-color);
    display: block;
}

.spotlight-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0) 70%);
    z-index: -1;
    animation: pulseGlow 3s infinite;
}

.spotlight-caption {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-top: 15px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1; /* Square ratio for neat grid */
    background: var(--card-bg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0,0,0,0.3); /* Darker background for letterboxing */
    transition: transform 0.5s ease;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overly */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.gallery-item .text {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Wishes Section */
.wishes-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 64, 129, 0.1));
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Neon glow effect */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1); 
    position: relative;
    z-index: 10;
}

.wishes-card h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.wishes-card p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

button {
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    background: var(--gold);
    color: var(--bg-color);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    background: #ffecb3;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: #050510;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.1); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.05; }
}

/* Scroll Animation Classes (Applied by JS) */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    /* Nav styles removed */
    
    .main-title {
        font-size: 2.5rem; /* Smaller for mobile */
    }

    .hero-content {
        padding: 0 10px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .bond-content {
        flex-direction: column;
    }

    .wish-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    button {
        width: 100%;
        margin: 0 !important; /* Override inline margin */
    }
}

@media screen and (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .pre-title {
        font-size: 1rem;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        padding-right: 10px;
    }
    
    .timeline-item.left .point, .timeline-item.right .point {
        left: 10px;
    }

    .timeline-item .content {
        padding: 15px;
    }
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 215, 0, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

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

.timeline-item .content {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
}

.timeline-item:hover .content {
    transform: scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.timeline-item .point {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 3px solid var(--gold);
    border-radius: 50%;
    top: 25px;
    z-index: 1;
    box-shadow: 0 0 10px var(--gold);
    transition: background-color 0.3s;
}

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

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

.timeline-item:hover .point {
    background-color: var(--gold);
    box-shadow: 0 0 20px var(--gold), 0 0 40px var(--accent);
}

.timeline-item h3 {
    color: var(--gold);
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.timeline-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Connectors */
.timeline-item.left .content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: -10px;
    border: medium solid rgba(255, 255, 255, 0.05);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.05);
}

.timeline-item.right .content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: -10px;
    border: medium solid rgba(255, 255, 255, 0.05);
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(255, 255, 255, 0.05) transparent transparent;
}

/* Mobile Responsiveness for Timeline */
@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .timeline-item.left .point, .timeline-item.right .point {
        left: 21px;
    }
    
    .timeline-item.left .content::before, .timeline-item.right .content::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(255, 255, 255, 0.05) transparent transparent;
    }
}

/* Lanterns */
#lantern-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
    overflow: hidden;
}

.lantern {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 60px;
    background: linear-gradient(to bottom, #ff5e3a, #ff2a68);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 94, 58, 0.6);
    animation: floatUp 8s linear forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem; /* Icon inside */
}

.lantern::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 20px;
    height: 5px;
    background: #ffecb3;
    border-radius: 2px;
}

.lantern-message {
    position: absolute;
    width: 250px;
    text-align: center;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    opacity: 0;
    animation: fadeInMessage 1s 1s forwards;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.5); /* Readable bg */
    padding: 5px;
    border-radius: 5px;
    pointer-events: auto; /* Allow hovering? maybe not needed */
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(5deg); opacity: 0.8; }
}

@keyframes fadeInMessage {
    to { opacity: 1; }
}

/* Sparkle Trail */
.sparkle-trail {
    position: absolute;
    font-size: 1.2rem;
    pointer-events: none;
    animation: fadeOutUp 1s ease-out forwards;
    z-index: 9999;
    color: var(--gold); /* Add gold color for sparkles */
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

/* Open When Letters */
.letters-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.envelope-container {
    perspective: 1000px;
    cursor: pointer;
}

.envelope {
    position: relative;
    width: 200px;
    height: 140px;
    background: #ffecb3;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Needed for letter popping out */
}

.envelope:hover {
    transform: scale(1.05);
}

.envelope .flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-top: 70px solid #ffd700; /* Gold Flap */
    transform-origin: top;
    transition: transform 0.5s calc(0.3s), z-index 0.1s; /* Delay to allow letter to return */
    z-index: 5;
}

.envelope.open .flap {
    transform: rotateX(180deg);
    z-index: 1; /* Move flap behind letter when open */
    transition: transform 0.5s, z-index 0.1s 0.2s;
}

.envelope .body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffecb3; /* Match envelope */
    border-radius: 0 0 10px 10px;
    border-top: 10px solid #e0c060; /* Subtle depth */
    z-index: 4;
    clip-path: polygon(0 0, 50% 40%, 100% 0, 100% 100%, 0 100%); /* Triangle cutout illusion */ 
    background: linear-gradient(#ffecb3, #ffe082); /* Gradient for depth */
}

/* Pseudo-element for the V shape of the envelope body - simplified approach */
/* Actually simpler: just trust the letter behind. */

.envelope .front-text {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: #5d4037;
    z-index: 6;
    pointer-events: none;
}

.envelope .letter {
    position: absolute;
    top: 10px; /* Hidden inside */
    width: 180px;
    height: 140px;
    background: white;
    padding: 15px;
    font-size: 0.85rem;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.6s 0.2s; /* Delay for flap opening */
    z-index: 2;
    display: flex;
    align-items: center;
    text-align: center;
    border-radius: 5px;
}

.envelope.open .letter {
    transform: translateY(-80px); /* Pop up */
    z-index: 6; /* Above everything */
}


/* Interactive Cake */
.cake-container {
    position: relative;
    width: 200px;
    height: 150px;
    margin: 20px auto;
    cursor: pointer;
}

.cake {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 100px;
    background: #f8bbd0;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 0 #f48fb1, 0 8px 0 #f06292;
}

.cake::before {
    content: '';
    position: absolute;
    top: -20px; /* Icing dripping */
    left: 0;
    width: 100%;
    height: 30px;
    background: #fff;
    border-radius: 10px 10px 5px 5px;
}

.candle {
    position: absolute;
    top: -30px;
    width: 15px;
    height: 40px;
    background: linear-gradient(to bottom, #fff, #ffeb3b);
    border-radius: 3px;
    left: 50%;
    transform: translateX(-50%);
}

/* Three Candles */
.candle:nth-child(1) { left: 30%; }
.candle:nth-child(2) { left: 50%; top: -35px; } /* Middle taller */
.candle:nth-child(3) { left: 70%; }

.flame {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 15px;
    background: #ff9800;
    border-radius: 50% 50% 20% 20%;
    animation: flicker 0.5s infinite;
    box-shadow: 0 0 10px #ffeb3b;
    transition: opacity 0.5s;
}

.flame.out {
    opacity: 0;
}

.cake-msg {
    position: absolute;
    top: -80px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: var(--gold);
    opacity: 0;
    transition: opacity 1s;
    font-size: 1.2rem;
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1) rotate(2deg); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Floating Music Player */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-color);
    border: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
    padding: 0; /* Reset */
}

.music-btn.playing {
    animation: rotate 5s linear infinite;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 0, 64, 0.3);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Wish Form Styles */
.wish-form {
    background: rgba(255, 255, 255, 0.05); /* Glassmorphism container */
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.wish-form h3 {
    margin-bottom: 15px;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.wish-form textarea {
    width: 100%;
    height: 100px;
    margin-top: 10px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: var(--font-body); /* Ensure font match */
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.wish-form textarea:focus {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
}

.wish-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#send-email-btn {
    /* Margin removed as it's handled by the container gap now */
    padding: 12px 35px;
    background: linear-gradient(45deg, var(--gold), #ff8f00);
    color: #2c0e18; /* Dark text for contrast on gold */
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
}

#send-email-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

#send-email-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#wish-status {
    margin-top: 15px;
    font-size: 0.95rem;
    min-height: 20px;
    font-weight: 500;
}

.music-btn.playing {
    animation: rotate 5s linear infinite;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 0, 64, 0.3);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* Typography Scaling */
    .main-title {
        font-size: 3rem; /* Smaller hero title */
    }

    .pre-title {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Container Adjustments */
    .container {
        padding: 0 15px; /* Tighter padding */
    }

    section {
        padding: 60px 0;
    }

    /* Spotlight Section */
    .spotlight-img {
        width: 250px; /* Reset to smaller size on mobile */
        height: 250px;
    }

    .spotlight-caption {
        font-size: 1.5rem;
    }

    /* About & Gallery Grids */
    .about-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    /* Timeline Fixes */
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }
    
    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after, .timeline-item.right::after {
        left: 21px;
    }
    
    .timeline-item.left::before, .timeline-item.right::before {
        left: 60px;
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(255, 255, 255, 0.05) transparent transparent;
    }

    .timeline-item.left .point, .timeline-item.right .point {
        left: 21px;
    }

    /* Wish Section & Form */
    .wishes-card {
        padding: 20px 15px;
    }

    .wish-form {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
        margin-top: 20px;
    }

    .wish-form textarea {
        font-size: 16px; /* Prevents auto-zoom on iOS */
        padding: 10px;
    }

    #send-email-btn {
        width: auto; /* Allow it to be natural width or max-width */
        max-width: 100%;
        padding: 10px 20px; /* Reduced padding */
        font-size: 0.95rem; /* Slightly smaller font */
        margin-top: 15px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .action-buttons {
        gap: 10px;
    }

    .action-buttons button {
        width: auto; /* Not full width */
        min-width: 200px; /* Minimum tappable size */
        margin: 5px 0;
    }

    /* Music Player Position */
    .music-player {
        position: fixed !important;
        bottom: 20px; 
        bottom: calc(20px + env(safe-area-inset-bottom)); /* Adjust for iPhone home bar */
        right: 20px;
        z-index: 2147483647; 
        display: block !important;
    }
    
    .music-btn {
        width: 55px; /* Slightly larger touch target */
        height: 55px;
        font-size: 1.3rem;
        background: rgba(255, 215, 0, 1); /* Fully opaque gold */
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    
    /* Open When Letters */
    .letters-grid {
        gap: 20px;
    }
    
    .envelope {
        width: 100%; /* Full width cards on mobile */
        max-width: 280px;
    }
}
