:root {
    --primary-color: #FF6B35; /* Vibrant Orange */
    --secondary-color: #FF9F1C; /* Lighter Orange */
    --accent-color: #4CAF50; /* Forest Green - made it a bit brighter */
    --dark-accent: #333333;   /* Dark Gray instead of pure black for softness */
    --background-color: #fff7f2; /* Softer off-white / very light peach */
    --text-color: #4A4A4A; /* Softer dark gray for text */
    --card-bg: #ffffff;
    --pastel-pink: #ffe5ec;
    --pastel-peach: #fff0e6;
    --pastel-green: #e0ffe5;
    --subtle-glow: 0 0 15px rgba(255, 107, 53, 0.3);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --green-gradient: linear-gradient(135deg, var(--accent-color), #66BB6A);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Custom Cursor */
.cursor {
    width: 18px;
    height: 18px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, background-color 0.15s ease-out, width 0.15s ease-out, height 0.15s ease-out;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.07);
}

.logo {
    font-size: 1.8rem; /* Slightly smaller for elegance */
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.2rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
    background: var(--gradient);
}

.nav-toggle {
    display: none; /* Hide the checkbox */
}

.nav-toggle-label {
    display: none; /* Hidden by default, shown on mobile */
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pastel-peach) 0%, var(--pastel-pink) 100%);
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.glowing-text {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
    text-shadow: var(--subtle-glow), 0 0 5px #fff;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

/* Orange Avatar */
.orange-avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.avatar-container {
    width: 100%;
    height: 100%;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.orange-slice {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
}

.eyes {
    position: absolute;
    top: 30%;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.eyes::before,
.eyes::after {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--text-color);
    border-radius: 50%;
    animation: blink 4s infinite;
}

.smile {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30px;
    border-bottom: 4px solid var(--text-color);
    border-radius: 50%;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #fff0;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--pastel-pink);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Footer */
footer {
    padding: 2.5rem 2rem;
    background: var(--dark-accent);
    color: #f0f0f0;
}

footer .fas.fa-heart {
    color: var(--primary-color);
    animation: heartbeat 1.5s infinite ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    .logo {
        font-size: 1.6rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.9rem;
    }

    .memories-page, .about-page, .index-page {
        padding-top: 80px;
    }

    .glowing-text {
        font-size: 3rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .kinnu-main-avatar {
        width: 120px;
        height: 120px;
    }

    .memories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .memory-card {
        padding: 1.2rem;
    }
    .memory-img {
        width: 60px;
        height: 60px;
    }
    .memory-img::after {
        font-size: 2.2rem;
    }

    .mood-grid, .feature-cards, .about-sections, .power-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    .mood-card, .feature-card, .about-card, .power-card {
        padding: 1.2rem;
    }

    .nav-toggle-label {
        display: block; /* Show hamburger icon */
        position: absolute; /* Position it relative to navbar */
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001; /* Above nav-links if they overlay */
    }

    .nav-links {
        display: none; /* Hide them by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below navbar */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
        border-top: 1px solid var(--pastel-pink);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 1rem;
        display: block; /* Make links take full width */
        width: 100%;
        font-size: 1.1rem;
    }
    .nav-links a::after {
        display: none; /* Remove underline effect for mobile dropdown */
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex; /* Show nav links when checkbox is checked */
    }

    /* Hamburger icon animation when active */
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .memories-page, .about-page, .index-page {
        padding-top: 70px;
    }
    .navbar {
        padding: 0.8rem 1rem; /* Further reduce navbar padding */
    }
    .logo {
        font-size: 1.5rem;
    }
    .nav-toggle-label {
        right: 1rem;
    }
    .glowing-text {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .kinnu-main-avatar {
        width: 100px;
        height: 100px;
    }

    .memories-hero .glowing-text {
        font-size: 2.8rem;
    }
    .memories-hero .subtitle {
        font-size: 1rem;
    }

    .mood-grid, .feature-cards, .about-sections, .power-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
     .mood-card, .feature-card, .about-card, .power-card {
        min-width: unset;
    }
}

/* About Page Styles */
.about-page {
    padding-top: 80px;
}

.about-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--pastel-green) 0%, var(--pastel-peach) 100%);
    padding: 4rem 2rem;
}

.about-sections {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #fff0;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--pastel-pink);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.about-card h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Timeline Styles */
.timeline {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.timeline h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}

/* Gallery Page Styles */
.gallery-page {
    padding-top: 80px;
}

.gallery-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 159, 28, 0.1));
    padding: 4rem 2rem;
}

.gallery-grid {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-content img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.overlay p {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .overlay h3,
.gallery-item:hover .overlay p {
    transform: translateY(0);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }
}

/* Fun Facts Section */
.fun-facts {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(76, 175, 80, 0.1));
}

.fun-facts h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    font-size: 2.5rem;
}

.facts-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.fact-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.fact-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.fact-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.fact-card p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Avatar Stickers */
.avatar-stickers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.avatar-sticker {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s;
    border: 3px solid #fff;
    overflow: hidden;
}

.avatar-sticker.main-avatar {
    background: none;
    box-shadow: 0 4px 24px rgba(255, 107, 53, 0.25);
    border: 3px solid var(--accent-color);
    width: 90px;
    height: 90px;
    padding: 0;
}

.avatar-sticker.main-avatar img,
.avatar-sticker.main-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Happy Face */
.avatar-happy::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 22px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 24px 0 #fff;
}
.avatar-happy::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 40px;
    width: 26px;
    height: 12px;
    border-radius: 0 0 20px 20px;
    border-bottom: 4px solid #fff;
}

/* Sad Face */
.avatar-sad::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 22px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 24px 0 #fff;
}
.avatar-sad::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 48px;
    width: 26px;
    height: 12px;
    border-radius: 0 0 20px 20px;
    border-top: 4px solid #fff;
    border-bottom: none;
}

/* Excited Face */
.avatar-excited::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 22px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 24px 0 #fff;
}
.avatar-excited::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 40px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #FFD166;
}

/* Thinking Face */
.avatar-thinking::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 22px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 24px 0 #fff;
}
.avatar-thinking::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 44px;
    width: 14px;
    height: 6px;
    border-radius: 10px;
    background: #fff;
}

/* Sparkle Face */
.avatar-sparkle::before {
    content: '\2728';
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 1.5rem;
    color: #fff;
    filter: drop-shadow(0 0 4px #FFD166);
}
.avatar-sparkle::after {
    content: '\2728';
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 1.2rem;
    color: #fff;
    filter: drop-shadow(0 0 4px #FFD166);
}

/* Panic Face */
.avatar-panic::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 22px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 24px 0 #fff;
}
.avatar-panic::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 44px;
    width: 26px;
    height: 10px;
    border-radius: 50%;
    border-bottom: 4px solid #fff;
    border-top: 4px solid #FFD166;
}

/* Love Face */
.avatar-love::before {
    content: '\2764';
    position: absolute;
    left: 24px;
    top: 36px;
    font-size: 2rem;
    color: #FFD166;
    filter: drop-shadow(0 0 4px #fff);
}

/* Dream Face */
.avatar-dream::before {
    content: '\1F319';
    position: absolute;
    left: 24px;
    top: 36px;
    font-size: 2rem;
    color: #fff;
    filter: drop-shadow(0 0 4px #FFD166);
}

/* Mood Grid Section */
.mood-grid {
    padding: 3rem 2rem 2rem 2rem;
    background: linear-gradient(135deg, var(--pastel-peach) 0%, var(--pastel-pink) 100%);
    border-radius: 32px;
    margin: 2rem auto;
    max-width: 1100px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.mood-grid h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.2rem;
}
.moods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-items: center;
}
.mood-card {
    background: var(--card-bg);
    border-radius: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 1.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    min-height: 180px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.mood-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--pastel-pink);
}
.mood-icon {
    font-size: 2.8rem;
    margin-bottom: 0.7rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px var(--secondary-color)55);
    transition: transform 0.3s ease;
}
.mood-card:hover .mood-icon {
    transform: scale(1.1);
}
.mood-card span {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}
.mood-card p {
    color: var(--text-color);
    font-size: 1rem;
    text-align: center;
    margin-top: 0.2rem;
}

@media (max-width: 600px) {
    .moods {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .mood-card {
        min-width: 120px;
        min-height: 140px;
        padding: 1rem 0.5rem 0.7rem 0.5rem;
    }
}

/* Power Points Section (About Page) */
.power-points {
    padding: 3rem 2rem 2rem 2rem;
    background: linear-gradient(135deg, #fffbe6 0%, #e0ffe5 100%);
    border-radius: 32px;
    margin: 2rem auto;
    max-width: 1100px;
    box-shadow: 0 4px 24px rgba(46, 125, 50, 0.08);
}
.power-points h2 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
}
.power-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-items: center;
}
.power-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.10);
    padding: 1.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    min-height: 120px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.power-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.18);
}
.power-card i {
    font-size: 2.4rem;
    margin-bottom: 0.7rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 6px #FFD16688);
}
.power-card p {
    color: var(--text-color);
    font-size: 1rem;
    text-align: center;
    margin-top: 0.2rem;
}

@media (max-width: 600px) {
    .power-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .power-card {
        min-width: 120px;
        min-height: 90px;
        padding: 1rem 0.5rem 0.7rem 0.5rem;
    }
}

/* --- General Heading & Text Alignment Polish --- */

/* Main Hero Titles (already centered by their containers, this is for consistency) */
.hero-content h1,
.about-content h1,
.memories-hero h1 {
    text-align: center;
}
.hero-content .subtitle,
.about-content .subtitle,
.memories-hero .subtitle {
    text-align: center;
    max-width: 700px; /* Constrain width for better readability */
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles (h2 in specific sections) */
.mood-grid h2,
.feature-section h2,
.about-sections h2, /* Though about-card h2 is more specific */
.power-points h2 {
    text-align: center;
    margin-bottom: 1rem; /* Base margin */
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-block; /* For centering the decorative line */
    left: 50%;
    transform: translateX(-50%);
}

/* Decorative Line for Section Titles */
.mood-grid h2::after,
.feature-section h2::after,
.power-points h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: var(--gradient);
    opacity: 0.8;
}

/* Paragraphs directly following section titles (if any act as subtitles) */
.mood-grid h2 + p,
.feature-section h2 + p,
.power-points h2 + p {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Headings and Text (already centered, minor consistency checks) */
.feature-card h3,
.about-card h2, /* This is the title within the about-card */
.memory-card h3 {
    text-align: center; /* Ensured */
    margin-bottom: 0.6rem; /* Consistent margin */
}

.feature-card p,
.mood-card p, /* Mood card text, not just title */
.about-card p,
.power-card p,
.memory-card p {
    text-align: center; /* Ensured */
    font-size: 1rem; /* Consistent base size */
}

/* Adjusting main card sections for consistent h2 bottom margin */
.mood-grid h2,
.feature-section h2,
.power-points h2 {
    margin-bottom: 2.5rem; /* Increased for better separation from content after line */
}

/* Memories Page Styles */
.memories-page {
    padding-top: 100px; /* Increased padding to push content below fixed navbar */
    /* background: linear-gradient(135deg, #fffbe6 0%, #ffe5ec 100%); */ /* This was commented out, let's ensure the hero has its own bg */
    min-height: 100vh;
}

.memories-hero {
    background: linear-gradient(135deg, #ffd1dc 0%, #c8e6c9 100%); /* Softer pink to softer green */
    padding: 3rem 2rem 2rem 2rem; /* Adjusted top padding, original was 3rem */
    /* padding-top will be handled by .memories-page now if navbar is truly fixed over it */
    /* If navbar is part of flow, then .memories-hero needs its own top padding */
    /* Let's assume fixed navbar means parent container needs the push */
}

.memories-hero .glowing-text {
    color: var(--primary-color); /* Ensure it has a strong base color */
    text-shadow: 0 0 8px var(--secondary-color)99, /* Softer glow */
                 0 0 15px var(--secondary-color)66,
                 0 0 3px #ffffff; /* Add a subtle white outline for pop */
}

.memories-grid {
    gap: 2rem; /* Slightly reduced gap for responsiveness */
}

.memory-card {
    min-height: auto; /* Let content define height now */
    padding: 1.5rem;
}

.memory-img {
    width: 70px;  /* Adjust size as it's now the icon container */
    height: 70px;
    border-radius: 18px; /* Squarish circle for sticker feel */
    margin-bottom: 1.2rem;
    box-shadow: 0 3px 10px var(--secondary-color)44;
    border: none; /* Remove border if it was for the image */
    /* background: var(--gradient); Already set, ensure it looks good */
}

.memory-img::after { /* General style for the emoji icons */
    font-size: 2.8rem; /* Make emoji larger */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

/* Specific Memory Icons - ensure they are centered and sized well */
.memory-img.bandage::after { content: '\1F915'; /* Face with head-bandage emoji */ }
.memory-img.heart::after { content: '\2764'; color: #ff6b81; }
.memory-img.sparkle::after { content: '\2728'; color: #FFD166; }
.memory-img.dessert::after { content: '\1F366'; /* Ice cream */ }
.memory-img.dream::after { content: '\1F31C'; color: #b39ddb; }
.memory-img.lazy::after { content: '\1F43C'; /* Panda */ }
.memory-img.money::after { content: '\1F4B0'; /* Money bag emoji */ color: #81c784; }


/* --- Centering Icons in Feature/About/Power Cards --- */

.feature-card i,
.power-card i {
    display: block; /* Allow margin auto to work */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem; /* Ensure consistent spacing */
}

.about-card .card-icon {
    /* This is already a flex container centered, icon inside should be fine */
    /* If icon itself needs centering if text is beside it, it is */
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for memories page */
@media (max-width: 768px) {
    .memories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .memory-card {
        padding: 1.2rem;
    }
    .memory-img {
        width: 60px;
        height: 60px;
    }
    .memory-img::after {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .memories-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .memories-hero .glowing-text {
        font-size: 2.8rem; /* Adjust for smaller screens */
    }
    .memories-hero .subtitle {
        font-size: 1rem;
    }
}

/* Navbar responsive adjustments - ensure it doesn't cause overlap */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem; /* Reduce padding */
    }
    .logo {
        font-size: 1.6rem; /* Make logo smaller */
    }
    .nav-links {
        gap: 1rem; /* Reduce gap between links */
    }
    .nav-links a {
        font-size: 0.9rem; /* Smaller nav links */
    }

    /* Adjust page top padding for smaller navbar */
    .memories-page, .about-page, .index-page /* Add a common class or apply to body/main if navbar is always fixed */ {
        padding-top: 80px; /* Adjusted for potentially smaller navbar height */
    }
    /* If index.html's main doesn't have a class, we might need to target body or a wrapper */
    body > main { /* A bit generic, but could work if structure is consistent */
      /* padding-top: 80px; /* Be careful with this selector */
    }
}

@media (max-width: 480px) {
    .memories-page, .about-page, .index-page {
        padding-top: 70px; /* Further adjust for very small screens */
    }
    body > main {
      /* padding-top: 70px; */
    }
    .nav-links {
        display: none; /* Simplest for CSS-only: hide nav links, rely on logo for home */
        /* Or, make them flex-column if space allows, but might look cluttered */
    }
    .navbar .logo {
        margin: 0 auto; /* Center logo if nav links are hidden */
    }
} 