/*
Theme Name: Be Mine Design Studio
Theme URI: https://beminedesignmalaysia.com
Author: Be Mine Design
Description: Clean professional portfolio theme with built-in admin settings and Portfolio Manager.
Version: 1.17.0
Text Domain: bemine-design
*/

:root{
  --bmd-bg:#fbfbfa;
  --bmd-text:#161616;
  --bmd-muted:#747474;
  --bmd-accent:#b6a99f;
  --bmd-card:#f4f3f1;
  --bmd-line:#e8e7e4;
  --bmd-h1:104px;
  --bmd-h2:64px;
  --bmd-body:17px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;color:var(--bmd-text);background:var(--bmd-bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto} a{text-decoration:none;color:inherit}.wrap{width:min(1180px,90vw);margin:auto}
.header{height:82px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;gap:28px;border-bottom:1px solid var(--bmd-line);background:color-mix(in srgb,var(--bmd-bg) 94%,transparent);backdrop-filter:blur(16px);position:sticky;top:0;z-index:30}
.brand{display:inline-flex;align-items:center;flex:0 0 auto;white-space:nowrap}.brand .brand-logo{display:block;width:auto;height:48px;max-width:220px;max-height:48px;object-fit:contain}
.nav{display:flex;gap:30px;align-items:center;font-size:12px;font-weight:600}.nav a:not(.nav-cta):hover{opacity:.5}.nav-cta{background:var(--bmd-text);color:var(--bmd-bg);padding:13px 18px;border-radius:2px}.menu-btn{display:none;width:38px;height:38px;padding:8px;border:0;background:none;color:var(--bmd-text);cursor:pointer}.menu-btn span{display:block;width:22px;height:2px;background:currentColor;margin:4px auto;border-radius:99px;transition:.2s}.menu-btn[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}.menu-btn[aria-expanded="true"] span:nth-child(2){opacity:0}.menu-btn[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.hero{min-height:650px;padding:92px 0 74px;display:grid;grid-template-columns:.8fr 1.2fr;gap:56px;align-items:center}
.eyebrow{text-transform:uppercase;letter-spacing:.18em;color:var(--bmd-muted);font-size:10px;font-weight:700;margin:0 0 19px}
h1,h2,h3,p{margin-top:0}.hero h1{font-size:clamp(58px,7vw,var(--bmd-h1));line-height:var(--bmd-hero-line-height,.86);letter-spacing:-.075em;margin-bottom:32px}.hero h1 span{color:var(--bmd-accent);font-weight:500}
.hero-text{font-size:var(--bmd-body);line-height:1.7;color:var(--bmd-muted);max-width:570px}.actions{display:flex;gap:24px;align-items:center;margin-top:32px}.btn{display:inline-flex;align-items:center;gap:22px;padding:15px 20px;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}.btn.dark{background:var(--bmd-text);color:var(--bmd-bg);border:1px solid var(--bmd-text)}.btn.text{padding-left:0}.btn.outline{border:1px solid var(--bmd-line);background:transparent}
.hero-showcase{height:500px;position:relative;display:flex;align-items:center;justify-content:center}.shape{position:absolute;border-radius:50%;background:var(--bmd-card)}.shape-one{width:310px;height:310px;right:4%;top:4%}.shape-two{width:205px;height:205px;left:6%;bottom:5%}
.device{position:relative;z-index:3}.laptop{width:min(590px,90%);transform:rotate(-1deg)}.screen{background:#111;border:11px solid #171717;border-radius:14px 14px 6px 6px;box-shadow:0 28px 55px rgba(0,0,0,.14);overflow:hidden;aspect-ratio:16/10}.screen img{width:100%;height:100%;object-fit:cover}.base{height:13px;background:linear-gradient(#d8d8d8,#a8a8a8);border-radius:0 0 50% 50%;margin:-1px -35px 0}
.phone-card{position:absolute;z-index:5;left:2%;bottom:50px;width:120px;height:245px;border:8px solid #1b1b1b;border-radius:24px;background:#0a0a0a;overflow:hidden;box-shadow:0 16px 35px rgba(0,0,0,.18);transform:rotate(-5deg)}.phone-card img{height:100%;width:100%;object-fit:cover}
.section{padding:100px 0}.section-head{display:block;margin-bottom:42px}.section-head h2,.about-copy h2,.contact h2{font-size:clamp(40px,5vw,var(--bmd-h2));letter-spacing:-.055em;line-height:1;margin-bottom:0}.section-head>p,.section-head>div>p:not(.eyebrow){max-width:620px;line-height:1.65;color:var(--bmd-muted);font-size:14px;margin:16px 0 0}
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.service-card{background:var(--bmd-card);padding:28px;min-height:300px;display:flex;flex-direction:column}.service-card .icon{font-size:33px;font-weight:300;display:flex;align-items:center;height:42px}.service-icon-img{width:var(--service-icon-desktop,38px);height:var(--service-icon-desktop,38px);object-fit:contain;display:block;max-width:none}.service-card h3{font-size:20px;letter-spacing:-.025em;margin:45px 0 13px}.service-card p{color:var(--bmd-muted);font-size:13px;line-height:1.65}.service-card a{margin-top:auto;font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:.06em}
.work-section{background:var(--bmd-card)}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px}.filters button{border:0;background:var(--bmd-bg);border-radius:99px;padding:10px 15px;font-size:10px;cursor:pointer}.filters .active{background:var(--bmd-text);color:var(--bmd-bg)}
.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:28px 18px}.project{min-width:0}.project-img{height:260px;background:#ddd;overflow:hidden}.project-img img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:.4s}.project:hover .project-img img{transform:scale(1.02)}.project-meta{display:flex;justify-content:space-between;gap:18px;padding:16px 0}.project-meta h3{font-size:15px;margin-bottom:6px}.project-meta p{font-size:11px;color:var(--bmd-muted);line-height:1.5;margin-bottom:0}.project-meta span{font-size:8px;color:var(--bmd-muted);white-space:nowrap;border:1px solid var(--bmd-line);height:max-content;padding:5px 7px;border-radius:99px}
.project.hidden{display:none}
.about-section{padding:110px 0;background:var(--bmd-bg)}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}.about-visual{background:var(--bmd-card);min-height:440px;display:flex;align-items:center;justify-content:center;gap:22px}.about-visual img{width:115px}.about-visual strong{display:block;font-size:24px;letter-spacing:.03em}.about-visual span{font-size:11px;color:var(--bmd-muted)}.about-copy>p:not(.eyebrow){font-size:16px;line-height:1.75;color:var(--bmd-muted);margin-top:28px}
.contact{padding:76px 0;border-top:1px solid var(--bmd-line);border-bottom:1px solid var(--bmd-line)}.contact-inner{display:flex;justify-content:space-between;align-items:center;gap:50px}.contact h2{font-size:42px;max-width:700px}.contact-actions{display:flex;gap:10px;flex-shrink:0}
.footer{padding:54px 0 70px;display:grid;grid-template-columns:1fr 1fr;gap:48px;font-size:11px;color:var(--bmd-muted);align-items:start}.footer-contact{justify-self:end;text-align:right;align-items:flex-end}.footer>div{display:flex;flex-direction:column;gap:9px}.footer-label{display:block;font-size:8px;line-height:1;letter-spacing:.12em;color:var(--bmd-text);font-weight:800;margin:0;min-height:8px}.footer-brand,.footer-contact{padding-top:0}
@media(max-width:900px){.nav{display:none;position:absolute;left:0;right:0;top:82px;padding:24px 5vw;background:var(--bmd-bg);flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--bmd-line)}.nav.open{display:flex}.menu-btn{display:block}.hero{grid-template-columns:1fr;padding-top:70px}.hero-showcase{height:430px}.service-grid{grid-template-columns:1fr 1fr}.projects{grid-template-columns:1fr 1fr}.about-grid{grid-template-columns:1fr}.contact-inner{display:block}.contact-actions{margin-top:28px}.footer{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.header{height:70px}.brand .brand-logo{width:auto;height:42px;max-width:170px;max-height:42px}.nav{top:70px}.hero{min-height:auto;padding:55px 0 65px}.hero h1{font-size:58px}.hero-text{font-size:15px}.hero-showcase{height:330px}.phone-card{width:85px;height:175px;bottom:24px}.section{padding:72px 0}.section-head{display:block}.section-head>p{margin-top:18px}.service-grid,.projects{grid-template-columns:1fr}.project-img{height:250px}.about-section{padding:72px 0}.about-visual{min-height:300px}.contact h2{font-size:34px}.contact-actions{flex-direction:column;align-items:flex-start}.footer{grid-template-columns:1fr}}


/* Portfolio lightbox */
.project-img.project-lightbox-trigger{
  position:relative;
  display:block;
  width:100%;
  padding:0;
  border:0;
  color:inherit;
  cursor:zoom-in;
  text-align:left;
  appearance:none;
}
.project-img.project-lightbox-trigger:focus-visible{
  outline:3px solid var(--bmd-accent);
  outline-offset:3px;
}
.project-view-icon{
  position:absolute;
  right:14px;
  bottom:14px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  color:#111;
  display:grid;
  place-items:center;
  font-size:21px;
  line-height:1;
  opacity:0;
  transition:.2s;
}
.project-gallery-count{
  position:absolute;
  left:14px;
  bottom:14px;
  background:rgba(0,0,0,.72);
  color:#fff;
  border-radius:99px;
  padding:7px 10px;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.project:hover .project-view-icon,
.project-img.project-lightbox-trigger:focus-visible .project-view-icon{opacity:1}

.bmd-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
}
.bmd-lightbox.is-open{display:block}
.bmd-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,10,10,.92);
}
.bmd-lightbox-dialog{
  position:absolute;
  inset:24px;
  display:flex;
  flex-direction:column;
  color:#fff;
}
.bmd-lightbox-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:54px;
}
.bmd-lightbox-top strong{
  display:block;
  font-size:14px;
}
.bmd-lightbox-top span{
  display:block;
  color:#aaa;
  font-size:10px;
  margin-top:4px;
}
.bmd-lightbox-close{
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  background:transparent;
  color:#fff;
  font-size:28px;
  cursor:pointer;
}
.bmd-lightbox-stage{
  flex:1;
  min-height:0;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 64px;
}
.bmd-lightbox-stage img{
  display:block;
  max-width:100%;
  max-height:calc(100vh - 190px);
  object-fit:contain;
  user-select:none;
}
.bmd-lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  background:rgba(0,0,0,.2);
  color:#fff;
  font-size:35px;
  cursor:pointer;
}
.bmd-prev{left:0}
.bmd-next{right:0}
.bmd-lightbox-nav:disabled{
  opacity:.25;
  cursor:default;
}
.bmd-lightbox-thumbs{
  display:flex;
  gap:9px;
  overflow-x:auto;
  padding:10px 0 2px;
  justify-content:center;
}
.bmd-lightbox-thumb{
  width:82px;
  height:58px;
  flex:0 0 auto;
  padding:0;
  border:2px solid transparent;
  background:#222;
  cursor:pointer;
}
.bmd-lightbox-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.bmd-lightbox-thumb.active{
  border-color:#fff;
}
body.bmd-lightbox-open{overflow:hidden}

@media(max-width:700px){
  .project-view-icon{opacity:1}
  .bmd-lightbox-dialog{inset:12px}
  .bmd-lightbox-stage{padding:10px 42px}
  .bmd-lightbox-stage img{max-height:calc(100vh - 170px)}
  .bmd-lightbox-nav{width:38px;height:38px;font-size:28px}
  .bmd-lightbox-thumbs{justify-content:flex-start}
  .bmd-lightbox-thumb{width:68px;height:48px}
}

/* v1.5 direct hero image */
.hero-showcase-direct{display:flex;align-items:center;justify-content:center;position:relative}
.hero-showcase-direct .hero-direct-image{display:block;width:100%;height:auto;max-width:100%;max-height:620px;object-fit:contain}
@media(max-width:900px){.hero-showcase-direct .hero-direct-image{max-height:none}}


/* v1.6 — editable About image */
.about-visual.has-about-image{
  padding:0;
  overflow:hidden;
  background:var(--bmd-card);
}
.about-visual.has-about-image .about-custom-image{
  width:100%;
  height:100%;
  min-height:440px;
  object-fit:cover;
  display:block;
}
@media(max-width:600px){
  .about-visual.has-about-image .about-custom-image{
    min-height:300px;
  }
}

/* v1.7 — Hero size/mobile visibility + portfolio pagination */
.hero-showcase-direct .hero-direct-image{
  width:var(--bmd-hero-image-width,100%);
  max-width:none;
}
.project-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-top:44px;
}
.project-pagination:empty{display:none}
.project-pagination button{
  min-width:36px;
  height:36px;
  padding:0 10px;
  border:1px solid var(--bmd-line);
  background:var(--bmd-bg);
  color:var(--bmd-text);
  border-radius:99px;
  cursor:pointer;
  font-size:11px;
}
.project-pagination button.active{
  background:var(--bmd-text);
  color:var(--bmd-bg);
  border-color:var(--bmd-text);
}
.project-pagination button:disabled{
  opacity:.3;
  cursor:default;
}
@media(max-width:600px){
  .hero-showcase-direct.hero-hide-mobile{display:none}
  .hero-showcase-direct .hero-direct-image{
    width:min(var(--bmd-hero-image-width,100%),140%);
  }
}


/* v1.8 — responsive section visibility */
@media(min-width:901px){.bmd-hide-desktop{display:none!important}}
@media(min-width:601px) and (max-width:900px){.bmd-hide-tablet{display:none!important}}
@media(max-width:600px){.bmd-hide-mobile{display:none!important}}


/* v1.9 — editable layout order, service PNG icons, back to top */
/* Desktop image/content order */
@media(min-width:901px){
  .bmd-layout-hero-desktop-content-first .hero-content{order:1}
  .bmd-layout-hero-desktop-content-first .hero-showcase{order:2}
  .bmd-layout-hero-desktop-image-first .hero-showcase{order:1}
  .bmd-layout-hero-desktop-image-first .hero-content{order:2}
  .bmd-layout-about-desktop-image-first .about-visual{order:1}
  .bmd-layout-about-desktop-image-first .about-copy{order:2}
  .bmd-layout-about-desktop-content-first .about-copy{order:1}
  .bmd-layout-about-desktop-content-first .about-visual{order:2}
}
/* Tablet image/content order */
@media(min-width:601px) and (max-width:900px){
  .bmd-layout-hero-tablet-content-first .hero-content{order:1}
  .bmd-layout-hero-tablet-content-first .hero-showcase{order:2}
  .bmd-layout-hero-tablet-image-first .hero-showcase{order:1}
  .bmd-layout-hero-tablet-image-first .hero-content{order:2}
  .bmd-layout-about-tablet-image-first .about-visual{order:1}
  .bmd-layout-about-tablet-image-first .about-copy{order:2}
  .bmd-layout-about-tablet-content-first .about-copy{order:1}
  .bmd-layout-about-tablet-content-first .about-visual{order:2}
}
/* Mobile image/content order */
@media(max-width:600px){
  .bmd-layout-hero-mobile-content-first .hero-content{order:1}
  .bmd-layout-hero-mobile-content-first .hero-showcase{order:2}
  .bmd-layout-hero-mobile-image-first .hero-showcase{order:1}
  .bmd-layout-hero-mobile-image-first .hero-content{order:2}
  .bmd-layout-about-mobile-image-first .about-visual{order:1}
  .bmd-layout-about-mobile-image-first .about-copy{order:2}
  .bmd-layout-about-mobile-content-first .about-copy{order:1}
  .bmd-layout-about-mobile-content-first .about-visual{order:2}
}

.back-to-top{
  position:fixed;
  right:24px;
  bottom:24px;
  width:44px;
  height:44px;
  border:1px solid var(--bmd-line);
  border-radius:50%;
  background:var(--bmd-text);
  color:var(--bmd-bg);
  font-size:20px;
  line-height:1;
  cursor:pointer;
  z-index:28;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .2s,transform .2s,visibility .2s;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.back-to-top.is-visible{opacity:1;visibility:visible;transform:none}
.back-to-top:hover{transform:translateY(-2px)}
@media(max-width:600px){
  .back-to-top{right:16px;bottom:16px;width:40px;height:40px}
  .footer{grid-template-columns:1fr;gap:28px}
  .footer-contact{justify-self:start;text-align:left;align-items:flex-start}
}

/* v1.12 — responsive Services icon sizing */
@media (max-width:1024px){.service-icon-img{width:var(--service-icon-tablet,38px);height:var(--service-icon-tablet,38px)}}
@media (max-width:1024px){.service-icon-img{width:var(--service-icon-mobile,38px);height:var(--service-icon-mobile,38px)}}


/* v1.13 — Mobile menu styling */
@media (max-width: 1024px){
  .mobile-menu,
  .mobile-nav,
  .nav-panel,
  .menu-panel,
  .site-mobile-menu,
  .mobile-menu-panel {
    background:#000 !important;
    color:#fff !important;
  }

  .mobile-menu a,
  .mobile-nav a,
  .nav-panel a,
  .menu-panel a,
  .site-mobile-menu a,
  .mobile-menu-panel a {
    color:#fff !important;
  }

  .mobile-menu a:hover,
  .mobile-nav a:hover,
  .nav-panel a:hover,
  .menu-panel a:hover,
  .site-mobile-menu a:hover,
  .mobile-menu-panel a:hover {
    color:#fff !important;
    opacity:.72;
  }

  .mobile-menu .header-cta,
  .mobile-nav .header-cta,
  .nav-panel .header-cta,
  .menu-panel .header-cta,
  .site-mobile-menu .header-cta,
  .mobile-menu-panel .header-cta,
  .mobile-menu .lets-talk,
  .mobile-nav .lets-talk,
  .nav-panel .lets-talk,
  .menu-panel .lets-talk,
  .site-mobile-menu .lets-talk,
  .mobile-menu-panel .lets-talk {
    display:none !important;
  }
}

@media (max-width:1024px){
  .mobile-hide-cta{display:none !important;}
}


/* v1.15 — actual tablet/mobile navigation override */
@media (max-width: 900px){
  .header .nav{
    background:#000 !important;
    color:#fff !important;
    border-bottom-color:rgba(255,255,255,.16) !important;
  }

  .header .nav > a:not(.nav-cta){
    color:#fff !important;
  }

  .header .nav > a:not(.nav-cta):hover{
    color:#fff !important;
    opacity:.65;
  }

  .header .nav .nav-cta{
    display:none !important;
  }
}
