/*
Theme Name: Freelancer Emrul
Theme URI: https://freelanceremrul.com
Author: Emrul Hasan Sohel
Author URI: https://freelanceremrul.com
Description: A modern, clean personal portfolio theme for Emrul Hasan Sohel, SEO specialist and website developer. Includes a hero section, services, a filterable portfolio, skills, testimonials and contact sections.
Version: 1.0.2
Requires at least: 5.8
Tested up to: 6.7
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: freelancer-emrul
*/

/* ---------------------------------------------------------------
   Base
---------------------------------------------------------------- */
:root {
  --fe-primary: #4f46e5;
  --fe-primary-dark: #3730a3;
  --fe-navy: #0a0f2e;
  --fe-text: #20263f;
  --fe-muted: #5d6580;
  --fe-bg: #f4f4fa;
  --fe-bg-alt: #ebe9f8;
  --fe-border: #ddd9f0;
  --fe-radius: 16px;
  --fe-shadow: 0 14px 36px rgba(43, 32, 120, 0.13);
  --fe-font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fe-font);
  color: var(--fe-text);
  background: var(--fe-bg);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--fe-primary); text-decoration: none; }
a:hover { color: var(--fe-primary-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--fe-navy);
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 700;
}

p { margin: 0 0 16px; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.section { padding: 76px 0; }
.section-alt { background: var(--fe-bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 32px; margin-bottom: 10px; }
.section-head p { color: var(--fe-muted); margin: 0; }
.section-eyebrow {
  display: inline-block;
  color: var(--fe-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--fe-primary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--fe-primary); color: #fff; }
.btn-primary:hover { background: var(--fe-primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--fe-primary); }
.btn-outline:hover { background: var(--fe-primary); color: #fff; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb856; color: #fff; }

/* ---------------------------------------------------------------
   Header
---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--fe-border);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .custom-logo { width: 44px; height: 44px; border-radius: 50%; }
.site-title { font-size: 22px; font-weight: 800; color: var(--fe-navy); margin: 0; }
.site-title a { color: var(--fe-navy); }
.site-title a:hover { color: var(--fe-primary); text-decoration: none; }
.site-description { margin: 0; font-size: 13px; color: var(--fe-muted); }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--fe-text);
  font-weight: 600;
  font-size: 15px;
}
.main-nav a:hover { color: var(--fe-primary); text-decoration: none; }
.main-nav .current-menu-item > a { color: var(--fe-primary); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--fe-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 20px;
  line-height: 1;
  color: var(--fe-navy);
  cursor: pointer;
}

/* ---------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, #0a0f2e 0%, #312e81 48%, #6d28d9 100%);
  color: #fff;
  padding: 84px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}
.hero-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.35);
  margin: 0 auto;
}
.hero h1 { color: #fff; font-size: 44px; margin-bottom: 8px; }
.hero-role { font-size: 21px; font-weight: 600; color: #ddd0ff; margin-bottom: 16px; }
.hero-intro { font-size: 17px; color: #eae7ff; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--fe-primary-dark); }
.hero .btn-primary:hover { background: #e6efff; color: var(--fe-primary-dark); }
.hero-social { display: flex; gap: 12px; }
.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.hero-social a:hover { background: rgba(255, 255, 255, 0.32); text-decoration: none; color: #fff; }

/* ---------------------------------------------------------------
   About
---------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.about-facts { list-style: none; margin: 0; padding: 0; }
.about-facts li {
  background: var(--fe-bg);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius);
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: var(--fe-shadow);
}
.about-facts strong { color: var(--fe-navy); display: block; font-size: 20px; }

/* ---------------------------------------------------------------
   Cards and services
---------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius);
  padding: 30px 26px;
  box-shadow: var(--fe-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(15, 36, 64, 0.16); }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--fe-bg-alt);
  color: var(--fe-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.card h3 { font-size: 20px; }
.card p { color: var(--fe-muted); margin: 0; }

/* ---------------------------------------------------------------
   Portfolio
---------------------------------------------------------------- */
.portfolio-filters { text-align: center; margin-bottom: 32px; }
.filter-btn {
  background: #fff;
  border: 1px solid var(--fe-border);
  color: var(--fe-text);
  border-radius: 999px;
  padding: 9px 22px;
  margin: 0 5px 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.filter-btn:hover, .filter-btn.active { background: var(--fe-primary); border-color: var(--fe-primary); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.portfolio-item {
  border-radius: var(--fe-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fe-border);
  box-shadow: var(--fe-shadow);
}
.portfolio-thumb { position: relative; overflow: hidden; }
.portfolio-thumb img { width: 100%; height: 210px; object-fit: cover; transition: transform 0.35s ease; }
.portfolio-item:hover .portfolio-thumb img { transform: scale(1.07); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 64, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay a { color: #fff; font-weight: 700; font-size: 17px; }
.portfolio-overlay a:hover { color: #cfe3ff; text-decoration: none; }
.portfolio-body { padding: 18px 20px 22px; }
.portfolio-body h3 { font-size: 18px; margin-bottom: 6px; }
.portfolio-body h3 a { color: var(--fe-navy); }
.portfolio-body h3 a:hover { color: var(--fe-primary); text-decoration: none; }
.portfolio-cat { font-size: 13px; color: var(--fe-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.portfolio-body p { color: var(--fe-muted); font-size: 14px; margin: 8px 0 0; }
.portfolio-item.is-hidden { display: none; }

/* ---------------------------------------------------------------
   Skills
---------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.skill-row { margin-bottom: 6px; }
.skill-label { display: flex; justify-content: space-between; font-weight: 600; color: var(--fe-navy); margin-bottom: 8px; }
.skill-bar { background: #e3ecfa; border-radius: 999px; height: 12px; overflow: hidden; }
.skill-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fe-primary), #5b9bff);
  width: 0;
  transition: width 1.1s ease;
}

/* ---------------------------------------------------------------
   Testimonials
---------------------------------------------------------------- */
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-stars { color: #f5a623; font-size: 17px; letter-spacing: 3px; margin-bottom: 14px; }
.testimonial-text { color: var(--fe-text); font-style: italic; flex: 1; }
.testimonial-author { margin-top: 18px; }
.testimonial-author strong { color: var(--fe-navy); display: block; }
.testimonial-author span { color: var(--fe-muted); font-size: 14px; }

/* ---------------------------------------------------------------
   Contact
---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.contact-card { margin-bottom: 20px; }
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-card p { color: var(--fe-muted); margin: 0; }
.contact-form label { display: block; font-weight: 600; color: var(--fe-navy); margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--fe-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 18px;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--fe-primary); outline-offset: 1px; }

/* ---------------------------------------------------------------
   Blog and single posts
---------------------------------------------------------------- */
.page-banner {
  background: linear-gradient(120deg, #0a0f2e 0%, #312e81 48%, #6d28d9 100%);
  color: #fff;
  padding: 52px 0;
  margin-bottom: 52px;
}
.page-banner h1 { color: #fff; font-size: 34px; margin: 0; }
.page-banner .entry-meta { color: #cfe3ff; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  padding-bottom: 10px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius);
  overflow: hidden;
  box-shadow: var(--fe-shadow);
}
.post-card .post-thumb img { width: 100%; height: 220px; object-fit: cover; }
.post-card-body { padding: 22px 24px 26px; }
.post-card h2 { font-size: 21px; }
.post-card h2 a { color: var(--fe-navy); }
.post-card h2 a:hover { color: var(--fe-primary); text-decoration: none; }
.entry-meta { font-size: 13px; color: var(--fe-muted); margin-bottom: 10px; }
.read-more { font-weight: 600; }

.pagination { text-align: center; padding: 26px 0 60px; }
.pagination .page-numbers {
  display: inline-block;
  padding: 9px 16px;
  margin: 0 3px;
  border: 1px solid var(--fe-border);
  border-radius: 8px;
  background: #fff;
  color: var(--fe-text);
  font-weight: 600;
}
.pagination .page-numbers.current { background: var(--fe-primary); border-color: var(--fe-primary); color: #fff; }
.pagination a.page-numbers:hover { background: var(--fe-bg-alt); text-decoration: none; }

.single-wrap { max-width: 1100px; margin: 0 auto; padding-bottom: 60px; }
.single-wrap .featured-image { border-radius: var(--fe-radius); margin-bottom: 28px; }
.entry-content { font-size: 17px; }
.entry-content h2, .entry-content h3 { margin-top: 32px; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--fe-border);
  margin-top: 40px;
  padding-top: 22px;
  font-weight: 600;
}
.post-nav .nav-next { text-align: right; }

.not-found { text-align: center; padding: 90px 0; }
.not-found h1 { font-size: 64px; color: var(--fe-primary); }

/* ---------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.site-footer {
  background: var(--fe-navy);
  color: #c9d8ef;
  padding: 60px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer h3, .site-footer h4 { color: #fff; font-size: 18px; }
.site-footer a { color: #c9d8ef; }
.site-footer a:hover { color: #fff; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 9px; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}
.footer-widgets { padding-bottom: 10px; }
.footer-widgets .widget { margin-bottom: 24px; }

/* ---------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-social { justify-content: center; }
  .hero h1 { font-size: 34px; }
  .cards-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 54px 0; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--fe-border);
    box-shadow: var(--fe-shadow);
    padding: 12px 4%;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 10px 6px; }
  .site-header .container { position: relative; }
  .cards-grid, .portfolio-grid, .posts-grid { grid-template-columns: 1fr; }
  .hero-photo img { width: 200px; height: 200px; }
}

/* ---------------------------------------------------------------
   Premium polish
---------------------------------------------------------------- */
body {
  background:
    radial-gradient(1100px 520px at 85% -80px, rgba(124, 58, 237, 0.10), rgba(124, 58, 237, 0) 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(79, 70, 229, 0.07), rgba(79, 70, 229, 0) 55%),
    var(--fe-bg);
}
::selection { background: #f0a500; color: #0a0f2e; }
.site-header { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); }
.btn-primary {
  background: linear-gradient(120deg, #4f46e5, #7c3aed);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(120deg, #4338ca, #6d28d9);
  border-color: transparent;
  transform: translateY(-2px);
}
.card {
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(43, 32, 120, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--fe-shadow); }
.section-eyebrow {
  display: inline-block;
  background: #efedff;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 1.2px;
}
.skill-bar { background: #e6e2f7; }
.skill-fill { background: linear-gradient(90deg, #4f46e5, #7c3aed); }
.hero-photo img {
  border: 6px solid rgba(240, 165, 0, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------
   Colorful bold premium sections
---------------------------------------------------------------- */
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; }
.card h3 { font-weight: 800; }
.main-nav a { font-weight: 700; }
#about { background: linear-gradient(180deg, #ffffff 0%, #eef0ff 100%); }
#services { background: linear-gradient(135deg, #e9e6ff 0%, #f7ecff 100%); }
#tools { background: linear-gradient(120deg, #0a0f2e 0%, #312e81 55%, #6d28d9 100%); }
#tools .section-head h2 { color: #ffffff; }
#tools .section-head p { color: #d9d2ff; }
#tools .section-eyebrow { background: rgba(255, 255, 255, 0.16); color: #ffd97a; }
#tools .card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.20); box-shadow: none; }
#tools .card h3 { color: #ffffff; }
#tools .card p { color: #ddd6ff; }
#tools .btn-primary { background: #ffffff; border-color: #ffffff; color: #4338ca; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.30); }
#portfolio { background: linear-gradient(180deg, #ffffff 0%, #eaf6ff 100%); }
#skills { background: linear-gradient(135deg, #e6f7ff 0%, #f0eaff 100%); }
#testimonials { background: linear-gradient(135deg, #fdf0ff 0%, #eef0ff 100%); }
#contact { background: linear-gradient(135deg, #fff6df 0%, #ffeef7 100%); }
.card-icon { color: #ffffff; }
.cards-grid .card:nth-child(4n+1) .card-icon { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.cards-grid .card:nth-child(4n+2) .card-icon { background: linear-gradient(135deg, #ec4899, #f97316); }
.cards-grid .card:nth-child(4n+3) .card-icon { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.cards-grid .card:nth-child(4n+4) .card-icon { background: linear-gradient(135deg, #10b981, #84cc16); }

/* ---------------------------------------------------------------
   Colorful contact cards
---------------------------------------------------------------- */
.contact-grid > div:first-child .contact-card:nth-child(1) {
  background: linear-gradient(135deg, #e6fbee 0%, #f5fff8 100%);
  border-left: 5px solid #22c55e;
}
.contact-grid > div:first-child .contact-card:nth-child(1) h3 { color: #128c4b; }
.contact-grid > div:first-child .contact-card:nth-child(1) a { color: #128c4b; font-weight: 700; }
.contact-grid > div:first-child .contact-card:nth-child(2) {
  background: linear-gradient(135deg, #e9e7ff 0%, #f4f1ff 100%);
  border-left: 5px solid #6d28d9;
}
.contact-grid > div:first-child .contact-card:nth-child(2) h3 { color: #4f46e5; }
.contact-grid > div:first-child .contact-card:nth-child(2) a { color: #4f46e5; font-weight: 700; }
.contact-grid > div:first-child .contact-card:nth-child(3) {
  background: linear-gradient(135deg, #e5efff 0%, #eef6ff 100%);
  border-left: 5px solid #1877f2;
}
.contact-grid > div:first-child .contact-card:nth-child(3) h3 { color: #1877f2; }
.contact-grid > div:first-child .contact-card:nth-child(3) a { color: #1877f2; font-weight: 700; }
.contact-grid > div:first-child .contact-card:nth-child(4) {
  background: linear-gradient(135deg, #fff2d2 0%, #fff9ea 100%);
  border-left: 5px solid #f0a500;
}
.contact-grid > div:first-child .contact-card:nth-child(4) h3 { color: #9a6a00; }
.contact-grid > div:first-child .contact-card:nth-child(4) a { color: #9a6a00; font-weight: 700; }
