/* ==========================================
   3-STEPS SECTION (Why SnapNotes)
   ========================================== */

.steps-section {
    position: relative;
    padding: var(--section-padding-y) var(--section-padding-x);
    background-color: var(--pink-light);
    overflow: hidden;
}

/* Gradient overlay */
.steps-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    pointer-events: none;
}

.steps-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.steps-header {
    text-align: center;
    margin-bottom: 3rem;
}

.steps-title {
    font-size: 2.5rem;
    color: var(--purple-dark);
    margin-bottom: 1rem;
}

.steps-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid Layout */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Step Cards */
.step-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Card Backgrounds */
.step-card-1 { background-color: var(--purple); }
.step-card-2 { background-color: var(--pink-bold); }
.step-card-3 { background-color: var(--purple-dark); }

/* Background Images */
.step-card-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.step-card-bg img {
    width: 100%;
    height: 170%;
    object-fit: cover;
    object-position: 50% 40%;
    opacity: 0.6;
    transition: transform var(--transition), opacity var(--transition);
}

.step-card:hover .step-card-bg img {
    transform: scale(1.05);
    opacity: 0.7;
}

/* Card Content */
.step-card-content {
    position: relative;
    z-index: 10;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.step-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Full-width third card */
.step-card-full {
    grid-column: 1 / -1;
}

/* Hover overlay */
.step-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition);
    z-index: 5;
}

.step-card:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* Decorative corner accent */
.step-card-accent {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 48px;
    height: 48px;
    opacity: 0;
    transform: rotate(45deg) scale(0);
    transition: all var(--transition);
    z-index: 15;
}

.step-card-accent::before {
    content: "";
    position: absolute;
    inset: 0;
    border-right: 4px solid rgba(255, 255, 255, 0.5);
    border-top: 4px solid rgba(255, 255, 255, 0.5);
    border-radius: 0 12px 0 0;
}

.step-card:hover .step-card-accent {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card-full {
        grid-column: 1;
    }

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

    .steps-subtitle {
        font-size: 1.1rem;
    }

    .step-card {
        height: 280px;
    }
}
