@media (max-width: 768px) {
    .hero {
        height: 100vh;
        padding: 0;
        position: relative;
        background: transparent;
        overflow: hidden;
    }

    .hero-background {
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        z-index: -1;
    }

    .hero-image-container {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 0;
        overflow: hidden;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.9;
    }

    .floating-cards {
        position: absolute;
        top: 0;
        left: 0;
        padding: 40px 20px;
        gap: 60px;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.95) 0%,
                rgba(255, 255, 255, 0.9) 50%,
                rgba(255, 255, 255, 0.95) 100%);
        backdrop-filter: blur(8px);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .features {
        position: relative;
        z-index: 3;
        background: #f9f9f9;
        margin-top: 0;
    }

    .card-group {
        opacity: 1;
        margin: 0 !important;
        transform: translateY(0) !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
        background: transparent;
        box-shadow: none;
        transition: transform 0.3s ease;
        will-change: transform;
    }

    .card-group:nth-child(2) .hero-card {
        width: 280px;
        height: 280px;
    }

    .hero-card {
        width: 240px;
        height: 240px;
        margin: 0 !important;
        transform: none !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    }

    .card-text {
        text-align: center;
        margin-top: 16px;
        white-space: normal;
        max-width: 280px;
        font-size: 1.3em;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        padding: 12px 20px;
    }

    .hero-image-container::after {
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.4),
                rgba(255, 255, 255, 0.6));
    }

    .blue-circle,
    .wave-decoration {
        display: none;
    }

    /* Add scroll animation for card groups */
    .card-group {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
        animation-play-state: paused;
    }

    .card-group.visible {
        animation-play-state: running;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Add slight bounce on scroll */
    .card-group:active,
    .card-group:focus {
        transform: translateY(-5px) !important;
        transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .features-header h2 {
        font-size: 1.8em;
    }

    .features-header p {
        font-size: 1em;
    }

    .feature {
        padding: 30px;
        background-color: #ffffff;
        margin-bottom: 30px;
        border-radius: 15px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        max-width: 100%;
        box-sizing: border-box;
    }

    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

    .feature h3 {
        font-size: 1.4em;
        margin-bottom: 15px;
        color: #222;
    }

    .feature p {
        font-size: 1em;
        line-height: 1.6;
        color: #444;
        margin-bottom: 25px;
    }

    .feature h3 {
        font-size: 1.2em;
    }

    .feature p {
        font-size: 0.9em;
    }

    .logo img {
        height: 30px;
    }

    nav {
        padding: 5px 10px;
    }
}
