* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden; /* শুধু side scroll বন্ধ */
}

body {
    font-family: Arial, sans-serif;
    background: #f9fafb;
    color: #111;
    display: flex;
    flex-direction: column;
}

/* ================= NAVBAR ================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(90deg, purple, orange);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: bold;
    font-size: 18px;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

/* ===== NAVBAR FINAL CLEAN STYLE ===== */
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 8px;
    transition: color 0.3s ease;
}

/* Hover */
nav ul li a:hover {
    color: #ffd700;
}

/* Active */
nav ul li a.active {
    color: black;
}

/* ================= MAIN ================= */
main {
    flex: 1;
    padding-top: 60px;  /* navbar height + gap */
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 50px;
}

/* ================= HERO ================= */
.hero {
    margin-top: 60px;
    text-align: center;
}
.hero h1 {
    white-space: nowrap;
    font-size: clamp(22px, 5vw, 42px);
    text-align: center;
}

.welcome {
    font-size: 18px;
    color: #a855f7;
    margin-bottom: 10px;
}

.home-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid #a855f7;
    margin: 15px 0;
    object-fit: cover;
}

.role {
    font-size: 14px;
    color: #a855f7;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 42px;
}

.subtitle {
    color: #555;
}

/* ================= CARD ================= */
.card {
    background: white;
    padding: 20px;
    margin: 20px auto;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* ================= ABOUT ================= */

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 8%;   /* আগে 80px → কমানো */
    gap: 40px;
}

/* LEFT */
.about-left {
    max-width: 520px;   /* একটু compact */
}

.section-title {
    font-size: 30px;   /* আগে 36px → ছোট */
    margin-bottom: 15px;
    text-align: left;
}

/* TEXT */
.about-text {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
    font-size: 14px;   /* ছোট */
}

.about-text span {
    color: #9333ea;
    font-weight: 600;  /* softer bold */
}

/* ===== CARD STYLE ===== */
.about-box {
    position: relative;
    background: #ffffff;
    padding: 10px 14px;   /* slim */
    margin: 10px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s;
}

/* Gradient top line */
.about-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;   /* পাতলা করা */
    background: linear-gradient(90deg, #9333ea, orange);
}

/* Hover */
.about-box:hover {
    transform: translateX(4px);
}

/* RIGHT IMAGE */
.about-right img {
    width: 230px;   /* আগে 280px → ছোট */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .section-title {
        text-align: center;
        font-size: 26px;
    }

    .about-left {
        text-align: center;
    }

    .about-right {
        margin-top: 15px;
    }

    .about-right img {
        width: 200px;
    }
}
/* ===== EDUCATION SECTION ===== */

/* Title */
.section-title {
    text-align: center;
    font-size: 32px;
    margin: 40px 0;
    position: relative;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, purple, orange);
    display: block;
    margin: 8px auto 0;
}

/* Container (FIX: 3 cards per row) */
.edu-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px 10%;
    justify-items: center;
}

/* Card */
.edu-card {
    background: #ffffff;
    padding: 25px;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* 🔥 Top Gradient Line */
.edu-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: linear-gradient(90deg, purple, orange);
}

/* Hover Effect */
.edu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Title */
.edu-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #6d28d9;
    margin-bottom: 8px;
}

/* Institute */
.edu-place {
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Year */
.edu-year {
    color: #555;
    font-size: 14px;
}

/* ===== RESPONSIVE (MODIFIED) ===== */

/* Tablet */
@media (max-width: 1024px) {
    .edu-container {
        grid-template-columns: repeat(3, 1fr); /* 🔥 3 card same */
        gap: 15px;
    }

    .edu-card {
        padding: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .edu-container {
        grid-template-columns: repeat(3, 1fr); /* 🔥 still 3 */
        gap: 10px;
        padding: 15px 5%;
    }

    .edu-card {
        padding: 12px;
        max-width: 100%; /* important */
    }

    .edu-card h3 {
        font-size: 13px;
    }

    .edu-place {
        font-size: 12px;
    }

    .edu-year {
        font-size: 11px;
    }
}

/* ===== SKILLS CONTAINER ===== */
.skills-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* ===== SKILL CARD ===== */
.skill-card {
    position: relative;
    background: white;
    padding: 25px;
    width: 260px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* ===== Gradient Top Line ===== */
.skill-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, orange);
}

/* ===== Hover Effect ===== */
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ===== Title ===== */
.skill-card h3 {
    color: #9333ea;
    margin-bottom: 12px;
}

/* ===== Text ===== */
.skill-card p {
    margin: 6px 0;
    color: #444;
}
/* ================= CONTACT ================= */

.contact-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Contact Card */
.contact-card {
    position: relative;
    background: #ffffff;
    width: 280px;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    overflow: hidden;
}

/* Gradient top line */
.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #a855f7, orange);
}

/* Hover */
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Title */
.contact-card h3 {
    color: #9333ea;
    margin-bottom: 8px;
}

/* Text */
.contact-card p {
    color: #333;
    font-size: 14px;
}

/* Link */
.contact-card a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    font-weight: bold;
    background: linear-gradient(90deg, #a855f7, orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover link */
.contact-card a:hover {
    opacity: 0.7;
}

/* ================= CERTIFICATION ================= */

.cert-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* CARD */
.cert-card {
    position: relative;
    background: #ffffff;
    width: 300px;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s;
}

/* Gradient top */
.cert-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, orange);
}

/* IMAGE */
.cert-card img {
    width: 100%;
    border-radius: 8px;
}

/* TITLE */
.cert-card h3 {
    margin: 10px 0;
    color: #222;   /* visible text */
    font-size: 16px;
}

/* BUTTON */
.cert-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    background: linear-gradient(90deg, #a855f7, orange);
    transition: 0.3s;
}

/* BUTTON HOVER */
.cert-card a:hover {
    opacity: 0.8;
}

/* HOVER CARD */
.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 15px;
    background: #f1f1f1;
    margin-top: auto;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {

    nav {
        flex-direction: column;
    }

    .about-container {
        flex-direction: column;
    }
}
/* ===== HERO BUTTONS ===== */
.hero-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px; /* button gap */
    flex-wrap: wrap; /* mobile e nicely wrap korbe */
}

/* Primary Button */
.btn-primary {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, purple, orange);
    color: white;
    font-weight: 500;
    transition: 0.3s;
}
/* ===== RESEARCH BUTTON (FULL GRADIENT) ===== */
.btn-secondary {
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;

    /* FULL GRADIENT COLOR */
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    border: none;

    transition: 0.3s;
}

/* HOVER EFFECT */
.btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(59,130,246,0.4);
}
/* ===== RESEARCH BUTTON ===== */
.research-btn {
    padding: 10px 22px;
    border-radius: 25px;
    border: 2px solid #a855f7;
    color: #a855f7;
    background: transparent;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
/* ================= EXPERIENCE SECTION ================= */

.exp-section {
    background: #ffffff;
    color: black;
    padding: 80px 10%;
}

/* ===== TITLE ===== */
.exp-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
}

.exp-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, purple, orange);
    display: block;
    margin: 8px auto 0;
}

/* ================= GRID (3 COLUMN) ================= */

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

/* old timeline remove */
.timeline::before {
    display: none;
}

.timeline-item {
    display: block;
}

/* circle remove */
.circle {
    display: none;
}

/* ================= CARD DESIGN ================= */

.content {
    background: #ffffff;
    color: black;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

/* top gradient line */
.content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, purple, orange);
}

/* hover */
.content:hover {
    transform: translateY(-6px);
}

/* ================= TEXT STYLE ================= */

/* date */
.date {
    color: #7c3aed;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* title */
.content h3 {
    margin: 5px 0;
    font-size: 20px;
}

/* company (NO highlight, only color) */
.company {
    font-weight: bold;
    margin: 5px 0 10px;
    background: linear-gradient(90deg, purple, orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* description */
.content p {
    color: #555;
    line-height: 1.6;
}

/* ================= TAGS ================= */

.tags {
    margin-top: 12px;
}

.tags span {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 20px;
    font-size: 13px;
    background: linear-gradient(90deg, purple, orange);
    color: white;
    transition: 0.3s;
}

/* hover */
.tags span:hover {
    background: linear-gradient(90deg, purple, orange);
    color: white;
}

/* ================= RESPONSIVE ================= */

/* tablet */
@media(max-width: 992px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */
@media(max-width: 600px) {
    .timeline {
        grid-template-columns: 1fr;
    }

    .exp-section {
        padding: 50px 20px;
    }
}
/* ===== GLOBAL CARD CENTER ALIGN ===== */

/* সব ধরনের card detect করে center করবে */
[class*="card"] {
    text-align: center;
}

/* card এর ভিতরের সব text */
[class*="card"] h1,
[class*="card"] h2,
[class*="card"] h3,
[class*="card"] p,
[class*="card"] span {
    text-align: center;
}

/* experience tags center */
.tags {
    text-align: center;
}
.research-card {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Gradient Header Effect */
.research-card h3 {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 20px;
}

.research-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}
/* ===== PROJECT SECTION ===== */
.project-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 40px 10%;
}

/* ===== CARD ===== */
.project-card {
    position: relative;
    background: #ffffff;
    width: 280px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
    overflow: hidden;
}

/* TOP GRADIENT LINE */
.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #9333ea, orange);
}

/* HOVER EFFECT */
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* TITLE */
.project-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* DESCRIPTION */
.project-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* ===== BUTTON ===== */
.project-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: white;

    background: linear-gradient(90deg, #9333ea, orange);
    transition: 0.3s;
}
/* BUTTON HOVER */
.project-btn:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.project-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-buttons a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 500;
    color: white;
    background: linear-gradient(45deg, #7b2ff7, #f107a3, #ff8c00);
    transition: 0.3s;
}

.project-buttons a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
