/* Features Section Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #fff3f0;
    --secondary: #6b3e26;
    --accent: #f8a5c2;
    --text-dark: #4a3728;
    --text-light: #8b6f5c;
    --white: #ffffff;
    --gradient-warm: linear-gradient(135deg, #fff3f0 0%, #ffe4dc 100%);
    --shadow-soft: 0 4px 20px rgba(107, 62, 38, 0.1);
    --shadow-medium: 0 8px 30px rgba(107, 62, 38, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--primary);
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 100px 24px;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(248, 165, 194, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(107, 62, 38, 0.06) 0%, transparent 50%),
        var(--white);
    position: relative;
    overflow: hidden;
}

/* Decorative Geometric Shapes */
.features::before {
    content: '';
    position: absolute;
    top: 8%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(248, 165, 194, 0.25) 0%, rgba(248, 165, 194, 0.08) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(2px);
    z-index: 0;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 3%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(107, 62, 38, 0.15) 0%, rgba(107, 62, 38, 0.05) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(2px);
    z-index: 0;
}

/* Floating Cat Stickers */
.features-floating-stickers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.features-sticker {
    position: absolute;
    width: 100px;
    height: auto;
    opacity: 0.07;
    filter: grayscale(30%) sepia(20%) blur(1px);
}

.features-sticker-1 {
    top: 5%;
    left: 5%;
    width: 95px;
}

.features-sticker-2 {
    top: 25%;
    right: 5%;
    width: 85px;
    transform: scaleX(-1);
}

.features-sticker-3 {
    bottom: 10%;
    left: 10%;
    width: 90px;
}

.features .container {
    position: relative;
    z-index: 1;
}

/* ===== MOOD TIMELINE - ZIG ZAG LAYOUT ===== */
.mood-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px 0;
}

/* Center vertical line */
.mood-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
            var(--accent) 0%,
            var(--secondary) 50%,
            var(--accent) 100%);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(248, 165, 194, 0.3);
}

/* Timeline item */
.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Left aligned item */
.timeline-item.left {
    justify-content: flex-start;
    padding-right: calc(50% + 40px);
}

.timeline-item.left .timeline-content {
    text-align: right;
}

/* Right aligned item */
.timeline-item.right {
    justify-content: flex-end;
    padding-left: calc(50% + 40px);
}

.timeline-item.right .timeline-content {
    text-align: left;
}

/* Timeline dot - connector */
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 4px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
    box-shadow:
        0 0 0 6px rgba(248, 165, 194, 0.2),
        0 4px 12px rgba(107, 62, 38, 0.15);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    background: var(--accent);
    border-color: var(--secondary);
}

/* Timeline content wrapper */
.timeline-content {
    flex: 1;
}

/* Timeline card */
.timeline-card {
    background: var(--white);
    padding: 32px;
    border-radius: 24px;
    box-shadow:
        0 10px 40px rgba(107, 62, 38, 0.1),
        0 4px 12px rgba(107, 62, 38, 0.05);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Glass effect overlay */
.timeline-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 243, 240, 0.4) 100%);
    pointer-events: none;
}

.timeline-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(107, 62, 38, 0.15),
        0 8px 24px rgba(248, 165, 194, 0.2);
    border-color: var(--accent);
}

/* Arrow connector from card to dot */
.timeline-item.left .timeline-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid var(--white);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    filter: drop-shadow(2px 0 4px rgba(107, 62, 38, 0.1));
}

.timeline-item.right .timeline-card::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 20px solid var(--white);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    filter: drop-shadow(-2px 0 4px rgba(107, 62, 38, 0.1));
}

/* Card content */
.mood-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 16px rgba(107, 62, 38, 0.15));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.timeline-card:hover .mood-image {
    transform: scale(1.15) rotate(5deg);
}

.mood-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.mood-badge.proud {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #5a3420;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.mood-badge.happy {
    background: linear-gradient(135deg, #98FB98 0%, #4CAF50 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.mood-badge.calm {
    background: linear-gradient(135deg, #87CEEB 0%, #4A90D9 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
}

.mood-badge.worried {
    background: linear-gradient(135deg, #FFE4B5 0%, #FFA07A 100%);
    color: #5a3420;
    box-shadow: 0 4px 15px rgba(255, 160, 122, 0.3);
}

.mood-badge.stressed {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF6B6B 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.mood-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.mood-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Features closing text */
.features-closing {
    text-align: center;
    margin-top: 48px;
    font-size: 1.2rem;
    background: var(--gradient-warm);
    padding: 24px 32px;
    border-radius: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 900px) {
    .mood-timeline::before {
        left: 30px;
    }

    .timeline-item.left,
    .timeline-item.right {
        padding-left: 80px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        text-align: left;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-item.left .timeline-card::after,
    .timeline-item.right .timeline-card::after {
        left: -20px;
        right: auto;
        border-left: 0;
        border-right: 20px solid var(--white);
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 640px) {
    .features {
        padding: 60px 20px;
    }

    .mood-timeline {
        margin: 40px auto;
    }

    .mood-timeline::before {
        left: 20px;
    }

    .timeline-item {
        margin-bottom: 40px;
    }

    .timeline-item.left,
    .timeline-item.right {
        padding-left: 60px;
    }

    .timeline-dot {
        left: 20px;
        width: 20px;
        height: 20px;
    }

    .timeline-card {
        padding: 24px 20px;
    }

    .mood-image {
        width: 100px;
        height: 100px;
    }

    .mood-title {
        font-size: 1.1rem;
    }

    .mood-desc {
        font-size: 0.9rem;
    }

    .features-closing {
        font-size: 1rem;
        padding: 20px;
    }
}