/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #0d0d0d; /* Deep charcoal black */
    /* Subtle paper texture overlay using CSS radial gradient */
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0),
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    color: #f5f5f5; /* Warm off-white for a paper feel */
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================
   2. TYPOGRAPHY (The Scrapbook Feel)
   ========================================== */
h1, h2, h3 {
    font-family: 'Caveat', cursive; /* Beautiful handwritten font */
    font-weight: 600;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #f5f5f5;
    text-shadow: 2px 2px 0px rgba(139, 0, 0, 0.5);
}

/* Red marker highlight */
.highlight {
    color: #b30000;
    font-family: 'Caveat', cursive;
    position: relative;
    display: inline-block;
}

/* Underline marker effect */
.highlight::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8b0000;
    border-radius: 4px;
    transform: rotate(-1deg);
}

/* ==========================================
   3. NAVIGATION HEADER (Polaroid / Minimalist Style)
   ========================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background-color: rgba(13, 13, 13, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px dashed #8b0000; /* Stitched look */
}

.logo {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    font-weight: bold;
}

.logo span {
    color: #b30000;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #f5f5f5;
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.2s;
    display: inline-block;
}

nav ul li a:hover {
    color: #b30000;
    transform: rotate(-3deg) scale(1.1);
}

/* ==========================================
   4. HERO SECTION (Cover Page of Scrapbook)
   ========================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    background: radial-gradient(circle, rgba(60,0,0,0.2) 0%, rgba(13,13,13,1) 80%);
}

.hero h1 {
    margin-bottom: 1.5rem;
    transform: rotate(-1.5deg);
}

.hero p {
    font-size: 1.5rem;
    font-family: 'Caveat', cursive;
    color: #cccccc;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    background-color: #8b0000;
    color: #ffffff;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 2px;
    box-shadow: 3px 3px 0px #3a0000;
    transition: all 0.2s ease;
    border: 1px solid #8b0000;
    transform: rotate(1deg);
}

.btn-primary:hover {
    background-color: #b30000;
    transform: rotate(-1deg) scale(1.05);
}

/* ==========================================
   5. TIMELINE SECTION (Memory Book Entry style)
   ========================================== */
.timeline-section {
    padding: 8rem 10%;
    background-color: #080808;
    border-top: 1px dashed #222;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* A hand-drawn looking vertical red thread */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #8b0000;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 2rem;
    position: relative;
    width: 45%;
    background-color: #161616; /* Cardstock color */
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    margin-bottom: 4rem;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

/* Make some notes tilted left, some right */
.timeline-item:nth-child(odd) {
    left: 0;
    transform: rotate(-2deg);
}

.timeline-item:nth-child(even) {
    left: 55%;
    transform: rotate(2deg);
}

/* Sticky Tape Decor */
.timeline-item::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 40%;
    width: 80px;
    height: 25px;
    background-color: rgba(139, 0, 0, 0.3); /* Translucent dark red tape */
    backdrop-filter: blur(1px);
    transform: rotate(-5deg);
    border-left: 3px dashed rgba(255,255,255,0.1);
    border-right: 3px dashed rgba(255,255,255,0.1);
}

.timeline-item .date {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: bold;
    color: #b30000;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* ==========================================
   6. GALLERY SECTION (Polaroid Photos)
   ========================================== */
.gallery-section {
    padding: 8rem 10%;
    background-color: #0d0d0d;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    justify-items: center;
}

/* Styling for your actual photos inside the Polaroids */
.polaroid-img {
    width: 100%;            /* Makes the image stretch perfectly to the width of the Polaroid card */
    height: 250px;          /* Forces every photo to be the exact same height */
    object-fit: cover;      /* THIS IS THE MAGIC: It crops the image cleanly instead of stretching it! */
    object-position: center;/* Keeps the center of your photo perfectly framed */
    border-radius: 2px;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
}
/* Polaroid Paper Style */
.photo-card {
    background-color: #f5f5f5; /* Polaroid white board border */
    color: #121212; /* Dark text on polaroids */
    padding: 1rem 1rem 2rem 1rem;
    border-radius: 2px;
    box-shadow: 8px 8px 20px rgba(0,0,0,0.7);
    max-width: 320px;
    transition: transform 0.3s;
}

/* Randomly tilting Polaroids for that cluttered scrapbook table look */
.photo-card:nth-child(odd) {
    transform: rotate(3deg);
}

.photo-card:nth-child(even) {
    transform: rotate(-3deg);
}

.photo-card:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
}

.photo-placeholder {
    height: 240px;
    background-color: #0a0a0a; /* The photo frame itself is dark black */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    border-radius: 2px;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
}

.photo-caption {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    text-align: center;
    line-height: 1.2;
    color: #121212;
}

/* ==========================================
   7. FAVORITES SECTION (Scrapbook Cards)
   ========================================== */
.favorites-section {
    padding: 8rem 10%;
    background-color: #080808;
    border-top: 1px dashed #222;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.favorite-card {
    background-color: #161616;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.5);
    border-top: 5px solid #8b0000; /* Stitched top edge */
    transform: rotate(-1deg);
}

.favorite-card:nth-child(even) {
    transform: rotate(1.5deg);
}

.favorite-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #b30000;
}

.favorite-card p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #dddddd;
}

/* ==========================================
   8. FOOTER
   ========================================== */
footer {
    text-align: center;
    padding: 4rem;
    background-color: #0d0d0d;
    border-top: 1px dashed #333;
}

footer p {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #8b0000;
}