/*
Theme Name: Maghfoor Portfolio
Theme URI: https://uxdmarketing.com/
Author: Maghfoor Ahmad
Author URI: https://uxdmarketing.com/
Description: A lightweight Elementor-compatible portfolio theme scaffold with responsive layouts and scroll animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maghfoor-portfolio
Tags: portfolio, one-column, custom-logo, custom-menu, featured-images, full-width-template
*/


/* CSS Reset & Variables */
:root {
  --bg-dark: #090a0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(204, 255, 0, 0.35);
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #ccff00;
  --accent-glow: rgba(204, 255, 0, 0.15);
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Syne", -apple-system, sans-serif;
  --font-mono: "Space Grotesk", monospace, sans-serif;
  --container-max: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--bg-dark);
  position: relative;
}

/* Ambient background glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(204, 255, 0, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
}

/* Accessibility: focus-visible & skip link */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-to-content {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent);
  color: #000;
  padding: 10px 18px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.skip-to-content:focus {
  top: 20px;
}

/* Typography & Layout */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-mono::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(204, 255, 0, 0.28);
  background: #dcff33;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

/* Site Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.35s ease;
}

.site-nav.scrolled {
  padding: 14px 0;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
}

/* 1. Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  will-change: transform, opacity;
  transform-origin: center top;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge .ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.hero-badge .ping-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: clamp(3.2rem, 9vw, 7.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 800;
}
.hero-title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  transition: all 0.5s ease;
}
.hero-title span:hover {
  color: #fff;
  -webkit-text-stroke: 1px transparent;
}

.hero-subtitles {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-statement {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 60px;
}

.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.hero-scroll-indicator svg {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* 2. Introduction Section */
.intro-section {
  padding: 160px 0;
  position: relative;
  background: linear-gradient(to bottom, transparent, rgba(204, 255, 0, 0.015), transparent);
}

.intro-box {
  max-width: 1040px;
  margin: 0 auto;
}

.editorial-statement {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.editorial-statement .highlight-word {
  color: var(--accent);
  font-style: italic;
}

.intro-body {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 860px;
  border-left: 2px solid var(--accent);
  padding-left: 28px;
}

/* 3. Expertise Section (Pinned Horizontal Scroll) */
.expertise-pinned-container {
  position: relative;
  height: 380vh;
}

.expertise-sticky-window {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.expertise-header {
  padding: 0 24px;
  max-width: var(--container-max);
  margin: 0 auto 36px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.expertise-progress-track {
  width: 220px;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.expertise-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.expertise-track {
  display: flex;
  gap: 32px;
  padding-left: calc((100vw - min(var(--container-max), 100vw - 48px)) / 2 + 24px);
  padding-right: 120px;
  will-change: transform;
  transition: transform 0.08s linear;
}

.expertise-card {
  flex: 0 0 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 480px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.expertise-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(204, 255, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.expertise-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.expertise-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.card-footer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 4. Selected Work */
.work-section {
  padding: 140px 0;
  position: relative;
}

.section-title-wrap {
  margin-bottom: 80px;
}

.section-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: 48px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.project-panel:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.project-preview {
  width: 100%;
  height: 440px;
  border-radius: 20px;
  background: #14161f;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-preview-visual {
  width: 90%;
  height: 85%;
  border-radius: 12px;
  transition: transform 0.6s var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.project-panel:hover .project-preview-visual {
  transform: scale(1.03);
}

.art-uxd {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid rgba(129, 140, 248, 0.2);
}
.art-rozgar {
  background: linear-gradient(135deg, #172554 0%, #042f2e 100%);
  border: 1px solid rgba(45, 212, 191, 0.2);
}
.art-gndu {
  background: linear-gradient(135deg, #27272a 0%, #1c1917 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.art-mindlift {
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
  border: 1px solid rgba(232, 121, 249, 0.2);
}
.art-quiz {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.art-amc {
  background: linear-gradient(135deg, #18181b 0%, #2e1065 100%);
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.preview-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.preview-center-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
}
.mock-bars {
  display: flex;
  gap: 8px;
}
.mock-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.project-name {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-main);
}

/* 5. Storytelling Section */
.story-section {
  padding: 140px 0;
  background: radial-gradient(circle at 50% 50%, rgba(204, 255, 0, 0.025) 0%, transparent 60%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.story-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.story-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 40px;
}

.story-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.4;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-out);
}

.story-step.active {
  opacity: 1;
  transform: translateY(0);
}

.step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.4s ease;
  box-shadow: 0 0 0 6px var(--bg-dark);
}

.story-step.active .step-circle {
  border-color: var(--accent);
  color: #000;
  background: var(--accent);
  box-shadow: 0 0 25px rgba(204, 255, 0, 0.45);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* 6. Skills Section */
.skills-section {
  padding: 140px 0;
  position: relative;
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.skill-category-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: flex-start;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-subtle);
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-title span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.skill-tags-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease-out);
  cursor: default;
}

.skill-tag:hover {
  background: rgba(204, 255, 0, 0.08);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(204, 255, 0, 0.12);
}

/* 7. Experience Timeline */
.experience-section {
  padding: 140px 0;
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 920px;
  margin: 60px auto 0;
  padding-left: 48px;
}

.timeline-rail {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}
.timeline-rail-fill {
  position: absolute;
  left: 12px;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: height 0.15s ease-out;
}

.timeline-item {
  position: relative;
  margin-bottom: 72px;
  opacity: 0.4;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-out);
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-node {
  position: absolute;
  left: -48px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-node {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px 40px;
  transition: border-color 0.3s ease;
}
.timeline-item.active .timeline-card {
  border-color: rgba(204, 255, 0, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.role-title {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.role-dates {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent);
}

.role-org {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-responsibilities {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-responsibilities li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
  color: var(--text-muted);
}
.role-responsibilities li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* 8. Education & Credentials */
.edu-cert-section {
  padding: 140px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 60px;
}

.edu-column, .cert-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}
.edu-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--bg-card-hover);
}

.cert-featured-card {
  background: linear-gradient(145deg, rgba(204, 255, 0, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.cert-badge-visual {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.3);
  padding: 8px 18px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.cert-title {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

/* 9. About Me */
.about-section {
  padding: 140px 0;
  position: relative;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.01), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-portrait-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 540px;
  background: #11131a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-graphic {
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 30%, rgba(204, 255, 0, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #161822 0%, #0d0e14 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.portrait-avatar-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px rgba(204, 255, 0, 0.25);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  background: rgba(204, 255, 0, 0.06);
}

.portrait-name {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.portrait-location {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-dim);
}

.about-text-content h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.about-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 24px;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar-box {
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-main);
}
.pillar-box strong {
  display: block;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* 10. Numbers / Impact */
.impact-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 11. Contact CTA */
.contact-section {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-box {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-headline {
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.contact-subtext {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 48px;
}

.contact-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}

.social-pill {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.social-pill:hover {
  background: rgba(204, 255, 0, 0.1);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* Modals & Dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #0f1016;
  border: 1px solid var(--border-accent);
  border-radius: 28px;
  width: 100%;
  max-width: 600px;
  padding: 48px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(204, 255, 0, 0.3);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  pointer-events: none;
}
.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .project-panel {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px;
  }
  .project-preview {
    height: 340px;
  }
  .edu-cert-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-portrait-wrap {
    height: 400px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-pipeline {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 840px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .mobile-drawer.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 999;
    padding: 100px 32px 40px;
    gap: 24px;
  }
  .mobile-drawer a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
  }

  /* Complies with scroll-animation-studio mobile fallback */
  .expertise-pinned-container {
    height: auto;
  }
  .expertise-sticky-window {
    position: static;
    height: auto;
    padding: 80px 0;
  }
  .expertise-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-left: 24px;
    padding-right: 24px;
    -webkit-overflow-scrolling: touch;
  }
  .expertise-card {
    flex: 0 0 85vw;
    scroll-snap-align: center;
    height: auto;
    min-height: 400px;
  }
  .expertise-progress-track {
    display: none;
  }

  .skill-category-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Prefers-reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-content, .expertise-track, .timeline-item, .story-step {
    transform: none !important;
    opacity: 1 !important;
  }
  .expertise-pinned-container {
    height: auto !important;
  }
  .expertise-sticky-window {
    position: static !important;
    height: auto !important;
  }
  .expertise-track {
    overflow-x: auto !important;
  }
}
  

/* Elementor integration layer — keep original visual language and scroll effects */
body.elementor-page { background: var(--bg-dark); overflow-x: hidden; }
.elementor .portfolio-root { width: 100%; }
.elementor .portfolio-section { width: 100%; }
.elementor .portfolio-inner { width: 100%; max-width: var(--container-max); margin-left: auto; margin-right: auto; position: relative; z-index: 2; }
.elementor .hero-section > .e-con-inner,
.elementor .intro-section > .e-con-inner,
.elementor .work-section > .e-con-inner,
.elementor .story-section > .e-con-inner,
.elementor .skills-section > .e-con-inner,
.elementor .experience-section > .e-con-inner,
.elementor .edu-cert-section > .e-con-inner,
.elementor .about-section > .e-con-inner,
.elementor .impact-section > .e-con-inner,
.elementor .contact-section > .e-con-inner { max-width: 100%; }
.elementor .portfolio-inner > .e-con-inner { width: 100%; }
.elementor .portfolio-inner { gap: 24px; }
.elementor .hero-title .elementor-heading-title { font-size: clamp(3.2rem, 9vw, 7.8rem); line-height: .95; text-transform: uppercase; }
.elementor .hero-title .elementor-heading-title span { display:block; color:transparent; -webkit-text-stroke:1px rgba(255,255,255,.28); }
.elementor .editorial-statement .elementor-heading-title em,
.elementor .section-headline .elementor-heading-title em { color:var(--accent); font-style:italic; }
.elementor .hero-actions { flex-direction: row; flex-wrap: wrap; gap:16px; }
.elementor .hero-actions .elementor-widget { width:auto; }
.elementor .expertise-track { flex-direction: row; flex-wrap: nowrap; }
.elementor .expertise-card { min-width: 320px; }
.elementor .project-panel { grid-template-columns: 1.15fr .85fr; }
.elementor .project-preview { min-height: 300px; }
.elementor .projects-grid { display:flex; flex-direction:column; gap:32px; }
.elementor .project-tech-stack { color:var(--text-main); }
.elementor .story-pipeline { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:20px; }
.elementor .story-step .elementor-widget { width:100%; }
.elementor .skill-category-row { display:grid; grid-template-columns:240px 1fr; gap:36px; }
.elementor .timeline-container { display:flex; flex-direction:column; gap:28px; }
.elementor .timeline-items { display:flex; flex-direction:column; gap:24px; }
.elementor .edu-cert-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.elementor .about-pillars { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.elementor .stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.elementor .impact-section > .portfolio-inner { display:grid; grid-template-columns:repeat(4,1fr); }
.elementor .btn .elementor-button { border-radius:9999px; padding:16px 32px; font-family:var(--font-mono); }
.elementor .btn-primary .elementor-button { background:var(--accent); color:#000; border:1px solid var(--accent); }
.elementor .btn-secondary .elementor-button { background:rgba(255,255,255,.04); color:var(--text-main); border:1px solid var(--border-subtle); }
.elementor .tag-mono .elementor-widget-container { font-family:var(--font-mono); font-size:.82rem; text-transform:uppercase; letter-spacing:.12em; color:var(--accent); }
.elementor .project-panel > .e-con-inner { display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center; }
.elementor .expertise-pinned-container { height:380vh; }
.elementor .expertise-sticky-window { position:sticky; top:0; height:100vh; overflow:hidden; justify-content:center; }
.elementor .expertise-sticky-window > .e-con-inner { max-width:100%; }
.elementor .expertise-track { will-change:transform; }
.elementor .timeline-rail { position:absolute; left:12px; top:0; bottom:0; width:2px; background:var(--border-subtle); }
.elementor .timeline-item { opacity:.4; transform:translateY(20px); transition:all .5s var(--ease-out); }
.elementor .timeline-item.active, .elementor .story-step.active { opacity:1; transform:translateY(0); }
.elementor .story-step { opacity:.4; transform:translateY(20px); transition:all .5s var(--ease-out); }
.elementor .step-circle { display:flex; align-items:center; justify-content:center; width:72px; height:72px; border:2px solid var(--border-subtle); border-radius:50%; background:var(--bg-dark); color:var(--text-muted); margin-bottom:20px; }
.elementor .story-step.active .step-circle { border-color:var(--accent); color:#000; background:var(--accent); box-shadow:0 0 25px rgba(204,255,0,.35); }
.elementor .project-preview.art-uxd { background:linear-gradient(135deg,#0f172a,#1e1b4b); }
.elementor .project-preview.art-rozgar { background:linear-gradient(135deg,#172554,#042f2e); }
.elementor .project-preview.art-gndu { background:linear-gradient(135deg,#27272a,#1c1917); }
.elementor .project-preview.art-mindlift { background:linear-gradient(135deg,#1e1b4b,#311042); }
.elementor .project-preview.art-quiz { background:linear-gradient(135deg,#022c22,#064e3b); }
.elementor .project-preview.art-amc { background:linear-gradient(135deg,#18181b,#2e1065); }
.elementor .project-preview > .e-con-inner { width:90%; min-height:260px; padding:28px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background:rgba(0,0,0,.12); }
@media(max-width:1024px){
 .elementor .project-panel > .e-con-inner { grid-template-columns:1fr; }
 .elementor .story-pipeline { grid-template-columns:1fr; }
 .elementor .edu-cert-grid { grid-template-columns:1fr; }
 .elementor .impact-section > .portfolio-inner { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:840px){
 .elementor .expertise-pinned-container { height:auto; }
 .elementor .expertise-sticky-window { position:static; height:auto; padding:80px 0; overflow:visible; }
 .elementor .expertise-track { overflow-x:auto; scroll-snap-type:x mandatory; padding:0 24px; -webkit-overflow-scrolling:touch; }
 .elementor .expertise-card { flex:0 0 85vw; min-height:400px; scroll-snap-align:center; }
 .elementor .expertise-progress-track { display:none; }
 .elementor .skill-category-row { grid-template-columns:1fr; gap:16px; }
 .elementor .project-panel { padding:24px; }
 .elementor .about-pillars { grid-template-columns:1fr; }
}

.elementor .site-nav { position:sticky; top:0; z-index:1000; padding:18px 0; background:rgba(9,10,15,.82); backdrop-filter:blur(16px); border-bottom:1px solid var(--border-subtle); }
.elementor .nav-inner > .e-con-inner { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:20px; max-width:1240px; }
.elementor .brand-logo-widget, .elementor .nav-links { width:auto; }
.elementor .brand-logo-widget a { color:#fff; font-family:var(--font-display); font-weight:800; }
.elementor .nav-links .elementor-widget-container { font-family:var(--font-mono); font-size:.82rem; color:var(--text-muted); }
.elementor .nav-links a { color:var(--text-muted); }
.elementor .nav-links a:hover { color:#fff; }
.elementor .site-nav .elementor-widget-button { width:auto; }
@media(max-width:840px){ .elementor .nav-inner > .e-con-inner { flex-wrap:wrap; } .elementor .nav-links { order:3; width:100%; } .elementor .nav-links .elementor-widget-container { line-height:2.4; } }
