:root {
  --primary: #e85d04;
  --primary-dark: #c94e00;
  --ink: #171717;
  --muted: #6f6f6f;
  --soft: #f7f5f2;
  --white: #ffffff;
  --border: #e7e2dc;
  --dark: #151515;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(20, 20, 20, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--white);
  transition: background .3s, color .3s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea, select { font-family: inherit; }

.navbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  padding: 17px 0;
  transition: .3s;
}

.navbar.scrolled { padding: 11px 0; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.navbar-brand { letter-spacing: -.06em; font-size: 1.4rem; }
.navbar-brand span { color: var(--primary); }

.nav-link {
  color: #555;
  font-weight: 600;
  font-size: .92rem;
  padding: 9px 13px !important;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }

.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  background: #fbfaf8;
  overflow: hidden;
  position: relative;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .25;
}
.hero-shape-one {
  width: 460px; height: 460px;
  background: #ffd9bd;
  right: -130px; top: 120px;
}
.hero-shape-two {
  width: 260px; height: 260px;
  background: #f8b27d;
  left: -150px; bottom: -100px;
}

.eyebrow, .section-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  margin-bottom: 18px;
}
.section-kicker.light { color: #ffad73; }

.hero-title, .section-title {
  font-family: "Playfair Display", serif;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.hero-title {
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  max-width: 800px;
}
.hero-title em, .section-title em {
  color: var(--primary);
  font-style: normal;
}
.hero-text {
  max-width: 590px;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 25px 0 30px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  transition: .25s;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-custom {
  border: 1px solid #bdb7b0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  background: transparent;
}
.btn-outline-custom:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 55px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.05rem; }
.hero-stats span { color: #8a8a8a; font-size: .78rem; margin-top: 3px; }

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  transform: rotate(2deg);
}
.hero-card-top {
  font-size: .75rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 14px;
}
.status-dot {
  width: 8px; height: 8px;
  background: #3cb371;
  display: inline-block;
  border-radius: 50%;
  margin-right: 7px;
}
.browser-bar {
  height: 31px;
  border-radius: 10px 10px 0 0;
  background: #efefed;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 12px;
}
.browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: #bbb; }
.mock-site {
  min-height: 360px;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(135deg, #f4eee8, #f9f8f5);
  padding: 32px;
}
.mock-nav { height: 12px; width: 55%; background: #242424; border-radius: 10px; margin-bottom: 55px; }
.mock-line { height: 14px; background: #222; border-radius: 10px; margin-bottom: 10px; }
.mock-line.long { width: 82%; height: 27px; }
.mock-line.medium { width: 55%; }
.mock-button { width: 105px; height: 30px; background: var(--primary); border-radius: 30px; margin-top: 22px; }
.mock-cards { display: flex; gap: 10px; margin-top: 65px; }
.mock-cards div { height: 55px; flex: 1; background: #fff; border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.floating-badge {
  position: absolute;
  right: -22px;
  bottom: 38px;
  background: var(--ink);
  color: #fff;
  border-radius: 50px;
  padding: 13px 18px;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}
.floating-badge i { color: #ffad73; margin-right: 5px; }

.section-padding { padding: 110px 0; }
.section-soft { background: var(--soft); }
.section-title { font-size: clamp(2.4rem, 4vw, 4.1rem); }
.section-heading { max-width: 750px; margin: 0 auto 55px; }
.section-heading p { color: var(--muted); margin-top: 18px; }

.about-visual {
  min-height: 500px;
  background: var(--ink);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.about-visual:before, .about-visual:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
.about-visual:before { width: 420px; height: 420px; }
.about-visual:after { width: 300px; height: 300px; }
.about-monogram {
  font-family: "Playfair Display", serif;
  color: #fff;
  font-size: 8rem;
  position: relative;
  z-index: 2;
  letter-spacing: -.1em;
}
.about-label {
  position: absolute;
  bottom: 28px;
  left: 30px;
  color: #fff;
  font-size: .72rem;
  line-height: 1.6;
  letter-spacing: .18em;
  opacity: .7;
}
.lead-text { font-size: 1.1rem; line-height: 1.85; color: #555; }
.body-text { line-height: 1.8; color: var(--muted); }
.about-points .point { font-weight: 600; font-size: .9rem; }
.point i { color: var(--primary); margin-right: 8px; }

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: .3s;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: #f2c4a5; }
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: #fff1e7;
  color: var(--primary);
  border-radius: 15px;
  font-size: 1.35rem;
  margin-bottom: 25px;
}
.service-card h3 { font-size: 1.18rem; }
.service-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.service-card > span {
  position: absolute;
  right: 25px;
  bottom: 20px;
  color: #ddd;
  font-size: .78rem;
  font-weight: 700;
}

.filter-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 50px;
  padding: 8px 13px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.project-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  transition: .3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-preview {
  height: 330px;
  padding: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preview-one { background: #efe9e1; }
.preview-two { background: #e9e4f0; }
.preview-three { background: #e7ece8; }
.preview-four { background: #e8e8eb; }

.preview-window {
  width: 83%;
  height: 85%;
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 16px 35px rgba(0,0,0,.12);
  position: relative;
}
.preview-nav { width: 35%; height: 7px; background: #222; border-radius: 8px; margin-bottom: 45px; }
.preview-heading { width: 78%; height: 24px; background: #222; border-radius: 7px; }
.preview-text { width: 55%; height: 8px; background: #bbb; border-radius: 7px; margin-top: 12px; }
.preview-btn { width: 80px; height: 25px; background: var(--primary); border-radius: 20px; margin-top: 18px; }
.preview-photo { position: absolute; right: 18px; bottom: 18px; width: 37%; height: 43%; background: #f2b488; border-radius: 10px; }

.landing-window { display: flex; flex-direction: column; align-items: center; text-align: center; }
.landing-circle { width: 55px; height: 55px; background: #26202e; border-radius: 50%; margin-bottom: 20px; }
.landing-title { width: 80%; height: 18px; background: #26202e; border-radius: 10px; }
.landing-text { width: 65%; height: 7px; background: #bbb; border-radius: 10px; margin: 12px 0; }
.landing-button { width: 95px; height: 27px; background: #7c609d; border-radius: 20px; }

.blog-header { width: 60%; height: 13px; background: #244332; border-radius: 8px; margin-bottom: 25px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.blog-grid div { height: 80px; background: #d7e1d9; border-radius: 7px; }
.blog-line { width: 70%; height: 8px; background: #bbb; margin-top: 20px; border-radius: 8px; }

.dashboard-window { display: flex; padding: 0; overflow: hidden; }
.dash-sidebar { width: 22%; background: #24242a; }
.dash-main { flex: 1; padding: 18px; }
.dash-top { height: 12px; width: 55%; background: #333; border-radius: 8px; margin-bottom: 22px; }
.dash-chart { height: 100px; background: linear-gradient(165deg, #eee 48%, #ddd 49% 51%, #eee 52%); border-radius: 8px; }
.dash-cards { display: flex; gap: 8px; margin-top: 12px; }
.dash-cards div { flex: 1; height: 55px; background: #eee; border-radius: 7px; }

.project-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(255,255,255,.92);
  border-radius: 50px;
  padding: 6px 11px;
  font-size: .7rem;
  font-weight: 700;
}
.project-info { display: flex; justify-content: space-between; gap: 15px; padding: 23px; }
.project-info h3 { font-size: 1.08rem; margin-bottom: 5px; }
.project-info p { color: var(--muted); font-size: .83rem; margin: 0; }
.project-arrow {
  flex: 0 0 42px; height: 42px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: .25s;
}
.project-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.portfolio-item.hidden { display: none; }

.section-dark { background: var(--dark); }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.process-step {
  padding: 25px 25px 25px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  position: relative;
}
.process-step + .process-step { padding-left: 25px; border-left: 1px solid rgba(255,255,255,.15); }
.process-step > span { color: #777; font-size: .75rem; }
.process-step > i { display: block; color: #ffad73; font-size: 1.4rem; margin: 30px 0 20px; }
.process-step h3 { color: #fff; font-size: 1.1rem; }
.process-step p { color: #8d8d8d; font-size: .85rem; line-height: 1.7; }


.contact-details { margin-top: 30px; display: grid; gap: 15px; }
.contact-details a { font-weight: 600; }
.contact-details i { color: var(--primary); margin-right: 9px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,.04);
}
.contact-form label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: 7px; }
.form-control, .form-select {
  border: 1px solid #ddd7d0;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: none !important;
}
.form-control:focus, .form-select:focus { border-color: var(--primary); }
.form-message { font-size: .82rem; color: var(--primary); margin-top: 10px; }

.footer { padding: 35px 0; background: #111; color: #888; font-size: .8rem; }
.footer .navbar-brand { color: #fff; }
.back-top:hover { color: #fff; }

.modal-content { border: 0; border-radius: 22px; padding: 10px; }
.modal-type { color: var(--primary); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.modal-body h2 { font-family: "Playfair Display", serif; font-size: 2.1rem; }
.modal-body p { color: var(--muted); line-height: 1.8; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* DARK MODE */
body.dark-mode {
  --ink: #f3f1ee;
  --muted: #a7a29c;
  --white: #151515;
  --soft: #1d1d1d;
  --border: #333;
  --dark: #0d0d0d;
}
.dark-mode .navbar { background: rgba(21,21,21,.92); border-color: #2b2b2b; }
.dark-mode .navbar-toggler { color: #fff; }
.dark-mode .nav-link { color: #aaa; }
.dark-mode .nav-link:hover, .dark-mode .nav-link.active { color: #ff9a5e; }
.dark-mode .theme-toggle { color: #fff; }
.dark-mode .hero { background: #181818; }
.dark-mode .hero-card, .dark-mode .service-card, .dark-mode .project-card, .dark-mode .contact-form { background: #202020; }
.dark-mode .mock-site { background: linear-gradient(135deg,#252525,#191919); }
.dark-mode .mock-nav, .dark-mode .mock-line { background: #eee; }
.dark-mode .btn-outline-custom { border-color: #555; color: #eee; }
.dark-mode .btn-outline-custom:hover { border-color: #eee; }
.dark-mode .lead-text { color: #c3beb8; }
.dark-mode .body-text { color: #aaa; }
.dark-mode .section-heading p, .dark-mode .project-info p { color: #999; }
.dark-mode .filter-btn { color: #ccc; border-color: #444; }
.dark-mode .filter-btn.active, .dark-mode .filter-btn:hover { background: #eee; color: #111; border-color: #eee; }
.dark-mode .project-arrow { color: #eee; border-color: #444; }
.dark-mode .form-control, .dark-mode .form-select { background: #181818; color: #eee; border-color: #444; }
.dark-mode .form-control::placeholder { color: #777; }
.dark-mode .modal-content { background: #202020; color: #eee; }
.dark-mode .modal-body p { color: #aaa; }
.dark-mode .btn-close { filter: invert(1); }
.dark-mode .hero-shape-one { opacity: .1; }

@media (max-width: 991.98px) {
  .navbar-collapse { padding-top: 12px; }
  .hero-title { font-size: clamp(3rem, 10vw, 5rem); }
  .hero-card { max-width: 550px; margin: 0 auto; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .process-step + .process-step { border-left: 0; padding-left: 0; }
  .process-step:nth-child(even) { padding-left: 25px; border-left: 1px solid rgba(255,255,255,.15); }
}

@media (max-width: 575.98px) {
  .section-padding { padding: 80px 0; }
  .hero-stats { gap: 20px; }
  .hero-card { transform: none; }
  .mock-site { min-height: 300px; padding: 22px; }
  .floating-badge { right: 10px; bottom: 25px; }
  .about-visual { min-height: 380px; }
  .about-monogram { font-size: 6rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(even) { padding: 25px 0; border-left: 0; }
  .process-step + .process-step { border-top: 1px solid rgba(255,255,255,.15); }
  .contact-form { padding: 22px; }
  .filter-buttons { width: 100%; }
}

.site-link {
  margin-top: 18px;
  font-size: .88rem;
  color: #777;
  font-weight: 600;
}
.site-link i {
  color: var(--primary);
  margin-right: 6px;
}
.site-link a:hover { color: var(--primary); }

/* =========================================
   SB PIXEL PORTFOLIO IMAGE GALLERY
========================================= */

.image-preview-btn {
    width: 100%;
    height: 380px;
    padding: 0;
    border: 0;
    background: #eeeeee;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.image-preview-btn:hover .portfolio-image {
    transform: scale(1.05);
    filter: brightness(70%);
}


/* View Project */

.view-project {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -40%);

    background: rgba(0, 0, 0, 0.88);

    color: #ffffff;

    padding: 12px 20px;

    border-radius: 50px;

    font-size: 13px;

    font-weight: 600;

    opacity: 0;

    transition: all 0.3s ease;

    z-index: 5;

    white-space: nowrap;
}

.image-preview-btn:hover .view-project {
    opacity: 1;
    transform: translate(-50%, -50%);
}


/* Project Tag */

.image-preview-btn .project-tag {
    position: absolute;

    top: 18px;
    left: 18px;

    background: #ffffff;

    color: #222222;

    padding: 7px 13px;

    border-radius: 50px;

    font-size: 12px;

    font-weight: 700;

    z-index: 5;
}


/* =========================================
   IMAGE LIGHTBOX
========================================= */

.image-modal-content {
    background: #111111;

    color: #ffffff;

    border: none;

    border-radius: 18px;
}

.image-modal-content .btn-close {
    filter: invert(1);
}

.portfolio-lightbox {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #050505;

    border-radius: 12px;

    padding: 15px;

    max-height: 75vh;

    overflow: auto;
}

.portfolio-lightbox img {
    max-width: 100%;

    max-height: 70vh;

    width: auto;

    height: auto;

    object-fit: contain;

    user-select: none;

    -webkit-user-select: none;

    -webkit-user-drag: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .image-preview-btn {
        height: 270px;
    }

}

  

.testimonial-section .testimonial-card {
  height: 100%;
  padding: 2.25rem 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.testimonial-section .testimonial-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

.testimonial-section .quote-icon {
  font-size: 1.5rem;
  opacity: 0.35;
}

.testimonial-section blockquote {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 400;
  color: inherit;
}

.testimonial-section .quote-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.testimonial-section .author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.testimonial-section .quote-author strong {
  display: block;
  font-size: 0.92rem;
}

.testimonial-section .quote-author span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* dark mode support, if your theme toggles a class like body.dark-mode */
body.dark-mode .testimonial-section .testimonial-card {
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .testimonial-section .testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
body.dark-mode .testimonial-section .author-avatar {
  background: rgba(255, 255, 255, 0.08);
}