/* ==========================================================================
   Md. Neamat Ullah — PHP Laravel Backend Developer
   Design language: "Terminal & Signal"
   The workshop of a backend developer: editor chrome, line numbers, commit
   history, HTTP status badges. Every recurring motif is something that
   actually appears on this person's screen at 2am debugging an API.
   ========================================================================== */

:root{
  /* Light theme (default) */
  --bg:            #f6f7fb;
  --bg-alt:        #eef0f8;
  --surface:       #ffffff;
  --surface-2:     #fbfbfe;
  --border:        #e2e4ef;
  --text:          #1b1e2b;
  --text-muted:    #5c6178;
  --text-soft:     #8a8fa3;

  --primary:       #5457e5;
  --primary-dark:  #3f41c9;
  --primary-soft:  #eeeeff;
  --accent:        #f5a623;
  --accent-dark:   #d98c0f;
  --success:       #1cae70;

  --code-bg:       #161a2b;
  --code-text:     #d7ddf5;

  --radius: 10px;
  --radius-sm: 6px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-soft: 0 10px 30px rgba(30,32,60,.06);
  --shadow-lift: 0 24px 60px rgba(30,32,60,.14);
}

[data-theme="dark"]{
  --bg:            #0b0e19;
  --bg-alt:        #0f1322;
  --surface:       #131729;
  --surface-2:     #171c31;
  --border:        #262b42;
  --text:          #eef0fb;
  --text-muted:    #a4a9c4;
  --text-soft:     #7178984d;
  --text-soft:     #767ca0;

  --primary:       #7c7fff;
  --primary-dark:  #5f62ec;
  --primary-soft:  #1c1f3a;
  --accent:        #ffbc42;
  --accent-dark:   #e6a327;
  --success:       #34d399;

  --code-bg:       #05070f;
  --code-text:     #cdd4f2;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.35);
  --shadow-lift: 0 24px 70px rgba(0,0,0,.55);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  transition: background .25s ease, color .25s ease;
}

h1,h2,h3,h4,.display-font{
  font-family: var(--font-display);
  font-weight:600;
  color: var(--text);
  letter-spacing: -0.01em;
}

a{ color: var(--primary); text-decoration:none; }
a:hover{ color: var(--primary-dark); }
::selection{ background: var(--accent); color: #1b1e2b; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

.eyebrow{
  font-family: var(--font-mono);
  font-size:.72rem; letter-spacing:.12em; text-transform:uppercase;
  color: var(--primary);
  display:inline-flex; align-items:center; gap:.6rem;
}
.eyebrow::before{ content:"//"; color: var(--accent); font-weight:700; }

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader{
  position:fixed; inset:0; z-index:2000;
  background: var(--bg);
  display:flex; align-items:center; justify-content:center;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.loaded{ opacity:0; visibility:hidden; }
.preloader-box{
  font-family: var(--font-mono);
  color: var(--text);
  text-align:center;
}
.preloader-box .dots::after{
  content:''; display:inline-block; width:1ch; text-align:left;
  animation: dots 1.2s steps(4) infinite;
}
@keyframes dots{ to{ content:''; } }
.preloader-bar{
  width:180px; height:3px; background: var(--border); border-radius:3px; margin-top:14px; overflow:hidden;
}
.preloader-bar span{
  display:block; height:100%; width:40%; background: var(--primary);
  animation: loadbar 1.1s ease-in-out infinite;
}
@keyframes loadbar{ 0%{ transform:translateX(-100%);} 100%{ transform:translateX(350%);} }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar-neamat{
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: .8rem 0;
  transition: padding .3s ease, box-shadow .3s ease;
}
.navbar-neamat.is-scrolled{ padding:.5rem 0; box-shadow: var(--shadow-soft); }
.navbar-brand-neamat{
  display:flex; align-items:center; gap:.65rem;
  font-family: var(--font-display); font-weight:700; font-size:1.2rem;
  color: var(--text) !important;
}
.brand-tag{
  font-family: var(--font-mono); font-size:.85rem;
  width:38px; height:38px; border-radius:8px;
  background: var(--primary); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.navbar-neamat .nav-link{
  color: var(--text-muted); font-weight:500; font-size:.92rem;
  padding:.5rem .85rem !important; position:relative;
}
.navbar-neamat .nav-link.active, .navbar-neamat .nav-link:hover{ color: var(--text); }
.navbar-neamat .nav-link.active::after{
  content:''; position:absolute; left:.85rem; right:.85rem; bottom:.1rem; height:2px; background: var(--accent);
}
.theme-toggle{
  width:40px; height:40px; border-radius:8px;
  border:1px solid var(--border); background: var(--surface-2); color: var(--text);
  display:flex; align-items:center; justify-content:center; font-size:1.05rem;
}
.theme-toggle:hover{ border-color: var(--primary); color: var(--primary); }
.btn-nav-cta{
  background: var(--primary); color:#fff !important; border-radius: var(--radius-sm);
  padding:.55rem 1.25rem; font-weight:600; font-size:.88rem; border:1px solid var(--primary);
}
.btn-nav-cta:hover{ background: var(--primary-dark); border-color: var(--primary-dark); color:#fff !important; }

.dropdown-menu{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.dropdown-item{ color: var(--text-muted); font-size:.9rem; }
.dropdown-item:hover, .dropdown-item:focus{ background: var(--primary-soft); color: var(--primary); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-signal{
  background: var(--primary); color:#fff; border:1px solid var(--primary);
  border-radius: var(--radius-sm); font-weight:600; padding:.85rem 1.9rem;
  display:inline-flex; align-items:center; gap:.5rem;
}
.btn-signal:hover{ background: var(--primary-dark); color:#fff; transform:translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-amber{
  background: var(--accent); color:#1b1e2b; border:1px solid var(--accent);
  border-radius: var(--radius-sm); font-weight:700; padding:.85rem 1.9rem;
  display:inline-flex; align-items:center; gap:.5rem;
}
.btn-amber:hover{ background: var(--accent-dark); color:#1b1e2b; transform:translateY(-2px); }
.btn-outline-signal{
  border:1.5px solid var(--border); color: var(--text); background:transparent;
  border-radius: var(--radius-sm); font-weight:600; padding:.82rem 1.85rem;
  display:inline-flex; align-items:center; gap:.5rem;
}
.btn-outline-signal:hover{ border-color: var(--primary); color: var(--primary); }
.btn-sm-pill{
  font-size:.78rem; font-weight:600; padding:.4rem 1rem; border-radius:30px;
  border:1px solid var(--border); background: var(--surface-2); color: var(--text-muted);
}
.btn-sm-pill.active, .btn-sm-pill:hover{ background: var(--primary); border-color: var(--primary); color:#fff; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  padding: 8.5rem 0 5rem;
  position:relative; overflow:hidden;
  background:
    radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--primary) 16%, transparent) 0%, transparent 70%),
    var(--bg);
}
.hero::before{
  content:"";
  position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(60% 60% at 30% 20%, black, transparent 75%);
}
.hero-content{ position:relative; z-index:2; }
.hero h1{ font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height:1.12; }
.hero .type-line{
  font-family: var(--font-mono); font-size: clamp(1rem,1.6vw,1.2rem); color: var(--primary);
  min-height: 1.6em;
}
.hero .type-line .cursor{ display:inline-block; width:2px; background:var(--primary); margin-left:2px; animation: blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.hero p.lead{ color: var(--text-muted); font-size:1.08rem; max-width:34rem; }

.hero-stats{ display:flex; flex-wrap:wrap; gap:2.2rem; margin-top:2.4rem; }
.hero-stat .num{ font-family: var(--font-mono); font-size:1.9rem; font-weight:700; color: var(--text); line-height:1; }
.hero-stat .num .accent{ color: var(--accent); }
.hero-stat .label{ font-size:.78rem; color: var(--text-soft); margin-top:.3rem; }

/* Terminal card — signature element */
.term-card{
  background: var(--code-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  overflow:hidden;
  font-family: var(--font-mono);
  border: 1px solid #232848;
}
.term-head{
  display:flex; align-items:center; gap:.4rem;
  padding:.75rem 1rem; background:#11142199; border-bottom:1px solid #232848;
}
.term-dot{ width:10px; height:10px; border-radius:50%; }
.term-dot.r{ background:#ff5f56; } .term-dot.y{ background:#ffbd2e; } .term-dot.g{ background:#27c93f; }
.term-title{ margin-left:.6rem; font-size:.72rem; color:#7c82a6; }
.term-body{ padding:1.4rem 1.5rem; font-size:.82rem; color: var(--code-text); line-height:1.9; }
.term-body .ln{ color:#4b5178; display:inline-block; width:1.6rem; user-select:none; }
.term-kw{ color:#c792ea; } .term-fn{ color:#82aaff; } .term-str{ color:#c3e88d; } .term-com{ color:#5c6494; } .term-var{ color:#f78c6c; } .term-cls{ color:#ffcb6b; }

.hero-photo-frame{
  position:relative; border-radius: 16px; overflow:hidden;
  box-shadow: var(--shadow-lift); border:1px solid var(--border);
}
.hero-photo-frame img{ width:100%; display:block; }
.hero-badge-float{
  position:absolute; bottom:14px; left:14px; right:14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding:.7rem 1rem; display:flex; align-items:center; gap:.6rem;
  font-family: var(--font-mono); font-size:.78rem; color: var(--text);
  border: 1px solid var(--border);
}
.status-dot{ width:8px; height:8px; border-radius:50%; background: var(--success); box-shadow:0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent); }

/* page hero */
.page-hero{
  padding: 7.5rem 0 3rem; position:relative; overflow:hidden;
  background: radial-gradient(70% 60% at 90% 0%, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 70%), var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero .breadcrumb{ font-family: var(--font-mono); font-size:.8rem; }
.page-hero .breadcrumb a{ color: var(--text-muted); }
.page-hero .breadcrumb .active{ color: var(--accent-dark); }

/* ==========================================================================
   Sections
   ========================================================================== */
section{ padding: 5.5rem 0; }
.section-tight{ padding: 3.5rem 0; }
.bg-alt{ background: var(--bg-alt); }
.bg-surface{ background: var(--surface); }
.bg-code{ background: var(--code-bg); color: var(--code-text); }
.bg-code h2, .bg-code h3{ color:#fff; }

.section-head{ max-width: 42rem; margin-bottom: 3rem; }
.section-head.mx-auto{ margin-left:auto; margin-right:auto; }
.section-head h2{ font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-top:.6rem; }

/* Cards */
.card-neamat{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem; height:100%; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-neamat:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--primary); }
.card-icon{
  width:50px; height:50px; border-radius:10px; background: var(--primary-soft); color: var(--primary);
  display:flex; align-items:center; justify-content:center; font-size:1.3rem; margin-bottom:1.1rem;
}

/* Skill bars */
.skill-row{ margin-bottom: 1.1rem; }
.skill-row .lbl{ display:flex; justify-content:space-between; font-size:.85rem; font-weight:600; margin-bottom:.4rem; font-family: var(--font-mono); }
.skill-track{ height:7px; border-radius:6px; background: var(--border); overflow:hidden; }
.skill-fill{ height:100%; border-radius:6px; background: linear-gradient(90deg, var(--primary), var(--accent)); width:0; transition: width 1.2s ease; }

.tech-badge{
  display:inline-flex; align-items:center; gap:.5rem;
  border:1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm);
  padding:.75rem 1rem; font-size:.85rem; font-weight:600; color: var(--text);
  transition: all .2s ease;
}
.tech-badge:hover{ border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.tech-badge i{ font-size:1.15rem; color: var(--primary); }

/* Projects */
.filter-bar{ display:flex; flex-wrap:wrap; gap:.6rem; }
.project-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  overflow:hidden; height:100%; transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.project-thumb{
  height:190px; display:flex; align-items:center; justify-content:center; font-size:3rem;
  background: linear-gradient(135deg, var(--primary-soft), #29a6ff);
  position:relative;
}
.project-thumb .status-chip{
  position:absolute; top:12px; right:12px; font-family: var(--font-mono); font-size:.68rem;
  background: var(--surface); border:1px solid var(--border); color: var(--success);
  padding:.25rem .6rem; border-radius:20px;
}
.project-body{ padding: 1.5rem 1.4rem; }
.project-cat{ font-family: var(--font-mono); font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color: var(--primary); margin-bottom:.5rem; display:block; }
.project-title{ font-size:1.05rem; font-weight:700; margin-bottom:.5rem; }
.project-desc{ font-size:.88rem; color: var(--text-muted); margin-bottom:1rem; }
.project-tech{ display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1.2rem; }
.project-tech span{ font-family: var(--font-mono); font-size:.68rem; background: var(--bg-alt); border:1px solid var(--border); padding:.2rem .55rem; border-radius:5px; color: var(--text-muted); }
.project-links{ display:flex; gap:.6rem; }
.btn-proj{
  flex:1; text-align:center; font-size:.82rem; font-weight:600; padding:.55rem; border-radius: var(--radius-sm);
  border:1.5px solid var(--border); color: var(--text);
}
.btn-proj.primary{ background: var(--primary); border-color: var(--primary); color:#fff; }
.btn-proj:hover{ border-color: var(--primary); color: var(--primary); }
.btn-proj.primary:hover{ background: var(--primary-dark); color:#fff; }
.btn-proj.disabled{ opacity:.5; pointer-events:none; }

/* Experience timeline (git-log style) */
.gitlog{ position:relative; padding-left: 2.4rem; }
.gitlog::before{
  content:""; position:absolute; left:7px; top:8px; bottom:8px; width:2px;
  background: repeating-linear-gradient(var(--border) 0 6px, transparent 6px 12px);
}
.gitlog-item{ position:relative; padding-bottom: 2.6rem; }
.gitlog-item:last-child{ padding-bottom:0; }
.gitlog-item::before{
  content:""; position:absolute; left:-2.4rem; top:.35rem; width:14px; height:14px; border-radius:50%;
  background: var(--surface); border:3px solid var(--primary);
}
.gitlog-item.current::before{ border-color: var(--success); box-shadow:0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }
.gitlog-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:1.6rem 1.8rem; }
.gitlog-date{ font-family: var(--font-mono); font-size:.72rem; color: var(--primary); background: var(--primary-soft); padding:.25rem .7rem; border-radius:20px; display:inline-block; margin-bottom:.6rem; }
.gitlog-company{ font-size:.85rem; color: var(--text-muted); font-weight:500; }

/* Education cards */
.edu-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:1.8rem; height:100%; }
.edu-icon{ font-size:2rem; margin-bottom: .8rem; }

/* Testimonials */
.testi-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:1.9rem; height:100%; }
.testi-quote{ font-family: var(--font-display); font-size:1.05rem; color: var(--text); }
.testi-person{ display:flex; align-items:center; gap:.8rem; margin-top:1.2rem; }
.testi-avatar{ width:44px; height:44px; border-radius:50%; background: var(--primary-soft); color: var(--primary); display:flex; align-items:center; justify-content:center; font-weight:700; font-family: var(--font-display); }
.testi-stars{ color: var(--accent); font-size:.85rem; margin-bottom:.6rem; }

/* Blog */
.blog-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; height:100%; transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.blog-thumb{ height:150px; background: linear-gradient(135deg, var(--primary-soft), var(--bg-alt)); display:flex; align-items:center; justify-content:center; font-size:2.2rem; }
.blog-meta{ font-family: var(--font-mono); font-size:.72rem; color: var(--text-soft); display:flex; gap:1rem; margin-bottom:.6rem; }
.blog-body{ padding:1.4rem 1.4rem 1.6rem; }
.blog-title{ font-size:1rem; font-weight:700; margin-bottom:.6rem; }
.blog-excerpt{ font-size:.87rem; color: var(--text-muted); }

/* CTA band */
.cta-band{
  background: var(--code-bg); color:#fff; border-radius: 14px; padding: 3.4rem;
  position:relative; overflow:hidden;
}
.cta-band::before{
  content:''; position:absolute; inset:0;
  background-image: linear-gradient(#232848 1px, transparent 1px), linear-gradient(90deg, #232848 1px, transparent 1px);
  background-size: 30px 30px; opacity:.4;
}
.cta-band > *{ position:relative; z-index:2; }
.cta-band p{ color:#a4a9c4; }

/* Contact */
.contact-info-item{ display:flex; gap:1rem; padding: 1.1rem 0; border-bottom:1px dashed var(--border); }
.contact-info-item:last-child{ border-bottom:0; }
.contact-icon{ width:46px; height:46px; border-radius:10px; background: var(--primary-soft); color: var(--primary); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.form-control-neamat, .form-select-neamat{
  border:1px solid var(--border); border-radius: var(--radius-sm); padding:.8rem 1rem;
  background: var(--surface); color: var(--text);
}
.form-control-neamat:focus, .form-select-neamat:focus{ border-color: var(--primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 15%, transparent); background: var(--surface); color: var(--text); }
label.form-label-neamat{ font-weight:600; font-size:.85rem; margin-bottom:.4rem; font-family: var(--font-mono); color: var(--text-muted); }

/* Footer */
footer.footer-neamat{ background: var(--code-bg); color:#a4a9c4; padding-top: 4.2rem; }
footer.footer-neamat h6{ color:#fff; font-family: var(--font-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:1.1rem; }
footer.footer-neamat a{ color:#a4a9c4; }
footer.footer-neamat a:hover{ color: var(--accent); }
footer.footer-neamat ul{ list-style:none; padding:0; }
footer.footer-neamat ul li{ margin-bottom:.6rem; font-size:.9rem; }
.footer-bottom{ border-top:1px solid #232848; margin-top:2.6rem; padding:1.3rem 0; font-size:.8rem; color:#767ca0; }
.social-neamat a{
  width:38px; height:38px; border-radius:8px; border:1px solid #232848;
  display:inline-flex; align-items:center; justify-content:center; margin-right:.5rem; color:#a4a9c4;
}
.social-neamat a:hover{ background: var(--primary); border-color: var(--primary); color:#fff; }

/* Scroll top */
#scrollTop{
  position:fixed; right:1.4rem; bottom:1.4rem; z-index:1000; width:46px; height:46px; border-radius:10px;
  background: var(--primary); color:#fff; border:none; display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform: translateY(10px); transition: all .3s ease; box-shadow: var(--shadow-lift);
}
#scrollTop.show{ opacity:1; visibility:visible; transform:none; }
#scrollTop:hover{ background: var(--accent); color:#1b1e2b; }

/* 404 */
.error-mark{ font-family: var(--font-mono); font-size: clamp(4.5rem, 14vw, 8.5rem); color: var(--primary); line-height:1; }

/* Placeholder callout */
.placeholder-callout{
  border:1.5px dashed var(--accent-dark); background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: var(--radius-sm); padding: 1.1rem 1.4rem; font-size:.86rem; color: var(--text-muted);
}

/* Resume print */
@media print{
  .navbar-neamat, footer.footer-neamat, #scrollTop, #preloader, .no-print{ display:none !important; }
  section{ padding: 1rem 0 !important; }
  body{ background:#fff; color:#000; }
}

.text-accent{ color: var(--accent-dark) !important; }
.text-primary-neamat{ color: var(--primary) !important; }
.rounded-neamat{ border-radius: var(--radius) !important; }

@media (max-width: 991.98px){
  section{ padding: 3.6rem 0; }
  .hero{ padding-top: 7rem; padding-bottom: 3rem; }
}
