@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0f172a;
    color: #f1f5f9;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 10%, #0f172a 90%);
    pointer-events: none;
    z-index: -1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover { color: #38bdf8; }

.menu-toggle { display: none; font-size: 24px; color: #38bdf8; cursor: pointer; }

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 10px; }
#typing { color: #38bdf8; border-right: 3px solid #38bdf8; }

.btn {
    padding: 12px 30px;
    background: #38bdf8;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 25px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
    border: none;
    cursor: pointer;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(56, 189, 248, 0.5); }

.container { padding: 100px 10%; }
h2 { text-align: center; margin-bottom: 60px; font-size: 2.2rem; color: #fff; position: relative; }
h2::after { content: ""; width: 50px; height: 4px; background: #38bdf8; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.card, .skill-card, .pay-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    transition: 0.4s;
    backdrop-filter: blur(8px);
}

.card:hover, .skill-card:hover, .pay-card:hover {
    border-color: #38bdf8;
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.8);
}

.skill-card i { font-size: 3rem; margin-bottom: 15px; display: block; }
.fa-html5 { color: #e34f26; }
.fa-css3-alt { color: #1572b6; }
.fa-js { color: #f7df1e; }
.fa-php { color: #777bb4; }
.fa-database { color: #00758f; }
.fa-laravel { color: #ff2d20; }

.price { font-size: 2rem; font-weight: 800; color: #38bdf8; margin: 15px 0; }

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
}

.modal-content {
    background: #1e293b;
    margin: 12% auto;
    padding: 35px;
    width: 90%;
    max-width: 400px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid #38bdf8;
    position: relative;
}

.close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #94a3b8; }

form { max-width: 650px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
input, textarea {
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    color: #fff;
    outline: none;
}

footer { text-align: center; padding: 50px; background: #020617; border-top: 1px solid #1e293b; color: #64748b; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    nav { display: none; }
    .menu-toggle { display: block; }
}

/* Telegram Float Button with Animation */
.telegram-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0088cc;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
    /* অ্যানিমেশনগুলো এখানে যুক্ত করা হয়েছে */
    animation: pulse-blue 2s infinite, floating 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.telegram-float i {
    font-size: 24px;
}

.telegram-float span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.5s ease;
}

.telegram-float:hover span {
    max-width: 150px;
}

/* ১. Pulse Animation: বাটনের চারপাশে গ্লো ছড়িয়ে পড়া */
@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 136, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
    }
}

/* ২. Floating Animation: বাটনটি উপরে-নিচে হালকা নড়াচড়া করবে */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* মাউস নিলে অ্যানিমেশন একটু থামবে এবং বাটন বড় হবে */
.telegram-float:hover {
    animation: none; /* হোভার করলে পালস বন্ধ হবে */
    background: #00a2f3;
    transform: scale(1.1);
}

/* মোবাইল রেসপনসিভ */
@media (max-width: 768px) {
    .telegram-float {
        padding: 15px;
        bottom: 20px;
        right: 20px;
    }
    .telegram-float span {
        display: none;
    }
}