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

/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #1f242d;
    color: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(31, 36, 45, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.navbar .logo {
    font-size: 28px;
    font-weight: 700;
    color: #7cf03d;
}

/* Desktop & Tablet: nav-links সবসময় দেখা যাবে */
.nav-links {
    display: flex;
    gap: 30px;
    flex-direction: row;
    position: static;
    width: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    font-size: 18px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
}

.nav-links li:hover a,
.nav-links li.active a {
    color: #7cf03d;
}

/* Hamburger button */
.menu-toggle {
    display: none; /* ডেস্কটপে লুকানো */
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* ================= HOME ================= */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 80px 9% 0;
    gap: 40px;
}

.home-info h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.home-info h2 {
    font-size: 24px;
    font-weight: 500;
    color: #aaa;
    margin-bottom: 15px;
}

.home-info p {
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 500px;
}

/* ================= HOME PROFILE IMAGE ================= */
.home-img .img-box {
    position: relative;
    width: clamp(300px, 40vw, 600px); /* 🔼 বড় করা হলো */
    aspect-ratio: 1/1;
    border-radius: 50%;
    padding: 6px;
    display: flex;
    background: white;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: width 0.3s ease;
}

.home-img .img-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(transparent, transparent, transparent, #7cf03d);
    animation: rotate 4s linear infinite;
}

.home-img .img-box .img-item {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1f242d;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.home-img .img-box .img-item img {
    width: 95%;
    height: 95%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.home-img .img-box:hover .img-item img {
    transform: scale(1.05);
}

/* ================= SECTIONS ================= */
.section {
    padding: 80px 9%;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 10px auto 0;
    background: #7cf03d;
    border-radius: 2px;
}

/* ================= GRID & CARDS ================= */
.grid {
    display: grid;
    gap: 25px;
}

.cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: #252b36;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

/* ================= ABOUT CARDS ================= */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.about-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #7cf03d;
}

.about-card p {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ================= CONTACT ================= */
.contact-info {
    text-align: center;
    font-size: 16px;
}

.contact-info p {
    margin: 10px 0;
}

.contact-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.btn.outline {
    border: 2px solid #7cf03d;
    color: #7cf03d;
}

.btn.outline:hover {
    background: #7cf03d;
    color: #1f242d;
}

/* ================= FOOTER ================= */
.footer {
    padding: 20px 9%;
    background: #181c24;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer .text-link {
    display: inline-block;
    margin-top: 8px;
    color: #7cf03d;
    font-weight: 500;
}

/* ================= ANIMATIONS ================= */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 5%;
    }
    .home {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 40px;
        height: auto;
    }
    .home-info h1 { font-size: 36px; }
    .home-info h2 { font-size: 20px; }
    .home-info p { font-size: 15px; max-width: 100%; }
    .section { padding: 60px 5%; }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* মোবাইলে menu-toggle দেখাবে */
    .menu-toggle {
        display: block;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        user-select: none;
    }

    /* মোবাইলে nav-links ডিফল্ট লুকানো */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 20px;
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        background: rgba(31, 36, 45, 0.98);
        padding: 20px;
        border-radius: 8px 0 0 8px;
        z-index: 999;
    }

    /* active ক্লাস থাকলে দেখাবে */
    .nav-links.active {
        display: flex !important;
    }

    .nav-links li a { font-size: 16px; }

    .home-info h1 { font-size: 28px; }
    .home-info h2 { font-size: 18px; }
    .home-info p { font-size: 14px; }
    .section-title { font-size: 26px; }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .navbar { padding: 10px 4%; }
    .navbar .logo { font-size: 20px; }
    .nav-links li a { font-size: 14px; }

    .home-info h1 { font-size: 24px; }
    .home-info h2 { font-size: 16px; }
    .home-info p { font-size: 13px; }

    .btn { padding: 8px 14px; font-size: 13px; }
    .section-title { font-size: 22px; }
}
