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

:root {
    --primary-color: #d4a5a5;
    --secondary-color: #9a7197;
    --accent-color: #f4d35e;
    --bg-gradient-1: #fff5f7;
    --bg-gradient-2: #ffeef3;
    --text-dark: #2d2d2d;
    --text-light: #6d6d6d;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
}

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

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInDown 1s ease-out;
}

.flower-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.personal-message {
    background: var(--white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.personal-message h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.opening-line {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Milestone Section */
.milestone-section {
    margin: 40px 0;
}

.milestone-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.milestone-card.active {
    border: 2px solid var(--primary-color);
}

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

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.milestone-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark);
}

.milestone-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Target Date Display */
.target-date-display {
    text-align: center;
    margin: 30px 0 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(244, 211, 94, 0.15), rgba(212, 165, 165, 0.15));
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
}

.target-date-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.target-date {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.target-date .day-name {
    color: var(--secondary-color);
    font-size: 1.5rem;
    display: block;
    margin-top: 5px;
}

/* Countdown Display */
.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    min-width: 100px;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.countdown-separator {
    font-size: 3rem;
    color: var(--secondary-color);
    font-weight: 300;
}

/* Target Date Display */
.target-date-display {
    text-align: center;
    margin: 35px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(244, 211, 94, 0.15), rgba(212, 165, 165, 0.15));
    border-radius: 15px;
    border: 2px solid rgba(212, 165, 165, 0.3);
}

.target-date-label {
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.target-date {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
    line-height: 1.3;
}

.target-date-subtext {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 8px;
}

/* Progress Bar */
.progress-container {
    margin: 40px 0;
    position: relative;
}

.progress-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 10px;
}

.progress-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
    z-index: 1;
}

.progress-text {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Inspiration Box */
.inspiration-box {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6f0 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    border-left: 4px solid var(--accent-color);
}

.inspiration-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: heartbeat 2s ease-in-out infinite;
}

.inspiration-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-style: italic;
    font-weight: 400;
}

/* Upcoming Milestones */
.upcoming-milestones {
    margin: 60px 0;
    animation: fadeInUp 1.2s ease-out;
}

.upcoming-milestones h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.milestone-card.upcoming {
    background: var(--white);
    padding: 30px;
    text-align: center;
    cursor: default;
}

.milestone-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.milestone-card.upcoming h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.milestone-date {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 15px;
}

.milestone-description {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.6;
}

/* Reflection Section */
.reflection-section {
    margin: 60px 0;
    animation: fadeInUp 1.4s ease-out;
}

.reflection-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.reflection-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.reflection-quote {
    font-size: 1.3rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    font-weight: 300;
}

.date-display {
    font-size: 1rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Settings */
.settings-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    z-index: 100;
}

.settings-toggle:hover {
    transform: scale(1.1) rotate(90deg);
}

.settings-toggle i {
    color: var(--white);
    font-size: 1.5rem;
}

.settings-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-hover);
    width: 350px;
    max-width: calc(100vw - 60px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.settings-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-panel h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.settings-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.settings-panel input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.settings-panel button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-bottom: 10px;
}

.settings-panel button:hover {
    transform: translateY(-2px);
}

.settings-panel button.cancel-btn {
    background: #e0e0e0;
    color: var(--text-dark);
}

/* Gallery Section */
.gallery-section, .video-section {
    margin: 60px 0;
    animation: fadeInUp 1.6s ease-out;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-style: italic;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.photo-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.photo-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-caption {
    padding: 20px;
    text-align: center;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(to bottom, transparent, rgba(244, 211, 94, 0.1));
}

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.video-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-card video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.video-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.video-placeholder {
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.1), rgba(154, 113, 151, 0.1));
    border: 2px dashed var(--primary-color);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    color: var(--text-light);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.7;
}

.video-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.video-placeholder small {
    font-size: 0.9rem;
    font-style: italic;
}

.admin-note {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    display: none; /* Hidden by default, can be shown for admin */
}

.admin-note code {
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(212, 165, 165, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.2rem;
    text-align: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    max-width: 80%;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 165, 165, 0.8);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 20px 25px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(212, 165, 165, 1);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .personal-message {
        padding: 30px 25px;
    }

    .personal-message h1 {
        font-size: 2.5rem;
    }

    .opening-line {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .target-date {
        font-size: 1.5rem;
    }

    .target-date .day-name {
        font-size: 1.2rem;
    }

    .countdown-number {
        font-size: 2.5rem;
        min-width: 70px;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .countdown-separator {
        font-size: 2rem;
    }

    .target-date {
        font-size: 1.6rem;
    }

    .target-date-display {
        padding: 20px;
        margin: 25px 0;
    }

    .milestone-card {
        padding: 25px;
    }

    .inspiration-text {
        font-size: 1rem;
    }

    .milestone-grid {
        grid-template-columns: 1fr;
    }

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

    .photo-grid, .video-grid {
        grid-template-columns: 1fr;
    }

    .photo-card img {
        height: 300px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

    .lightbox-nav {
        padding: 15px 20px;
        font-size: 1.5rem;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 20px 10px;
    }

    .personal-message {
        padding: 25px 20px;
    }

    .personal-message h1 {
        font-size: 2rem;
    }

    .opening-line {
        font-size: 1.15rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .target-date-display {
        padding: 15px;
    }

    .target-date-label {
        font-size: 0.85rem;
    }

    .target-date {
        font-size: 1.3rem;
    }

    .target-date .day-name {
        font-size: 1rem;
    }

    .countdown-display {
        gap: 10px;
    }

    .countdown-number {
        font-size: 2rem;
        min-width: 50px;
    }

    .target-date {
        font-size: 1.3rem;
    }

    .target-date-display {
        padding: 18px 15px;
        margin: 20px 0;
    }

    .target-date-label,
    .target-date-subtext {
        font-size: 0.85rem;
    }

    .settings-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}
