/* Google Fonts থেকে Poppins font আনা হচ্ছে — ওজন ৩০০, ৪০০, ৬০০, ৮০০ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

/* সব element-এর default margin ও padding শূন্য করা, সবখানে Poppins font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* padding ও border size-এর ভেতরে থাকবে */
    font-family: 'Poppins', sans-serif;
}

/* body — পুরো পেজের মূল স্টাইল */
body {
    /* উপরে গাঢ় বাদামি থেকে নিচে কালোতে gradient background */
    background: radial-gradient(circle at top, #2b180f 0%, #0c0908 100%);
    background-attachment: fixed; /* scroll করলেও background একই থাকে */
    color: white; /* সব লেখা সাদা রঙের */
    scroll-behavior: smooth; /* scroll করলে smooth যাবে */
    overflow-x: hidden; /* পাশে extra scroll বন্ধ */
}

/* ========== NAVBAR — উপরের মেনু বার ========== */
.navbar {
    display: flex; /* items পাশাপাশি রাখো */
    justify-content: space-between; /* দুই প্রান্তে items রাখো */
    align-items: center; /* উপর-নিচে মাঝখানে */
    padding: 10px 5%; /* ভেতরে ফাঁকা জায়গা */
    background: rgba(43, 24, 15, 0.4); /* হালকা স্বচ্ছ বাদামি background */
    backdrop-filter: blur(15px); /* পেছনটা ঝাপসা দেখাবে (glass effect) */
    position: fixed; /* পেজ scroll করলেও navbar উপরে থাকে */
    top: 20px; /* উপর থেকে ২০px নিচে */
    left: 50%; /* বাম থেকে মাঝখানে আনো */
    transform: translateX(-50%); /* ঠিক মাঝখানে center করো */
    width: 90%; /* পেজের ৯০% চওড়া */
    border-radius: 50px; /* চারপাশে গোলাকার কোণ */
    border: 1px solid rgba(255, 255, 255, 0.1); /* হালকা সাদা border */
    z-index: 1000; /* সব কিছুর উপরে থাকবে */
}

/* Logo এর পাশে icon রাখার container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px; /* logo ও text এর মাঝে ফাঁক */
}

/* Navbar-এ PUC logo ছবি */
.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* গোলাকার */
    object-fit: cover; /* ছবি কেটে ঠিকমতো ফিট */
}

/* "PUC HUB" লেখাটার স্টাইল */
.logo {
    font-size: 22px;
    font-weight: 700; /* মোটা লেখা */
    color: #f39c12; /* কমলা রঙ */
}

/* Navbar-এর menu links list */
.nav-links {
    list-style: none; /* bullet point নেই */
    display: flex;
    gap: 25px; /* links এর মাঝে ফাঁক */
    align-items: center;
}

/* প্রতিটা nav link */
.nav-links a {
    text-decoration: none; /* underline নেই */
    color: #ddd; /* হালকা সাদা রঙ */
    font-size: 14px;
    transition: 0.3s; /* hover animation ০.৩ সেকেন্ড */
}

/* mouse দিয়ে hover করলে কমলা হবে */
.nav-links a:hover { color: #f39c12; }

/* Login বাটনের স্টাইল */
.login-btn {
    background: #e67e22; /* কমলা background */
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 10px; /* গোলাকার কোণ */
    font-weight: 600;
    cursor: pointer; /* mouse দিলে pointer দেখাবে */
}

/* ========== HERO SECTION — প্রথম দেখা বড় section ========== */
.hero {
    padding-top: 200px; /* উপরে ২০০px ফাঁকা (navbar এর জায়গা) */
    text-align: center; /* সব লেখা মাঝখানে */
    min-height: 70vh; /* viewport-এর কমপক্ষে ৭০% উচ্চতা */
    display: flex;
    flex-direction: column; /* items উপর-নিচে রাখো */
    justify-content: center;
    align-items: center;
    position: relative; /* ভেতরে absolute element রাখার জন্য */
}

/* Hero-তে পেছনে হালকা PUC logo দেখানো */
.hero-bg-logo {
    position: absolute; /* hero-র ভেতরে ভাসমান */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* ঠিক মাঝখানে */
    width: 100%;
    height: 100%;
    background-image: url('assets/2.jpg'); /* PUC logo ছবি */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* পুরো logo দেখাবে */
    opacity: 0.05; /* মাত্র ৫% দেখা যাবে (খুব হালকা) */
    z-index: -1; /* সব কিছুর পেছনে */
    filter: blur(2px); /* একটু ঝাপসা */
}

/* ========== TITLE ANIMATION — বড় শিরোনামের animation ========== */
.joss-title {
    font-size: 75px; /* বড় ফন্ট */
    font-weight: 800; /* সবচেয়ে মোটা */
    text-transform: uppercase; /* সব বড় হাতে */
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* ছোট স্ক্রিনে wrap হবে */
    position: relative;
    z-index: 1; /* পেছনের logo-র সামনে */
    margin-bottom: 20px;
}

/* প্রতিটা অক্ষর আলাদাভাবে animate হবে */
.letter {
    display: inline-block;
    opacity: 0; /* শুরুতে অদৃশ্য */
    transform: translateX(-50px); /* বাম দিকে ৫০px সরানো */
    background: linear-gradient(135deg, #f39c12, #e67e22); /* কমলা gradient রঙ */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* রঙ gradient থেকে আসবে */
    animation: flyIn 0.5s forwards; /* flyIn animation চলবে */
}

/* flyIn animation — বাম থেকে ডানে আসে, দেখা যায় */
@keyframes flyIn {
    to {
        opacity: 1; /* পুরো দেখা যাবে */
        transform: translateX(0); /* আসল জায়গায় ফিরবে */
    }
}

/* প্রতিটা অক্ষর একটু দেরিতে শুরু হয় — একটার পর একটা effect */
.letter:nth-child(1)  { animation-delay: 0.1s; }
.letter:nth-child(2)  { animation-delay: 0.2s; }
.letter:nth-child(3)  { animation-delay: 0.3s; }
.letter:nth-child(4)  { animation-delay: 0.4s; }
.letter:nth-child(5)  { animation-delay: 0.5s; }
.letter:nth-child(6)  { animation-delay: 0.6s; }
.letter:nth-child(7)  { animation-delay: 0.7s; }
.letter:nth-child(8)  { animation-delay: 0.8s; }
.letter:nth-child(9)  { animation-delay: 0.9s; }
.letter:nth-child(10) { animation-delay: 1.0s; }
.letter:nth-child(11) { animation-delay: 1.1s; }
.letter:nth-child(12) { animation-delay: 1.2s; }
.letter:nth-child(13) { animation-delay: 1.3s; }
.letter:nth-child(14) { animation-delay: 1.4s; }
.letter:nth-child(15) { animation-delay: 1.5s; }
.letter:nth-child(16) { animation-delay: 1.6s; }
.letter:nth-child(17) { animation-delay: 1.7s; }
.letter:nth-child(18) { animation-delay: 1.8s; }

/* Hero-র ছোট বর্ণনা লেখা */
.hero p {
    color: #bbb; /* হালকা ধূসর */
    font-size: 18px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* ========== STATS SECTION — সংখ্যা দেখানোর section ========== */
.stats-overview {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* ছোট স্ক্রিনে নিচে যাবে */
    gap: 30px; /* items এর মাঝে ফাঁক */
    padding: 50px 5%;
    background: rgba(43, 24, 15, 0.2); /* হালকা স্বচ্ছ background */
    border-top: 1px solid rgba(243, 156, 18, 0.1); /* উপরে হালকা কমলা line */
    border-bottom: 1px solid rgba(243, 156, 18, 0.1); /* নিচে হালকা কমলা line */
    margin: 50px 0;
}

/* প্রতিটা stat item */
.stat-item {
    text-align: center;
    min-width: 150px; /* কমপক্ষে এতটুকু চওড়া */
}

/* বড় সংখ্যা (counter) */
.stat-item h2 {
    display: inline-block;
    font-size: 35px;
    color: #f39c12; /* কমলা */
    font-weight: 800;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.3); /* হালকা glow effect */
}

/* সংখ্যার নিচের ছোট লেখা */
.stat-item p {
    color: #888; /* ধূসর */
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px; /* অক্ষরের মাঝে ফাঁক */
    margin-top: 5px;
}

/* ========== SERVICES SECTION — সেবাসমূহ ========== */
.services {
    padding: 80px 8%; /* চারপাশে ফাঁকা */
}

/* section-এর বড় শিরোনাম */
.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    color: #f39c12;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* service cards এর grid layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* auto-fit: যত জায়গা আছে তত column, minmax: কমপক্ষে ২৮০px */
    gap: 25px;
}

/* প্রতিটা service card */
.service-card {
    background: rgba(43, 24, 15, 0.4); /* হালকা স্বচ্ছ বাদামি */
    border: 1px solid rgba(243, 156, 18, 0.2); /* হালকা কমলা border */
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    cursor: pointer;
    transition: 0.4s; /* hover animation ০.৪ সেকেন্ড */
    backdrop-filter: blur(10px); /* glass effect */
}

/* card-এ hover করলে উপরে উঠবে */
.service-card:hover {
    transform: translateY(-10px); /* ১০px উপরে */
    border-color: #f39c12; /* কমলা border */
    background: rgba(243, 156, 18, 0.1);
}

.service-card .icon { font-size: 40px; margin-bottom: 15px; } /* emoji icon */
.service-card h3 { color: #f39c12; font-size: 20px; } /* card title কমলা */
.service-card p { color: #ccc; font-size: 14px; } /* card description */

/* ========== TEAM SECTION — দলের সদস্যরা ========== */
.team-section {
    padding: 80px 0;
    overflow: hidden; /* বাইরে যাওয়া অংশ লুকানো */
}

/* slider-এর বাইরের wrapper */
.team-slider-wrapper {
    display: flex;
    width: 100%;
}

/* সব card যেখানে থাকে — এটা auto scroll করে */
.team-track {
    display: flex;
    gap: 30px;
    animation: infiniteScroll 35s linear infinite;
    /* ৩৫ সেকেন্ডে একবার পুরো scroll, বারবার চলবে */
    width: max-content; /* content যতটুকু দরকার */
}

/* infiniteScroll animation — বাম দিকে সরতে থাকে */
@keyframes infiniteScroll {
    0%   { transform: translateX(0); } /* শুরু */
    100% { transform: translateX(calc(-310px * 5)); }
    /* ৫টা card × ৩১০px = ৫ card সরে যাবে, তারপর loop */
}

/* প্রতিটা team member card */
.member-card {
    width: 280px; /* নির্দিষ্ট চওড়া */
    background: rgba(43, 24, 15, 0.4);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative; /* badge position এর জন্য */
}

/* team member-এর ছবি */
.member-card img {
    width: 150px;
    height: 150px;
    border-radius: 20px; /* একটু গোলাকার কোণ */
    object-fit: cover;
    border: 3px solid #f39c12;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3); /* হালকা glow */
}

/* "Group Leader" বা "Member" badge */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e67e22; /* কমলা */
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 30px;
    font-weight: 700;
}

.member-card h3 { color: #fff; margin-bottom: 5px; } /* member name */
.dept { color: #f39c12; font-size: 13px; margin-bottom: 15px; } /* department */

/* clubs তালিকার container */
.clubs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

/* প্রতিটা club badge */
.clubs span {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: #ccc;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 5px;
}

/* Group Leader card-এ সোনালী glow */
.leader-glow {
    border-color: #f1c40f;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.15);
}

/* Sub Leader card-এ কমলা glow */
.sub-leader-glow {
    border-color: #e67e22;
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.15);
}

/* ========== FOOTER ========== */
.footer {
    padding: 50px 5% 30px;
    background: #0c0908; /* একদম কালো */
    border-top: 1px solid rgba(243, 156, 18, 0.2);
    text-align: center;
    margin-top: 50px;
}

/* footer-এর উপরের সরু সোনালী line */
.footer-divider {
    height: 1px;
    width: 80%;
    max-width: 600px;
    margin: 0 auto 30px;
    background: linear-gradient(to right, transparent, rgba(243, 156, 18, 0.3), transparent);
    /* মাঝে উজ্জ্বল, দুই পাশে মিলিয়ে যায় */
}

/* footer links row */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* footer-এর প্রতিটা link */
.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

/* hover করলে কমলা */
.footer-links a:hover { color: #f39c12; }

/* copyright লেখা */
.copyright {
    color: #888;
    font-size: 14px;
    letter-spacing: 1px;
    padding-top: 20px;
    border-top: 1px solid rgba(243, 156, 18, 0.1);
}

/* copyright-এর ভেতরের কমলা অংশ */
.copyright span {
    color: #f39c12;
    font-weight: 600;
}

/* ========== RESPONSIVE — ছোট স্ক্রিনের জন্য ========== */
@media (max-width: 768px) {
    .joss-title { font-size: 40px; } /* title ছোট */
    .services-grid { grid-template-columns: 1fr; } /* একটি column */
    .stats-overview { gap: 20px; }
    .footer-links { gap: 15px; flex-direction: column; } /* links নিচে নিচে */
}

/* ========== BACK TO TOP BUTTON — উপরে ফেরার বাটন ========== */
.back-to-top {
    position: fixed; /* স্ক্রিনের নির্দিষ্ট জায়গায় স্থির */
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 50%; /* পুরো গোলাকার */
    font-size: 24px;
    cursor: pointer;
    display: none; /* শুরুতে লুকানো */
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
    z-index: 999;
    transition: all 0.3s;
}

/* hover করলে গাঢ় কমলা ও উপরে উঠবে */
.back-to-top:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.5);
}

/* .show class যোগ হলে দেখা যাবে */
.back-to-top.show { display: flex; }

/* ========== ACTIVE NAV LINK ========== */
/* যে section-এ আছো সেই nav link কমলা ও মোটা হয় */
.nav-link.active {
    color: #f39c12 !important;
    font-weight: 600;
}

/* smooth scroll, navbar-এর নিচে যেন content না ঢাকে */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* উপরে ১০০px ফাঁকা রাখবে */
}

/* ========== PROFILE DROPDOWN — profile menu ========== */
.profile-dropdown {
    position: relative; /* dropdown menu position-এর reference */
    display: inline-block;
}

/* profile বাটন — ছবি ও নাম সহ */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(243,156,18,0.1);
    border: 1px solid rgba(243,156,18,0.3);
    border-radius: 30px; /* পিল আকৃতি */
    padding: 5px 15px 5px 5px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

/* hover করলে একটু উজ্জ্বল */
.profile-btn:hover { background: rgba(243,156,18,0.2); }

/* navbar-এ ছোট গোলাকার profile ছবি */
.profile-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f39c12;
}

/* dropdown menu — শুরুতে লুকানো */
.dropdown-content {
    display: none; /* hover না হলে দেখা যাবে না */
    position: absolute;
    right: 0; /* ডান দিক বরাবর */
    top: 45px; /* profile বাটনের নিচে */
    background: rgba(43,24,15,0.95);
    backdrop-filter: blur(10px);
    min-width: 150px;
    border: 1px solid rgba(243,156,18,0.3);
    border-radius: 10px;
    z-index: 1000;
}

/* dropdown-এর প্রতিটা link */
.dropdown-content a {
    color: #ddd;
    padding: 12px 16px;
    text-decoration: none;
    display: block; /* পুরো row-জুড়ে clickable */
    font-size: 14px;
    transition: 0.3s;
}

/* link-এ hover করলে হালকা কমলা background */
.dropdown-content a:hover {
    background: rgba(243,156,18,0.1);
    color: #f39c12;
}

/* profile-dropdown-এ hover করলে menu দেখাবে */
.profile-dropdown:hover .dropdown-content { display: block; }

/* ========== DISABLED SERVICE CARD ========== */
/* যে service এখনো চালু হয়নি */
.service-card.disabled {
    opacity: 0.5; /* ৫০% ঝাপসা */
    cursor: not-allowed; /* "বন্ধ" cursor */
    pointer-events: none; /* click কাজ করবে না */
}

/* disabled card-এ hover কোনো effect নেই */
.service-card.disabled:hover {
    transform: none;
    border-color: rgba(243,156,18,0.2);
    background: rgba(43,24,15,0.4);
}

/* ========== HISTORY / ACTIVITY PAGE ========== */
/* my activity পেজের মূল wrapper */
.history-page {
    min-height: 100vh;
    padding: 100px 20px 40px;
    background: radial-gradient(circle at top, #2b180f 0%, #0c0908 100%);
}

/* history পেজের card container */
.history-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(43, 24, 15, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* history পেজের শিরোনাম অংশ */
.history-header {
    text-align: center;
    margin-bottom: 30px;
}

.history-header h2 {
    color: #f39c12;
    font-size: 32px;
    margin-bottom: 10px;
}

.history-header p {
    color: #aaa;
    font-size: 16px;
}

/* stats summary cards এর grid */
.user-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* প্রতিটা summary card */
.summary-card {
    background: rgba(243,156,18,0.1);
    border: 1px solid rgba(243,156,18,0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.summary-card h3 {
    color: #f39c12;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* summary card-এর বড় সংখ্যা */
.summary-card .number {
    font-size: 36px;
    font-weight: 800;
    color: white;
}

/* search ও filter row */
.history-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* filter input ও select dark theme */
.history-filters input,
.history-filters select {
    padding: 12px 15px;
    background: rgba(43, 24, 15, 0.8) !important; /* গাঢ় বাদামি */
    border: 1px solid rgba(243,156,18,0.3);
    border-radius: 10px;
    color: #ffffff !important; /* সাদা লেখা */
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

/* select-এর option গুলোও dark */
.history-filters select option {
    background: rgba(43, 24, 15, 0.8) !important;
    color: #ffffff !important;
}

/* focus করলে কমলা border */
.history-filters input:focus,
.history-filters select:focus {
    outline: none;
    border-color: #f39c12;
}

/* activity table */
.history-table {
    width: 100%;
    border-collapse: collapse; /* দুই cell-এর মাঝে কোনো gap নেই */
    margin-top: 20px;
}

/* table header */
.history-table th {
    background: rgba(243,156,18,0.2);
    color: #f39c12;
    padding: 15px;
    font-size: 14px;
    text-align: left;
    border-bottom: 2px solid #f39c12; /* নিচে মোটা কমলা line */
}

/* table-এর data cell */
.history-table td {
    padding: 12px 15px;
    color: #ddd;
    border-bottom: 1px solid rgba(243,156,18,0.1);
    font-size: 14px;
}

/* row-এ hover করলে হালকা কমলা tint */
.history-table tr:hover { background: rgba(243,156,18,0.05); }

/* service নামের ছোট badge */
.service-badge {
    background: rgba(243,156,18,0.2);
    color: #f39c12;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

/* table-এ ছোট user ছবি */
.user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f39c12;
    margin-right: 8px;
    vertical-align: middle; /* text-এর সাথে মাঝখানে */
}

/* data না থাকলে এই message দেখায় */
.no-data {
    text-align: center;
    color: #888;
    padding: 40px;
    font-style: italic;
}

/* pagination বাটন row */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

/* প্রতিটা page number বাটন */
.pagination button {
    background: rgba(243,156,18,0.1);
    border: 1px solid rgba(243,156,18,0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

/* active বা hover করা page বাটন */
.pagination button:hover,
.pagination button.active {
    background: #f39c12;
    border-color: #f39c12;
}

/* CSV export বাটন */
.export-btn {
    background: #27ae60; /* সবুজ */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto; /* ডান দিকে ঠেলে দাও */
}

.export-btn:hover { background: #2ecc71; } /* hover করলে উজ্জ্বল সবুজ */

/* ========== ADMIN PAGE ========== */
/* admin পেজে summary card নীল থিমের */
.admin-page .summary-card {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db; /* নীল border */
}

.admin-page .summary-card h3 { color: #3498db; } /* নীল title */