/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #fffafb;
    overflow-x: hidden;
}

.script-font {
    font-family: 'Dancing Script', cursive;
}

.hidden { display: none; }


/* 1. Timer Screen with Blurred Photo */
#countdown-screen {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Updated to .jpeg */
    background: #222 url('blurry.jpg') no-repeat center center;
    background-size: cover; 
    
    text-align: center;
    color: white;
    overflow: hidden;
}

/* The Blur Layer */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(12px); /* Slightly more blur for a cleaner look */
    -webkit-backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.timer-box {
    position: relative;
    z-index: 2;
}


/* The Blur Layer */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Apply the blur */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    
    /* Dark tint to make the text readable */
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.timer-box {
    position: relative;
    z-index: 2;
    padding: 20px;
}

#timer {
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: bold;
    margin: 15px 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* This darkens the photo so you can read the white text */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.timer-box {
    position: relative;
    z-index: 2;
}

#timer {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: bold;
    margin: 20px 0;
}

/* 2. Main Content Organization */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.hero {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffe3e3;
    font-size: 2rem;
}

.story-grid {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.tag {
    color: #d63384;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 3. Growth Cards Organization */
.growth-section { background-color: #fff0f3; }
.section-title { text-align: center; margin-bottom: 50px; }

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h3 { color: #d63384; margin-bottom: 15px; }
.messages-section {
    padding: 80px 0;
    background-color: #fffafb;
    text-align: center;
}

.first-message-wrapper {
    max-width: 450px; /* Adjust this depending on how tall/wide your screenshot is */
    margin: 0 auto;
}

.message-caption {
    font-style: italic;
    color: #888;
    margin-bottom: 20px;
}

.screenshot-frame {
    background: white;
    padding: 10px; /* This creates a white border like a polaroid */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.screenshot-frame:hover {
    transform: scale(1.02); /* Slight zoom when she hovers over it */
}

.screenshot-img {
    width: 100%;
    border-radius: 10px; /* Softens the corners of the screenshot itself */
    display: block;
}
.timeline-section {
    padding: 100px 0;
    background: #fff;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 30px;
    border-left: 2px dashed #ffccd5; /* The line connecting the dots */
    text-align: left;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -41px; /* Centers the dot on the line */
    top: 5px;
    width: 20px;
    height: 20px;
    background: #d63384;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(214, 51, 132, 0.3);
}

.timeline-content h3 {
    color: #d63384;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}
/* --- GALLERY OF FIRSTS STYLING --- */

.firsts-gallery {
    background-color: #fffafb; /* Very light pink tint */
    padding: 100px 0;
}

/* Grid setup for 6 photos */
.firsts-grid {
    display: grid;
    /* This creates a 3-column layout on desktop, 2 on tablet, and 1 on phone */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px;
    margin-top: 50px;
    padding: 0 10px;
}

/* The individual memory card */
.first-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(214, 51, 132, 0.1); /* Subtle pink shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #ffe3e3;
    display: flex;
    flex-direction: column;
}

/* Hover effect: Card pops up and shadow deepens */
.first-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(214, 51, 132, 0.2);
    border-color: #d63384;
}

/* Image Container */
.card-image {
    width: 100%;
    height: 320px; /* Uniform height for all screenshots */
    overflow: hidden;
    background-color: #f8f9fa;
    border-bottom: 2px solid #fff0f3;
}

.card-image img {
    width: 100%;
    height: 100%;
    /* 'contain' ensures the whole screenshot is visible without cropping.
       If you prefer them to fill the space perfectly, use 'cover'. */
    object-fit: cover; 
    transition: transform 0.5s ease;
}

/* Zoom effect on the image when hovering */
.first-card:hover .card-image img {
    transform: scale(1.08);
}

/* Text Info Area */
.card-info {
    padding: 25px;
    text-align: center;
}

.card-info h3 {
    font-family: 'Quicksand', sans-serif;
    color: #d63384;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-info p {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    font-style: italic;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .firsts-grid {
        gap: 20px;
    }
    
    .card-image {
        height: 280px;
    }
}
/* Lightbox Container */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Sits on top of everything */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* The Full Photo */
#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Animation when opening */
.lightbox.active {
    display: flex;
}

.lightbox.active #lightbox-img {
    transform: scale(1);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
}

/* Make images look clickable */
.card-image img {
    cursor: zoom-in;
}
.memory-game {
    max-width: 500px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 15px;
}

.memory-card {
    height: 140px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    cursor: pointer;
}

.memory-card.flip { transform: rotateY(180deg); }

.front-face, .back-face {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 12px;
}

.front-face {
    transform: rotateY(180deg);
    object-fit: cover;
    border: 2px solid #d63384;
}

.back-face {
    background-color: #ffccd5;
    border: 2px solid #d63384;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #d63384;
}
#game-message {
    margin-top: 40px;
    padding: 40px;
    background: white;
    border-radius: 30px;
    border: 1px solid #ffccd5;
    box-shadow: 0 15px 45px rgba(214, 51, 132, 0.15);
    animation: slideUpFade 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#game-message h3 {
    font-size: 2.5rem;
    color: #d63384;
    margin-bottom: 20px;
}

.romantic-text p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.final-note {
    font-weight: 500;
    color: #d63384 !important;
    border-top: 1px solid #fff0f3;
    padding-top: 15px;
}

.restart-btn {
    background: #d63384;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.restart-btn:hover {
    background: #a51d5d;
    transform: scale(1.05);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.game-instruction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0f3; /* Very soft pink */
    padding: 10px 25px;
    border-radius: 50px;
    margin: 20px auto;
    border: 1px solid #ffccd5;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.1);
    animation: float 3s ease-in-out infinite; /* Makes it bob up and down */
}

.game-instruction p {
    margin: 0 15px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    color: #d63384;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.sparkle {
    font-size: 1.2rem;
    color: #ff99ac;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}
.love-jars {
    padding: 60px 0;
    background: #fff;
    text-align: center;
}

.jars-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.jar {
    width: 130px;
    height: 160px;
    background: rgba(255, 204, 213, 0.2);
    border: 3px solid #d63384;
    border-radius: 20px 20px 35px 35px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: inset -5px 5px 10px rgba(255, 255, 255, 0.5);
}

.jar-lid {
    width: 90px;
    height: 15px;
    background: #d63384;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px 8px 0 0;
}

.jar-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #d63384;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffccd5;
    margin-top: 40px;
    display: inline-block;
}

.floating-hearts {
    font-size: 1.5rem;
    margin-top: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Shake Animation when clicked */
.shake {
    animation: jarShake 0.4s ease-in-out;
}

@keyframes jarShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(8deg); }
    50% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

#jar-message-box {
    margin: 30px auto;
    padding: 20px;
    background: #fff0f3;
    border-left: 5px solid #d63384;
    border-radius: 10px;
    max-width: 450px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

#message-type {
    font-weight: bold;
    color: #d63384;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}
/* PHOTO GALLERY STYLING */
.photo-memories {
    padding: 80px 20px;
    background: #fff;
}

.romantic-bridge {
    max-width: 650px;
    margin: 0 auto 50px;
    text-align: center;
}

.romantic-bridge h2 {
    font-size: 2.8rem;
    color: #d63384;
    margin-bottom: 15px;
}

.romantic-bridge p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
}

/* Pinterest-style Masonry Layout */
.photo-grid {
    column-count: 3; /* This will put about 3-4 photos in each column */
    column-gap: 20px;
}

.photo-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.photo-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.photo-item:hover {
    transform: scale(1.03);
}

.photo-item:hover img {
    transform: scale(1.1);
}

/* Adjust for Tablets */
@media (max-width: 900px) {
    .photo-grid {
        column-count: 2;
    }
}

/* Adjust for Phones */
@media (max-width: 600px) {
    .photo-grid {
        column-count: 1;
    }
}
.transformation-section {
    padding: 100px 20px;
    background: #fff;
    text-align: center;
}

.days-counter-box {
    margin-bottom: 60px;
}

.days-counter-box h3 {
    font-size: 5rem;
    color: #d63384;
    font-family: 'Dancing Script', crossorigin;
    margin: 10px 0;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sector-card {
    background: #fffafb;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #ffe3e3;
    transition: all 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(214, 51, 132, 0.1);
}

.sector-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.sector-card h3 {
    color: #d63384;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.sector-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.deep-note {
    margin-top: 60px;
    font-style: italic;
    font-size: 1.2rem;
    color: #d63384;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.future-forever {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #ffffff, #fff0f3, #ffccd5);
    text-align: center;
}

.intro-text {
    font-size: 1.3rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.highlight-days {
    color: #d63384;
    font-weight: 700;
    border-bottom: 2px solid #d63384;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.vision-item {
    background: white;
    padding: 40px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.1);
    transition: 0.3s;
}

.vision-item:hover {
    transform: translateY(-5px);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.vision-item h3 {
    color: #d63384;
    margin-bottom: 15px;
    font-family: 'Quicksand', sans-serif;
}

.vision-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.final-letter {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px;
    border-top: 1px solid rgba(214, 51, 132, 0.2);
}

.final-letter p {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

.signature {
    margin-top: 40px;
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #d63384;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}
.romantic-bridge-text {
    padding: 60px 20px;
    text-align: center;
    background: #fff; /* Keep it clean */
}

.bridge-content {
    max-width: 600px;
    margin: 0 auto;
}

.script-font-large {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #d63384;
    margin-bottom: 20px;
}

.main-bridge-p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 30px;
}

.heart-divider {
    font-size: 1.5rem;
    color: #ffccd5;
    position: relative;
}

.heart-divider::before, .heart-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: #ffccd5;
}

.heart-divider::before { right: 60%; }
.heart-divider::after { left: 60%; }