/*
Theme Name: Ahsan Raza Portfolio
Theme URI: https://muhammadahsanraza.com/
Author: OpenAI
Description: Custom classic WordPress portfolio theme built from the supplied Ahsan Raza HTML source files. Dynamic page fields, template parts, theme options, language pairing and contact form.
Version: 2.1.2
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: ahsan-portfolio
*/
:root{--ar-bg:#FAFAF8;--ar-text:#111;--ar-muted:#6B6B66;--ar-accent:#1C46B1;--ar-border:#E6E5E0;--ar-font:'Inter',system-ui,sans-serif;--ar-base:16px;--ar-h1:64px;--ar-h2:44px;--ar-radius:28px}
html{scroll-behavior:smooth;min-height:100%;height:auto;overflow-x:clip;overflow-y:auto}body{margin:0;min-height:100vh;height:auto;overflow-x:clip;overflow-y:visible;background:var(--ar-bg);color:var(--ar-text);font-family:var(--ar-font);font-size:var(--ar-base);line-height:1.5;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}.ar-site{overflow-x:clip;overflow-y:visible}.ar-page{width:100%;padding-bottom:1px}.ar-page h1{font-size:var(--ar-h1)}.ar-page h2{font-size:var(--ar-h2)}.ar-page a:hover{color:var(--ar-accent)}
.ar-header{position:sticky;top:0;z-index:100;max-width:1760px;margin:0 auto;padding:12px 56px;box-sizing:border-box}.ar-header-inner{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center;justify-content:space-between;padding:8px 10px 8px 24px;border-radius:32px;background:rgba(255,255,255,.72);backdrop-filter:blur(18px) saturate(170%);-webkit-backdrop-filter:blur(18px) saturate(170%);border:1px solid rgba(255,255,255,.8);box-shadow:0 8px 32px rgba(17,17,17,.10),inset 0 1px 0 rgba(255,255,255,.9)}.ar-brand{display:inline-flex;align-items:center;min-height:52px}.ar-brand img{height:50px;width:auto;display:block}.ar-nav{display:flex;flex-wrap:wrap;gap:4px;align-items:center}.ar-nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0}.ar-nav li{margin:0;padding:0}.ar-nav a,.ar-lang,.ar-header-cta{min-height:44px;padding:0 14px;display:flex;align-items:center;border-radius:999px;font-size:14px;color:#3d3d3a}.ar-nav .current-menu-item>a,.ar-nav .current_page_item>a{color:#111;background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 1px rgba(255,255,255,.9)}.ar-header-cta{padding:0 22px;background:rgba(17,17,17,.86);color:#fff!important;box-shadow:0 8px 22px rgba(17,17,17,.2)}.ar-lang{gap:8px;border:1px solid rgba(17,17,17,.12);background:rgba(255,255,255,.55)}.ar-lang .active{color:var(--ar-accent);font-weight:700}.ar-mobile-toggle{display:none;border:0;background:#111;color:#fff;border-radius:50%;width:44px;height:44px;cursor:pointer}
.ar-footer{max-width:1760px;margin:0 auto;padding:0 56px 32px;box-sizing:border-box}.ar-footer-panel{position:relative;overflow:hidden;border-radius:28px;background:#161616;background-image:radial-gradient(90% 80% at 100% 110%,rgba(150,160,190,.55),rgba(150,160,190,0) 60%),radial-gradient(70% 60% at 85% 100%,rgba(90,110,180,.45),rgba(90,110,180,0) 70%),linear-gradient(160deg,#1c1c1c,#121212);padding:48px 48px 0;color:#F4F4F2}.ar-footer-top{position:relative;display:flex;flex-wrap:wrap;gap:32px 48px;justify-content:space-between;align-items:flex-start}.ar-footer-nav{display:flex;flex-direction:column;gap:4px}.ar-footer-nav a{min-height:44px;display:flex;align-items:center;font-size:20px;font-weight:500;color:#F4F4F2}.ar-footer-contact{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}.ar-footer-contact a{font-size:16px;color:#D5D5D0;min-height:32px;display:inline-flex;align-items:center}.ar-footer-social{display:flex;gap:4px;margin-bottom:12px}.ar-footer-social a{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;color:#F4F4F2;border:1px solid rgba(255,255,255,.25);border-radius:50%}.ar-footer-wordmark{position:relative;margin-top:24px;font-size:clamp(88px,15.5vw,196px);line-height:.86;letter-spacing:-.05em;font-weight:600;white-space:nowrap;text-align:center;color:rgba(235,238,250,.45);padding-bottom:12px}.ar-footer-bottom{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;padding:20px 8px 0;font-size:13px;color:var(--ar-muted)}
.ar-contact-form{width:100%;border-radius:28px;padding:32px;display:flex;flex-direction:column;gap:20px;box-sizing:border-box;background:rgba(255,255,255,.62);backdrop-filter:blur(20px) saturate(170%);-webkit-backdrop-filter:blur(20px) saturate(170%);border:1px solid rgba(255,255,255,.85);box-shadow:0 20px 60px rgba(17,17,17,.12),inset 0 1px 0 rgba(255,255,255,.9)}.ar-form-row{display:flex;flex-wrap:wrap;gap:20px}.ar-form-field{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:500;flex:1 1 220px;min-width:0}.ar-form-control{width:100%;box-sizing:border-box;min-height:48px;padding:12px 16px;border-radius:14px;border:1px solid rgba(17,17,17,.14);background:rgba(255,255,255,.82);font:inherit;font-size:16px;color:#111;outline:none}.ar-form-control:focus{border-color:var(--ar-accent);box-shadow:0 0 0 3px rgba(28,70,177,.15)}textarea.ar-form-control{min-height:140px;resize:vertical}.ar-form-submit{cursor:pointer;min-height:52px;padding:0 28px;border-radius:999px;font-size:15px;font-weight:500;background:#111;color:#fff;border:0;box-shadow:0 8px 22px rgba(17,17,17,.22)}.ar-form-note{font-size:13px;color:var(--ar-muted)}.ar-form-notice{padding:12px 16px;border-radius:12px;margin:0 0 16px}.ar-form-notice.success{background:#e7f5eb;color:#175b2d}.ar-form-notice.error{background:#fff0ed;color:#8b2418}
.ar-listing-wrap{max-width:1760px;margin:0 auto;padding:56px 56px 0;box-sizing:border-box}.ar-listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}.ar-listing-card{min-width:0}.ar-listing-card img{width:100%;height:300px;object-fit:cover;border-radius:20px;display:block}.ar-listing-card .category{font-size:13px;color:var(--ar-muted);margin:14px 0 4px}.ar-listing-card h2{font-size:22px;line-height:1.25;letter-spacing:-.02em;margin:0 0 8px}.ar-listing-card p{font-size:15px;line-height:1.55;color:var(--ar-muted);margin:0 0 10px}.ar-listing-card .read-time{font-size:13px;color:var(--ar-muted)}.ar-load-more-wrap{text-align:center;padding:40px 0}.ar-load-more{border:0;background:#fff;border-radius:999px;padding:16px 30px;box-shadow:0 8px 24px rgba(0,0,0,.10);cursor:pointer}.ar-load-more[disabled]{opacity:.55;cursor:wait}.ar-page-content{max-width:1200px;margin:0 auto;padding:56px}.ar-page-content h1{font-size:var(--ar-h1)}
@media(max-width:900px){.ar-header{padding:10px 20px}.ar-header-inner{padding:8px 12px}.ar-mobile-toggle{display:inline-flex;align-items:center;justify-content:center}.ar-nav{display:none;flex-basis:100%;width:100%;flex-direction:column;align-items:stretch}.ar-nav.is-open{display:flex}.ar-nav ul{flex-direction:column;align-items:stretch}.ar-nav a{justify-content:flex-start}.ar-footer{padding:0 20px 24px}.ar-footer-panel{padding:32px 24px 0}.ar-listing-wrap{padding:36px 20px 0}.ar-listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ar-listing-grid{grid-template-columns:1fr}.ar-listing-card img{height:260px}.ar-footer-contact{align-items:flex-start;text-align:left}.ar-footer-wordmark{font-size:19vw}.ar-contact-form{padding:20px}.ar-page section{padding-left:20px!important;padding-right:20px!important}.ar-page h1{font-size:42px!important}.ar-page h2{font-size:32px!important}}
[dir=rtl] .ar-footer-contact{align-items:flex-start;text-align:left}[dir=rtl] .ar-nav ul{direction:rtl}[dir=rtl] .ar-form-field{text-align:right}
.ar-footer-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.ar-footer-menu li{margin:0;padding:0;list-style:none}
/* Theme Options controls override the original inline defaults where applicable. */
body{background:var(--ar-bg)!important;color:var(--ar-text)!important;font-family:var(--ar-font)!important;font-size:var(--ar-base)!important}
.ar-page h1{font-size:var(--ar-h1)!important}.ar-page h2{font-size:var(--ar-h2)!important}

/* v2.0.1: keep document scrolling enabled; only horizontal overflow is clipped. */
html { overflow-y: auto !important; }
body.ar-site { min-height: 100vh; height: auto !important; }

/* v2.1.1: STICKY GLASS HEADER
   body must NOT be a scroll container (overflow-y:auto on body broke position:sticky). */
html { overflow-x: clip; overflow-y: auto !important; }
html body.ar-site { overflow-x: clip !important; overflow-y: visible !important; }
.ar-site, .ar-page, .ar-site main { overflow-y: visible !important; }
.ar-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: transparent;
}
.ar-header-inner {
  background: rgba(255,255,255,.55) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid rgba(255,255,255,.65) !important;
  box-shadow: 0 8px 32px rgba(17,17,17,.12), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.ar-header.is-scrolled .ar-header-inner { background: rgba(255,255,255,.72) !important; }
.admin-bar .ar-header { top: 32px !important; }
@media (max-width: 782px) { .admin-bar .ar-header { top: 46px !important; } }
@media (max-width: 600px) { .admin-bar .ar-header { top: 0 !important; } }