<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Student ID Card</title>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        
        body {
            margin: 0;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            font-family: 'Poppins', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            gap: 30px;
            flex-wrap: wrap;
        }

        .card-container {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .id-card {
            width: 340px;
            height: 540px;
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.3);
            overflow: hidden;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.3s ease;
        }

        .id-card:hover {
            transform: rotateY(5deg) rotateX(5deg);
        }

        /* FRONT SIDE */
        .card-front {
            background: linear-gradient(135deg, #2E8B57 0%, #228B22 50%, #32CD32 100%);
            position: relative;
            height: 100%;
            color: white;
        }

        .header-section {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            padding: 15px;
            display: flex;
            align-items: center;
            border-bottom: 3px solid #2E8B57;
        }

        .logo {
            width: 50px;
            height: 50px;
            background: #2E8B57;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            margin-right: 10px;
        }

        .school-info {
            flex: 1;
        }

        .school-name {
            color: #2E8B57;
            font-size: 14px;
            font-weight: 600;
            margin: 0;
            line-height: 1.2;
        }

        .school-location {
            color: #666;
            font-size: 11px;
            margin: 2px 0 0 0;
        }

        .school-logo {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: #f0f0f0;
            border: 2px solid #2E8B57;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #2E8B57;
            font-size: 12px;
            font-weight: bold;
        }

        .student-section {
            padding: 20px;
            text-align: center;
        }

        .student-photo {
            width: 100px;
            height: 120px;
            background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
            border-radius: 10px;
            margin: 0 auto 15px;
            border: 3px solid white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
        }

        .student-name {
            font-size: 18px;
            font-weight: 700;
            margin: 10px 0;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }

        .student-details {
            background: rgba(255,255,255,0.15);
            border-radius: 10px;
            padding: 15px;
            margin: 15px 0;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            margin: 8px 0;
            font-size: 13px;
        }

        .detail-label {
            font-weight: 600;
            color: rgba(255,255,255,0.9);
        }

        .detail-value {
            font-weight: 500;
            color: white;
        }

        .authority-section {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
        }

        .headmaster {
            font-size: 14px;
            font-weight: 600;
            margin-top: 10px;
        }

        .signature-line {
            width: 120px;
            height: 1px;
            background: white;
            margin: 10px auto 5px;
        }

        /* BACK SIDE */
        .card-back {
            background: linear-gradient(135deg, #2E8B57 0%, #228B22 50%, #32CD32 100%);
            position: relative;
            height: 100%;
            color: white;
            padding: 20px;
            box-sizing: border-box;
        }

        .identity-notice {
            background: rgba(255,255,255,0.95);
            color: #333;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 20px;
            font-size: 12px;
            line-height: 1.4;
            font-weight: 500;
        }

        .date-section {
            background: rgba(255,255,255,0.15);
            border-radius: 10px;
            padding: 15px;
            margin: 20px 0;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
        }

        .qr-code {
            width: 80px;
            height: 80px;
            background: white;
            border-radius: 8px;
            margin: 20px auto;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #333;
            font-size: 10px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        }

        .contact-info {
            position: absolute;
            bottom: 20px;
            left: 20px;
            right: 20px;
            background: rgba(255,255,255,0.15);
            border-radius: 10px;
            padding: 15px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin: 5px 0;
            font-size: 11px;
        }

        .contact-icon {
            width: 16px;
            height: 16px;
            background: rgba(255,255,255,0.3);
            border-radius: 3px;
            margin-right: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
        }

        .decorative-pattern {
            position: absolute;
            top: 0;
            right: 0;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            border-radius: 50%;
            transform: translate(30px, -30px);
        }

        .decorative-pattern-2 {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            border-radius: 50%;
            transform: translate(-20px, 20px);
        }

        .card-title {
            text-align: center;
            margin-bottom: 20px;
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
    </style>
</head>
<body>
    <div class="card-container">
        <!-- FRONT SIDE -->
        <div class="id-card">
            <div class="card-front">
                <div class="decorative-pattern"></div>
                <div class="decorative-pattern-2"></div>
                
                <div class="header-section">
                    <div class="logo">P</div>
                    <div class="school-info">
                        <h3 class="school-name">The Holy Quran Islamic School</h3>
                        <p class="school-location">Kalitola, Sadar, Dinajpur.</p>
                    </div>
                    <div class="school-logo">LOGO</div>
                </div>

                <div class="student-section">
                    <div class="student-photo">
                        Student Photo
                    </div>
                    
                    <div class="student-name">Md Ashraful Ltoh</div>
                    
                    <div class="student-details">
                        <div class="detail-row">
                            <span class="detail-label">ID NO</span>
                            <span class="detail-value">: 20252011</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">Class</span>
                            <span class="detail-value">: Play</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">Roll</span>
                            <span class="detail-value">: 202528</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">Session</span>
                            <span class="detail-value">: 2024-2025</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">Blood 🩸</span>
                            <span class="detail-value">: O+</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">Contact</span>
                            <span class="detail-value">: 01717452764</span>
                        </div>
                    </div>
                </div>

                <div class="authority-section">
                    <div class="signature-line"></div>
                    <div class="headmaster">Headmaster</div>
                </div>
            </div>
        </div>

        <!-- BACK SIDE -->
        <div class="id-card">
            <div class="card-back">
                <div class="decorative-pattern"></div>
                <div class="decorative-pattern-2"></div>
                
                <div class="identity-notice">
                    This card is a personal identity. If it is found anywhere except user, please send it to the address of The Holy Quran Islamic School.
                </div>

                <div class="date-section">
                    <div class="detail-row">
                        <span class="detail-label">Joined Date</span>
                        <span class="detail-value">: 01-01-1970</span>
                    </div>
                    <div class="detail-row">
                        <span class="detail-label">Expire Date</span>
                        <span class="detail-value">: 01-01-1970</span>
                    </div>
                </div>

                <div class="qr-code">
                    QR CODE
                </div>

                <div class="contact-info">
                    <div class="contact-item">
                        <div class="contact-icon">📍</div>
                        <span>কালিতলা, সদর, দিনাজপুর।</span>
                    </div>
                    <div class="contact-item">
                        <div class="contact-icon">📞</div>
                        <span>01330702002, 01330702004</span>
                    </div>
                    <div class="contact-item">
                        <div class="contact-icon">✉️</div>
                        <span>holyquranislamicschool.com</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>