/* ==========================================================================
   ASIM ALI — SITE-WIDE NEON BLUE DESIGN SYSTEM
   Reference: cinematic navy / electric-blue portfolio concept
   ========================================================================== */
:root {
  --bg-primary:#050b18;
  --bg-secondary:#081326;
  --bg-tertiary:#0d1b31;
  --text-primary:#f4f8ff;
  --text-secondary:#a8b8cf;
  --accent:#1598ff;
  --accent-secondary:#42c5ff;
  --accent-gradient:linear-gradient(115deg,#087bff 0%,#12b9ff 100%);
  --glass-bg:rgba(11,27,49,.76);
  --glass-border:rgba(83,166,255,.19);
  --glow-shadow:0 0 32px rgba(0,137,255,.17);
  --card-shadow:0 18px 55px rgba(0,0,0,.28);
  --border-radius:20px;
}
html[data-theme="dark"] { color-scheme:dark; }
html[data-theme="light"] {
  --bg-primary:#edf4ff;
  --bg-secondary:#e5efff;
  --bg-tertiary:#ffffff;
  --text-primary:#10213b;
  --text-secondary:#536782;
  --accent:#087be8;
  --accent-secondary:#0da9e8;
  --accent-gradient:linear-gradient(115deg,#087bff 0%,#12b9ff 100%);
  --glass-bg:rgba(255,255,255,.84);
  --glass-border:rgba(19,104,190,.16);
  --glow-shadow:0 12px 35px rgba(20,104,190,.1);
  --card-shadow:0 16px 45px rgba(26,71,125,.1);
  color-scheme:light;
}
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body {
  background:
    radial-gradient(ellipse at 82% 8%,rgba(0,112,255,.09),transparent 34%),
    radial-gradient(ellipse at 8% 38%,rgba(0,170,255,.045),transparent 30%),
    var(--bg-primary);
  color:var(--text-primary);
}
body::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  opacity:.16;
  background-image:linear-gradient(rgba(74,145,220,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(74,145,220,.06) 1px,transparent 1px);
  background-size:54px 54px;
  mask-image:linear-gradient(to bottom,black,transparent 78%);
}
::selection { background:rgba(13,145,255,.35); color:#fff; }
a { text-decoration:none; }
.text-gradient {
  background:linear-gradient(100deg,#36c5ff,#1685ff 58%,#8abaff);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
#bg-canvas { opacity:.22; }
#header {
  height:var(--nav-height); padding:0 clamp(18px,5vw,76px);
  background:rgba(4,11,23,.82); border-bottom:1px solid rgba(87,158,235,.16);
  box-shadow:0 12px 35px rgba(0,0,0,.16); backdrop-filter:blur(22px);
}
html[data-theme="light"] #header { background:rgba(245,249,255,.88); }
#header .logo { font-size:1.45rem; font-weight:850; letter-spacing:-.04em; }
#header nav ul { gap:clamp(12px,2vw,30px); }
#header nav ul li a {
  position:relative; padding:10px 0; color:var(--text-secondary);
  font-size:.91rem; font-weight:650; transition:color .25s ease;
}
#header nav ul li a::after {
  content:""; position:absolute; left:0; right:100%; bottom:2px; height:2px;
  background:var(--accent-gradient); box-shadow:0 0 12px rgba(0,150,255,.65);
  transition:right .25s ease;
}
#header nav ul li a:hover,#header nav ul li a.active { color:var(--text-primary); }
#header nav ul li a:hover::after,#header nav ul li a.active::after { right:0; }
.theme-toggle-btn,#menu-icon {
  border:1px solid var(--glass-border); background:var(--glass-bg);
  border-radius:50%; color:var(--text-primary);
}
.container { width:min(1240px, calc(100% - 48px)); }
.section-padding { padding-top:clamp(76px,9vw,120px); padding-bottom:clamp(76px,9vw,120px); }
section:not(.hero) { position:relative; }
section:not(.hero)::before {
  content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:min(1120px,88%); height:1px;
  background:linear-gradient(90deg,transparent,rgba(49,143,239,.22),transparent);
}
.section-title { max-width:790px; margin:0 auto 52px; }
.eyebrow,.section-title .eyebrow {
  display:inline-flex; align-items:center; gap:9px; color:#39baff;
  font-size:.76rem; font-weight:850; letter-spacing:.2em;
}
.section-title h2 {
  margin:14px 0 15px; font-size:clamp(2.15rem,4.3vw,3.35rem);
  line-height:1.12; letter-spacing:-.045em; font-weight:850;
}
.section-title p { max-width:680px; margin:0 auto; color:var(--text-secondary); line-height:1.8; }
.btn-primary,.btn-secondary {
  border-radius:999px !important; padding:13px 23px !important;
  font-weight:750 !important; letter-spacing:.005em;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease !important;
}
.btn-primary {
  color:#fff !important; background:linear-gradient(110deg,#087bff,#08a9f4) !important;
  border:1px solid rgba(111,198,255,.4) !important;
  box-shadow:0 9px 27px rgba(0,115,255,.23);
}
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 14px 35px rgba(0,135,255,.38); }
.btn-secondary {
  color:var(--text-primary) !important; background:rgba(12,29,52,.55) !important;
  border:1px solid rgba(135,180,228,.48) !important;
}
.btn-secondary:hover { transform:translateY(-3px); border-color:#27aaff !important; }
.glass,.service-card,.project-card,.skill-card,.timeline-content,.contact-info,.contact-form,
.github-card,.faq-item,.ai-card {
  background:linear-gradient(145deg,rgba(15,36,64,.86),rgba(7,19,36,.88)) !important;
  border:1px solid rgba(87,158,235,.2) !important;
  border-radius:20px !important; box-shadow:0 14px 38px rgba(0,0,0,.16);
  backdrop-filter:blur(16px);
}
html[data-theme="light"] .glass,html[data-theme="light"] .service-card,
html[data-theme="light"] .project-card,html[data-theme="light"] .skill-card,
html[data-theme="light"] .timeline-content,html[data-theme="light"] .contact-info,
html[data-theme="light"] .contact-form,html[data-theme="light"] .github-card,
html[data-theme="light"] .faq-item,html[data-theme="light"] .ai-card {
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(235,244,255,.95)) !important;
}
.service-card,.project-card { overflow:hidden; transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease; }
.service-card:hover,.project-card:hover {
  transform:translateY(-8px); border-color:rgba(37,165,255,.62) !important;
  box-shadow:0 22px 55px rgba(0,111,255,.14);
}
.service-icon { color:#36b8ff; }
.service-card h3,.project-card h3,.about-info h3 { color:var(--text-primary); letter-spacing:-.025em; }
.service-card p,.project-card p,.about-info p { color:var(--text-secondary); line-height:1.75; }
.service-visual { border-radius:15px; background:radial-gradient(circle at 50% 45%,rgba(0,137,255,.18),rgba(7,20,39,.12) 68%) !important; }
.project-img { overflow:hidden; border-radius:15px 15px 0 0; }
.project-img img { transition:transform .55s ease; }
.project-card:hover .project-img img { transform:scale(1.055); }
.project-tag,.filter-btn,.skill-tag {
  border:1px solid rgba(65,156,244,.24) !important;
  background:rgba(10,111,204,.11) !important; color:#83caff !important;
  border-radius:999px !important;
}
.filter-btn.active,.filter-btn:hover { background:var(--accent-gradient) !important; color:white !important; }
.stats-grid .stat-item { border:1px solid var(--glass-border); border-radius:17px; }
.stat-number { color:#35b7ff !important; }
.timeline::after { background:linear-gradient(#0787ff,#31c7ff) !important; }
.timeline-item::after { background:#159dff !important; box-shadow:0 0 0 5px rgba(21,157,255,.16); }
input,textarea,select {
  color:var(--text-primary) !important; background:rgba(5,17,33,.68) !important;
  border:1px solid rgba(90,157,224,.25) !important; border-radius:12px !important;
}
html[data-theme="light"] input,html[data-theme="light"] textarea,html[data-theme="light"] select { background:#fff !important; }
input:focus,textarea:focus,select:focus { outline:none; border-color:#159dff !important; box-shadow:0 0 0 3px rgba(21,157,255,.12); }
footer {
  background:linear-gradient(180deg,transparent,rgba(4,13,27,.92)) !important;
  border-top:1px solid rgba(79,151,229,.18);
}
footer a:hover { color:#45bdff !important; }
#back-to-top-btn {
  background:var(--accent-gradient) !important; border:1px solid rgba(130,202,255,.35);
  box-shadow:0 8px 28px rgba(0,126,255,.3);
}
.modal-content,.modal-body { background:var(--bg-secondary) !important; color:var(--text-primary); }
@media(max-width:768px) {
  #header { padding:0 18px; }
  #header nav { background:var(--bg-secondary) !important; border-left:1px solid var(--glass-border); }
  #header nav ul li a { font-size:1rem; }
  .container { width:min(100% - 32px,1240px); }
  .section-title { margin-bottom:34px; }
  .section-padding { padding-top:68px; padding-bottom:68px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
