Charming Clip Path Effect.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Charming Clip Path Effect</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #f0f0f0;
            margin: 0;
            font-family: Arial, sans-serif;
        }
        .card {
            position: relative;
            width: 300px;
            height: 400px;
            margin: 20px;
            background-image: url('https://codezillaye.com/wp-content/uploads/2024/06/ai.jpg');
            background-size: cover;
            background-position: center;
            clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
            transition: all 0.5s ease-in-out;
            overflow: hidden;
        }
        .card:hover {
            transform: scale(1.05);
            clip-path: polygon(25% 0%, 0% 100%, 50% 75%, 100% 100%, 75% 0%);
        }
        .card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            transition: background 0.5s;
        }
        .card:hover::before {
            background: rgba(0, 0, 0, 0.2);
        }
        .card .content {
            position: absolute;
            bottom: 20px;
            left: 20px;
            color: #fff;
            z-index: 1;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
        }
        .card .content h2 {
            margin: 0;
            font-size: 24px;
        }
        .card .content p {
            margin: 10px 0 0;
            font-size: 16px;
        }
    </style>
</head>
<body>
    <div class="card">
        <div class="content">
            <h2>Codezilla</h2>
            <p>Explore the world of AI</p>
        </div>
    </div>
</body>
</html>