/* =====================================================
                    GLOBAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #111827;
    line-height: 1.6;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

body.dark {
    background: #0b1120;
    color: #f8fafc;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: min(1120px, 92%);
    margin: auto;
}

.section {
    padding: 100px 0;
}

section {
    scroll-margin-top: 80px;
}


/* =====================================================
                    NAVBAR
===================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,0.94);

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid #e5e7eb;
}

body.dark .header {
    background:
        rgba(11,17,32,0.94);

    border-color: #1e293b;
}

.navbar {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 800;
}

.logo span {
    color: #2563eb;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle,
.menu-btn,
.close-menu {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.theme-toggle {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #f1f5f9;
    color: #111827;
}

body.dark .theme-toggle {
    background: #1e293b;
    color: #f8fafc;
}

.menu-btn,
.close-menu {
    display: none;
    font-size: 22px;
}


/* =====================================================
                        HERO
===================================================== */

.hero {
    min-height: calc(100vh - 72px);

    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;

    grid-template-columns:
        1.1fr 0.9fr;

    gap: 60px;

    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 8px 13px;

    border-radius: 30px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 25px;
}

body.dark .hero-badge {
    background: #172554;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;
}

.hero h1 {
    font-size:
        clamp(42px, 6vw, 72px);

    line-height: 1.08;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.hero h1 span {
    color: #2563eb;
    display: block;
}

.hero-description {
    max-width: 620px;

    color: #64748b;

    font-size: 17px;

    margin-bottom: 30px;
}

body.dark .hero-description {
    color: #94a3b8;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 13px 21px;

    border-radius: 10px;

    font-weight: 700;
    font-size: 14px;

    transition: 0.3s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;

    transform:
        translateY(-2px);
}

.btn-secondary {
    border:
        1px solid #dbe2ea;

    color: #111827;
}

body.dark .btn-secondary {
    border-color: #334155;
    color: #f8fafc;
}

.btn-secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.hero-socials {
    display: flex;

    gap: 12px;

    margin-top: 28px;
}

.hero-socials a {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #f1f5f9;
    color: #475569;

    transition: 0.3s;
}

.hero-socials a:hover {
    background: #2563eb;
    color: white;

    transform:
        translateY(-3px);
}

body.dark .hero-socials a {
    background: #1e293b;
    color: #cbd5e1;
}


/* =====================================================
                    HERO VISUAL
===================================================== */

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 390px;
    height: 390px;

    position: relative;

    display: grid;
    place-items: center;
}

.profile-circle {
    width: 220px;
    height: 220px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #60a5fa
        );

    display: grid;
    place-items: center;

    box-shadow:
        0 25px 60px
        rgba(37,99,235,0.25);

    z-index: 2;
}

.profile-inner {
    width: 190px;
    height: 190px;

    border-radius: 50%;

    background: white;

    display: grid;
    place-items: center;

    font-size: 65px;
    font-weight: 800;

    color: #2563eb;
}

body.dark .profile-inner {
    background: #0f172a;
}

.orbit {
    position: absolute;

    border:
        1px dashed #93c5fd;

    border-radius: 50%;
}

.orbit-one {
    width: 310px;
    height: 310px;
}

.orbit-two {
    width: 380px;
    height: 380px;
}

.floating-card {
    position: absolute;

    z-index: 3;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px 17px;

    border-radius: 13px;

    background: white;

    box-shadow:
        0 15px 35px
        rgba(15,23,42,0.12);
}

body.dark .floating-card {
    background: #172033;
}

.floating-card i {
    color: #2563eb;
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong {
    font-size: 13px;
}

.floating-card span {
    font-size: 11px;
    color: #64748b;
}

.card-one {
    top: 35px;
    left: 0;
}

.card-two {
    right: -10px;
    bottom: 40px;
}


/* =====================================================
                    SECTION HEADING
===================================================== */

.section-heading {
    margin-bottom: 50px;
}

.section-heading.center {
    text-align: center;
}

.section-label {
    color: #2563eb;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}

.section-heading h2 {
    margin-top: 10px;

    font-size:
        clamp(30px, 4vw, 46px);

    line-height: 1.15;
}

.section-heading h2 span {
    color: #2563eb;
}

.section-heading p {
    color: #64748b;

    margin-top: 15px;

    max-width: 650px;
}

body.dark .section-heading p {
    color: #94a3b8;
}


/* =====================================================
                        ABOUT
===================================================== */

.about-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: start;
}

.about-text p {
    color: #64748b;
    margin-bottom: 20px;
}

body.dark .about-text p {
    color: #94a3b8;
}

.text-link {
    color: #2563eb;

    font-weight: 700;

    display: inline-flex;

    gap: 8px;
}

.about-stats {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}

.stat-card {
    padding: 25px;

    border:
        1px solid #e2e8f0;

    border-radius: 14px;

    background: #f8fafc;
}

body.dark .stat-card {
    background: #111827;
    border-color: #1e293b;
}

.stat-card strong {
    display: block;

    font-size: 30px;

    color: #2563eb;
}

.stat-card span {
    color: #64748b;

    font-size: 13px;
}

body.dark .stat-card span {
    color: #94a3b8;
}


/* =====================================================
                        SKILLS
===================================================== */

.skills {
    background: #f8fafc;
}

body.dark .skills {
    background: #0f172a;
}

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.skill-card {
    background: white;

    border:
        1px solid #e2e8f0;

    border-radius: 16px;

    padding: 28px;

    transition: 0.3s;
}

.skill-card:hover {
    transform:
        translateY(-6px);

    box-shadow:
        0 20px 40px
        rgba(15,23,42,0.08);
}

body.dark .skill-card {
    background: #111827;
    border-color: #1e293b;
}

.skill-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #eff6ff;
    color: #2563eb;

    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 10px;
}

.skill-card p {
    color: #64748b;

    font-size: 14px;

    margin-bottom: 18px;
}

body.dark .skill-card p {
    color: #94a3b8;
}

.skill-tags,
.project-tools {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.skill-tags span,
.project-tools span {
    background: #f1f5f9;

    color: #475569;

    padding: 5px 9px;

    border-radius: 6px;

    font-size: 11px;

    font-weight: 600;
}

body.dark .skill-tags span,
body.dark .project-tools span {
    background: #1e293b;
    color: #cbd5e1;
}


/* =====================================================
                        PROJECTS
===================================================== */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.project-card {
    border:
        1px solid #e2e8f0;

    border-radius: 17px;

    overflow: hidden;

    background: white;

    transition: 0.3s;
}

.project-card:hover {
    transform:
        translateY(-6px);

    box-shadow:
        0 20px 45px
        rgba(15,23,42,0.10);
}

body.dark .project-card {
    background: #111827;
    border-color: #1e293b;
}


/* PROJECT IMAGE */

.project-image {
    height: 270px;

    position: relative;

    overflow: hidden;

    background: #eaf2ff;
}


/*
    IMPORTANT:
    Image will NEVER become
    unusually large.
*/

.project-image > img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: top center;

    transition:
        transform 0.5s ease;
}

.project-card:hover
.project-image > img {
    transform: scale(1.03);
}


/* OBE VIDEO */

.video-thumbnail {
    width: 100%;
    height: 100%;

    position: relative;

    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.play-icon {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 65px;
    height: 65px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(37,99,235,0.95);

    color: white;

    font-size: 22px;
}


/* NUMBER */

.project-number {
    position: absolute;

    top: 14px;
    right: 14px;

    background:
        rgba(15,23,42,0.75);

    color: white;

    padding: 6px 10px;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 700;
}


/* PROJECT CONTENT */

.project-content {
    padding: 25px;
}

.project-meta {
    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 8px;
}

.project-content h3 {
    font-size: 21px;

    margin-bottom: 10px;
}

.project-content p {
    color: #64748b;

    font-size: 14px;

    margin-bottom: 17px;
}

body.dark .project-content p {
    color: #94a3b8;
}


/* PROJECT BUTTON */

.project-link {
    margin-top: 20px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #2563eb;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 8px;
}

.project-link:hover {
    color: #1d4ed8;
}


/* =====================================================
                        PROCESS
===================================================== */

.process {
    background: #f8fafc;
}

body.dark .process {
    background: #0f172a;
}

.process-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 20px;
}

.process-item {
    text-align: center;

    position: relative;
}

.process-number {
    font-size: 12px;

    color: #2563eb;

    font-weight: 800;

    margin-bottom: 15px;
}

.process-item > i {
    font-size: 24px;

    color: #2563eb;

    margin-bottom: 14px;
}

.process-item h3 {
    margin-bottom: 7px;
}

.process-item p {
    color: #64748b;

    font-size: 13px;
}

body.dark .process-item p {
    color: #94a3b8;
}


/* =====================================================
                        EXPERIENCE
===================================================== */

.timeline {
    max-width: 800px;

    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 10px;

    top: 0;
    bottom: 0;

    width: 2px;

    background: #dbeafe;
}

.timeline-item {
    position: relative;

    padding-left: 45px;

    margin-bottom: 45px;
}

.timeline-dot {
    position: absolute;

    left: 3px;
    top: 5px;

    width: 16px;
    height: 16px;

    background: #2563eb;

    border-radius: 50%;

    border: 4px solid white;
}

body.dark .timeline-dot {
    border-color: #0b1120;
}

.timeline-date {
    color: #2563eb;

    font-size: 12px;

    font-weight: 800;

    margin-bottom: 7px;
}

.timeline-content h4 {
    color: #64748b;

    font-size: 14px;

    margin:
        5px 0 10px;
}

.timeline-content p {
    color: #64748b;

    font-size: 14px;
}

body.dark
.timeline-content h4,
body.dark
.timeline-content p {
    color: #94a3b8;
}


/* =====================================================
                        CONTACT
===================================================== */

.contact {
    padding-bottom: 120px;
}

.contact-box {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 50px;

    padding: 55px;

    border-radius: 22px;

    background: #eff6ff;
}

body.dark .contact-box {
    background: #172554;
}

.contact-content h2 {
    font-size:
        clamp(32px, 4vw, 48px);

    line-height: 1.1;

    margin:
        12px 0 18px;
}

.contact-content h2 span {
    color: #2563eb;
}

.contact-content p {
    color: #64748b;

    max-width: 520px;

    margin-bottom: 25px;
}

body.dark .contact-content p {
    color: #bfdbfe;
}

.contact-links {
    display: grid;

    gap: 12px;
}

.contact-links a {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 17px;

    background: white;

    border-radius: 12px;

    transition: 0.3s;
}

.contact-links a:hover {
    transform:
        translateX(5px);

    box-shadow:
        0 10px 25px
        rgba(15,23,42,0.08);
}

body.dark .contact-links a {
    background: #0f172a;
}

.contact-links > a > i {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 10px;
}

.contact-links span,
.contact-links strong {
    display: block;
}

.contact-links span {
    color: #64748b;

    font-size: 11px;
}

.contact-links strong {
    font-size: 13px;
}


/* =====================================================
                        FOOTER
===================================================== */

.footer {
    border-top:
        1px solid #e2e8f0;

    padding: 25px 0;
}

body.dark .footer {
    border-color: #1e293b;
}

.footer-content {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.footer p {
    color: #64748b;

    font-size: 12px;
}

.back-top {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    background: #2563eb;

    color: white;

    border-radius: 9px;
}


/* =====================================================
                    PROJECT MODAL
===================================================== */

.project-modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;
}

.project-modal.show {
    display: block;
}


/* DARK BACKGROUND */

.modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(2,6,23,0.80);

    backdrop-filter:
        blur(7px);
}


/* MODAL BOX */

.modal-content {
    position: relative;

    width:
        min(1050px, 94%);

    max-height: 90vh;

    overflow-y: auto;

    margin: 5vh auto;

    background: white;

    border-radius: 18px;

    padding: 30px;

    z-index: 2;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,0.25);
}

body.dark .modal-content {
    background: #111827;

    color: white;
}


/* CLOSE BUTTON */

.modal-close {
    position: absolute;

    right: 18px;
    top: 18px;

    width: 40px;
    height: 40px;

    border: 0;

    border-radius: 50%;

    background: #f1f5f9;

    color: #111827;

    cursor: pointer;

    font-size: 18px;

    z-index: 5;
}

.modal-close:hover {
    background: #2563eb;

    color: white;
}

body.dark .modal-close {
    background: #1e293b;

    color: white;
}


/* MODAL HEADER */

.modal-header {
    padding-right: 50px;

    margin-bottom: 25px;
}

.modal-header span {
    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.modal-header h2 {
    margin-top: 5px;

    font-size:
        clamp(24px, 3vw, 32px);
}


/* GALLERY */

.modal-gallery {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


/*
    IMPORTANT:
    সব screenshot একই
    controlled size-এ থাকবে।
*/

.gallery-item {
    border-radius: 12px;

    overflow: hidden;

    border:
        1px solid #e2e8f0;

    cursor: pointer;

    background: #f8fafc;

    min-height: 240px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.gallery-item img {
    width: 100%;

    height: 280px;

    object-fit: contain;

    object-position: center;

    background: #f8fafc;

    display: block;

    transition:
        transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.015);
}

body.dark .gallery-item {
    background: #0f172a;

    border-color: #334155;
}

body.dark .gallery-item img {
    background: #0f172a;
}


/* =====================================================
                    FULL IMAGE VIEW
===================================================== */

.full-image-view {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background:
        rgba(2,6,23,0.94);

    backdrop-filter:
        blur(8px);
}

.full-image-view img {
    max-width: 92vw;

    max-height: 88vh;

    width: auto;

    height: auto;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
        0 25px 80px
        rgba(0,0,0,0.4);
}

.full-image-close {
    position: fixed;

    top: 25px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #111827;

    font-size: 20px;

    cursor: pointer;

    z-index: 5001;
}

.full-image-close:hover {
    background: #2563eb;

    color: white;
}


/* =====================================================
                    RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .skills-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .process-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 35px;
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
                    TABLET / MOBILE
===================================================== */

@media (max-width: 700px) {

    .nav-menu {

        position: fixed;

        top: 0;

        right: -100%;

        width:
            min(300px, 85%);

        height: 100vh;

        background: white;

        padding:
            90px 30px 30px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 22px;

        box-shadow:
            -10px 0 40px
            rgba(15,23,42,0.12);

        transition:
            right 0.3s ease;
    }

    body.dark .nav-menu {
        background: #111827;
    }

    .nav-menu.show {
        right: 0;
    }

    .menu-btn {
        display: block;
    }

    .close-menu {
        display: block;

        position: absolute;

        right: 22px;
        top: 22px;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-card {
        transform:
            scale(0.82);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .contact-box {
        padding: 30px 22px;
    }

    .modal-content {
        width: 94%;

        max-height: 92vh;

        margin: 4vh auto;

        padding: 22px;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: auto;

        max-height: 500px;

        object-fit: contain;
    }

}


/* =====================================================
                    SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .section {
        padding: 75px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-card {
        transform:
            scale(0.65);

        margin:
            -40px 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 220px;
    }

    .footer-content {
        flex-direction: column;

        gap: 15px;
    }

    .full-image-view {
        padding: 15px;
    }

    .full-image-view img {
        max-width: 96vw;

        max-height: 82vh;
    }

    .full-image-close {
        top: 15px;

        right: 15px;
    }

}