/* --- FRAMER RESUMEFLOW PREMIUM DESIGN THEME --- */
:root {
    --bg-color: #050507;
    --text-main: #f3f4f6;
    --text-muted: #8e8e93;
    --text-dim: #48484a;
    --accent: #ffffff;
    --border-color: #1c1c1e;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    color: var(--text-main);
    font-family: var(--font-sans);
    /* background-color এখানে রাখা যাবে না, এটি অ্যানিমেশন ব্লক করছিল */
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

.font-mono {
    font-family: var(--font-mono);
}

/* --- APP LAYOUT --- */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    /* কন্টেন্টকে অ্যানিমেশন লেয়ারের উপরে রাখবে */
}

@media (min-width: 1024px) {
    .app-container {
        flex-direction: row;
        gap: 4rem;
        padding: 0 2rem;
    }
}

/* --- SIDEBAR --- */
.sidebar {
    padding: 3rem 1.5rem 2rem 1.5rem;
    background: rgba(5, 5, 7, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
    .sidebar {
        width: 40%;
        height: 100vh;
        position: sticky;
        top: 0;
        padding: 4rem 0;
        display: flex;
        flex-direction: column;
        background: transparent;
        backdrop-filter: none;
    }
}

.sidebar-sticky {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    padding-right: 0.75rem;
}

.sidebar-sticky::-webkit-scrollbar {
    width: 4px;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.sidebar-sticky::-webkit-scrollbar-track {
    background: transparent;
}

.profile-status {
    font-size: 0.75rem;
    color: #34c759;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.sidebar h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.sidebar h2 {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.sidebar .bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 340px;
}

/* SIDEBAR NAV */
.nav-links {
    display: none;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 2.5rem 0;
    }
}

.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s, padding-left 0.2s;
}

.nav-item span {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent);
    padding-left: 0.5rem;
}

.nav-item:hover span,
.nav-item.active span {
    color: var(--text-muted);
}

/* CTA BUTTON */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

/* --- CONTENT AREA --- */
.content-area {
    padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
    .content-area {
        width: 60%;
        padding: 4rem 0 6rem 0;
        background: transparent;
    }
}

.content-section {
    margin-bottom: 5rem;
}

.large-text {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #f3f4f6;
    font-weight: 300;
}

.large-text strong {
    color: #fff;
    font-weight: 500;
}

.section-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 2.5rem;
}

/* TIMELINE STYLING */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .timeline-item {
        flex-direction: row;
    }
}

.timeline-item .time {
    font-size: 0.75rem;
    color: var(--text-dim);
    min-width: 120px;
    padding-top: 0.25rem;
}

.timeline-item h4 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item h4 .company {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1rem;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.tech-tags {
    font-size: 0.75rem;
    color: var(--text-dim);
    word-spacing: 0.1em;
}

/* PROJECT LIST STYLING */
.project-list {
    display: flex;
    flex-direction: column;
}

.project-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: border-color 0.3s, background-color 0.3s, padding-left 0.3s;
}

@media (min-width: 640px) {
    .project-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 250px;
}

.project-year {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.project-row h4 {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 500;
    transition: color 0.2s;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-grow: 1;
    line-height: 1.5;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .project-desc {
        margin-top: 0;
    }
}

.project-arrow {
    display: none;
    font-size: 1.1rem;
    color: var(--text-dim);
    transition: transform 0.2s, color 0.2s;
}

@media (min-width: 640px) {
    .project-arrow {
        display: block;
    }
}

/* EXPERTISE STYLING */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills-cat h5 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.skills-cat p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FOOTER */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 6rem;
}

.main-footer p {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* --- PROFILE IMAGE CONTAINER --- */
.profile-image-container {
    width: 80px;
    height: 80px;
    margin-bottom: 1.25rem;
    position: relative;
}

@media (min-width: 1024px) {
    .profile-image-container {
        width: 96px;
        height: 96px;
        margin-bottom: 1.5rem;
    }
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    display: block;
    position: relative;
    z-index: 2;
}

/* --- SOCIAL LINKS --- */
.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--accent);
}

@media (min-width: 1024px) {
    .social-links {
        margin-top: 2rem;
    }
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
}

.whatsapp-fab:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@media (max-width: 640px) {
    .whatsapp-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
}


/* ==========================================================================
   AI & SOFTWARE ARCHITECT ADVANCED COGNITIVE ANIMATIONS (CONFIRMED FIX)
   ========================================================================== */

/* ১. ১০০% দৃশ্যমান গ্লোয়িং সাইবার গ্রিড ইফেক্ট */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050507;
    /* বডির ব্যাকগ্রাউন্ড কালার সরাসরি এখানে পুশ করা হলো */
    background-image:
        linear-gradient(rgba(10, 132, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 132, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    animation: cyberGridMotion 20s linear infinite;
    will-change: background-position;
}

@keyframes cyberGridMotion {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* ২. প্রোফাইল সাইবার অরবিট অ্যানিমেশন (SA প্লেসহোল্ডার) */
.profile-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0d0d11 !important;
    border: 2px solid rgba(10, 132, 255, 0.3) !important;
    display: none;
    /* ইমেজ কোনো কারণে ক্রাশ বা মিসিং হলে এটি শো করবে */
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
}

.pulse-core {
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    animation: textGlow 2s ease-in-out infinite alternate;
    z-index: 2;
}

.orbit-line {
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 20%, rgba(10, 132, 255, 0.6) 50%, transparent 100%);
    animation: rotateOrbit 2.5s linear infinite;
    z-index: 1;
}

@keyframes rotateOrbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes textGlow {
    0% {
        opacity: 0.6;
        text-shadow: 0 0 4px rgba(10, 132, 255, 0);
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(10, 132, 255, 0.8);
    }
}

/* ৩. প্রজেক্ট কার্ড ইন্টারেক্টিভ নিওন গ্লো */
.project-row:hover {
    border-bottom-color: rgba(10, 132, 255, 0.5) !important;
    background: rgba(10, 132, 255, 0.03) !important;
    padding-left: 1.5rem !important;
}

.project-row:hover h4 {
    color: #0a84ff !important;
}

.project-row:hover .project-arrow {
    color: #0a84ff !important;
    transform: translate(4px, -4px);
}