/*
Theme Name: Mshoper
Theme URI: https://mshoper.com/
Author: Mazibur Rahman
Author URI: https://mshoper.com/
Description: Mshoper is a modern, fast, responsive and SEO-friendly WordPress portfolio theme for WordPress developers, web designers, freelancers and professionals.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mshoper
Tags: portfolio, blog, freelancer, wordpress-developer, web-designer, responsive, accessibility-ready, translation-ready, custom-background, custom-logo, custom-menu, featured-images
*/

/* ==========================================================

1. CSS VARIABLES
   ========================================================== */

:root {
--msh-primary: #00884a;
--msh-primary-dark: #006b3b;
--msh-primary-light: #e9f8f0;


--msh-secondary: #0b6e4f;
--msh-accent: #16a085;

--msh-text: #263238;
--msh-text-light: #64748b;
--msh-heading: #102a22;

--msh-bg: #ffffff;
--msh-bg-soft: #f7faf8;
--msh-bg-alt: #f1f7f4;

--msh-border: #e2e8e5;
--msh-white: #ffffff;
--msh-black: #111827;

--msh-shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
--msh-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
--msh-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

--msh-radius-sm: 8px;
--msh-radius: 14px;
--msh-radius-lg: 24px;

--msh-transition: all 0.3s ease;


}

/* ==========================================================
2. RESET / BASE
========================================================== */

html {
scroll-behavior: smooth;
}

body {
margin: 0;
padding: 0;
background: var(--msh-bg);
color: var(--msh-text);
font-family:
"Poppins",
"Hind Siliguri",
"Noto Sans Bengali",
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
font-size: 16px;
line-height: 1.7;
overflow-x: hidden;
text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
box-sizing: border-box;
}

img {
max-width: 100%;
height: auto;
display: block;
}

svg {
max-width: 100%;
}

a {
color: var(--msh-primary);
text-decoration: none;
transition: var(--msh-transition);
}

a:hover {
color: var(--msh-primary-dark);
}

button,
input,
textarea,
select {
font: inherit;
}

button {
cursor: pointer;
}

p:last-child {
margin-bottom: 0;
}

/* ==========================================================
3. ACCESSIBILITY
========================================================== */

:focus-visible {
outline: 3px solid var(--msh-primary);
outline-offset: 3px;
}

.skip-link {
position: fixed;
top: -100px;
left: 15px;
z-index: 99999;
padding: 10px 18px;
background: var(--msh-primary);
color: #fff;
border-radius: var(--msh-radius-sm);
}

.skip-link:focus {
top: 15px;
color: #fff;
}

/* ==========================================================
4. TYPOGRAPHY
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
color: var(--msh-heading);
font-weight: 700;
line-height: 1.25;
}

h1 {
font-size: clamp(2.2rem, 5vw, 4.5rem);
}

h2 {
font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
font-size: clamp(1.35rem, 2vw, 2rem);
}

.section-title {
margin-bottom: 12px;
font-weight: 700;
}

.section-subtitle {
max-width: 720px;
margin: 0 auto;
color: var(--msh-text-light);
}

/* ==========================================================
5. CONTAINER
========================================================== */

.container-wide {
width: min(100% - 30px, 1320px);
margin-inline: auto;
}

.section-padding {
padding-block: 90px;
}

/* ==========================================================
6. HEADER
========================================================== */

.site-header {
position: relative;
z-index: 1000;
background: var(--msh-white);
border-bottom: 1px solid var(--msh-border);
}

.site-header.is-sticky,
.site-header.sticky {
position: sticky;
top: 0;
}

.navbar {
padding-block: 14px;
}

.navbar-brand {
color: var(--msh-heading);
font-size: 1.35rem;
font-weight: 700;
}

.navbar-brand:hover {
color: var(--msh-primary);
}

.logo-mark {
width: 42px;
height: 42px;
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--msh-primary);
color: #fff;
border-radius: 10px;
font-weight: 700;
}

/* ==========================================================
7. MAIN NAVIGATION
========================================================== */

.main-navigation .nav-link {
position: relative;
padding: 10px 14px !important;
color: var(--msh-heading);
font-weight: 500;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link:focus,
.main-navigation .current-menu-item > .nav-link,
.main-navigation .current-menu-ancestor > .nav-link {
color: var(--msh-primary);
}

.main-navigation .nav-link::after {
content: "";
position: absolute;
left: 14px;
right: 14px;
bottom: 3px;
height: 2px;
background: var(--msh-primary);
transform: scaleX(0);
transform-origin: center;
transition: transform 0.3s ease;
}

.main-navigation .nav-link:hover::after,
.main-navigation .current-menu-item > .nav-link::after {
transform: scaleX(1);
}

/* ==========================================================
8. DROPDOWN MENU
========================================================== */

.main-navigation .dropdown-menu {
min-width: 220px;
margin-top: 8px;
padding: 8px;
border: 1px solid rgba(0, 136, 74, 0.12);
border-radius: var(--msh-radius-sm);
background: var(--msh-primary);
box-shadow: var(--msh-shadow);
}

.main-navigation .dropdown-item {
padding: 9px 14px;
color: #fff;
border-radius: 6px;
transition: var(--msh-transition);
}

.main-navigation .dropdown-item:hover,
.main-navigation .dropdown-item:focus {
background: rgba(255, 255, 255, 0.15);
color: #fff;
}

/* ==========================================================
9. HERO
========================================================== */

.hero-section {
position: relative;
min-height: 680px;
display: flex;
align-items: center;
overflow: hidden;
background:
radial-gradient(circle at 10% 20%, rgba(0, 136, 74, 0.12), transparent 35%),
radial-gradient(circle at 90% 80%, rgba(11, 110, 79, 0.10), transparent 35%),
var(--msh-bg-soft);
}

.hero-content {
position: relative;
z-index: 2;
}

.hero-kicker {
display: inline-flex;
align-items: center;
gap: 8px;
margin-bottom: 18px;
padding: 7px 14px;
border-radius: 50px;
background: var(--msh-primary-light);
color: var(--msh-primary-dark);
font-weight: 600;
}

.hero-title {
margin-bottom: 20px;
}

.hero-title .accent,
.text-primary {
color: var(--msh-primary) !important;
}

.hero-description {
max-width: 700px;
margin-bottom: 28px;
color: var(--msh-text-light);
font-size: 1.08rem;
}

.hero-image {
position: relative;
z-index: 2;
max-width: 520px;
margin-inline: auto;
border-radius: var(--msh-radius-lg);
box-shadow: var(--msh-shadow-lg);
}

/* ==========================================================
10. BUTTONS
========================================================== */

.btn-msh-primary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 11px 22px;
border: 2px solid var(--msh-primary);
border-radius: 8px;
background: var(--msh-primary);
color: #fff;
font-weight: 600;
transition: var(--msh-transition);
}

.btn-msh-primary:hover,
.btn-msh-primary:focus {
background: var(--msh-primary-dark);
border-color: var(--msh-primary-dark);
color: #fff;
transform: translateY(-2px);
}

.btn-msh-outline {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 11px 22px;
border: 2px solid var(--msh-primary);
border-radius: 8px;
background: transparent;
color: var(--msh-primary);
font-weight: 600;
}

.btn-msh-outline:hover,
.btn-msh-outline:focus {
background: var(--msh-primary);
color: #fff;
}

/* ==========================================================
11. SECTION COMMON
========================================================== */

.section {
position: relative;
}

.section:nth-of-type(even) {
background: var(--msh-bg-soft);
}

.section-heading {
margin-bottom: 50px;
text-align: center;
}

.section-heading .divider {
width: 60px;
height: 3px;
margin: 15px auto;
background: var(--msh-primary);
border-radius: 50px;
}

/* ==========================================================
12. CARDS
========================================================== */

.msh-card {
height: 100%;
padding: 30px;
background: var(--msh-white);
border: 1px solid var(--msh-border);
border-radius: var(--msh-radius);
box-shadow: var(--msh-shadow-sm);
transition: var(--msh-transition);
}

.msh-card:hover {
transform: translateY(-6px);
border-color: rgba(0, 136, 74, 0.25);
box-shadow: var(--msh-shadow);
}

.msh-card-icon {
width: 58px;
height: 58px;
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
border-radius: 14px;
background: var(--msh-primary-light);
color: var(--msh-primary);
font-size: 1.5rem;
}

/* ==========================================================
13. ABOUT
========================================================== */

.about-image {
overflow: hidden;
border-radius: var(--msh-radius-lg);
box-shadow: var(--msh-shadow);
}

.about-image img {
width: 100%;
transition: transform 0.5s ease;
}

.about-image:hover img {
transform: scale(1.03);
}

.about-content {
color: var(--msh-text-light);
}

/* ==========================================================
14. SKILLS
========================================================== */

.skill-item {
margin-bottom: 24px;
}

.skill-header {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
font-weight: 600;
}

.skill-progress {
height: 9px;
overflow: hidden;
background: var(--msh-bg-alt);
border-radius: 50px;
}

.skill-progress-bar {
height: 100%;
border-radius: inherit;
background: linear-gradient(
90deg,
var(--msh-primary),
var(--msh-secondary)
);
}

/* ==========================================================
15. SERVICES
========================================================== */

.service-card {
height: 100%;
}

.service-card h3 {
margin-bottom: 12px;
}

.service-card p {
color: var(--msh-text-light);
}

/* ==========================================================
16. PORTFOLIO
========================================================== */

.portfolio-item {
position: relative;
overflow: hidden;
height: 100%;
border-radius: var(--msh-radius);
background: var(--msh-white);
box-shadow: var(--msh-shadow-sm);
}

.portfolio-image {
overflow: hidden;
}

.portfolio-image img {
width: 100%;
transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
transform: scale(1.06);
}

.portfolio-content {
padding: 20px;
}

.portfolio-content p {
color: var(--msh-text-light);
}

/* ==========================================================
17. BLOG
========================================================== */

.post-card {
height: 100%;
overflow: hidden;
background: var(--msh-white);
border: 1px solid var(--msh-border);
border-radius: var(--msh-radius);
box-shadow: var(--msh-shadow-sm);
transition: var(--msh-transition);
}

.post-card:hover {
transform: translateY(-5px);
box-shadow: var(--msh-shadow);
}

.post-thumbnail {
overflow: hidden;
}

.post-thumbnail img {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
}

.post-content {
padding: 24px;
}

.post-meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 10px;
color: var(--msh-text-light);
font-size: 0.9rem;
}

.entry-title a {
color: var(--msh-heading);
}

.entry-title a:hover {
color: var(--msh-primary);
}

/* ==========================================================
18. SIDEBAR
========================================================== */

.sidebar-widget {
margin-bottom: 30px;
padding: 24px;
background: var(--msh-white);
border: 1px solid var(--msh-border);
border-radius: var(--msh-radius);
box-shadow: var(--msh-shadow-sm);
}

.sidebar-widget-title,
.widget-title {
position: relative;
margin-bottom: 20px;
padding-bottom: 10px;
color: var(--msh-heading);
font-size: 1.2rem;
}

.sidebar-widget-title::after,
.widget-title::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 40px;
height: 2px;
background: var(--msh-primary);
}

/* ==========================================================
19. BREADCRUMB
========================================================== */

.breadcrumb-section {
padding: 22px 0;
background: var(--msh-primary);
color: #fff;
}

.breadcrumb-section a {
color: #fff;
}

.breadcrumb-section a:hover {
opacity: 0.8;
}

.breadcrumb-item.active {
color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================
20. FORMS
========================================================== */

.form-control,
.form-select {
min-height: 48px;
border: 1px solid var(--msh-border);
border-radius: 8px;
background: var(--msh-white);
}

.form-control:focus,
.form-select:focus {
border-color: var(--msh-primary);
box-shadow: 0 0 0 0.2rem rgba(0, 136, 74, 0.12);
}

/* ==========================================================
21. PAGINATION
========================================================== */

.pagination .page-link {
color: var(--msh-primary);
border-color: var(--msh-border);
}

.pagination .page-link:hover,
.pagination .active .page-link {
background: var(--msh-primary);
border-color: var(--msh-primary);
color: #fff;
}

/* ==========================================================
22. FOOTER
========================================================== */

.site-footer {
padding: 70px 0 25px;
background: var(--msh-primary);
color: rgba(255, 255, 255, 0.85);
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title {
color: #fff;
}

.site-footer a {
color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
color: #fff;
opacity: 0.8;
}

.footer-bottom {
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.2);
text-align: center;
}

/* ==========================================================
23. SOCIAL ICONS
========================================================== */

.social-links {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

.social-links a {
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 50%;
background: rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
background: #fff;
color: var(--msh-primary);
}

/* ==========================================================
24. DARK MODE
========================================================== */

[data-theme="dark"],
body.dark-mode {
--msh-text: #d8e2dd;
--msh-text-light: #a8b8b0;
--msh-heading: #f2f8f5;


--msh-bg: #101815;
--msh-bg-soft: #151e1a;
--msh-bg-alt: #1c2822;

--msh-border: #293831;
--msh-white: #17211d;
--msh-black: #ffffff;

--msh-primary-light: #173b2a;


}

body.dark-mode,
[data-theme="dark"] {
background: var(--msh-bg);
color: var(--msh-text);
}

body.dark-mode .site-header,
[data-theme="dark"] .site-header {
background: #111a16;
}

body.dark-mode .navbar-brand,
body.dark-mode .main-navigation .nav-link {
color: #f2f8f5;
}

body.dark-mode .msh-card,
body.dark-mode .post-card,
body.dark-mode .sidebar-widget,
body.dark-mode .portfolio-item {
background: #17211d;
border-color: var(--msh-border);
}

body.dark-mode .hero-section {
background:
radial-gradient(circle at 10% 20%, rgba(0, 136, 74, 0.20), transparent 35%),
#101815;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
background: #17211d;
color: #fff;
border-color: var(--msh-border);
}

/* ==========================================================
25. ACCESSIBILITY MODES
========================================================== */

body.font-large {
font-size: 18px;
}

body.high-contrast {
filter: contrast(1.25);
}

body.monochrome {
filter: grayscale(1);
}

body.highlight-links a {
text-decoration: underline !important;
text-decoration-thickness: 2px;
}

body.big-cursor,
body.big-cursor * {
cursor: url("assets/images/big-cursor.png"), auto !important;
}

body.readable-font {
font-family:
Arial,
"Noto Sans Bengali",
sans-serif;
}

body.hide-images img {
visibility: hidden;
}

body.increased-line-height {
line-height: 2;
}

body.increased-letter-spacing {
letter-spacing: 0.06em;
}

/* ==========================================================
26. SCROLL TO TOP
========================================================== */

.scroll-top {
position: fixed;
right: 20px;
bottom: 20px;
z-index: 999;
width: 45px;
height: 45px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 0;
border-radius: 50%;
background: var(--msh-primary);
color: #fff;
opacity: 0;
visibility: hidden;
transform: translateY(15px);
transition: var(--msh-transition);
}

.scroll-top.show {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.scroll-top:hover {
background: var(--msh-primary-dark);
}

/* ==========================================================
27. LOADER
========================================================== */

.site-loader {
position: fixed;
inset: 0;
z-index: 99999;
display: flex;
align-items: center;
justify-content: center;
background: var(--msh-bg);
transition:
opacity 0.4s ease,
visibility 0.4s ease;
}

.site-loader.loaded {
opacity: 0;
visibility: hidden;
pointer-events: none;
}

.loader-spinner {
width: 48px;
height: 48px;
border: 4px solid rgba(0, 136, 74, 0.15);
border-top-color: var(--msh-primary);
border-radius: 50%;
animation: msh-spin 0.8s linear infinite;
}

@keyframes msh-spin {
to {
transform: rotate(360deg);
}
}

/* ==========================================================
28. RESPONSIVE — TABLET
========================================================== */

@media (max-width: 991.98px) {


.section-padding {
    padding-block: 70px;
}

.hero-section {
    min-height: auto;
    padding-block: 80px;
}

.hero-image {
    max-width: 420px;
    margin-top: 40px;
}

.main-navigation .dropdown-menu {
    margin-top: 0;
    border-radius: 8px;
    box-shadow: none;
}

.main-navigation .nav-link::after {
    display: none;
}


}

/* ==========================================================
29. RESPONSIVE — MOBILE
========================================================== */

@media (max-width: 767.98px) {


body {
    font-size: 15px;
}

.container-wide {
    width: min(100% - 24px, 1320px);
}

.section-padding {
    padding-block: 55px;
}

.hero-section {
    padding-block: 60px;
    text-align: center;
}

.hero-content {
    width: 100%;
}

.hero-description {
    margin-inline: auto;
}

.hero-image {
    max-width: 340px;
    margin-top: 35px;
}

.hero-actions {
    justify-content: center;
    flex-wrap: wrap;
}

.section-heading {
    margin-bottom: 35px;
}

.msh-card {
    padding: 24px;
}

.site-footer {
    padding-top: 50px;
}

.footer-bottom {
    margin-top: 30px;
}


}

/* ==========================================================
30. SMALL MOBILE
========================================================== */

@media (max-width: 575.98px) {


h1 {
    font-size: 2.1rem;
}

h2 {
    font-size: 1.8rem;
}

.hero-kicker {
    font-size: 0.9rem;
}

.hero-actions .btn,
.hero-actions a {
    width: 100%;
}

.scroll-top {
    right: 12px;
    bottom: 12px;
}


}

/* ==========================================================
31. REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {


html {
    scroll-behavior: auto;
}

*,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}


}

/* ==========================================================
32. PRINT
========================================================== */

@media print {


.site-header,
.site-footer,
.scroll-top,
.site-loader,
.accessibility-panel {
    display: none !important;
}

body {
    background: #fff !important;
    color: #000 !important;
}

a {
    color: #000 !important;
    text-decoration: underline;
}


}
